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

:root {
    --blue-50: #EFF6FF;
    --blue-100: #DBEAFE;
    --blue-200: #BFDBFE;
    --blue-300: #93C5FD;
    --blue-400: #60A5FA;
    --blue-500: #3B82F6;
    --blue-600: #2563EB;
    --blue-700: #1D4ED8;
    --blue-800: #1E40AF;
    --blue-900: #1E3A5F;

    --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-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.12);
    --shadow-blue: 0 8px 30px rgba(37, 99, 235, 0.25);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--blue-600);
    color: var(--white);
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    background: var(--blue-700);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--blue-600);
    border: 2px solid var(--blue-200);
}

.btn-outline:hover {
    background: var(--blue-50);
    border-color: var(--blue-400);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--blue-600);
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

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

.btn .arrow {
    transition: transform 0.3s ease;
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* ===== SECTION UTILITIES ===== */
.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--blue-50);
    color: var(--blue-600);
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.7;
}

.highlight {
    color: var(--blue-600);
    position: relative;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
}

.logo-icon {
    display: flex;
    align-items: center;
}

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

.nav-links a {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: 50px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue-600);
    background: var(--blue-50);
}

.nav-cta {
    background: var(--blue-600) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    box-shadow: var(--shadow-blue);
}

.nav-cta:hover {
    background: var(--blue-700) !important;
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: var(--transition);
}

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

.hero-bg-shape {
    position: absolute;
    top: -120px;
    right: -200px;
    width: 800px;
    height: 800px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-300));
    border-radius: 50%;
    opacity: 0.06;
    z-index: 0;
    animation: morphShape 20s ease-in-out infinite;
}

@keyframes morphShape {
    0%, 100% { border-radius: 50%; transform: scale(1); }
    50% { border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; transform: scale(1.05); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--blue-50);
    color: var(--blue-600);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 1px solid var(--blue-100);
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 480px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-badge,
.hero-title,
.hero-desc,
.hero-buttons {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-content.is-changing .hero-badge,
.hero-content.is-changing .hero-title,
.hero-content.is-changing .hero-desc,
.hero-content.is-changing .hero-buttons {
    opacity: 0;
    transform: translateY(10px);
}

.hero-dots {
    display: flex;
    gap: 8px;
    margin-top: 48px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.dot {
    appearance: none;
    border: none;
    padding: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--blue-600);
    width: 32px;
    border-radius: 5px;
}

.dot:focus-visible {
    outline: 2px solid var(--blue-500);
    outline-offset: 2px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease 0.3s both;
}

.hero-illustration {
    width: 100%;
    max-width: 540px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(37, 99, 235, 0.1));
}

/* SVG Animations */
.float-animation {
    animation: floatY 4s ease-in-out infinite;
}

.spin-animation {
    animation: spinSlow 12s linear infinite;
}

.pulse-animation {
    animation: pulse 2.5s ease-in-out infinite;
}

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

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== SERVICES ===== */
.services {
    padding: 100px 0;
    background: var(--gray-50);
}

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

.service-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--blue-100);
}

.service-card.featured {
    border-color: var(--blue-200);
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
}

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

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-600);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.service-link:hover {
    gap: 8px;
    color: var(--blue-700);
}

/* ===== ABOUT ===== */
.about {
    padding: 100px 0;
    background: var(--white);
}

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

.about-card-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-stat-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-100);
}

.about-stat-card:hover::after {
    opacity: 1;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--blue-600);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

.about-content .section-badge {
    display: inline-block;
}

.about-content .section-title {
    text-align: left;
}

.about-desc {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 32px;
}

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

.about-features li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--blue-50);
    color: var(--blue-600);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
}

.about-features strong {
    font-size: 15px;
    color: var(--gray-800);
    display: block;
    margin-bottom: 4px;
}

.about-features li p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== PORTFOLIO ===== */
.portfolio {
    padding: 100px 0;
    background: var(--gray-50);
}

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

.portfolio-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

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

.portfolio-thumb {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-overlay {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

.portfolio-info {
    padding: 24px;
}

.portfolio-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--blue-50);
    color: var(--blue-600);
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.portfolio-info p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

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

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--gray-50);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

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

.contact-card .contact-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-50);
    border-radius: var(--radius-md);
}

.contact-card strong {
    font-size: 16px;
    color: var(--gray-800);
    display: block;
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    padding: 60px 0 0;
    color: var(--gray-400);
}

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

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--blue-400);
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--gray-400);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--blue-600);
    color: var(--white);
    transform: translateY(-2px);
}

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

.footer-bottom p {
    font-size: 13px;
    color: var(--gray-500);
}

/* ===== SCROLL ANIMATIONS ===== */
.service-card,
.about-stat-card,
.portfolio-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible,
.about-stat-card.visible,
.portfolio-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for cards */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.15s; }
.service-card:nth-child(3) { transition-delay: 0.25s; }
.service-card:nth-child(4) { transition-delay: 0.35s; }

.about-stat-card:nth-child(1) { transition-delay: 0.05s; }
.about-stat-card:nth-child(2) { transition-delay: 0.15s; }
.about-stat-card:nth-child(3) { transition-delay: 0.25s; }
.about-stat-card:nth-child(4) { transition-delay: 0.35s; }

.portfolio-card:nth-child(1) { transition-delay: 0.05s; }
.portfolio-card:nth-child(2) { transition-delay: 0.15s; }
.portfolio-card:nth-child(3) { transition-delay: 0.25s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-title { font-size: 42px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 18px;
        font-size: 16px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(7px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-7px);
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero-desc {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-dots {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-illustration {
        max-width: 380px;
    }

    .section-title { font-size: 28px; }

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

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

    .about-content .section-title {
        text-align: center;
    }

    .about-desc { text-align: center; }

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

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

    .cta-box h2 { font-size: 24px; }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info .section-title {
        text-align: center;
    }

    .contact-desc { text-align: center; }

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

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

    .footer-brand p { max-width: 100%; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 30px; }
    .about-card-stack { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
    .cta-box h2 { font-size: 22px; }
}
