/* Font Face Declarations */
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Medium-5538895.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-MediumItalic-5538897.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Bold-5538903.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-ExtraBold-5538907.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-ExtraBoldItalic-5538909.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Black-5538915.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

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

/* Custom Properties */
:root {
    /* Colors - Neutral Coastal Palette */
    --peach-light: #f5e3d6;
    --peach-medium: #edd8c9;
    --sunset-coral: #e5c4b1;
    --sand-light: #f5ebe0;
    --sand-medium: #e8ddd2;
    --charcoal: #2a2a2a;
    --charcoal-light: #4a4a4a;
    --ocean-blue: #7a8a8f;
    --ocean-light: #9aa5a8;
    --foam-white: #faf8f5;
    --driftwood: #8b7355;
    --coral: #d4a593;
    --coral-light: #e0bfb0;
    
    /* Typography */
    --font-body: "Gilroy", "Inter", Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Container */
    --container-max: 1200px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Dark Mode Theme Variables */
[data-theme="dark"] {
    --peach-light: #1a1a1a;
    --peach-medium: #181818;
    --sunset-coral: #161616;
    --sand-light: #141414;
    --sand-medium: #121212;
    --charcoal: #f5ebe0;
    --charcoal-light: #e8ddd2;
    --ocean-blue: #9aa5a8;
    --ocean-light: #b0babe;
    --foam-white: #0a0a0a;
    --driftwood: #a68866;
    --coral: #e0bfb0;
    --coral-light: #d4a593;
}

/* Typography */
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
    color: var(--charcoal);
    background-color: var(--foam-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3 {
    font-family: var(--font-body);
    font-weight: 800;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 900;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    line-height: 1.3;
}

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

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navigation.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .navigation.scrolled {
    background: rgba(42, 42, 42, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--charcoal);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--coral);
}

.nav-links a:hover::after {
    width: 100%;
}

.instagram-link {
    padding: var(--space-xs) var(--space-sm);
    background: var(--charcoal);
    color: var(--foam-white) !important;
    border-radius: 24px;
    font-weight: 700;
}

.instagram-link::after {
    display: none !important;
}

.instagram-link:hover {
    background: var(--charcoal-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 42, 42, 0.3);
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sand-light) 0%, var(--peach-light) 33%, var(--peach-medium) 66%, var(--sunset-coral) 100%);
    background-size: 200% 200%;
    animation: gentleWave 30s ease-in-out infinite;
}

@keyframes gentleWave {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(122, 165, 181, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(232, 165, 135, 0.1) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    color: var(--charcoal);
    z-index: 1;
    padding: var(--space-xl);
}

.hero h1 {
    margin-bottom: var(--space-sm);
    color: var(--charcoal);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    opacity: 0.8;
    margin-bottom: var(--space-lg);
}

.cta-button {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: var(--charcoal);
    color: var(--foam-white);
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--charcoal-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(42, 42, 42, 0.3);
}

/* About Section */
.about {
    padding: var(--space-2xl) 0;
    background: var(--foam-white);
}

.about h2 {
    text-align: center;
    color: var(--charcoal);
}

.about p {
    max-width: 800px;
    margin: 0 auto var(--space-sm);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--charcoal-light);
    text-align: center;
}

/* Portfolio Section */
.portfolio {
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, var(--foam-white) 0%, rgba(212, 197, 176, 0.1) 100%);
}

.portfolio h2 {
    text-align: center;
    color: var(--charcoal);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.portfolio-item {
    background: var(--foam-white);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(196, 181, 160, 0.2);
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(196, 181, 160, 0.3);
}

.portfolio-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--sand-light) 0%, var(--peach-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-placeholder span {
    color: var(--charcoal);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 1;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.portfolio-item h3 {
    padding: var(--space-sm) var(--space-md) var(--space-xs);
    margin: 0;
    color: var(--charcoal);
}

.portfolio-item p {
    padding: 0 var(--space-md) var(--space-md);
    color: var(--charcoal-light);
    margin: 0;
}

/* Contact Section */
.contact {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--peach-light) 0%, var(--peach-medium) 100%);
    text-align: center;
}

.contact h2 {
    color: var(--charcoal);
}

.contact p {
    opacity: 0.9;
    margin-bottom: var(--space-lg);
}

.contact-instagram {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--charcoal);
    color: var(--foam-white);
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px;
    transition: var(--transition);
}

.contact-instagram:hover {
    background: var(--charcoal-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(42, 42, 42, 0.3);
}

/* Footer */
.footer {
    padding: var(--space-md) 0;
    background: var(--charcoal);
    color: var(--sand-light);
    text-align: center;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 42, 42, 0.95);
    z-index: 2000;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--charcoal);
    font-size: 2.5rem;
    font-weight: 600;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--foam-white);
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--charcoal);
    color: var(--foam-white);
    transform: rotate(90deg);
}

.modal-caption {
    text-align: center;
    color: var(--foam-white);
    padding: var(--space-sm) var(--space-sm) var(--space-md);
    font-size: 1.1rem;
}

/* Modal Navigation Arrows */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--foam-white);
    font-size: 2rem;
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.modal-nav:hover {
    opacity: 1;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

@media (max-width: 768px) {
    .modal-nav {
        font-size: 1.5rem;
        padding: var(--space-xs);
    }
    
    .modal-prev { left: 10px; }
    .modal-next { right: 10px; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    /* Show navigation items inline on mobile */
    .navigation .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
    }
    
    .logo {
        width: 100%;
        justify-content: center;
        margin-bottom: var(--space-sm);
    }
    
    /* Logo style on mobile */
    .logo img {
        height: 40px;
    }
    
    /* Add padding to navigation container on mobile */
    .navigation .container {
        padding: var(--space-sm) var(--space-sm);
    }
    
    .hero-content {
        padding: var(--space-md);
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode Navigation Overrides */
[data-theme="dark"] .navigation {
    background: transparent;
}

/* Dark mode navigation text - use charcoal which is light in dark mode */
[data-theme="dark"] .nav-links li a {
    color: var(--charcoal) !important;
}

[data-theme="dark"] .nav-links a {
    color: var(--charcoal) !important;
}

/* Dark mode mobile nav needs background, desktop doesn't */
@media (max-width: 768px) {
}

[data-theme="dark"] .nav-links .instagram-link,
[data-theme="dark"] .nav-links li .instagram-link {
    background: var(--charcoal) !important;
    color: var(--foam-white) !important;
}

[data-theme="dark"] .nav-links .instagram-link:hover {
    background: var(--charcoal-light) !important;
    color: var(--foam-white) !important;
}


/* Update nav link underline and hover in dark mode */
[data-theme="dark"] .nav-links a::after {
    background: var(--coral-light);
}

[data-theme="dark"] .nav-links li a:hover {
    color: var(--coral-light) !important;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--charcoal);
    color: var(--foam-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: 100;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

/* Theme toggle icon transitions */
.theme-toggle svg {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(180deg);
}

[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(-180deg);
}