/* ==========================================
   CSS RESET & BASE STYLES
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    line-height: 1.6;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* ==========================================
   THEME VARIABLES (Default: Light)
   ========================================== */

:root {
    /* Light Theme */
    --bg-primary: #f8f7f4;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e6e1;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --accent-primary: #6d9773;
    --accent-secondary: #a8b99f;
    --accent-hover: #5a8060;
    --border-color: #ddd9d0;
    --shadow: rgba(0, 0, 0, 0.08);
    --particle-color: #6d9773;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* ==========================================
   CONTAINER & LAYOUT
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

/* ==========================================
   THEME SWITCHER (Desktop)
   ========================================== */

.theme-switcher {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 999;
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 50px;
    box-shadow: 0 4px 20px var(--shadow);
    backdrop-filter: blur(10px);
}

.theme-btn {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.theme-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px var(--shadow);
}

.theme-btn.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-secondary);
}

.theme-btn[data-theme="light"] { background: linear-gradient(135deg, #f8f7f4, #e8e6e1); }
.theme-btn[data-theme="dark"] { background: linear-gradient(135deg, #2d3436, #1a1f1c); }
.theme-btn[data-theme="ocean"] { background: linear-gradient(135deg, #4a9d9c, #d4c5a0); }
.theme-btn[data-theme="sunset"] { background: linear-gradient(135deg, #d17a5c, #f4c6b8); }
.theme-btn[data-theme="forest"] { background: linear-gradient(135deg, #2d5f3f, #7a9e7e); }
.theme-btn[data-theme="desert"] { background: linear-gradient(135deg, #e8c5a0, #a89968); }

/* ==========================================
   HAMBURGER MENU
   ========================================== */

.hamburger {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1001;
    background: var(--bg-secondary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.05);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   NAVIGATION MENU
   ========================================== */

.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(20px);
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
}

.nav-content {
    text-align: center;
}

.nav-list {
    list-style: none;
    padding: 0;
}

.nav-item {
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-menu.active .nav-item {
    opacity: 1;
    transform: translateY(0);
}

.nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
.nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.2s; }
.nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.3s; }
.nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.4s; }

.nav-link {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin: 0 auto;
}

.dropdown-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 2rem;
}

.dropdown-toggle.active .dropdown-arrow {
    transform: rotate(90deg);
}

.dropdown-menu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 1rem;
}

.dropdown-menu.active {
    max-height: 300px;
}

.dropdown-link {
    font-size: 1.5rem;
    color: var(--text-secondary);
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.dropdown-link:hover {
    color: var(--accent-primary);
}

/* Theme Switcher in Nav (Mobile) */
.nav-theme-switcher {
    margin-top: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.5s, transform 0.4s ease 0.5s;
}

.nav-menu.active .nav-theme-switcher {
    opacity: 1;
    transform: translateY(0);
}

.theme-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.theme-grid {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.theme-dot {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-dot:hover {
    transform: scale(1.15);
}

.theme-dot.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-secondary);
}

.theme-dot[data-theme="light"] { background: linear-gradient(135deg, #f8f7f4, #e8e6e1); }
.theme-dot[data-theme="dark"] { background: linear-gradient(135deg, #2d3436, #1a1f1c); }
.theme-dot[data-theme="ocean"] { background: linear-gradient(135deg, #4a9d9c, #d4c5a0); }
.theme-dot[data-theme="sunset"] { background: linear-gradient(135deg, #d17a5c, #f4c6b8); }
.theme-dot[data-theme="forest"] { background: linear-gradient(135deg, #2d5f3f, #7a9e7e); }
.theme-dot[data-theme="desert"] { background: linear-gradient(135deg, #e8c5a0, #a89968); }

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.title-name {
    display: block;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}

.scroll-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--accent-primary);
    margin: 0 auto;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

/* ==========================================
   ABOUT BRIEF SECTION
   ========================================== */

.about-brief {
    background: var(--bg-secondary);
    padding: 5rem 0;
}

.about-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

/* ==========================================
   SERVICES PREVIEW SECTION
   ========================================== */

.services-preview {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--bg-secondary);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.service-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--bg-secondary);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================
   CUSTOM AUDIO PLAYER
   ========================================== */

.audio-player {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 998;
}

.player-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    color: var(--bg-primary);
}

.player-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px var(--shadow);
}

.player-toggle .icon-music {
    stroke: var(--bg-primary);
}

.player-content {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px var(--shadow);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.audio-player.active .player-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.track-info {
    flex: 1;
}

.track-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.track-artist {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.player-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.player-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

.play-btn {
    width: 48px;
    height: 48px;
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.play-btn:hover {
    background: var(--accent-hover);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.progress-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 35px;
}

.progress-bar {
    flex: 1;
    position: relative;
    height: 6px;
}

.progress-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 3px;
    transition: width 0.1s linear;
    width: 0%;
}

.progress-input {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(-50%);
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.progress-input::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.volume-icon {
    fill: var(--text-secondary);
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .theme-switcher {
        display: none; /* Hide on mobile, use nav theme switcher instead */
    }

    .hamburger {
        top: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }

    .nav-link {
        font-size: 2rem;
    }

    .dropdown-link {
        font-size: 1.2rem;
    }

    .hero {
        min-height: 90vh;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    /* Audio Player Mobile */
    .audio-player {
        bottom: 1rem;
        right: 1rem;
    }

    .player-toggle {
        width: 50px;
        height: 50px;
    }

    .player-content {
        width: calc(100vw - 2rem);
        right: 0;
        bottom: 65px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-link {
        font-size: 2.2rem;
    }
}