:root {
    --bg-color: #020617;
    /* Deep Space Black */
    --bg-secondary: #0f172a;
    /* Slate 900 */
    --bg-tertiary: #1e293b;
    /* Slate 800 */
    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --accent-primary: #3b82f6;
    /* Blue 500 */
    --accent-secondary: #06b6d4;
    /* Cyan 500 */
    --accent-tertiary: #7c3aed;
    /* Violet 600 */
    --accent-glow: rgba(6, 182, 212, 0.5);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(124, 58, 237, 0.08), transparent 25%);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;

    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-weight: 600;
    margin-left: 1rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
    color: white;
}

.gradient-text {
    background: linear-gradient(to right, var(--accent-secondary), var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradientMove 5s linear infinite;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1100;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

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

.header-social {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    display: block;
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.nav-links a:not(.btn-primary) {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-secondary);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover {
    color: white;
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.nav-links a.active {
    color: white;
}

.nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
    z-index: 1007;
    /* increased so hamburger sits above overlay/menu */
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transform: scale(1.1);
    animation: zoomOut 20s linear infinite alternate;
}

@keyframes zoomOut {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.5));
   
}

.hero-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(var(--cols), 1fr);
    grid-template-rows: repeat(var(--rows), 1fr);
}

.dot-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.anime-dot {
    width: 5px;
    height: 5px;
    margin: auto;
    border-radius: 50%;
    background-color: var(--accent-secondary);
    opacity: 1;
    will-change: transform, opacity;
}

.hero-content {
    text-align: left;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    max-width: 700px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 0 3rem 0;
    font-weight: 300;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--accent-secondary);
    border-radius: 50%;
    animation: scroll 2s infinite;
    box-shadow: 0 0 10px var(--accent-secondary);
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Page Header */
.page-header {
    padding: 160px 0 80px;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.9), var(--bg-color));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    animation: rotate 30s linear infinite;
    z-index: -1;
}

.page-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards (Glassmorphism) */
.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-glass:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

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

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: rgba(30, 41, 59, 0.4);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    background: rgba(30, 41, 59, 0.6);
}

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

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--accent-secondary);
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.service-features li svg {
    color: var(--accent-secondary);
    width: 16px;
    height: 16px;
}

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
}

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

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    font-family: var(--font-heading);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--accent-primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.process-step p {
    color: var(--text-secondary);
}

/* Why Choose Us */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.05);
}

.benefit-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content {
    max-width: 600px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-visual {
    position: relative;
}

.visual-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.glow-effect {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
    animation: rotate 20s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

.code-block {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.code-block .keyword {
    color: #c792ea;
}

.code-block .class-name {
    color: #ffcb6b;
}

.code-block .this {
    color: #82aaff;
}

.code-block .string {
    color: #c3e88d;
}

/* About Page Components */
.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.mv-card {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.3), rgba(15, 23, 42, 0.3));
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-primary), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 4px solid var(--accent-primary);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    color: var(--accent-secondary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

/* Tech Ecosystems */
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.ecosystem-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ecosystem-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
}

.ecosystem-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.ecosystem-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.ecosystem-card:hover .ecosystem-icon {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.ecosystem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Tech Pills */
.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.tech-pill {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: default;
}

.tech-pill:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.contact-details svg {
    color: var(--accent-secondary);
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

input:focus,
textarea:focus {
    background: rgba(2, 6, 23, 0.8);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.full-width {
    width: 100%;
}

/* Footer */

/* Mobile / Responsive fixes */
/* Enables the hamburger toggle, mobile nav overlay and responsive hero */
@media (max-width: 968px) {
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        max-width: 85%;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 4rem 1.25rem;
        z-index: 1005;
        transition: right 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.75rem 0.5rem;
        color: var(--text-secondary);
        font-size: 1rem;
    }

    .nav-links a.btn-primary {
        margin-left: 0;
        width: 100%;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.28s ease;
        z-index: 1000;
    }

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

    body.no-scroll {
        overflow: hidden;
    }

    /* Make logo behave for mobile (avoid absolute overlap) */
    .logo {
        position: static;
        transform: none;
        left: auto;
        margin: 0;
    }

    .nav-container {
        padding: 0 1rem;
        align-items: center;
    }

    /* Hero adjustments */
    .hero {
        min-height: 560px;
        padding-top: 72px;
    }

    .hero-title {
        font-size: 2.8rem;
        text-align: center;
        margin: 0 auto 1rem;
        max-width: 100%;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .nav-links {
        width: 100%;
        max-width: 100%;
    }

    .hero {
        min-height: 460px;
        padding-top: 70px;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.08;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 320px;
        margin: 0.75rem auto 1.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }

    .logo img {
        height: 36px;
    }

    .mobile-toggle .bar {
        width: 22px;
    }
}
.footer {
    background: #020617;
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--accent-secondary);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-secondary);
    padding-left: 5px;
}

.footer-contact li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    border: 1px solid transparent;
}

.social-links a:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-desc {
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
    }
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    animation-delay: 4s;
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Base Reveal Class */
.reveal,
.reveal-left,
.reveal-right,
.reveal-zoom,
.reveal-rotate,
.reveal-blur {
    opacity: 0;
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Default Reveal (Up) */
.reveal {
    transform: translateY(40px);
}

/* Reveal Variants */
.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-zoom {
    transform: scale(0.8);
}

.reveal-rotate {
    transform: rotate(-15deg) scale(0.9);
}

.reveal-blur {
    filter: blur(10px);
    transform: scale(1.1);
}

/* Active States */
.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-zoom.active,
.reveal-rotate.active,
.reveal-blur.active {
    opacity: 1;
    transform: translate(0) scale(1) rotate(0);
    filter: blur(0);
}

/* Story Section */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.team-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.9), transparent);
    transform: translateY(0);
    opacity: 1;
    transition: all 0.3s ease;
}

.team-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-info span {
    color: var(--accent-secondary);
    font-size: 0.9rem;
}

/* Pulsing Dot Animation */
.pulsing-dot {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loader-logo img {
    width: 80px;
    height: auto;
    animation: pulse-logo 2s infinite ease-in-out;
}

@keyframes pulse-logo {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    animation: load-progress 2s ease-in-out forwards;
    box-shadow: 0 0 10px var(--accent-secondary);
}

@keyframes load-progress {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* Value Cards (Industries & Core Values) - Redesigned */
.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.value-card {
    flex: 1 1 220px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
    padding: 2rem 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Hover State - Lift & Glow */
.value-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(59, 130, 246, 0.1) inset;
    /* Inner glow */
}

/* Animated Gradient Border/Background Effect */
.value-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

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

/* Icon Styling - Floating Orb */
.value-card .icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* Circle */
    margin-bottom: 1.5rem;
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.2), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Icon Hover - Pulse & Glow */
.value-card:hover .icon-box {
    background: radial-gradient(circle at 30% 30%, rgba(6, 182, 212, 0.3), rgba(15, 23, 42, 0.9));
    border-color: var(--accent-secondary);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.4),
        0 0 60px rgba(6, 182, 212, 0.2);
    /* Stronger glow */
}

.value-card .icon-box svg {
    width: 48px;
    height: 48px;
    transition: var(--transition);
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5));
}

.value-card:hover .icon-box svg {
    color: white;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.8));
    transform: scale(1.1);
}

/* Typography */
.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.value-card p {
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Decorative Corner Accent */
.value-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, rgba(59, 130, 246, 0.1) 50%);
    border-radius: 0 24px 0 100%;
    transition: all 0.3s ease;
}

.value-card:hover::after {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent 50%, rgba(6, 182, 212, 0.2) 50%);
}

/* Technologies Page - Background Carousel */
.technologies {
    position: relative;
    overflow: hidden;
    /* Ensure content stays on top */
    z-index: 1;
}

.tech-bg-carousel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg) scale(1.2);
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6rem;
    opacity: 0.07;
    pointer-events: none;
    user-select: none;
}

.tech-track-row {
    display: flex;
    gap: 6rem;
    width: max-content;
    animation: scrollTech 60s linear infinite;
}

.tech-track-row.reverse {
    animation-direction: reverse;
    margin-left: -200px;
    /* Offset to stagger */
}

.tech-track-row i {
    font-size: 5rem;
    color: var(--text-primary);
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

@keyframes scrollTech {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Ensure the container content is above the background */
.technologies .container {
    position: relative;
    z-index: 2;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: none;
}

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

.back-to-top:hover {
    background: var(--accent-secondary);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 968px) {
    .mobile-toggle {
        display: flex;
    }

    /* Order nav items so hamburger sits at the right on mobile */
    .nav-container .logo {
        order: 0;
        margin: 0 1rem;
        position: static;
        left: auto;
        transform: none;
    }

    .nav-container .mobile-toggle {
        order: 1;
    }

    .nav-container .header-social {
        display: none;
    }

    /* Hide header socials on mobile to prevent clutter */
    .nav-container .nav-links {
        order: 2;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1005;
        /* ensure menu sits above the overlay */
    }

    .nav-links.active {
        right: 0;
    }

    /* Overlay used to capture outside clicks and dim the page */
    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1050;
        /* below navbar (1100) but above page content */
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Prevent background scroll when mobile nav is open */
    body.no-scroll {
        overflow: hidden;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-links .btn-primary {
        margin-top: 1rem;
        width: auto;
        min-width: 200px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    /* Lower hero content so CTAs are visible and thumb-friendly */
    .hero {
        align-items: flex-start;
        padding-top: 140px;
        /* increased to move content lower on mobile */
    }

    .hero-content {
        transform: translateY(25vh);
    }

    /* Hide heavy hero banner image on small screens and show lightweight animation */
    .hero-banner-img {
        display: none;
    }

    .hero-mobile-animation {
        position: absolute;
        top: 18vh;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
        max-width: 700px;
        height: 160px;
        pointer-events: none;
        z-index: 0;
        display: block;
        overflow: visible;
    }

    .hero-mobile-animation::before,
    .hero-mobile-animation::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        filter: blur(14px);
        opacity: 0.9;
    }

    .hero-mobile-animation::before {
        width: 120px;
        height: 120px;
        left: 8%;
        top: 20px;
        background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.65), rgba(59, 130, 246, 0.1));
        animation: float 6s ease-in-out infinite;
    }

    .hero-mobile-animation::after {
        width: 84px;
        height: 84px;
        right: 8%;
        top: 40px;
        background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.6), rgba(124, 58, 237, 0.08));
        animation: float 5.5s ease-in-out infinite;
    }

    /* Make both hero CTAs full-width and identical on mobile */
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: fit-content;
        margin-left: 0;
        min-width: 0;
        display: block;
        box-sizing: border-box;
        padding: 1rem 1.5rem;
        /* ensure same padding */
        min-height: 56px;
        /* consistent touch target */
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-wrapper,
    .about-grid,
    .mission-vision {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

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

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
        right: auto;
    }

    .services-grid,
    .benefits-grid,
    .process-steps,
    .story-grid,
    .team-grid,
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Background Parallax Layers (low-cost, prefers-reduced-motion aware) */
.bg-parallax {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    mix-blend-mode: normal;
}

.bg-parallax .bg-layer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    width: 140%;
    height: 140%;
    will-change: transform, opacity;
    pointer-events: none;
    opacity: 1;
    filter: blur(36px);
}

.bg-parallax.home .bg-layer.layer1 {
    /* was lower opacity / more blur */
    opacity: 1;
    filter: blur(8px);
}
.bg-parallax.home .bg-layer.layer2 {
    opacity: 1;
    filter: blur(8px);
}
.bg-parallax.home .bg-layer.layer3 {
    opacity: 1;
    filter: blur(8px);
}
.bg-parallax.home .bg-layer.layer4 {
    opacity: 1;
    filter: blur(8px);
}

/* Keep layers out of flow above base backgrounds but below content */
.hero, .page-header, .section, .container, .hero-content {
    position: relative;
    z-index: 1;
}

/* Hide on small screens to save CPU & battery */
@media (max-width: 768px) {
    .bg-parallax { display: none; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .bg-parallax { display: none !important; }
}