/* ===================================
   ASLAN LA — styles.css
   Mobile-first responsive design
   =================================== */

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

:root {
    /* Colors */
    --navy: #0a1628;
    --navy-light: #111d35;
    --navy-mid: #162240;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #3b82f6;
    --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;
    --text: #1e293b;
    --text-light: #64748b;
    --text-on-dark: #cbd5e1;

    /* Typography */
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-pad: 80px;
    --container: 1200px;

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

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

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

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

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

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

.accent {
    color: var(--accent);
}

/* ---------- SECTION HEADERS ---------- */
.section__tag {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section__subtitle {
    font-size: 1.0625rem;
    color: var(--text-light);
    max-width: 560px;
    margin-bottom: 48px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    border: 2px solid transparent;
    text-align: center;
}

.btn--primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--gray-300);
}

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

.btn--white {
    background: var(--white);
    color: var(--navy);
}

.btn--white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn--full {
    width: 100%;
}

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s var(--ease);
    background: transparent;
}

.nav--scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.nav__logo {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__logo-icon {
    color: var(--accent);
    font-size: 1rem;
    margin-right: 4px;
}

.nav__menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    padding: 80px 32px 32px;
    transition: right 0.35s var(--ease);
    gap: 8px;
}

.nav__menu.active {
    display: flex;
    right: 0;
}

.nav__link {
    color: var(--text-on-dark);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 12px 0;
    transition: color 0.25s var(--ease);
}

.nav__link:hover {
    color: var(--accent-light);
}

.nav__link--cta {
    background: var(--accent);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 6px;
    text-align: center;
    margin-top: 8px;
}

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

.nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.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);
}

/* ========== HERO ========== */
.hero {
    background: var(--navy);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero__inner {
    display: grid;
    gap: 48px;
    align-items: center;
}

.hero__tag {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.hero__title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero__text {
    font-size: 1.0625rem;
    color: var(--text-on-dark);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero__actions .btn--outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero__actions .btn--outline:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.hero__shape {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    opacity: 0.1;
    position: absolute;
}

.hero__card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    position: absolute;
}

.hero__card--1 {
    top: 20px;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.hero__card--2 {
    bottom: 20px;
    left: 10%;
    animation: float 6s ease-in-out infinite 3s;
}

.hero__card-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.hero__card-label {
    font-size: 0.8125rem;
    color: var(--text-on-dark);
    margin-top: 4px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

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

.services__grid {
    display: grid;
    gap: 24px;
}

.service-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s var(--ease);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card__title {
    font-size: 1.1875rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.service-card__text {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-card__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
}

.service-card__link:hover {
    color: var(--accent-hover);
}

/* ========== PROCESS ========== */
.process {
    padding: var(--section-pad) 0;
    background: var(--gray-50);
}

.process__steps {
    display: grid;
    gap: 32px;
}

.process-step {
    position: relative;
    padding: 32px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.process-step__number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 16px;
}

.process-step__line {
    display: none;
}

.process-step__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.process-step__text {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ========== STATS ========== */
.stats {
    padding: var(--section-pad) 0;
    background: var(--navy);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    text-align: center;
}

.stat__number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--white);
}

.stat__plus {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--accent-light);
}

.stat__label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-on-dark);
    margin-top: 8px;
}

/* ========== PROJECTS ========== */
.projects {
    padding: var(--section-pad) 0;
    background: var(--white);
}

.projects__grid {
    display: grid;
    gap: 24px;
}

.project-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s var(--ease);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.project-card__image {
    height: 200px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    position: relative;
}

.project-card__category {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-card__body {
    padding: 24px;
}

.project-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.project-card__text {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-card__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
}

/* ========== TEAM ========== */
.team {
    padding: var(--section-pad) 0;
    background: var(--gray-50);
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    text-align: center;
}

.team-member__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
}

.team-member__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.team-member__name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.team-member__role {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ========== CTA BANNER ========== */
.cta-banner {
    padding: var(--section-pad) 0;
    background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 50%, #7c3aed 100%);
}

.cta-banner__inner {
    text-align: center;
}

.cta-banner__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-banner__text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    margin: 0 auto 32px;
}

/* ========== CONTACT ========== */
.contact {
    padding: var(--section-pad) 0;
    background: var(--white);
}

.contact__inner {
    display: grid;
    gap: 48px;
}

.contact__text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 440px;
}

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

.contact__detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--text);
}

.contact__detail svg {
    color: var(--accent);
    flex-shrink: 0;
}

.contact__detail a {
    color: var(--text);
}

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

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
    outline: none;
}

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

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-success {
    text-align: center;
    padding: 48px 24px;
}

.form-success svg {
    margin-bottom: 16px;
}

.form-success h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-light);
}

.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 12px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--navy);
    padding: 64px 0 32px;
}

.footer__grid {
    display: grid;
    gap: 40px;
}

.footer__tagline {
    font-size: 0.9375rem;
    color: var(--text-on-dark);
    margin-top: 16px;
    line-height: 1.7;
    max-width: 320px;
}

.footer__heading {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links a {
    font-size: 0.875rem;
    color: var(--text-on-dark);
}

.footer__links a:hover {
    color: var(--accent-light);
}

.footer__newsletter p {
    font-size: 0.875rem;
    color: var(--text-on-dark);
    margin-bottom: 16px;
}

.footer__form {
    display: flex;
    gap: 8px;
}

.footer__input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: var(--font);
    font-size: 0.875rem;
    outline: none;
}

.footer__input::placeholder {
    color: var(--gray-400);
}

.footer__input:focus {
    border-color: var(--accent);
}

.footer__btn {
    padding: 10px 20px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s var(--ease);
}

.footer__btn:hover {
    background: var(--accent-hover);
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.footer__social {
    display: flex;
    gap: 16px;
}

.footer__social a {
    color: var(--gray-400);
    transition: color 0.25s var(--ease);
}

.footer__social a:hover {
    color: var(--accent-light);
}

/* ========== RESPONSIVE: TABLET (768px+) ========== */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }

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

    .process__steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-step {
        text-align: center;
    }

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

    .team__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .contact__inner {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }

    .stats__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    }

    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ========== RESPONSIVE: DESKTOP (1024px+) ========== */
@media (min-width: 1024px) {
    :root {
        --section-pad: 100px;
    }

    .nav__menu {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        gap: 32px;
        align-items: center;
    }

    .nav__link {
        padding: 0;
        font-size: 0.875rem;
    }

    .nav__link--cta {
        margin-top: 0;
    }

    .nav__toggle {
        display: none;
    }

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

    .hero {
        padding: 0;
    }

    .hero__visual {
        min-height: 400px;
    }

    .hero__shape {
        width: 400px;
        height: 400px;
    }

    .services__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .projects__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== ANIMATIONS ========== */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
