/* ==========================================================================
   KAAF - Fancy Modern Styles
   Karim Alaa Architectural Firm
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Brand Colors from PDF)
   -------------------------------------------------------------------------- */
:root {
    /* Primary Colors - from branding PDF */
    --color-primary: #09221E;
    --color-primary-light: #0d3a33;
    --color-accent: #D26B31;
    --color-accent-hover: #e07b41;
    --color-olive: #6b7c5a;
    --color-gold: #c4a882;

    /* Neutrals - Dark Elegant Theme */
    --color-cream: #000000;
    --color-cream-dark: #000000;
    --color-black: #000000;
    --color-gray: #b0b0b0;
    --color-gray-light: #888888;
    --color-white: #ffffff;

    /* Typography */
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(210, 107, 49, 0.3);

    /* Border Radius - Square/Symmetric Design */
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;
    --radius-full: 0;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-white);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

address {
    font-style: normal;
}

/* --------------------------------------------------------------------------
   Loading Screen
   -------------------------------------------------------------------------- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    margin-bottom: var(--space-lg);
}

.logo-svg-loader {
    width: 280px;
    height: auto;
    color: var(--color-accent);
    animation: pulse 2s ease-in-out infinite;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    animation: loading 1.5s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.98); }
}

/* Cursor follower removed */

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

.section-header {
    margin-bottom: var(--space-xl);
}

.section-header--center {
    text-align: center;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.section-tag::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--color-accent);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1rem;
    color: var(--color-gray);
    margin-top: var(--space-sm);
}

.lead {
    font-size: 1.125rem;
    color: var(--color-gray);
    margin-bottom: var(--space-md);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 1rem 1.75rem;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-form .btn {
    padding: 0;
    font-size: 19px;
    border-radius: 10px;
    height: 56px;
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(210, 107, 49, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(210, 107, 49, 0.4);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: all var(--transition-base);
}

.header.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding-left: var(--space-sm);
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
    margin-right: auto;
}

.logo-svg {
    width: 160px;
    height: auto;
    color: var(--color-white);
    transition: color var(--transition-base);
}

.header.scrolled .logo-svg,
.hero .logo-svg {
    color: var(--color-white);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 32px;
    height: 32px;
    z-index: 1001;
}

.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition-base);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Mobile Navigation Menu */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d1f1f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.nav.active {
    opacity: 1;
    visibility: visible;
}

.nav-list {
    text-align: center;
}

.nav-list li {
    margin: var(--space-md) 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.nav.active .nav-list li {
    opacity: 1;
    transform: translateY(0);
}

.nav.active .nav-list li:nth-child(1) { transition-delay: 0.1s; }
.nav.active .nav-list li:nth-child(2) { transition-delay: 0.15s; }
.nav.active .nav-list li:nth-child(3) { transition-delay: 0.2s; }
.nav.active .nav-list li:nth-child(4) { transition-delay: 0.25s; }
.nav.active .nav-list li:nth-child(5) { transition-delay: 0.3s; }

.nav-link {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-white);
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-link--cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--color-accent);
    border-radius: var(--radius-md);
    font-size: 1rem;
    margin-top: var(--space-sm);
}

.nav-link--cta:hover {
    background: var(--color-accent-hover);
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Hero Section - Cinematic Full-Screen
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Full-Screen Slider Background */
.hero-slider-bg {
    position: absolute;
    inset: 0;
}

.hero-slider-bg .slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slider-bg .slider-slide.active {
    opacity: 1;
}

.hero-slider-bg .slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

/* Overlay gradient for text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-4xl) var(--space-md);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-cream);
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
}

.hero-title-line {
    display: block;
}

.hero-title em {
    font-style: normal;
    color: var(--color-accent);
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.hero-cta .btn-secondary {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

.hero-cta .btn-secondary:hover {
    background-color: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-primary);
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin: 0 auto var(--space-sm);
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

/* Hero Logo - Overlaid and Centered */
.hero-logo {
    margin-bottom: var(--space-md);
    animation: fadeInDown 1s ease-out 0.3s both;
}

.hero-logo-svg {
    width: clamp(500px, 70vw, 1000px);
    height: auto;
    color: var(--color-white);
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.8))
            drop-shadow(0 0 80px rgba(210, 107, 49, 0.4));
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    animation: fadeIn 1s ease-out 0.6s both;
}

.hero-subtitle {
    max-width: 600px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    animation: fadeIn 1s ease-out 0.5s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Project Info Display */
.hero-project-info {
    position: absolute;
    bottom: var(--space-3xl);
    left: var(--space-xl);
    z-index: 4;
    max-width: 500px;
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-project-info h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.hero-project-info p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.hero-project-info .project-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

/* Slider Controls - Minimal & Elegant */
.hero-slider-controls {
    position: absolute;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 4;
    display: flex;
    gap: var(--space-sm);
}

.slider-btn {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    cursor: pointer;
}

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

.slider-btn svg {
    width: 24px;
    height: 24px;
}

/* Slider Dots - Bottom Center */
.slider-dots {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: var(--space-sm);
}

.slider-dot {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    transition: all var(--transition-base);
    cursor: pointer;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-dot.active {
    background: var(--color-accent);
    width: 60px;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about-content {
    display: grid;
    gap: var(--space-2xl);
}

.about-text p {
    color: var(--color-gray);
    margin-bottom: var(--space-md);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-cream-dark);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-xs);
}

.about-visual {
    display: none;
}

.about-image-stack {
    position: relative;
    height: 500px;
}

.image-card {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-slow);
}

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

.image-card--1 {
    width: 70%;
    height: 80%;
    top: 0;
    left: 0;
    z-index: 1;
}

.image-card--2 {
    width: 50%;
    height: 60%;
    bottom: 0;
    right: 0;
    z-index: 2;
    border: 4px solid var(--color-cream);
}

.about-visual:hover .image-card--1 {
    transform: translate(-10px, -10px);
}

.about-visual:hover .image-card--2 {
    transform: translate(10px, 10px);
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services {
    background: var(--color-cream-dark);
}

.services-grid {
    display: grid;
    gap: var(--space-md);
}

.service-card {
    padding: var(--space-xl);
    background: var(--color-cream);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(26, 58, 58, 0.05);
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    line-height: 1;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    color: var(--color-accent);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--color-white);
}

.service-desc {
    font-size: 0.875rem;
    color: var(--color-gray);
    line-height: 1.7;
}

.service-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover .service-hover {
    transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   Projects Section
   -------------------------------------------------------------------------- */
.projects-grid {
    display: grid;
    gap: var(--space-md);
}

.project-card {
    position: relative;
    overflow: hidden;
    display: block;
    background: var(--color-cream-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

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

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 58, 58, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project {
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transform: scale(0.5);
    opacity: 0;
    transition: all var(--transition-bounce);
}

.view-project svg {
    width: 24px;
    height: 24px;
}

.project-card:hover .view-project {
    transform: scale(1);
    opacity: 1;
}

.project-info {
    padding: var(--space-md);
}

.project-category {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
}

.project-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: var(--space-xs) 0;
    color: var(--color-white);
}

.project-location {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    color: var(--color-gray);
}

.project-location svg {
    width: 12px;
    height: 12px;
}

/* Featured Project Card */
.project-card--featured {
    grid-column: 1 / -1;
}

.project-card--featured .project-image {
    aspect-ratio: 16/9;
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
    background: var(--color-primary);
    color: var(--color-white);
}

.contact .section-tag {
    color: var(--color-accent);
}

.contact .section-tag::before {
    background: var(--color-accent);
}

.contact .section-title {
    color: var(--color-white);
}

.contact-wrapper {
    display: grid;
    gap: var(--space-2xl);
}

.contact-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-xl);
}

.contact-details {
    margin-bottom: var(--space-xl);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
}

.contact-item strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
    line-height: 1;
}

.contact-item a,
.contact-item address {
    line-height: 1;
    color: var(--color-white);
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--color-white);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

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

/* Contact Form */
.contact-form {
    display: grid;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.1);
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-group select option {
    background-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.footer-logo {
    width: 180px;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-md);
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------------------------------
   Animations & Reveal
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.active > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   Hero Section - Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .hero-project-info {
        bottom: var(--space-2xl);
        left: var(--space-md);
        right: var(--space-md);
        max-width: none;
    }

    .hero-project-info h3 {
        font-size: 1.5rem;
    }

    .hero-slider-controls {
        bottom: var(--space-md);
        right: var(--space-md);
        gap: var(--space-xs);
    }

    .slider-btn {
        width: 50px;
        height: 50px;
    }

    .slider-btn svg {
        width: 20px;
        height: 20px;
    }

    .slider-dots {
        bottom: var(--space-md);
        gap: var(--space-xs);
    }

    .slider-dot {
        width: 30px;
    }

    .slider-dot.active {
        width: 45px;
    }

    .hero-logo-svg {
        width: clamp(350px, 80vw, 650px);
    }
}

/* --------------------------------------------------------------------------
   Responsive: Tablet (768px+)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .section {
        padding: var(--space-4xl) 0;
    }

    /* Navigation */
    .nav-toggle {
        display: none;
    }

    .nav {
        position: static;
        opacity: 1;
        visibility: visible;
        background: none;
    }

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

    .nav-list li {
        margin: 0;
        opacity: 1;
        transform: none;
    }

    .nav-link {
        font-size: 0.875rem;
        color: var(--color-white);
        position: relative;
        padding-bottom: 4px;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--color-accent);
        transition: width var(--transition-base);
    }

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

    .header:not(.scrolled) .nav-link {
        color: var(--color-white);
    }

    .nav-link--cta {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
        margin-top: 0;
    }

    /* Hero */
    .hero-cta {
        flex-direction: row;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .about-visual {
        display: block;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
    }

    .contact-form {
        grid-template-columns: 1fr 1fr;
    }

    .form-group--full {
        grid-column: span 2;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

/* --------------------------------------------------------------------------
   Responsive: Desktop (1024px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
    /* Services */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .project-card--featured {
        grid-column: span 2;
    }
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

}

/* --------------------------------------------------------------------------
   Project Detail Page Styles - Immersive Gallery
   -------------------------------------------------------------------------- */
.project-page {
    padding-top: 80px;
    background: var(--color-cream);
}

/* Full-Screen Gallery Hero */
.project-gallery-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.project-gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.project-gallery-slide.active {
    opacity: 1;
}

.project-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Project Info Sidebar */
.project-info-sidebar {
    position: fixed;
    top: 80px;
    right: 0;
    width: 400px;
    height: calc(100vh - 80px);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-2xl);
    overflow-y: auto;
    z-index: 100;
    transform: translateX(100%);
    transition: transform var(--transition-base);
}

.project-info-sidebar.active {
    transform: translateX(0);
}

.project-info-toggle {
    position: fixed;
    top: 50%;
    right: var(--space-lg);
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 101;
    transition: all var(--transition-base);
}

.project-info-toggle:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.project-info-toggle svg {
    width: 24px;
    height: 24px;
}

.sidebar-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.sidebar-close:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.sidebar-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.sidebar-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.sidebar-description {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.sidebar-specs {
    display: grid;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-xl);
}

.sidebar-spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

.sidebar-spec-value {
    font-weight: 600;
    color: var(--color-white);
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.sidebar-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.sidebar-btn svg {
    width: 18px;
    height: 18px;
}

/* Gallery Navigation */
.gallery-nav {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-md);
    z-index: 100;
}

.gallery-nav-btn {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.gallery-nav-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.05);
}

.gallery-nav-btn svg {
    width: 24px;
    height: 24px;
}

.gallery-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-lg);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 100px;
}

/* Grid Gallery Section */
.project-grid-gallery {
    padding: var(--space-4xl) 0;
    background: var(--color-cream-dark);
}

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

.grid-gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.grid-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.grid-gallery-item:hover img {
    transform: scale(1.1);
}

.grid-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.grid-gallery-item:hover .grid-gallery-overlay {
    opacity: 1;
}

.grid-gallery-overlay svg {
    width: 40px;
    height: 40px;
    color: var(--color-white);
}

/* Back Button */
.project-back-btn {
    position: fixed;
    top: 100px;
    left: var(--space-lg);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-lg);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.875rem;
    z-index: 100;
    transition: all var(--transition-base);
}

.project-back-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.project-back-btn svg {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 1024px) {
    .project-info-sidebar {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .project-info-sidebar {
        width: 100%;
        max-width: 400px;
    }

    .project-back-btn {
        left: var(--space-md);
        top: 90px;
        padding: var(--space-sm) var(--space-md);
    }

    .gallery-nav {
        bottom: var(--space-md);
        gap: var(--space-sm);
    }

    .gallery-nav-btn {
        width: 50px;
        height: 50px;
    }

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

/* --------------------------------------------------------------------------
   About Page Styles
   -------------------------------------------------------------------------- */

/* About Hero */
.about-hero {
    padding: calc(var(--space-4xl) + 60px) 0 var(--space-4xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" x="50" y="50" fill="rgba(255,255,255,0.03)"/></svg>');
    opacity: 0.5;
}

.about-hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.about-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--color-white);
}

.about-hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* Vision & Mission Grid */
.about-vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.about-vision-card {
    padding: var(--space-xl);
    background: var(--color-cream-dark);
    transition: transform var(--transition-base);
}

.about-vision-card:hover {
    transform: translateX(10px);
}

.about-vision-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--color-accent);
}

.about-vision-icon svg {
    width: 40px;
    height: 40px;
}

.about-vision-text {
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-md);
}

.about-vision-card h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-white);
}

.about-vision-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-gray);
}

/* Core Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.value-item {
    padding: var(--space-lg);
    background: var(--color-cream);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

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

.value-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
}

.value-item p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-gray);
}

/* Process Timeline */
.process-timeline {
    max-width: 900px;
    margin: var(--space-2xl) auto 0;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent), rgba(210, 107, 49, 0.2));
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--color-black);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    position: relative;
    z-index: 1;
}

.process-content {
    flex: 1;
    padding-top: 0;
}

.process-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-white);
    line-height: 40px;
}

.process-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray);
}

/* About Services Grid */
.about-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.about-service-card {
    padding: var(--space-xl);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.about-service-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.about-service-card .service-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--color-accent);
}

.about-service-card .service-icon svg {
    width: 36px;
    height: 36px;
}

.about-service-card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-white);
}

.about-service-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-gray);
}

/* About CTA */
.about-cta {
    text-align: center;
    width: 100%;
    padding: var(--space-3xl) var(--space-lg);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(210, 107, 49, 0.1), transparent);
}

.about-cta h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-white);
    position: relative;
    z-index: 1;
}

.about-cta p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
}

.about-cta .btn {
    position: relative;
    z-index: 1;
}

/* Responsive: Tablet & Up */
@media (min-width: 768px) {
    .about-vision-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline::before {
        left: 19px;
    }

    .process-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

