@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --primary-cyan: #13efbe;
    --primary-blue: #1a56db;
    --primary-gradient: linear-gradient(135deg, #13efbe 0%, #1a56db 100%);
    --accent-pink: #ff0080;
    --text-main: #0f172a;
    --text-dim: #475569;
    --glass-border: rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.outfit {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

/* --- Premium Clean Background --- */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 10%, rgba(19, 239, 190, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(26, 86, 219, 0.08) 0%, transparent 40%),
        var(--bg-white);
}

.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
    animation: float 25s infinite alternate;
}

@keyframes float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(50px, 30px);
    }
}

/* --- Navigation --- */
.header-modern {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.navbar-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-modern {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.logo-modern span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
    position: relative;
    z-index: 2005;
}

/* --- Hero Section --- */
.hero-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 5% 60px 5%;
    position: relative;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1000px;
}

.hero-content {
    max-width: 850px;
}

.badge-premium {
    background: rgba(19, 239, 190, 0.1);
    border: 1px solid rgba(19, 239, 190, 0.3);
    color: var(--primary-blue);
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-modern h1 {
    font-size: 5.5rem;
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-main);
    letter-spacing: -3px;
    max-width: 100%;
    margin-inline: auto;
}

.hero-modern p {
    font-size: 1.35rem;
    color: var(--text-dim);
    max-width: 650px;
    margin-bottom: 3.5rem;
    font-weight: 400;
}

.btn-premium {
    padding: 1.1rem 3rem;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary-modern {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 15px 30px -10px rgba(26, 86, 219, 0.3);
    border: none;
}

.btn-primary-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 45px -12px rgba(26, 86, 219, 0.4);
}

.btn-outline-modern {
    border: 2px solid var(--text-main);
    color: var(--text-main);
    margin-left: 1.5rem;
}

.btn-outline-modern:hover {
    background: var(--text-main);
    color: white;
}

/* --- Sections --- */
section {
    padding: 120px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    margin-bottom: 5rem;
    max-width: 800px;
}

.section-title h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.section-title p {
    color: var(--text-dim);
    font-size: 1.25rem;
}

/* --- Glass Cards (MNC Style) --- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.glass-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.08);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* --- Neural AI Blocks --- */
.neural-card {
    position: relative;
    border: 1px solid rgba(19, 239, 190, 0.1);
    background: rgba(15, 23, 42, 0.02);
    overflow: hidden;
}

.neural-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--primary-cyan), transparent 30%);
    animation: rotateGlow 6s linear infinite;
    opacity: 0.1;
    z-index: 0;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.neural-inner {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    height: 100%;
    border-radius: inherit;
    padding: 3.5rem;
}

/* --- Global Operations Map --- */
.map-container {
    background: #0f172a;
    border-radius: 40px;
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-svg-placeholder {
    width: 100%;
    max-width: 1000px;
    opacity: 0.15;
    filter: invert(1);
}

.map-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary-cyan);
}

.map-marker::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    border: 1px solid var(--primary-cyan);
    border-radius: 50%;
    animation: mapPulse 2s infinite;
}

@keyframes mapPulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.hub-location {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* --- Case Study Impact --- */
.impact-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.icon-box {
    width: 65px;
    height: 65px;
    background: var(--primary-gradient);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 20px -5px rgba(19, 239, 190, 0.3);
}

.icon-box i {
    font-size: 2rem;
    color: white;
}

/* --- Process / Numbers --- */
#process .outfit {
    font-size: 1.5rem;
    color: var(--text-main);
}

/* --- Laptop Mockup --- */
.laptop-mockup {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    padding: 2.2% 2.2% 4% 2.2%;
    background: #0f172a;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.3);
}

.laptop-mockup::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -10%;
    width: 120%;
    height: 15px;
    background: #334155;
    border-radius: 0 0 20px 20px;
}

.laptop-screen {
    width: 100%;
    aspect-ratio: 16/10;
    background: white;
    overflow: hidden;
    border-radius: 4px;
}

.laptop-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.laptop-mockup:hover .laptop-screen img {
    transform: scale(1.05);
}

/* --- Local Section --- */
.local-section {
    background: linear-gradient(135deg, rgba(19, 239, 190, 0.03) 0%, rgba(26, 86, 219, 0.03) 100%);
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 5rem;
    padding: 5rem !important;
}

/* --- Tech Stack Grid --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 3rem;
    align-items: center;
    justify-items: center;
}

.tech-item {
    font-size: 2.5rem;
    color: var(--text-dim);
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tech-item:hover {
    color: var(--primary-blue);
    transform: translateY(-5px);
}

.tech-item span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- CTA Banner --- */
.cta-banner {
    background: var(--primary-gradient);
    border-radius: 40px;
    padding: 6rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-inline: auto;
}

/* --- Deep Footer --- */
.footer-modern {
    background: var(--bg-light);
    padding: 100px 5% 50px 5%;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.footer-links-list {
    list-style: none;
    padding: 0;
}

.footer-links-list li {
    margin-bottom: 1rem;
}

.footer-links-list a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-links-list a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    max-width: 1400px;
    margin-inline: auto;
}

/* --- Responsive Overhaul --- */

/* 1. Reset & Global Fluidity */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Base for rem units */
}

@media (max-width: 1600px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 1200px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .hero-modern h1 {
        font-size: 3.8rem !important;
        letter-spacing: -2px !important;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .footer-col:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 7%;
    }

    .hero-modern {
        padding: 120px 7% 60px 7%;
    }

    .hero-content-wrapper {
        padding: 0 15px;
    }

    .hero-modern h1 {
        font-size: 2.3rem !important;
        line-height: 1.1;
        letter-spacing: -1px !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-modern p {
        font-size: 1rem;
        margin-bottom: 2rem !important;
    }

    .btn-premium {
        padding: 0.9rem 1.5rem;
        width: 100%;
        text-align: center;
    }

    .btn-outline-modern {
        margin-left: 0;
        margin-top: 0.8rem !important;
    }

    .section-title {
        margin-bottom: 3.5rem;
        text-align: center;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .glass-card {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .local-section {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.2rem !important;
        gap: 2rem;
    }

    .cta-banner {
        padding: 3rem 1.5rem;
        border-radius: 24px;
    }

    .cta-banner h2 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .portfolio-card-reverse {
        flex-direction: column-reverse !important;
    }
}

/* --- 3D & Advanced Illustrations --- */
.illustration-3d {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-gradient);
    filter: blur(60px);
    opacity: 0.12;
    animation: float3d 12s infinite alternate ease-in-out;
    z-index: -1;
}

@keyframes float3d {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    100% {
        transform: translate(20px, -30px) rotate(10deg) scale(1.1);
    }
}

.glass-card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease;
}

.glass-card-3d:hover {
    transform: rotateY(8deg) rotateX(4deg) translateY(-15px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

.glass-card-3d>* {
    transform: translateZ(30px);
    /* Internal depth */
}

.ani-float {
    animation: subtleFloat 6s infinite ease-in-out;
}

@keyframes subtleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* --- Mobile Menu Overlay --- */
.nav-links.mobile-active {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1900;
    gap: 2rem;
    animation: fadeIn 0.3s ease;
}

.nav-links.mobile-active li a {
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════ */
/* MOBILE SCROLL PERFORMANCE FIX      */
/* Disable heavy animations on phones */
/* ═══════════════════════════════════ */
@media (max-width: 768px) {

    /* Kill floating orb animations — they cause GPU strain */
    .floating-shape {
        animation: none !important;
        opacity: 0.06 !important;
    }

    /* Disable 3D hover transforms on touch devices */
    .glass-card-3d:hover {
        transform: none !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
    }

    .glass-card-3d>* {
        transform: none !important;
    }

    /* Stop bobbing icon animations */
    .ani-float {
        animation: none !important;
    }

    /* Reduce illustration sizes */
    .illustration-3d {
        height: 220px !important;
        perspective: none !important;
    }

    .illustration-3d svg {
        max-width: 200px !important;
    }

    /* Hide heavy particle canvas on mobile */
    #hero-canvas {
        display: none !important;
    }

    /* Simplify glow orbs */
    .glow-orb {
        opacity: 0.3 !important;
        animation: none !important;
    }
}

/* Respect system reduced-motion preference */
@media (prefers-reduced-motion: reduce) {

    .floating-shape,
    .ani-float,
    .glass-card-3d {
        animation: none !important;
        transition: none !important;
    }

    .glass-card-3d:hover {
        transform: none !important;
    }
}