/* ===== MALU SYSTEM — Design System ===== */
:root {
    /* Brand Colors from logo */
    --red: #C92525;
    --red-light: #e84343;
    --orange: #DF9122;
    --orange-light: #f0a940;
    --blue: #114589;
    --blue-light: #1a5cb3;
    --blue-dark: #0d3468;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8f9fb;
    --gray-100: #f0f2f5;
    --gray-200: #e2e5ea;
    --gray-300: #cdd1d9;
    --gray-400: #9ba1ad;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gray-950: #0a0e17;

    /* Semantic */
    --teal: #0d9488;
    --purple: #7c3aed;

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

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;

    /* Borders & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.14);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s var(--ease);
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--blue);
    background: rgba(17,69,137,0.08);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 16px;
}

.text-accent {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(17,69,137,0.3);
}

.btn-primary:hover {
    background: var(--blue-light);
    box-shadow: 0 8px 28px rgba(17,69,137,0.35);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1.5px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all 0.4s var(--ease);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    padding: 12px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    position: relative;
    z-index: 10;
}

.nav-logo-img {
    height: 44px;
    width: auto;
    transition: opacity 0.3s var(--ease);
}

.nav-logo-white {
    position: absolute;
    top: 0;
    left: 0;
}

/* Default state: hero not scrolled = dark bg = show white logo */
.navbar:not(.scrolled) .nav-logo-img:not(.nav-logo-white) {
    opacity: 0;
}
.navbar:not(.scrolled) .nav-logo-white {
    opacity: 1;
}

/* Scrolled state: white bg = show color logo */
.navbar.scrolled .nav-logo-img:not(.nav-logo-white) {
    opacity: 1;
}
.navbar.scrolled .nav-logo-white {
    opacity: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease);
}

.navbar:not(.scrolled) .nav-link {
    color: rgba(255,255,255,0.75);
}

.navbar:not(.scrolled) .nav-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.navbar.scrolled .nav-link {
    color: var(--gray-600);
}

.navbar.scrolled .nav-link:hover {
    color: var(--blue);
    background: rgba(17,69,137,0.06);
}

.nav-cta {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease);
}

.navbar:not(.scrolled) .nav-cta {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
}

.navbar:not(.scrolled) .nav-cta:hover {
    background: rgba(255,255,255,0.25);
}

.navbar.scrolled .nav-cta {
    background: var(--blue);
    color: var(--white);
}

.navbar.scrolled .nav-cta:hover {
    background: var(--blue-light);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 10;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.navbar:not(.scrolled) .nav-toggle span {
    background: var(--white);
}

.navbar.scrolled .nav-toggle span {
    background: var(--gray-700);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(10,14,23,0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transform: translateY(20px);
    transition: transform 0.5s var(--ease);
}

.mobile-menu.active .mobile-menu-content {
    transform: translateY(0);
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    padding: 12px 24px;
    transition: color 0.3s;
}

.mobile-link:hover {
    color: var(--white);
}

.mobile-cta {
    margin-top: 24px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 36px;
    background: var(--blue);
    color: var(--white);
    border-radius: var(--radius-md);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(17,69,137,0.95) 0%, rgba(10,14,23,0.98) 70%),
        linear-gradient(180deg, #0a0e17 0%, #111827 100%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 10px 24px;
    border-radius: 100px;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s var(--ease) 0.1s both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(223,145,34,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(223,145,34,0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s var(--ease) 0.2s both;
}

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

.hero-title-accent {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 50%, var(--red-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s var(--ease) 0.3s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
    animation: fadeInUp 0.8s var(--ease) 0.4s both;
}

.hero-actions .btn-secondary {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
}

.hero-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
    color: var(--white);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    animation: fadeInUp 0.8s var(--ease) 0.5s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--orange);
}

.stat-label {
    display: block;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

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

/* ===== Services Section ===== */
.services {
    padding: var(--section-padding) 0;
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.service-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:nth-child(1)::before { background: var(--red); }
.service-card:nth-child(2)::before { background: var(--orange); }
.service-card:nth-child(3)::before { background: var(--blue); }
.service-card:nth-child(4)::before { background: var(--teal); }
.service-card:nth-child(5)::before { background: var(--gray-500); }
.service-card:nth-child(6)::before { background: var(--purple); }

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-icon-red { background: rgba(201,37,37,0.08); color: var(--red); }
.service-icon-orange { background: rgba(223,145,34,0.08); color: var(--orange); }
.service-icon-blue { background: rgba(17,69,137,0.08); color: var(--blue); }
.service-icon-teal { background: rgba(13,148,136,0.08); color: var(--teal); }
.service-icon-gray { background: rgba(107,114,128,0.08); color: var(--gray-600); }
.service-icon-purple { background: rgba(124,58,237,0.08); color: var(--purple); }

.service-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.service-desc {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 18px;
}

.service-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-features li {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-500);
    background: var(--gray-50);
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid var(--gray-100);
}

/* ===== About Section ===== */
.about {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-text strong {
    color: var(--gray-900);
}

.about-values {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.value-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(17,69,137,0.08);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.value h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.value p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* About Visual */
.about-visual {
    position: relative;
}

.about-card-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    transition: all 0.35s var(--ease);
}

.about-feature-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.afc-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.afc-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.afc-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===== Process / Timeline Section ===== */
.process {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 44px;
    left: calc(12.5% + 12px);
    right: calc(12.5% + 12px);
    height: 2px;
    background: linear-gradient(90deg, var(--red), var(--orange), var(--blue-light), var(--blue));
    border-radius: 2px;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    transition: all 0.35s var(--ease);
}

.process-step:nth-child(1) .step-number {
    background: rgba(201,37,37,0.1);
    color: var(--red);
    border: 2px solid rgba(201,37,37,0.2);
}

.process-step:nth-child(2) .step-number {
    background: rgba(223,145,34,0.1);
    color: var(--orange);
    border: 2px solid rgba(223,145,34,0.2);
}

.process-step:nth-child(3) .step-number {
    background: rgba(26,92,179,0.1);
    color: var(--blue-light);
    border: 2px solid rgba(26,92,179,0.2);
}

.process-step:nth-child(4) .step-number {
    background: rgba(17,69,137,0.1);
    color: var(--blue);
    border: 2px solid rgba(17,69,137,0.2);
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 0 0 var(--section-padding);
    background: var(--white);
}

.cta-box {
    background: linear-gradient(135deg, var(--gray-950) 0%, var(--blue-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 72px 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(17,69,137,0.3), transparent 70%);
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(223,145,34,0.15), transparent 70%);
}

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

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.55);
    max-width: 440px;
    line-height: 1.6;
}

.cta-box .btn-primary {
    position: relative;
    z-index: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== Contact Section ===== */
.contact {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease);
}

.contact-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(17,69,137,0.08);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-card a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.contact-card a:hover {
    color: var(--blue);
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.5;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(17,69,137,0.1);
    background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

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

.form-group select {
    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='%239ba1ad' 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;
}

/* ===== Map Section ===== */
.map-section {
    width: 100%;
    line-height: 0;
    filter: grayscale(20%) contrast(1.05);
}

.map-section iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ===== Footer ===== */
.footer {
    background: var(--gray-950);
    padding: 72px 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: 24px;
}

.footer-company-info {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-company-info p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    padding: 5px 0;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 24px 0;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.25);
}

.footer-reg {
    font-size: 0.78rem !important;
    color: rgba(255,255,255,0.18) !important;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.35s var(--ease);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--blue-light);
    transform: translateY(-3px);
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: all 0.7s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .process-timeline::before {
        display: none;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 56px 40px;
    }

    .cta-content p {
        margin: 0 auto;
    }

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

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

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

    .contact-form-wrapper {
        padding: 28px 24px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .project-image-wrapper {
        height: 200px;
    }
    .project-details {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 48px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .about-feature-card {
        padding: 20px 24px;
    }
}

/* ===== References & Partners Section ===== */
.references-section {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 72px;
}

.project-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: all 0.4s var(--ease);
    overflow: hidden;
    height: 100%;
}

.project-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.project-image-wrapper {
    width: 100%;
    height: 260px;
    overflow: hidden;
    flex-shrink: 0;
    border-bottom: 1px solid var(--gray-100);
}

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

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

.project-details {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.project-year {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--orange);
    background: rgba(223,145,34,0.08);
    padding: 4px 12px;
    border-radius: 100px;
    line-height: 1;
}

.project-tag-mini {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--blue);
    background: rgba(17,69,137,0.06);
    padding: 4px 12px;
    border-radius: 100px;
}

.project-details h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.project-details p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

/* Partners Block */
.partners-block {
    text-align: center;
    border-top: 1px solid var(--gray-200);
    padding-top: 56px;
}

.partners-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-400);
    margin-bottom: 36px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.partners-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    padding: 16px 0;
}

.partners-marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.partners-marquee:hover .partners-marquee-track {
    animation-play-state: paused;
}

.partner-logo-item {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px 32px;
    height: 80px;
    width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s var(--ease);
}

.partner-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) opacity(35%);
    transition: all 0.3s var(--ease);
}

.partner-logo-item:hover {
    border-color: var(--blue-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.partner-logo-item:hover img {
    filter: brightness(0) opacity(80%);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .partner-logo-item {
        width: 140px;
        height: 70px;
        padding: 12px 24px;
    }
}

/* Swap contact page background so it contrasts nicely with gray-50 references */
.contact {
    background: var(--white);
}
.contact-form-wrapper {
    background: var(--gray-50);
}
