/* ============================================
   ERIMAH HOME IMPROVEMENTS - MAIN STYLES
   Colors: Baby Blue (#89CFF0) & White
   ============================================ */

/* --- CSS Variables --- */
:root {
    --blue-50: #f0f9ff;
    --blue-100: #e0f2fe;
    --blue-200: #b9e5fc;
    --blue-300: #89CFF0;
    --blue-400: #5bb8e8;
    --blue-500: #38a3d4;
    --blue-600: #2589b5;
    --blue-700: #1d6d91;
    --blue-800: #1a5a78;
    --blue-900: #0f3a50;

    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 1px 2px rgba(15,58,80,0.05);
    --shadow-md: 0 4px 16px rgba(15,58,80,0.08);
    --shadow-lg: 0 12px 40px rgba(15,58,80,0.12);
    --shadow-xl: 0 20px 60px rgba(15,58,80,0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--blue-900);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.done {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.preloader-house {
    width: 240px;
    height: auto;
}

/* House build animation stages */
.anim-foundation {
    animation: buildIn 0.4s ease 0.3s both;
}

.anim-wall-left {
    animation: buildWallUp 0.5s ease 0.7s both;
}

.anim-wall-right {
    animation: buildWallUp 0.5s ease 0.8s both;
}

.anim-wall-back {
    animation: buildIn 0.4s ease 0.9s both;
}

.anim-door {
    animation: buildIn 0.3s ease 1.3s both;
}

.anim-window {
    animation: buildIn 0.3s ease 1.5s both;
}

.anim-roof {
    animation: roofDrop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.8s both;
}

.anim-roof-shadow {
    animation: buildIn 0.3s ease 2.1s both;
}

.anim-chimney {
    animation: buildWallUp 0.3s ease 2.2s both;
}

.anim-smoke.smoke-1 {
    animation: buildIn 0.3s ease 2.5s both, smokeRise 2s ease 2.5s infinite;
}

.anim-smoke.smoke-2 {
    animation: buildIn 0.3s ease 2.7s both, smokeRise 2.2s ease 2.7s infinite;
}

.anim-smoke.smoke-3 {
    animation: buildIn 0.3s ease 2.9s both, smokeRise 2.5s ease 2.9s infinite;
}

@keyframes buildIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes buildWallUp {
    from { opacity: 0; transform: translateY(20px) scaleY(0); transform-origin: bottom; }
    to { opacity: 1; transform: translateY(0) scaleY(1); }
}

@keyframes roofDrop {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes smokeRise {
    0% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { opacity: 0.3; }
    100% { transform: translateY(-20px) scale(1.5); opacity: 0; }
}

.preloader-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    opacity: 0;
    animation: fadeInUp 0.6s ease 2.4s both;
}

.preloader-logo-e {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    color: var(--blue-300);
}

.preloader-logo-name {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 500;
    color: var(--white);
}

.preloader-logo-sub {
    width: 100%;
    text-align: center;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-top: -4px;
}

.preloader-bar {
    width: 180px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.4s ease 0.2s both;
}

.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--blue-300);
    border-radius: 3px;
    animation: loadBar 2.8s ease 0.3s both;
}

@keyframes loadBar {
    0% { width: 0%; }
    30% { width: 30%; }
    60% { width: 60%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--blue-300);
    color: var(--blue-900);
    border-color: var(--blue-300);
}

.btn-primary:hover {
    background: var(--blue-400);
    border-color: var(--blue-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(137,207,240,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--blue-800);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 1px 20px rgba(15,58,80,0.08);
}

.nav-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px;
    z-index: 1001;
    max-width: 200px;
}

.logo-e {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 700;
    color: var(--blue-300);
    transition: var(--transition);
}

.navbar.scrolled .logo-e {
    color: var(--blue-500);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .logo-text {
    color: var(--gray-800);
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    width: 100%;
    margin-top: -6px;
    transition: var(--transition);
}

.navbar.scrolled .logo-sub {
    color: var(--gray-400);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-menu .nav-link {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-radius: var(--radius-sm);
    letter-spacing: 0.01em;
    transition: var(--transition);
}

.navbar.scrolled .nav-menu .nav-link {
    color: var(--gray-600);
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.12);
}

.navbar.scrolled .nav-menu .nav-link:hover,
.navbar.scrolled .nav-menu .nav-link.active {
    color: var(--blue-600);
    background: var(--blue-50);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--gray-700);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0a0f1a 0%, var(--blue-900) 40%, #0d1520 100%);
    overflow: hidden;
}

#heroHouseCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(137,207,240,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(15,58,80,0.3), transparent);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Split Hero Layout */
.hero-split {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 40px;
    max-width: 1500px;
    width: 100%;
    padding: 140px 60px 80px;
    margin: 0 auto;
}

.hero-left {
    text-align: left;
}

.hero-right {
    position: relative;
    width: 100%;
    height: 620px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
}

#heroHouseRight {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    cursor: grab;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(137,207,240,0.15);
    border: 1px solid rgba(137,207,240,0.3);
    border-radius: 50px;
    color: var(--blue-200);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 28px;
    animation: fadeInDown 0.8s ease both;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(38px, 5.5vw, 68px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.08;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease 0.1s both;
}

.hero-accent {
    color: var(--blue-300);
    font-style: italic;
}

.hero-sub {
    font-size: clamp(15px, 1.8vw, 18px);
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 0 36px;
    animation: fadeInDown 0.8s ease 0.2s both;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--blue-300);
}

.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
}

.hero-scroll {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    animation: fadeInUp 0.8s ease 0.7s both;
}

.hero-scroll span {
    font-size: 10px;
    color: rgba(255,255,255,0.25);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.scroll-line {
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.25), transparent);
    animation: scrollPulse 2s ease infinite;
}

/* --- Section Styles --- */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue-500);
    margin-bottom: 12px;
}

.section-header h2,
.about-content h2,
.contact-info h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 17px;
    color: var(--gray-500);
    max-width: 520px;
    margin: 0 auto;
}

/* --- Services Section --- */
.services {
    padding: 100px 0;
    background: var(--gray-50);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue-200), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* --- Flip Card Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.flip-card {
    perspective: 1000px;
    height: 320px;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.flip-front {
    background: var(--white);
    border: 1px solid var(--gray-200);
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
}

.flip-front .tilt-shine {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.flip-card:hover .tilt-shine {
    opacity: 1;
}

.flip-card:hover .flip-front {
    border-color: var(--blue-200);
    box-shadow: 0 8px 30px rgba(137, 207, 240, 0.12);
}

.flip-front .service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--blue-50), var(--blue-200));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.flip-card:hover .flip-front .service-icon {
    transform: scale(1.08);
}

.flip-front .service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--blue-600);
}

.flip-front h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
    line-height: 1.3;
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-hint {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: color 0.3s;
}

.flip-card:hover .flip-hint {
    color: var(--blue-500);
}

.flip-hint svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s;
}

.flip-card:hover .flip-hint svg {
    transform: rotate(180deg);
}

.flip-back {
    background: linear-gradient(135deg, var(--blue-800), var(--blue-900));
    transform: rotateY(180deg);
    justify-content: center;
    text-align: center;
    padding: 32px 28px;
}

.flip-back h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.flip-back p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.flip-close {
    margin-top: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(137, 207, 240, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.flip-close svg {
    width: 14px;
    height: 14px;
}

.services-note {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: var(--blue-50);
    border-radius: var(--radius-md);
    border: 1px dashed var(--blue-200);
}

.services-note p {
    font-size: 14px;
    color: var(--blue-700);
    font-style: italic;
}

/* --- About Section --- */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
}

.about-img-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--blue-100), var(--blue-200));
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--blue-600);
    font-weight: 600;
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.placeholder-sub {
    font-size: 14px;
    font-weight: 400;
    color: var(--blue-400);
}

.about-img-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 60%;
    height: 60%;
    border: 3px solid var(--blue-300);
    border-radius: var(--radius-lg);
    z-index: 0;
}

.about-content .section-tag {
    display: block;
}

.about-content p {
    font-size: 15.5px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 28px;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.highlight {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.highlight-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-sm);
    background: var(--blue-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-icon svg {
    width: 22px;
    height: 22px;
    color: var(--blue-500);
}

.highlight h4 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.highlight p {
    font-size: 14px;
    margin-bottom: 0;
}

.about-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.badge {
    padding: 12px 20px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    text-align: center;
}

.badge-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin-bottom: 2px;
}

.badge-value {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--blue-600);
}

/* Team Bar */
.team-bar {
    background: linear-gradient(135deg, var(--blue-800), var(--blue-900));
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.team-bar h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--white);
    white-space: nowrap;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.team-tags span {
    padding: 6px 16px;
    background: rgba(137,207,240,0.15);
    border: 1px solid rgba(137,207,240,0.25);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--blue-200);
}

/* --- Build Journey --- */
.build-journey {
    margin-top: 60px;
    text-align: center;
}

.build-journey h3 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.journey-sub {
    color: var(--gray-500);
    font-size: 15px;
    margin-bottom: 40px;
}

.journey-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
}

.journey-step {
    flex: 1;
    max-width: 340px;
    text-align: center;
}

.journey-number {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-300);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.journey-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    border: 2px solid var(--gray-200);
    transition: var(--transition);
}

.journey-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.journey-step:hover .journey-img-wrap {
    border-color: var(--blue-300);
    box-shadow: 0 12px 30px rgba(15,58,80,0.12);
}

.journey-step:hover .journey-img-wrap img {
    transform: scale(1.05);
}

.journey-step h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.journey-step p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
}

.journey-arrow {
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.journey-arrow svg {
    width: 28px;
    height: 28px;
    color: var(--blue-300);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .journey-grid {
        flex-direction: column;
        align-items: center;
    }

    .journey-arrow {
        padding-top: 0;
        transform: rotate(90deg);
    }

    .journey-step {
        max-width: 100%;
    }
}

/* --- Testimonials Section --- */
.testimonials {
    padding: 100px 0;
    background: #070b14;
    position: relative;
    overflow: hidden;
}

#particlesCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.testimonials .container {
    position: relative;
    z-index: 2;
}

.testimonials .section-tag {
    color: var(--blue-300);
}

.testimonials .section-header h2 {
    color: var(--white);
}

.testimonials .section-header p {
    color: rgba(255,255,255,0.45);
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(137,207,240,0.2), transparent);
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonial-card {
    flex-shrink: 0;
    background: rgba(255,255,255,0.04);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    border-color: rgba(137,207,240,0.12);
}

.testimonial-stars {
    font-size: 18px;
    color: #f5a623;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-card > p {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue-300);
    color: var(--blue-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.testimonial-author strong {
    display: block;
    font-size: 15px;
    color: var(--white);
}

.testimonial-author span {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 36px;
}

.carousel-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.carousel-btn:hover {
    border-color: var(--blue-300);
    background: var(--blue-300);
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(137,207,240,0.3);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    color: rgba(255,255,255,0.4);
    transition: var(--transition);
}

.carousel-btn:hover svg {
    color: var(--blue-900);
}

.carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background: var(--blue-300);
    width: 28px;
    border-radius: 5px;
}

.carousel-dot:hover:not(.active) {
    background: rgba(255,255,255,0.3);
}

/* --- Contact Section --- */
.contact {
    padding: 100px 0 60px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* Glow Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}
.glow-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--blue-300);
    top: -10%;
    left: 5%;
    animation: glowFloat 8s ease-in-out infinite;
}
.glow-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--blue-400);
    bottom: -5%;
    right: 10%;
    animation: glowFloat 10s ease-in-out 3s infinite;
}
.glow-orb-3 {
    width: 200px;
    height: 200px;
    background: var(--blue-500);
    top: 40%;
    left: 55%;
    animation: glowFloat 7s ease-in-out 5s infinite;
}
@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.contact-info .section-tag {
    display: block;
}

.contact-info p {
    font-size: 16px;
    color: var(--gray-500);
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-sm);
    background: var(--blue-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: var(--blue-500);
}

.contact-item strong {
    display: block;
    font-size: 14px;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.contact-item a,
.contact-item span {
    display: block;
    font-size: 14.5px;
    color: var(--gray-500);
    line-height: 1.5;
}

.contact-item a:hover {
    color: var(--blue-500);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 40px;
}

.contact-form h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--gray-800);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-400);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--blue-300);
    box-shadow: 0 0 0 3px rgba(137,207,240,0.2);
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Map */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

/* --- Footer --- */
.footer {
    background: var(--gray-900);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.6;
    margin-top: 16px;
}

.footer h4 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-links a,
.footer-services a,
.footer-contact a,
.footer-contact span {
    display: block;
    font-size: 14px;
    color: var(--gray-400);
    padding: 4px 0;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover,
.footer-contact a:hover {
    color: var(--blue-300);
    transform: translateX(3px);
}

.footer-bottom {
    padding: 24px 80px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal span {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray-500);
}

.footer-credit {
    font-size: 12px !important;
    color: var(--gray-500) !important;
}

.footer-credit a {
    color: var(--blue-300);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.footer-credit a:hover {
    color: var(--blue-200);
}

.footer .nav-logo .logo-e {
    color: var(--blue-300);
}

.footer .nav-logo .logo-text {
    color: var(--white);
}

.footer .nav-logo .logo-sub {
    color: rgba(255,255,255,0.4);
}

/* --- Animations --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.3);
    }
}

/* Scroll animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 4px;
        transition: var(--transition);
        box-shadow: var(--shadow-xl);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu .nav-link {
        color: var(--gray-700) !important;
        font-size: 16px;
        padding: 12px 16px;
        width: 100%;
        border-radius: var(--radius-sm);
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: var(--blue-50) !important;
        color: var(--blue-600) !important;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: var(--gray-700) !important;
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background: var(--gray-700) !important;
    }

    .hero-split {
        grid-template-columns: 1fr;
        padding: 120px 24px 60px;
        text-align: center;
    }

    .hero-left {
        text-align: center;
    }

    .hero-left .hero-cta {
        justify-content: center;
    }

    .hero-left .hero-stats {
        justify-content: center;
    }

    .hero-left .hero-sub {
        margin: 0 auto 36px;
    }

    .hero-right {
        height: 350px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-num {
        font-size: 22px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flip-card {
        height: 300px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .team-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-scroll {
        display: none;
    }

    .contact-form-wrapper {
        padding: 28px;
    }

    .about-img-accent {
        display: none;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .flip-card {
        height: 280px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .about-badges {
        flex-direction: column;
    }

    .badge {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .badge-label {
        margin-bottom: 0;
    }
}