/* --- 1. VARIABLES & THEMES --- */
:root {
    /* --- DEFAULT DARK THEME --- */
    --bg-color: #121212;
    --bg-card: #1e1e1e;
    --bg-section: #181818;
    --bg-header: rgba(18, 18, 18, 0.95);
    --bg-footer: #0d0d0d;
    --text-main: #f0f0f0;
    --text-muted: #b3b3b3;
    --border-color: #2a2a2a;
    --brand-cyan: #00bcd4;
    --brand-green: #00ff88;
    --font-main: 'Inter', sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --shadow: none;
}

/* --- LIGHT THEME (The "Snow White") --- */
[data-theme="light"] {
    --bg-color: #f5f5f7;
    --bg-card: #ffffff;
    --bg-section: #e5e5ea;
    --bg-header: rgba(245, 245, 247, 0.95);
    --bg-footer: #e5e5ea;
    --text-main: #1d1d1f;
    --text-muted: #6e6e73;
    --border-color: #d2d2d7;
    --brand-cyan: #008ba3;
    --brand-green: #00c853;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* --- RESET & BASICS --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- 2. HEADER & NAV --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.container {
    width: 85%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo Control */
.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo-img {
    height: 40px; /* FORCE height to be small (Icon size) */
    width: auto; /* Maintain aspect ratio */
    max-width: 120px; /* Stop it from getting too wide */
    object-fit: contain;
    display: block;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

    .nav-links a {
        font-size: 0.95rem;
        color: var(--text-muted);
        font-weight: 500;
    }

        .nav-links a:hover, .nav-links a.active-link {
            color: var(--text-main);
        }

/* Theme Toggle Button */
.theme-toggle-btn {
    background: var(--bg-card); /* Gives it a solid background so it stands out */
    border: 2px solid var(--text-muted); /* Thicker, visible outline */
    color: var(--text-main); /* Icon matches text color (White or Black) */
    width: 40px; /* Fixed width for a perfect circle */
    height: 40px; /* Fixed height for a perfect circle */
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Adds depth */
}

    .theme-toggle-btn:hover {
        border-color: var(--brand-cyan); /* Glows Cyan on hover */
        color: var(--brand-cyan);
        transform: scale(1.05); /* Slight zoom effect */
    }

    .theme-toggle-btn i {
        font-size: 1.1rem;
        /* Adds a tiny shadow to the icon itself for extra clarity */
        filter: drop-shadow(0 0 2px rgba(0,0,0,0.2));
    }

/* Buttons */
.cta-button {
    background-color: transparent;
    border: 1px solid var(--brand-green);
    color: var(--brand-green);
    padding: 0.7rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
}

    .cta-button:hover {
        background-color: var(--brand-green);
        color: #fff;
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
    }

.secondary-button {
    color: var(--text-main);
    text-decoration: underline;
    margin-left: 1.5rem;
    font-weight: 500;
}

    .secondary-button:hover {
        color: var(--brand-cyan);
    }

.desktop-cta-container {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

/* Default: Hide the mobile-only button on desktop */
.mobile-only-btn {
    display: none;
}

/* --- 3. HERO & SECTIONS --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.05) 0%, rgba(0,0,0,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-subtitle {
    color: var(--brand-green);
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-main);
}

.hero-desc {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    color: var(--text-muted);
}

section {
    padding: 6rem 0;
}

.section-dark {
    background-color: var(--bg-color);
}

.section-light {
    background-color: var(--bg-section);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

    .section-header h2 {
        font-size: 2.5rem;
        color: var(--text-main);
        margin-bottom: 1rem;
    }

    .section-header p {
        color: var(--brand-cyan);
        font-size: 1.1rem;
    }

/* --- 4. GRIDS & CARDS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

    .card:hover {
        transform: translateY(-5px);
        border-color: var(--brand-green);
    }

.card-icon {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    display: block;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- 5. ELEMENTS --- */
.project-card-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.project-tag {
    display: inline-block;
    font-size: 0.75rem;
    background: var(--bg-section);
    color: var(--brand-cyan);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-link {
    color: var(--brand-green);
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1rem;
    display: inline-block;
}

    .text-link:hover {
        text-decoration: underline;
    }

.toolbox-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.tool-item {
    text-align: center;
    width: 120px;
}

.tool-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* FAQ */
.faq-grid {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

details summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 600;
    transition: color 0.3s ease;
}

    details summary:hover {
        color: var(--brand-green);
    }

    details summary::after {
        content: '+';
        font-size: 1.5rem;
        color: var(--text-muted);
        font-weight: 400;
    }

details[open] summary::after {
    content: '-';
    color: var(--brand-green);
}

details p {
    margin-top: 1rem;
    padding-right: 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Bio */
.bio-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.bio-text {
    flex: 1;
}

    .bio-text h3 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        color: var(--text-main);
    }

.bio-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

    .bio-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

/* Industry Pills */
.industry-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: 0.3s;
    box-shadow: var(--shadow);
}

    .pill:hover {
        border-color: var(--brand-cyan);
        color: var(--text-main);
        background: var(--bg-section);
        cursor: default;
    }

/* Form Elements */
.form-wrapper {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 1rem;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: 0.3s;
}

    .form-input:focus, .form-textarea:focus, .form-select:focus {
        outline: none;
        border-color: var(--brand-green);
        background: var(--bg-card);
    }

optgroup {
    font-weight: 700;
    color: var(--brand-cyan);
    background: var(--bg-card);
}

option {
    background: var(--bg-card);
    color: var(--text-main);
    padding: 5px;
}

.contact-link {
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 500;
}

/* --- 6. FOOTER --- */
.site-footer {
    background-color: var(--bg-footer);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.footer-links h4 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    letter-spacing: 1px;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
}

    .footer-links a:hover {
        color: var(--brand-green);
    }

.copyright {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- 7. RESPONSIVE --- */
.mobile-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: 0.3s;
}

/* Tablet Media Query */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .grid-2, .grid-3, .bio-container, .form-grid {
        grid-template-columns: 1fr;
    }

    /* Fix: Mobile Flex Direction */
    .story-section {
        flex-direction: column;
    }

        .story-section[style*="row-reverse"] {
            flex-direction: column; /* Force normal column on mobile */
        }

    .bio-image {
        width: 100%;
        max-height: 400px;
    }

    .industry-grid {
        gap: 0.5rem;
    }

    .pill {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Mobile Media Query */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    /* Fix Logo Size on Mobile */
    .brand-logo-img {
        height: 35px;
    }

    /* Fix Theme Switcher Visibility */
    .desktop-cta-container {
        display: flex;
        align-items: center;
        margin-right: 1rem;
    }

    /* Hide Desktop "Hire Me" button on mobile */
    .desktop-only-btn {
        display: none !important;
    }

    .mobile-toggle {
        display: block;
    }

    /* Fix Mobile Menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 75%;
        background-color: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1000;
    }

        .nav-links.active {
            right: 0;
        }

    /* Show Mobile "Hire Me" button inside menu */
    .mobile-only-btn {
        display: inline-block;
        margin-top: 1rem;
        text-align: center;
    }

    /* Hamburger Animation */
    .mobile-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

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

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

/* --- 8. ABOUT PAGE SPECIFIC --- */
.about-hero {
    padding: 8rem 0 4rem;
    text-align: center;
}

    .about-hero h1 {
        font-size: 3.5rem;
        margin-bottom: 1rem;
        color: var(--text-main);
    }

.highlight {
    color: var(--brand-green);
}

/* Story Section */
.story-section {
    display: flex;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.story-img {
    flex: 1;
    height: 400px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.story-text {
    flex: 1;
    color: var(--text-muted);
}

    .story-text h2 {
        color: var(--text-main);
        margin-bottom: 1.5rem;
    }

/* Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: 0.3s;
}

    .process-card:hover {
        border-color: var(--brand-cyan);
        transform: translateY(-5px);
    }

    .process-card h3 {
        color: var(--text-main);
        margin-bottom: 0.5rem;
    }

    .process-card p {
        color: var(--text-muted);
        font-size: 0.9rem;
    }

.step-num {
    font-size: 3rem;
    font-weight: 700;
    color: var(--brand-cyan);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.value-box {
    padding: 2rem;
    background: var(--bg-section);
    border-radius: 8px;
}

    .value-box h3 {
        color: var(--text-main);
        margin: 1rem 0 0.5rem 0;
    }

    .value-box p {
        color: var(--text-muted);
    }

.value-icon {
    font-size: 2.5rem;
    color: var(--brand-green);
    margin-bottom: 1rem;
}
