/* ==========================================================================
   CSS Design System & Stylesheet
   Project: Studio AA Sustainable Architecture Freelance Website
   ========================================================================== */

/* --- CSS Custom Properties / Tokens --- */
:root {
    /* Color Palette */
    --color-primary-red: #ea2600;
    --color-primary-orange: #ea7100;
    --color-primary-yellow: #f9eb59;
    --color-primary-blue-light: #9fbdee;
    --color-primary-blue-dark: #4b6ba9;

    /* Theme Neutral Values - Primary Steel Blue Background Mode */
    --bg-color: #4b6ba9;
    --bg-gradient: none;
    --surface-color: rgba(255, 255, 255, 0.08);
    --surface-hover: rgba(255, 255, 255, 0.15);
    --border-color: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(255, 255, 255, 0.25);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    
    /* Gradients */
    --accent-gradient: linear-gradient(135deg, var(--color-primary-orange) 0%, var(--color-primary-yellow) 100%);
    --text-gradient: linear-gradient(135deg, #ffffff 0%, var(--color-primary-yellow) 100%);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.25);
    --glass-blur: blur(16px) saturate(180%);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-snappy: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
}

body {
    background-color: transparent;
    background-image: var(--bg-gradient);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid var(--bg-color);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
}

/* Dynamic Canvas Background Layer */
#radiance-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Top Layer Custom Cursor Overlay */
#cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* --- Interactive Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(234, 113, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(234, 113, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--surface-color);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-main);
    border: 1.5px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Badges and tags */
/* Badges and tags */
.badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    backdrop-filter: var(--glass-blur);
}

.section-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary-yellow);
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

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

/* --- Navigation Header --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
}

body.light-theme #main-header {
    background: rgba(255, 255, 255, 0.08);
}

#main-header.scrolled {
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary-red);
    border-radius: 50%;
    margin-right: 8px;
}

.logo-text span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Menu Links */
#nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 100%;
}

.nav-group-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-group-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-snappy);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary-yellow);
    text-shadow: 0 0 10px rgba(249, 235, 89, 0.45);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Custom Centered Nav CTA Hover Animation */
.nav-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transform: skewX(-25deg);
    transition: none;
    z-index: -1;
}

.nav-cta:hover::before {
    left: 150%;
    transition: left 0.6s ease;
}

.nav-cta:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(234, 113, 0, 0.4);
    transform: translateY(-2px) scale(1.05);
}

/* Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-btn, .menu-btn {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.theme-btn:hover {
    border-color: var(--border-hover);
    transform: scale(1.05);
}

.theme-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s ease;
}

body.dark-theme .sun-icon { display: block; }
body.dark-theme .moon-icon { display: none; }
body.light-theme .sun-icon { display: none; }
body.light-theme .moon-icon { display: block; }

.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    padding: 12px;
}

.menu-btn span {
    width: 100%;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition-snappy);
}

/* --- Hero Section --- */
.hero-section {
    height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 60px;
    position: relative;
    z-index: 1;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4.8rem;
    line-height: 1.1;
    margin-bottom: 1.8rem;
    font-weight: 800;
}

body.dark-theme .hero-content h1 {
    background: linear-gradient(135deg, #ffffff 0%, #cfd5e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-br {
    display: block;
}

#hero-primary-cta {
    padding: 16px 38px;
    font-size: 1.08rem;
    border-radius: var(--radius-md);
    box-shadow: 0 6px 25px rgba(234, 113, 0, 0.35);
}

#hero-primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(234, 113, 0, 0.45);
}

@media (max-width: 768px) {
    .hero-br {
        display: none;
    }
}

.hero-visual {
    position: relative;
}

.building-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    aspect-ratio: 4/3;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.building-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7, 11, 20, 0.4), transparent);
    pointer-events: none;
}

.building-frame:hover .hero-img {
    transform: scale(1.06);
}

/* --- About Section --- */
.about-section {
    padding: 40px 0 100px 0;
    position: relative;
}

.about-section .section-header {
    max-width: 1200px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.about-image-wrapper {
    position: relative;
}

.about-image-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    aspect-ratio: 1;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(13, 20, 38, 0.85);
    backdrop-filter: var(--glass-blur);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    color: white;
}

.about-text {
    display: flex;
    flex-direction: column;
}

.about-text h3 {
    margin-bottom: 1.5rem;
}

.about-actions {
    margin-top: auto;
    padding-top: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 3rem;
}

.stat-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
}

.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}

/* --- Video Intro Section --- */
.video-section {
    padding: 80px 0;
}

.video-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    aspect-ratio: 16/9;
    background: #000;
}

.video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transition: var(--transition-smooth);
}

.video-overlay-play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    z-index: 2;
    transition: var(--transition-smooth);
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(234, 113, 0, 0.4);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.play-btn svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(234, 113, 0, 0.6);
}

.video-text-overlay h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 8px;
}

.video-text-overlay p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto;
    font-size: 0.9rem;
}

.video-container:hover .video-poster {
    filter: brightness(0.4) scale(1.02);
}

/* Simulated Canvas Player Details */
.simulated-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #090e18;
    z-index: 5;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

#video-render-canvas {
    flex-grow: 1;
    width: 100%;
    height: calc(100% - 50px);
    background: #000;
}

.video-controls {
    height: 50px;
    background: rgba(13, 20, 38, 0.95);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
}

.control-btn {
    background: var(--surface-hover);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.control-btn:hover {
    border-color: var(--border-hover);
}

.progress-bar-container {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: var(--accent-gradient);
}

#video-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Services & Projects Grid Interactive Reduction System --- */
.interactive-grid {
    transition: var(--transition-smooth);
}

.interactive-grid.has-hovered-item .hover-glow:not(:hover) {
    opacity: 0.35;
    filter: blur(1.5px) scale(0.97);
}

.hover-glow {
    transition: var(--transition-smooth);
}

.hover-glow:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* --- Services Section --- */
.services-section {
    padding: 100px 0;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.service-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: calc(33.333% - 16px);
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .service-card {
        width: calc(50% - 12px);
    }
}

@media (max-width: 600px) {
    .service-card {
        width: 100%;
    }
}

.service-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: rgba(75, 107, 169, 0.1);
    border: 1px solid rgba(159, 189, 238, 0.15);
    color: var(--color-primary-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

body.light-theme .service-icon {
    background: rgba(234, 113, 0, 0.08);
    border-color: rgba(234, 113, 0, 0.15);
    color: var(--color-primary-orange);
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.88rem;
    margin-bottom: 0;
}

/* --- Why Work With Me Section --- */
.why-section {
    padding: 100px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius-lg);
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.why-card:hover {
    border-color: var(--border-hover);
}

.why-number {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-primary-orange);
    display: block;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.why-card h4 {
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.88rem;
    margin-bottom: 0;
}

/* --- Featured Projects Section --- */
.projects-section {
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: scale(1.03);
    border-color: var(--border-hover);
    box-shadow: var(--card-shadow);
}

.project-img-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(13, 20, 38, 0.8);
    backdrop-filter: var(--glass-blur);
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid var(--border-color);
    color: white;
}

.project-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.project-description {
    font-size: 0.88rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-deliverables {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-deliverables span {
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

body.light-theme .project-deliverables span {
    background: rgba(0, 0, 0, 0.03);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

/* --- FAQ Section --- */
.faq-section {
    padding: 100px 0;
}

.faq-container {
    max-width: 1100px;
}

.faq-accordion {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: start;
}

@media (max-width: 900px) {
    .faq-accordion {
        grid-template-columns: 1fr;
    }
}

.faq-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
}

.faq-question {
    width: 100%;
    padding: 24px 30px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: var(--surface-hover);
    color: var(--color-primary-yellow);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 30px;
}

.faq-answer p {
    padding-top: 20px;
    padding-bottom: 24px;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.faq-answer ul {
    padding-top: 10px;
    padding-bottom: 24px;
    padding-left: 20px;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.faq-answer li {
    margin-bottom: 8px;
}

/* Open states */
.faq-item.active {
    border-color: var(--border-hover);
}

.faq-item.active .faq-question {
    border-bottom: 1px solid var(--border-color);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--color-primary-orange);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

/* --- Contact & Booking Section --- */
.contact-section {
    padding: 100px 0;
    position: relative;
}

.contact-container {
    max-width: 1100px;
}

.contact-header-block {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 4rem auto;
}

.contact-split {
    display: block;
    max-width: 600px;
    margin: 0 auto;
}

/* Calendar Scheduler Styles */
.calendar-widget {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--card-shadow);
}

.calendar-widget h3 {
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.cal-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-snappy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-btn:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
}

.cal-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.cal-day {
    aspect-ratio: 1;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-snappy);
}

.cal-day:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

body.light-theme .cal-day:hover:not(.disabled) {
    background: rgba(0, 0, 0, 0.03);
}

.cal-day.disabled {
    color: rgba(255, 255, 255, 0.15);
    cursor: not-allowed;
    pointer-events: none;
}

body.light-theme .cal-day.disabled {
    color: rgba(0, 0, 0, 0.15);
}

.cal-day.today {
    border-color: var(--color-primary-blue-light);
}

.cal-day.active {
    background: var(--accent-gradient);
    color: white;
    font-weight: 700;
}

/* Time Slots */
.time-slots-wrapper {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
    animation: fadeIn 0.4s ease;
}

.time-slots-wrapper h4 {
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.slot {
    padding: 10px 0;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    text-align: center;
    transition: var(--transition-snappy);
}

.slot:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}

.slot.selected {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    font-weight: 600;
}

/* Contact Form Styles */
.contact-form {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--card-shadow);
}

.contact-form h3 {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    transition: var(--transition-snappy);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.65);
    opacity: 1;
}

body.light-theme .form-group input,
body.light-theme .form-group select,
body.light-theme .form-group textarea {
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-orange);
    box-shadow: 0 0 10px rgba(234, 113, 0, 0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* --- Footer --- */
#main-footer {
    background: rgba(5, 8, 15, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px 0;
    position: relative;
    z-index: 1;
}

body.light-theme #main-footer {
    background: #efeee9;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-left p {
    max-width: 400px;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-link:hover {
    color: white;
    border-color: var(--color-primary-orange);
    background: var(--accent-gradient);
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.footer-links-col h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary-orange);
    margin-bottom: 20px;
}

.footer-links-col a {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 12px;
    transition: var(--transition-snappy);
}

.footer-links-col a:hover {
    color: var(--text-main);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --- Toast Notification --- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0d1e33;
    border: 1px solid var(--color-primary-blue-light);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 999;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease-out;
}

body.light-theme .toast {
    background: white;
    border-color: var(--color-primary-orange);
    color: var(--text-main);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    width: 22px;
    height: 22px;
    color: var(--color-primary-orange);
}

#toast-message {
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Video Close Button --- */
.video-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-snappy);
}
.video-close-btn:hover {
    background: var(--color-primary-red);
    border-color: transparent;
    transform: scale(1.1);
}

/* --- Booking Summary Box --- */
.booking-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(234, 113, 0, 0.08);
    border: 1px solid rgba(234, 113, 0, 0.2);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.85rem;
    animation: fadeIn 0.3s ease;
}
body.light-theme .booking-summary {
    background: rgba(234, 113, 0, 0.05);
    border-color: rgba(234, 113, 0, 0.15);
}
.booking-summary svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary-orange);
    flex-shrink: 0;
}
.booking-summary span {
    flex-grow: 1;
    color: var(--text-main);
}
.clear-booking-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: var(--transition-snappy);
}
.clear-booking-btn:hover {
    color: var(--color-primary-red);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    .hero-content h1 { font-size: 3.2rem; }
    .why-grid, .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-content h1 { font-size: 2.8rem; }
    
    .nav-controls {
        margin-left: auto;
    }
    
    .video-text-overlay {
        display: none !important;
    }
    
    .play-btn {
        margin-bottom: 0 !important;
    }
    
    .hero-container, .about-grid, .contact-split, .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    #nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 0;
        background: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 0;
        gap: 20px;
        overflow: hidden;
        transition: var(--transition-smooth);
    }
    
    .nav-group-left, .nav-group-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }
    
    #nav-menu.open {
        height: 320px;
        padding-top: 24px;
    }
    
    .menu-btn {
        display: flex;
    }
    
    .menu-btn.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .menu-btn.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-btn.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .why-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-right {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.2rem; }
    .about-stats {
        grid-template-columns: 1fr;
    }
    .time-slots {
        grid-template-columns: 1fr 1fr;
    }
    .footer-right {
        grid-template-columns: 1fr;
    }
    .calendar-widget {
        padding: 16px;
    }
    .cal-day {
        font-size: 0.95rem;
    }
}

/* --- Touch/Non-Cursor Devices UI Optimization --- */
@media (pointer: coarse) {
    #cursor-canvas,
    #radiance-canvas {
        display: none !important;
    }
    
    * {
        cursor: auto !important;
    }
    
    .site-body {
        background: linear-gradient(
            to bottom,
            #4b6ba9 0%,
            #9fbdee 25%,
            #f9eb59 55%,
            #ea7100 80%,
            #ea2600 100%
        ) !important;
        background-attachment: scroll;
    }
}
