/* Global Variables & Reset */
:root {
    /* Light Mode (Default) */
    --bg-color: #FDFDFF;
    --bg-alt: #F4F4F8; /* Slightly different for alternating sections */
    --text-color: #000000;
    --text-muted: #555555;
    --accent-color: #B59A57;
    --nav-bg: rgba(253, 253, 255, 0.95);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition-speed: 0.3s;
}

[data-theme="dark"] {
    --bg-color: #080810;
    --bg-alt: #0D0D16;
    --text-color: #FFFFFF;
    --text-muted: #AAAAAA;
    --accent-color: #B59A57;
    --nav-bg: rgba(8, 8, 16, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    display: block;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--nav-bg);
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(181, 154, 87, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links li a:hover {
    color: var(--accent-color);
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.moon-icon, .sun-icon {
    width: 20px;
    height: 20px;
}

[data-theme="light"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
}

/* Sections General */
.section {
    padding: 6rem 5%;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-style: italic;
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('assets/hero-main.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF; /* Always white text on hero image */
}

/* Fallback if image not loaded yet */
.hero-section {
    background-color: #1a1a1a; 
}

.hero-content h1 {
    font-size: 4rem;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.cta-button:hover {
    background-color: #FFFFFF;
    color: #000000;
}

/* Portfolio */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--text-muted);
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Services */
.services-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.service-card {
    flex: 1;
    min-width: 280px;
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Studio */
.studio-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.studio-image {
    flex: 1;
}

.studio-text {
    flex: 1;
}

.studio-text .subtitle {
    display: block;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-style: italic;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

/* Contact */
.cyber-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-color);
    font-family: var(--font-body);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: var(--accent-color);
}

/* Footer */
footer {
    padding: 3rem 5%;
    text-align: center;
    background-color: var(--nav-bg);
    border-top: 1px solid rgba(181, 154, 87, 0.1);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobile menu implementation usually requires JS toggle */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--nav-bg);
        padding: 2rem;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .studio-container {
        flex-direction: column;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
