/* 
 * Gwenn Monte Website Styles
 * Mobile-first responsive design
 */

/* ---------- Variables ---------- */
:root {
    /* Core Brand Colors - Teal/Burgundy Theme (inspired by profile image) */
    --primary: #2d5a5a; /* Deep Teal */
    --secondary: #8b1538; /* Deep Burgundy */
    --background: #fefcfb; /* Warm White */
    --surface: #f5f2f0; /* Warm Light Gray */
    --text: #2c1810; /* Warm Dark Brown */
    --text-muted: #6b4e3d; /* Medium Brown */
    --border: #d4c4b8; /* Warm Border */
    
    /* Accent Colors */
    --accent-1: #b8572a; /* Copper/Auburn */
    --accent-2: #4a9a9a; /* Medium Teal */
    --accent-3: #e6d5c8; /* Warm Light Beige */
    
    /* Status & Feedback Colors */
    --success: #2d5a4a; /* Deep Teal Green */
    --warning: #b8572a; /* Copper */
    --error: #8b1538; /* Burgundy */
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-headings: 'Crimson Text', Georgia, serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Borders */
    --border-radius: 6px;
}

/* ---------- Reset & Base Styles ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    font-weight: 400;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: var(--secondary);
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 1001;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid white;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-sm);
}

ul {
    list-style: none;
}

/* ---------- Container ---------- */
.container {
    width: 90%;
    max-width: 70ch;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ---------- Header ---------- */
header {
    background-color: var(--background);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-sm);
}

.logo-text {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    background-color: rgba(45, 90, 90, 0.1);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text);
    transition: transform 0.3s ease;
}

.mobile-menu-toggle span.active:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle span.active:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle span.active:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu (collapsed by default) */
.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background);
    padding: var(--spacing-md) 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 90;
}

.nav-menu.active {
    transform: translateY(0);
}

.nav-menu li {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.nav-menu a {
    font-size: 1.1rem;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    display: inline-block;
}

/* ---------- Hero Section ---------- */
.hero {
    padding: 0;
    background-color: var(--primary);
    position: relative;
    color: white;
    text-align: center;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: relative;
    width: 100%;
    padding: var(--spacing-xl) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 400px;
}

.hero .container {
    position: relative;
    z-index: 2;
    background-color: rgba(45, 90, 90, 0.9);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    backdrop-filter: blur(2px);
    width: auto;
    display: inline-block;
    max-width: 90%;
    margin: 10% auto;
    border: 2px solid rgba(139, 21, 56, 0.3);
}

.hero-title {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: white;
}

.hero .tagline {
    font-size: 1.1rem;
    color: var(--accent-3);
    margin-bottom: var(--spacing-xs);
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero .hero-subtitle {
    font-size: 0.95rem;
    color: white;
    opacity: 0.9;
    font-weight: 300;
}

/* Media queries for hero responsiveness */
@media (min-width: 768px) {
    .hero-bg {
        min-height: 450px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }
}

@media (min-width: 992px) {
    .hero-bg {
        min-height: 550px;
        height: 40vh;
        max-height: 600px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero .tagline {
        font-size: 1.3rem;
    }
    
    .hero .hero-subtitle {
        font-size: 1rem;
    }
}

/* ---------- Sections ---------- */
.section {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border);
}

.section h2 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--primary);
    font-size: 1.8rem;
}

/* Author profile section */
.author-profile {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.author-image {
    flex: 1;
    text-align: center;
}

.author-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
    display: block;
    border: 4px solid var(--accent-2);
    box-shadow: 0 4px 12px rgba(45, 90, 90, 0.2);
}

.author-bio {
    flex: 2;
}

/* Project styles */
.project {
    background-color: var(--surface);
    border-left: 4px solid var(--secondary);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    border-radius: var(--border-radius);
}

.project h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
}

/* Note box styling */
.note-box {
    background-color: var(--accent-3);
    border-left: 3px solid var(--secondary);
    padding: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    border-radius: var(--border-radius);
}

.note-box p {
    margin-bottom: 0;
    color: var(--text);
}

/* Contact section */
.contact-content-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-info {
    margin-bottom: 0;
    text-align: center;
}

.social-media-links ul {
    list-style: none;
    padding: 0;
    margin: var(--spacing-xs) auto;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

.social-media-links li {
    margin: 0;
}

.social-media-links a {
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    background-color: var(--surface);
    border: 1px solid var(--border);
}

.social-media-links a:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.social-media-links svg {
    margin-right: var(--spacing-xs);
}

/* ---------- Footer ---------- */
footer {
    background-color: var(--text);
    color: var(--background);
    padding: var(--spacing-md) 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-sm);
}

.copyright {
    font-size: 0.9rem;
}

.copyright a {
    color: var(--background);
    text-decoration: underline;
    font-weight: 500;
}

.copyright a:hover {
    color: var(--accent-3);
    outline: 2px solid var(--background);
    outline-offset: 2px;
}

.credit {
    font-size: 0.8rem;
    color: var(--accent-3);
}

.credit a {
    color: var(--accent-3);
    text-decoration: underline;
}

.credit a:hover {
    color: var(--background);
    outline: 2px solid var(--accent-3);
    outline-offset: 2px;
}

.back-to-top {
    margin-top: var(--spacing-sm);
}

.back-to-top a {
    color: var(--background);
    background: rgba(255, 255, 255, 0.15);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.back-to-top a:hover {
    background: rgba(255, 255, 255, 0.3);
    outline: 2px solid var(--background);
    outline-offset: 2px;
}

.privacy-link {
    display: flex;
    margin-top: var(--spacing-xs);
}

.privacy-link a {
    color: var(--accent-3);
    text-decoration: none;
    font-size: 0.85rem;
}

.privacy-link a:hover {
    color: var(--background);
    outline: 2px solid var(--background);
    outline-offset: 2px;
}

/* ---------- Media Queries ---------- */
@media (min-width: 768px) {
    /* Tablet and larger */
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        transform: none;
        box-shadow: none;
        padding: 0;
        display: flex;
        gap: var(--spacing-sm);
    }
    
    .nav-menu li {
        margin-bottom: 0;
    }
    
    .author-profile {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .back-to-top {
        margin-top: 0;
    }
}

@media (min-width: 992px) {
    /* Desktop */
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .social-media-links ul {
        margin: var(--spacing-xs) auto;
    }
}

/* ---------- Privacy Policy Modal ---------- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    overflow-y: auto;
    padding: 2rem;
}

.modal[aria-hidden="false"] {
    display: block;
}

.modal-content {
    background: var(--background);
    color: var(--text);
    padding: 2rem;
    margin: auto;
    max-width: 600px;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.modal-content h3 {
    color: var(--secondary);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.modal-content p {
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.modal-content a {
    color: var(--primary);
    text-decoration: underline;
}

.modal-content a:hover {
    color: var(--secondary);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.modal-close:hover {
    background-color: var(--surface);
    color: var(--text);
}

.modal-close:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}