/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #09090b;
    color: #f0f0f0;
    overflow-x: hidden;
}

/* Custom cursor is only hidden when active */
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor .btn,
body.has-custom-cursor .card,
body.has-custom-cursor .service-card,
body.has-custom-cursor .project-card,
body.has-custom-cursor .testimonial-card,
body.has-custom-cursor .tech-badge,
body.has-custom-cursor .carousel-btn {
    cursor: none;
}

/* ═══════════════════════════════════════════
   CINEMATIC NOISE OVERLAY
   ═══════════════════════════════════════════ */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: 9999;
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   FLOATING GRADIENT ORBS (Background Decoration)
   ═══════════════════════════════════════════ */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px); /* Reduced from 120px for performance */
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    will-change: transform; /* GPU compositing hint */
}

.orb-1 {
    width: 500px; height: 500px;
    background: #0F2A4A;
    top: 20%; left: -10%;
    animation: floatOrb1 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px; height: 400px;
    background: #4780BC;
    top: 60%; right: -10%;
    animation: floatOrb2 25s ease-in-out infinite;
}

.orb-3 {
    width: 350px; height: 350px;
    background: #264B77;
    bottom: 10%; left: 30%;
    animation: floatOrb3 22s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(80px, -60px); }
    66% { transform: translate(-40px, 80px); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-60px, 40px); }
    66% { transform: translate(50px, -70px); }
}

@keyframes floatOrb3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(70px, 50px); }
    66% { transform: translate(-80px, -30px); }
}

/* ═══════════════════════════════════════════
   ANIMATED GRADIENT SYSTEM
   ═══════════════════════════════════════════ */
.animated-gradient-bg {
    background: linear-gradient(270deg, #0F2A4A, #264B77, #4780BC, #72A1D4);
    background-size: 300% 300%;
    animation: gradientScroll 6s ease infinite;
}

.animated-gradient-text {
    background: linear-gradient(270deg, #0F2A4A, #264B77, #4780BC, #72A1D4);
    background-size: 300% 300%;
    animation: gradientScroll 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes gradientScroll {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ═══════════════════════════════════════════
   DUAL CUSTOM CURSOR
   ═══════════════════════════════════════════ */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #4780BC;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: transform;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(225, 0, 255, 0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, opacity 0.3s ease;
    will-change: transform;
}

.cursor-dot.active,
.cursor-ring.active {
    opacity: 1;
}

.cursor-ring.hovering {
    width: 60px;
    height: 60px;
    background-color: rgba(225, 0, 255, 0.12);
    border-color: #4780BC;
}

.cursor-dot.hovering {
    opacity: 0;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: fixed;
    width: 100%;
    z-index: 100;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0;
    margin: 0;
}

.logo-img {
    height: 68px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s;
}

.logo-img:hover {
    opacity: 0.8;
}

.logo-dot {
    color: #4780BC;
}

.links a {
    text-decoration: none;
    color: #999;
    margin-left: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.links a:hover {
    color: #fff;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
    background: #fff;
    color: #09090b !important;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.95rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.1);
}

.btn-outline {
    background: transparent;
    color: #ccc !important;
    border: 1px solid #444;
}

.btn-outline:hover {
    border-color: #4780BC;
    color: #4780BC !important;
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.1);
}

.btn-gradient {
    background: linear-gradient(270deg, #0F2A4A, #264B77, #4780BC, #72A1D4) !important;
    background-size: 300% 300% !important;
    animation: gradientScroll 6s ease infinite !important;
    color: white !important;
    border: none;
    box-shadow: 0 10px 30px rgba(127, 0, 255, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.5);
}

.btn-large {
    padding: 15px 34px;
    font-size: 1.05rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ═══════════════════════════════════════════
   SECTION TAGS (Small label above titles)
   ═══════════════════════════════════════════ */
.section-tag {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #264B77;
    margin-bottom: 1rem;
}

.hero-tag {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 9rem 5% 6rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.35;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    text-align: center;
}

.hero-content > p {
    font-size: 1.15rem;
    color: #aaa;
    margin: 0 auto 2.5rem auto;
    max-width: 720px;
    line-height: 1.7;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* 3D Globe fills the whole background on PC & Mobile! */
.vanta-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.42;
    pointer-events: none;
    overflow: hidden;
}

/* ═══════════════════════════════════════════
   TYPEWRITER TEXT ROTATOR
   ═══════════════════════════════════════════ */
.hero-title {
    font-size: 3rem;
    line-height: 1.35;
    margin-bottom: 1.6rem;
    font-weight: 900;
    letter-spacing: -1.2px;
    text-align: center;
}

.mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .mobile-break {
        display: block;
    }
}



.ticker-text {
    background: linear-gradient(135deg, #72A1D4 0%, #ffffff 50%, #4780BC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.ticker-cursor {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: #4780BC;
    margin-left: 2px;
    vertical-align: baseline;
    border-radius: 2px;
    animation: cursorBlink 0.7s step-end infinite;
}

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

/* ═══════════════════════════════════════════
   SCROLLING MARQUEE
   ═══════════════════════════════════════════ */
.marquee {
    width: 100%;
    overflow: hidden;
    color: white;
    padding: 1.2rem 0;
    font-weight: 900;
    font-size: 2rem;
    white-space: nowrap;
    transform: rotate(-2deg) scale(1.05);
    margin-top: -3rem;
    margin-bottom: 2rem;
    z-index: 5;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.marquee-reverse {
    transform: rotate(2deg) scale(1.05) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 1rem 0;
    font-size: 1.5rem;
    box-shadow: none !important;
}

.marquee-track {
    display: inline-block;
    animation: scrollText 15s linear infinite;
}

.marquee-track-reverse {
    animation: scrollTextReverse 20s linear infinite !important;
}

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

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

/* ═══════════════════════════════════════════
   SECTION COMMON STYLES
   ═══════════════════════════════════════════ */
section {
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-header p {
    color: #888;
    margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════
   SERVICES SECTION (Redesigned)
   ═══════════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s, box-shadow 0.4s;
    transform-style: preserve-3d;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, #0F2A4A, #264B77, #4780BC);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.4s;
    animation: gradientScroll 4s ease infinite;
}

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

.service-card:hover {
    border-color: rgba(225, 0, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(127, 0, 255, 0.05);
}

.service-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: 15px;
    right: 25px;
    line-height: 1;
    transform: translateZ(20px);
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    transform: translateZ(40px);
    filter: drop-shadow(0 0 12px rgba(127, 0, 255, 0.3));
    transition: filter 0.3s, transform 0.3s;
}

.service-icon-wrap svg {
    width: 100%;
    height: 100%;
}

.service-card:hover .service-icon-wrap {
    filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.5));
    transform: translateZ(40px) scale(1.15);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    transform: translateZ(50px);
}

.service-card p {
    color: #888;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    transform: translateZ(30px);
}

.service-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    transform: translateZ(25px);
}

.service-tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: #777;
    transition: all 0.3s;
}

.service-card:hover .service-tags span {
    border-color: rgba(0, 210, 255, 0.3);
    color: #4780BC;
}

/* ═══════════════════════════════════════════
   STATS COUNTER SECTION
   ═══════════════════════════════════════════ */
.stats-section {
    padding: 4rem 5%;
    background: #0d0d10;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #264B77, #4780BC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

/* ═══════════════════════════════════════════
   PROJECTS / WORK SECTION (Clean 3-Column Showcase)
   ═══════════════════════════════════════════ */
#work {
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 210, 255, 0.35);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(127, 0, 255, 0.1);
}

.project-image {
    width: 100%;
    height: 230px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating pill badges inside visual */
.card-type-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-type-badge .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4780BC;
    box-shadow: 0 0 10px #4780BC;
}

.card-metric-badge {
    position: absolute;
    bottom: 18px;
    right: 18px;
    z-index: 2;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 900;
    color: #4780BC;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.project-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(9, 9, 11, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-view {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid white;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.project-view:hover {
    background: white;
    color: #09090b;
    transform: scale(1.05);
}

.project-info {
    padding: 1.75rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-tags span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #aaa;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 50px;
}

.project-info h3 {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.project-info p {
    color: #888;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-link-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #4780BC;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.project-card:hover .project-link-cta {
    gap: 12px;
    color: #264B77;
}

/* ═══════════════════════════════════════════
   TECH STACK (Pure CSS Animated Background — replaces heavy Vanta Waves)
   ═══════════════════════════════════════════ */
.tech-section {
    position: relative;
    overflow: hidden;
    background: #0d0d10;
}

.vanta-section-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(127, 0, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 210, 255, 0.06) 0%, transparent 60%);
    animation: techBgShift 10s ease-in-out infinite alternate;
}

@keyframes techBgShift {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.tech-content {
    position: relative;
    z-index: 2;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.tech-badge {
    background: rgba(22, 22, 26, 0.8);
    border: 1px solid #333;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    color: #ccc;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tech-badge:hover {
    background: #fff;
    color: #09090b;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.2);
    border-color: #4780BC;
}

/* ═══════════════════════════════════════════
   TESTIMONIALS (Redesigned)
   ═══════════════════════════════════════════ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 2.5rem;
    transition: border-color 0.4s, box-shadow 0.4s;
    transform-style: preserve-3d;
}

.testimonial-card:hover {
    border-color: rgba(225, 0, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    transform: translateZ(20px);
}

.testimonial-card .quote {
    font-style: italic;
    color: #ccc;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 2rem;
    transform: translateZ(30px);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateZ(40px);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.testimonial-author h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: #666;
}

/* ═══════════════════════════════════════════
   FOOTER / CONTACT
   ═══════════════════════════════════════════ */
footer {
    padding: 8rem 5%;
    position: relative;
    color: white;
    text-align: center;
    overflow: hidden;
}

.footer-content {
    position: relative;
    z-index: 2;
}

footer h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

footer > .footer-content > p {
    color: #ccc;
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
}

.copyright {
    margin-top: 5rem;
    color: #555;
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════
   HAMBURGER MENU (Hidden on Desktop)
   ═══════════════════════════════════════════ */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 0;
    z-index: 120;
    position: relative;
    flex-shrink: 0;
}

.hamburger .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #f0f0f0;
    margin: 3px auto;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Seamless, razor-sharp Right Arrow (>) when active */
.hamburger::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-top: 2.5px solid #f0f0f0;
    border-right: 2.5px solid #f0f0f0;
    border-radius: 1px;
    transform: rotate(45deg) scale(0);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    top: 50%;
    left: 50%;
    margin-top: -6px;
    margin-left: -8px;
    pointer-events: none;
}

.hamburger.active .bar {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .services-grid,
    .projects-grid,
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    footer h2 {
        font-size: 2.8rem;
    }

    .stats-grid {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .stat-divider {
        display: none;
    }

    .stat-number {
        font-size: 2.8rem;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {

    /* --- Hamburger visible --- */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-right: 4px;
    }

    /* --- Mobile nav overlay --- */
    .links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(9, 9, 11, 0.97);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 6rem 2.5rem 3rem;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 105;
        border-left: 1px solid rgba(255, 255, 255, 0.06);
        display: flex;
    }

    .links.open {
        right: 0;
    }

    .links a {
        margin-left: 0;
        font-size: 1rem;
        padding: 0.85rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        color: #ccc;
    }

    .links .btn {
        margin-top: 1.2rem;
        text-align: center;
        width: 100%;
        font-size: 0.9rem !important;
        padding: 11px 22px !important;
    }

    /* --- Nav padding: comfortable breathing room from both edges --- */
    nav {
        padding: 0.8rem 1.25rem;
        overflow: visible;
    }

    .logo-img {
        height: 58px;
    }

    /* --- Hero Mobile: Full atmospheric screen with 3D globe behind text --- */
    .hero {
        position: relative;
        min-height: 100vh;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 7rem 1.25rem 4rem;
        overflow: hidden;
    }

    .hero-content {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        position: relative;
        z-index: 2;
        padding: 0;
    }

    .hero-content h1,
    .hero-title {
        font-size: 2.1rem;
        letter-spacing: -0.8px;
        line-height: 1.35;
        margin-bottom: 1.2rem;
    }

    .hero-tag {
        font-size: 0.85rem;
        letter-spacing: 0.8px;
        margin-bottom: 1.2rem;
        color: #72A1D4;
        font-weight: 500;
        word-break: break-word;
    }

    .hero-content > p {
        margin: 0 auto 2rem auto;
        font-size: 1rem;
        line-height: 1.6;
        color: #aaa;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.85rem;
        margin-bottom: 0;
    }

    .btn-large {
        padding: 13px 28px;
        font-size: 0.95rem;
    }

    /* Globe: Atmospheric background behind hero text, NOT a box below! */
    .vanta-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        opacity: 0.38;
        pointer-events: none;
        overflow: hidden;
        margin: 0;
    }

    /* --- Marquee: Keep the iconic dynamic tilt on mobile! --- */
    .marquee {
        font-size: 1.15rem;
        padding: 0.9rem 0;
        transform: rotate(-2deg) scale(1.06);
        margin-top: -1.2rem;
        margin-bottom: 2rem;
    }

    .marquee-reverse {
        font-size: 0.95rem;
        padding: 0.75rem 0;
        transform: rotate(2deg) scale(1.06) !important;
        margin-top: 1.5rem !important;
        margin-bottom: 1.8rem !important;
    }

    /* --- Section common --- */
    section {
        padding: 4rem 5%;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-tag {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    /* --- Services stacked --- */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.75rem;
        border-radius: 20px;
    }

    .service-number {
        font-size: 3.5rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    /* --- Stats --- */
    .stats-section {
        padding: 3rem 5%;
    }

    .stats-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* --- Projects stacked --- */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-image {
        height: 200px;
    }

    .project-info {
        padding: 1.5rem;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

    /* --- Tech section --- */
    .tech-section {
        padding: 4rem 5%;
    }

    .tech-grid {
        gap: 0.6rem;
    }

    .tech-badge {
        padding: 9px 18px;
        font-size: 0.85rem;
    }

    /* --- Testimonials stacked --- */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 2rem;
        border-radius: 20px;
    }

    /* --- Footer --- */
    footer {
        padding: 5rem 5%;
    }

    footer h2 {
        font-size: 2rem;
    }

    footer > .footer-content > p {
        font-size: 1rem;
    }

    /* Footer two-button row stacks on mobile */
    footer .footer-content > div[style] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }

    footer .footer-content > div[style] span {
        display: none !important;
    }

    footer .footer-content > div[style] a {
        width: 100% !important;
        justify-content: center !important;
        text-align: center;
        box-sizing: border-box;
        /* Force same size as the gradient button on mobile */
        padding: 13px 28px !important;
        font-size: 0.95rem !important;
    }

    .copyright {
        margin-top: 3rem;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — SMALL PHONE (≤480px)
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
    .hero {
        padding: 6.5rem 1rem 3.5rem;
    }

    .hero-content h1,
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.25;
    }

    .hero-tag {
        font-size: 2.4vw;
        letter-spacing: 0;
        white-space: nowrap;
    }

    .hero-content > p {
        font-size: 3vw;
        line-height: 1.5;
        padding: 0 5px;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .marquee {
        font-size: 1rem;
    }

    footer h2 {
        font-size: 1.7rem;
    }

    .btn {
        padding: 10px 22px;
        font-size: 0.85rem;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .logo-img {
        height: 56px !important;
    }

    .tech-badge {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

/* ═══════════════════════════════════════════
   TOUCH DEVICES — Hide custom cursor
   ═══════════════════════════════════════════ */
@media (pointer: coarse) {
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
