/* ============================================
   EVOLUTION AUDIOWORKS - ULTIMATE DESIGN SYSTEM
   "Pearl & Navy" Theme - Elegant Light Edition
   ============================================ */

:root {
    /* ========== COLOR PALETTE ========== */
    /* Backgrounds - Clean, Light, Sophisticated */
    --bg-void: #FAFBFC;
    --bg-deep: #F5F7FA;
    --bg-surface: #FFFFFF;
    --bg-elevated: #F0F2F5;
    --bg-hover: #E8ECF0;

    /* Accent Colors */
    --accent-warm: #C9A227;
    /* Elegant Gold */
    --accent-warm-dim: #A88B1F;
    --accent-cool: #2563EB;
    /* Royal Blue */
    --accent-cool-dim: #1D4ED8;

    /* Primary Navy */
    --primary-navy: #1E3A5F;
    --primary-navy-light: #2D4A6F;

    /* Text Hierarchy */
    --text-primary: #1A1A2E;
    /* Charcoal */
    --text-secondary: #64748B;
    /* Slate Gray */
    --text-muted: #94A3B8;
    /* Muted Gray */

    /* Borders & Effects */
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.12);
    --border-glow: rgba(37, 99, 235, 0.3);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Glows - Softer for light theme */
    --glow-warm: rgba(201, 162, 39, 0.15);
    --glow-cool: rgba(37, 99, 235, 0.12);
    --glow-white: rgba(255, 255, 255, 0.9);

    /* Glass Effect - Light version */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);

    /* ========== TYPOGRAPHY ========== */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* ========== SPACING ========== */
    --section-padding: 140px;
    --container-width: 1280px;

    /* ========== ANIMATION CURVES ========== */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* ========== TIMING ========== */
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-void);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Hide background effects on mobile for clean layout */
@media (max-width: 768px) {

    body::before,
    body::after,
    main::before {
        content: none !important;
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* Disable heavy animations on mobile for better performance */
    .hero .ambient-orb,
    .hero .ambient-orb.orb-1,
    .hero .ambient-orb.orb-2 {
        display: none !important;
        animation: none !important;
    }

    /* Reduce hero background animation overhead */
    .hero::before {
        will-change: auto;
        animation: none;
    }

    /* Disable reveal animations on mobile */
    [data-reveal],
    [data-reveal="slide-left"],
    [data-reveal="slide-right"] {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    /* Simplify hover effects on mobile (touch devices) */
    .service-card:hover,
    .gallery-item:hover img,
    .about-image:hover img {
        transform: none !important;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Animated Gradient Mesh - DESKTOP ONLY, starts after hero */
@media (min-width: 769px) {
    body::before {
        content: '';
        position: fixed;
        top: 100vh;
        /* Start BELOW hero */
        left: 0;
        width: 100%;
        height: 200vh;
        background:
            radial-gradient(ellipse 80% 60% at 10% 20%, rgba(37, 99, 235, 0.12), transparent 50%),
            radial-gradient(ellipse 70% 50% at 90% 80%, rgba(201, 162, 39, 0.1), transparent 50%),
            radial-gradient(ellipse 50% 40% at 50% 50%, rgba(37, 99, 235, 0.08), transparent 40%);
        pointer-events: none;
        z-index: -2;
        animation: gradientShift 20s ease-in-out infinite;
    }

    /* Floating Geometric Shapes - DESKTOP ONLY */
    body::after {
        content: '';
        position: fixed;
        top: 100vh;
        /* Start BELOW hero */
        left: 0;
        width: 100%;
        height: 200vh;
        background-image:
            radial-gradient(circle at 20% 30%, rgba(30, 58, 95, 0.06) 0%, transparent 15%),
            radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 12%),
            radial-gradient(circle at 70% 70%, rgba(201, 162, 39, 0.06) 0%, transparent 18%),
            radial-gradient(circle at 30% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 14%);
        pointer-events: none;
        z-index: -1;
        animation: floatShapes 30s ease-in-out infinite alternate;
    }
}

/* Subtle Dot Grid Pattern - DESKTOP ONLY, inside sections */
main {
    position: relative;
}

@media (min-width: 769px) {
    main::before {
        content: '';
        position: fixed;
        top: 100vh;
        left: 0;
        width: 100%;
        height: 200vh;
        background-image: radial-gradient(rgba(30, 58, 95, 0.025) 1px, transparent 1px);
        background-size: 40px 40px;
        pointer-events: none;
        z-index: -1;
    }
}

@keyframes gradientShift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    25% {
        transform: translate(2%, 3%) scale(1.02);
        opacity: 0.9;
    }

    50% {
        transform: translate(-1%, 2%) scale(1.01);
        opacity: 1;
    }

    75% {
        transform: translate(1%, -2%) scale(1.03);
        opacity: 0.95;
    }
}

@keyframes floatShapes {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(20px, -20px) rotate(3deg);
    }
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
}

h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) var(--ease-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ========== CONTAINER ========== */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER / NAVIGATION ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: transform var(--duration-normal) var(--ease-out-expo),
        background var(--duration-normal) var(--ease-smooth),
        padding var(--duration-normal) var(--ease-smooth);
    background: transparent;
}

header.scrolled {
    padding: 12px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

header.header-hidden {
    transform: translateY(-100%);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 38px;
    width: auto;
    transition: opacity var(--duration-fast);
}

.logo-img:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
    transition: color var(--duration-fast);
}

.nav-links li a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-warm), var(--accent-cool));
    transition: width var(--duration-normal) var(--ease-out-expo);
}

.nav-links li a:not(.btn-primary):hover {
    color: var(--text-primary);
}

.nav-links li a:not(.btn-primary):hover::after {
    width: 100%;
}

/* Nav CTA Button */
.nav-links li a.btn-primary {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
    color: #FFFFFF !important;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: var(--font-weight-semibold);
    box-shadow: var(--shadow-lg);
    transition: transform var(--duration-fast) var(--ease-out-back),
        box-shadow var(--duration-fast);
}

.nav-links li a.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px var(--glow-warm);
}

.nav-links li a.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--duration-normal);
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Parallax Background */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background: url('assets/images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    z-index: -2;
    will-change: transform;
}

/* Gradient Overlay - Light Theme Blend */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(250, 251, 252, 0.4) 0%,
            rgba(250, 251, 252, 0.7) 50%,
            rgba(250, 251, 252, 1) 100%),
        linear-gradient(90deg,
            rgba(250, 251, 252, 0.9) 0%,
            rgba(250, 251, 252, 0.5) 50%,
            rgba(250, 251, 252, 0.3) 100%);
    z-index: -1;
}

/* Floating Gradient Orbs */
.hero .ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

.hero .ambient-orb.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-cool);
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.hero .ambient-orb.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-warm);
    bottom: 20%;
    left: 5%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 30px) scale(1.02);
    }
}

.hero-overlay {
    display: none;
    /* Replaced by ::after */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.hero-content .subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-warm);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero h1 {
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out-expo) 0.4s forwards;
}

.hero h1 .text-gradient {
    background: linear-gradient(135deg, var(--accent-warm) 0%, var(--accent-cool) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 550px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out-expo) 0.6s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out-expo) 0.8s forwards;
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
    color: #FFFFFF;
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: transform var(--duration-fast) var(--ease-out-back),
        box-shadow var(--duration-fast);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: transparent;
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    font-size: 1rem;
    border-radius: 100px;
    border: 1px solid var(--border-medium);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    border-radius: 12px;
    border: 1px solid var(--border-medium);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.btn-outline:hover {
    background: var(--accent-warm);
    color: var(--bg-void);
    border-color: var(--accent-warm);
}

/* ========== SECTIONS ========== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Section Separator - Gradient Line */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--border-medium) 20%,
            var(--accent-warm) 50%,
            var(--border-medium) 80%,
            transparent 100%);
    opacity: 0.5;
}

.section:first-of-type::before {
    display: none;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-header .label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-warm);
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.1rem;
}

/* ========== ABOUT SECTION ========== */
#about {
    background: linear-gradient(180deg, var(--bg-void) 0%, var(--bg-deep) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    z-index: 2;
    pointer-events: none;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, var(--bg-void) 100%);
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Accent Decoration */
.about-image .accent-line {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-left: 3px solid var(--accent-warm);
    border-top: 3px solid var(--accent-warm);
    border-radius: 20px 0 0 0;
    z-index: 3;
    opacity: 0.6;
}

.about-text .subtitle {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-warm);
    margin-bottom: 16px;
}

.about-text h2 {
    margin-bottom: 28px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-text p:last-of-type {
    margin-bottom: 0;
}

/* ========== SERVICES SECTION ========== */
#services {
    background: var(--bg-deep);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--duration-normal) var(--ease-out-expo),
        border-color var(--duration-fast),
        box-shadow var(--duration-fast);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-warm), var(--accent-cool));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-surface));
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    font-size: 1.5rem;
    color: var(--accent-warm);
    margin-bottom: 28px;
    transition: transform var(--duration-fast) var(--ease-out-back),
        color var(--duration-fast),
        box-shadow var(--duration-fast);
}

.service-card:hover .icon {
    transform: scale(1.1) rotate(-5deg);
    color: var(--text-primary);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 14px;
    font-weight: var(--font-weight-semibold);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ========== GALLERY SECTION ========== */
#gallery {
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 50%, var(--bg-deep) 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.gallery-item.display-large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--duration-normal) var(--ease-smooth);
    will-change: transform;
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(8, 8, 12, 0.4) 50%,
            rgba(8, 8, 12, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.gallery-item .overlay span {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    font-size: 1rem;
    transform: translateY(10px);
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.gallery-item:hover img {
    transform: translateZ(0) scale(1.05);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item:hover .overlay span {
    transform: translateY(0);
}

/* ========== GALLERY HIDDEN ITEMS ========== */
.gallery-item.gallery-hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

.gallery-grid.expanded .gallery-item.gallery-hidden {
    display: block;
    animation: galleryReveal 0.6s var(--ease-out-expo) forwards;
}

/* Staggered animation for hidden items */
.gallery-grid.expanded .gallery-item.gallery-hidden:nth-child(5) {
    animation-delay: 0.05s;
}

.gallery-grid.expanded .gallery-item.gallery-hidden:nth-child(6) {
    animation-delay: 0.1s;
}

.gallery-grid.expanded .gallery-item.gallery-hidden:nth-child(7) {
    animation-delay: 0.15s;
}

.gallery-grid.expanded .gallery-item.gallery-hidden:nth-child(8) {
    animation-delay: 0.2s;
}

.gallery-grid.expanded .gallery-item.gallery-hidden:nth-child(9) {
    animation-delay: 0.25s;
}

.gallery-grid.expanded .gallery-item.gallery-hidden:nth-child(10) {
    animation-delay: 0.3s;
}

.gallery-grid.expanded .gallery-item.gallery-hidden:nth-child(11) {
    animation-delay: 0.35s;
}

.gallery-grid.expanded .gallery-item.gallery-hidden:nth-child(12) {
    animation-delay: 0.4s;
}

@keyframes galleryReveal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== GALLERY TOGGLE BUTTON ========== */
.gallery-actions {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.btn-gallery-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    border: 1px solid var(--border-medium);
    border-radius: 100px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-gallery-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-cool));
    opacity: 0;
    transition: opacity var(--duration-normal);
}

.btn-gallery-toggle:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 0 30px var(--glow-warm);
    border-color: var(--accent-warm);
}

.btn-gallery-toggle:hover::before {
    opacity: 0.1;
}

.btn-gallery-toggle:active {
    transform: translateY(0) scale(0.98);
}

.btn-gallery-toggle .btn-text {
    position: relative;
    z-index: 1;
}

.btn-gallery-toggle .btn-count {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: var(--font-weight-normal);
}

.btn-gallery-toggle .btn-icon {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    color: var(--accent-warm);
    transition: transform var(--duration-normal) var(--ease-out-back);
}

.btn-gallery-toggle.expanded .btn-icon {
    transform: rotate(180deg);
}

.btn-gallery-toggle.expanded .btn-text::after {
    content: 'Sembunyikan';
}

.btn-gallery-toggle.expanded .btn-text {
    font-size: 0;
}

.btn-gallery-toggle.expanded .btn-text::after {
    font-size: 1rem;
}

.btn-gallery-toggle.expanded .btn-count {
    display: none;
}

/* ========== LIGHTBOX MODAL ========== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) var(--ease-smooth),
        visibility var(--duration-normal);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    opacity: 0;
    transition: transform var(--duration-normal) var(--ease-out-expo),
        opacity var(--duration-normal);
}

.lightbox-overlay.active .lightbox-content img {
    transform: scale(1);
    opacity: 1;
}

.lightbox-caption {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: var(--font-weight-medium);
    margin-top: 20px;
    text-align: center;
    opacity: 0.9;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 8px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast);
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out-back);
    z-index: 10;
}

.lightbox-prev {
    left: 32px;
}

.lightbox-next {
    right: 32px;
}

.lightbox-nav:hover {
    background: var(--accent-warm);
    border-color: var(--accent-warm);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* ========== CONTACT SECTION ========== */
#contact-highlight {
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-void) 100%);
}

.contact-highlight-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
}

.contact-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-md);
    transition: border-color var(--duration-fast),
        box-shadow var(--duration-fast);
}

.contact-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-xl);
}

.contact-card.address-card {
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-surface));
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-navy-light));
    border-radius: 14px;
    font-size: 1.3rem;
    color: #FFFFFF;
    margin-bottom: 28px;
}

.contact-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    font-weight: var(--font-weight-semibold);
}

.contact-card p {
    font-size: 1rem;
    margin-bottom: 28px;
}

.social-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.social-btn i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.social-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-medium);
    color: var(--text-primary);
    transform: translateX(8px);
}

.social-btn.whatsapp:hover {
    border-color: #25D366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.2);
}

.social-btn.instagram:hover {
    border-color: #E1306C;
    box-shadow: 0 0 20px rgba(225, 48, 108, 0.2);
}

.social-btn.facebook:hover {
    border-color: #1877F2;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.2);
}

.social-btn.phone:hover {
    border-color: var(--accent-warm);
    box-shadow: 0 0 20px var(--glow-warm);
}

/* ========== FOOTER ========== */
footer {
    padding: 60px 0 40px;
    background: var(--primary-navy);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.logo-img-footer {
    height: 80px;
    opacity: 1;
    transition: opacity var(--duration-fast);
    margin-bottom: 8px;
}

.logo-img-footer:hover {
    opacity: 0.8;
}

.footer-bottom-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* ========== FLOATING WHATSAPP ========== */
.floating-wa {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform var(--duration-fast) var(--ease-out-back),
        box-shadow var(--duration-fast);
}

.floating-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ========== SCROLL REVEAL ANIMATIONS ========== */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
        transform var(--duration-slow) var(--ease-out-expo);
}

[data-reveal="fade"] {
    transform: translateY(0);
}

[data-reveal="slide-left"] {
    transform: translateX(-40px);
}

[data-reveal="slide-right"] {
    transform: translateX(40px);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Stagger delays for grid items */
.service-card[data-reveal]:nth-child(1) {
    transition-delay: 0s;
}

.service-card[data-reveal]:nth-child(2) {
    transition-delay: 0.1s;
}

.service-card[data-reveal]:nth-child(3) {
    transition-delay: 0.2s;
}

.gallery-item[data-reveal]:nth-child(1) {
    transition-delay: 0s;
}

.gallery-item[data-reveal]:nth-child(2) {
    transition-delay: 0.05s;
}

.gallery-item[data-reveal]:nth-child(3) {
    transition-delay: 0.1s;
}

.gallery-item[data-reveal]:nth-child(4) {
    transition-delay: 0.15s;
}

.gallery-item[data-reveal]:nth-child(5) {
    transition-delay: 0.2s;
}

.gallery-item[data-reveal]:nth-child(6) {
    transition-delay: 0.25s;
}

/* ========== KEYFRAME ANIMATIONS ========== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 100px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-image {
        max-width: 600px;
        margin: 0 auto;
    }

    .contact-highlight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-surface);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        transition: right var(--duration-normal) var(--ease-out-expo);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero Mobile */
    .hero-content {
        text-align: center;
        padding: 0 20px;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Services Mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery Tablet */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item {
        aspect-ratio: 4 / 3;
    }

    .gallery-item.display-large {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 16 / 9;
    }

    /* Contact Mobile */
    .contact-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {

    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gallery-item,
    .gallery-item.display-large {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ========== MOBILE LIGHTBOX OPTIMIZATION ========== */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 70vh;
    }

    .lightbox-content img {
        max-height: 60vh;
        border-radius: 8px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .lightbox-caption {
        font-size: 0.95rem;
        padding: 0 16px;
    }

    .lightbox-counter {
        font-size: 0.8rem;
    }

    /* Gallery button mobile */
    .btn-gallery-toggle {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

    .btn-gallery-toggle .btn-count {
        font-size: 0.75rem;
    }
}

/* ========== IMAGE PERFORMANCE OPTIMIZATION ========== */
@media (prefers-reduced-motion: reduce) {
    .gallery-item img {
        transition: none;
    }

    .gallery-item:hover img {
        transform: none;
    }
}

/* ========== BUTTON RIPPLE EFFECT ========== */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========== NAV ACTIVE STATE ========== */
.nav-links li a.active {
    color: var(--accent-warm) !important;
}

.nav-links li a.active::after {
    width: 100%;
}

/* ========== HERO PARALLAX ========== */
.hero::before {
    transform: translateY(var(--parallax-offset, 0));
}

/* ========== FLOATING ORBS ========== */
#floating-orbs {
    position: fixed;
    top: 100vh;
    left: 0;
    width: 100%;
    height: 200vh;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.6;
    will-change: transform;
}

.orb-blue {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.5) 0%, rgba(37, 99, 235, 0.15) 50%, transparent 70%);
}

.orb-gold {
    background: radial-gradient(circle, rgba(201, 162, 39, 0.4) 0%, rgba(201, 162, 39, 0.1) 50%, transparent 70%);
}

.orb-navy {
    background: radial-gradient(circle, rgba(30, 58, 95, 0.35) 0%, rgba(30, 58, 95, 0.08) 50%, transparent 70%);
}

@media (max-width: 768px) {
    #floating-orbs {
        display: none !important;
    }
}

@media (pointer: coarse) {
    #floating-orbs {
        display: none !important;
    }
}