:root {
    --bg-dark: #020408;
    /* Deep Sci-Fi Black/Blue */
    --bg-card: #080C16;
    /* Dark Tech Blue */
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --accent-blue: #2563EB;
    /* Strong Blue */
    --accent-cyan: #06B6D4;
    /* Teal/Cyan */
    --accent-electric: #00F0FF;
    /* Neon Cyan */
    --accent-glow: #3B82F6;
    /* Glow Blue */

    /* Re-mapping old variables to new scheme to maintain compatibility */
    --accent-purple: #3B82F6;
    /* Replacing Purple with Blue */
    --accent-pink: #00F0FF;
    /* Replacing Pink with Neon Cyan */

    --glass-bg: rgba(8, 12, 22, 0.7);
    --glass-border: rgba(0, 240, 255, 0.2);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    /* Global subtle glow for headings */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Keyframes */
@keyframes ambientFloat {
    0% {
        transform: translateY(0px) translateX(0px);
    }

    33% {
        transform: translateY(-20px) translateX(10px);
    }

    66% {
        transform: translateY(10px) translateX(-10px);
    }

    100% {
        transform: translateY(0px) translateX(0px);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(0, 240, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.6), 0 0 10px rgba(37, 99, 235, 0.5);
    }

    100% {
        box-shadow: 0 0 5px rgba(0, 240, 255, 0.2);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Core Components */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.8;
}

.ambient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08), transparent 60%);
    animation: ambientFloat 15s infinite ease-in-out;
    z-index: -1;
    pointer-events: none;
}

/* Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan), var(--accent-electric));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientMove 5s ease infinite;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan), var(--accent-electric));
    background-size: 200% auto;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-secondary:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--accent-cyan);
    color: var(--text-main);
}

.glow-effect {
    position: relative;
    overflow: hidden;
    animation: pulseGlow 3s infinite;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(2, 4, 8, 0.8);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--accent-cyan);
    margin-top: 4px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    /* Ensure structure */
}

/* Individual letter animation target */
.logo-tagline span {
    opacity: 0;
    display: inline-block;
    animation: letterGlow 2s ease-in-out forwards infinite;
}

@keyframes letterGlow {

    0%,
    100% {
        opacity: 0.3;
        text-shadow: none;
        color: var(--accent-cyan);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 8px var(--accent-electric), 0 0 15px var(--accent-blue);
        color: #fff;
    }
}

.dot {
    color: var(--accent-electric);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-main);
    text-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
    /* Glowing effect */
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-electric);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.8), 0 0 30px rgba(0, 240, 255, 0.4);
    /* Intense glow on hover */
}

.nav-links .btn {
    color: white;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: rgba(10, 15, 31, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.03);
    padding-left: 1.75rem;
    /* Slight shift */
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: -1;
    mix-blend-mode: luminosity;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

/* Override default container if needed, but above rule handles it */

.hero-visual {
    display: none;
}

.floating-hologram {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.4));
    animation: floatHologram 6s ease-in-out infinite;
    opacity: 0.9;
}

@keyframes floatHologram {

    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.4));
    }

    50% {
        transform: translateY(-20px) scale(1.02);
        filter: drop-shadow(0 0 50px rgba(6, 182, 212, 0.6));
    }
}

/* Mobile Responsive Fix for Hero */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-visual {
        order: -1;
        /* Image top on mobile? Or bottom? Let's keep bottom or top. Top is nice visual. */
        margin-bottom: 2rem;
    }

    .floating-hologram {
        max-width: 300px;
    }
}

.sub-headline {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.hero h1 {
    color: var(--text-main);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-brand-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 800;
    /* Bolder */
    font-size: 3rem;
    /* Larger */
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #fff, var(--accent-electric), var(--accent-cyan), #fff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    padding: 0;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.4));
    /* Outer glow */
    animation: gradientFlow 5s ease infinite;
}

/* New animation for gradient text flow */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-quote {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.25rem;
    /* Slightly larger */
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    /* Removed width/overflow for fade animation */
    /* Removed border-right */
    animation: neonCycle 4s infinite linear;
    /* Replaced fadePulse with cleaner cycle */
}

@keyframes neonCycle {

    0%,
    100% {
        color: #fff;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }

    33% {
        color: var(--accent-cyan);
        text-shadow: 0 0 15px var(--accent-cyan), 0 0 25px var(--accent-blue);
    }

    66% {
        color: var(--accent-electric);
        text-shadow: 0 0 15px var(--accent-electric), 0 0 25px var(--accent-cyan);
    }
}

/* --- Varied Text Effects --- */

/* 1. Shimmer Effect */
.effect-shimmer {
    background: linear-gradient(to right, #ffffff 0%, #3b82f6 40%, #ffffff 50%, #3b82f6 60%, #ffffff 100%);
    background-size: 200% auto;
    color: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* 2. Glitch Effect */
.effect-glitch {
    position: relative;
    color: #fff;
    animation: glitch-skew 4s infinite linear alternate-reverse;
}

.effect-glitch::before,
.effect-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.effect-glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.effect-glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    20% {
        transform: skew(-1deg);
    }

    40% {
        transform: skew(1deg);
    }

    60% {
        transform: skew(0deg);
    }

    80% {
        transform: skew(-0.5deg);
    }

    100% {
        transform: skew(0.5deg);
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(12px, 9999px, 86px, 0);
    }

    100% {
        clip: rect(45px, 9999px, 12px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    100% {
        clip: rect(10px, 9999px, 55px, 0);
    }
}

/* 3. Deep Pulse Effect */
.effect-pulse {
    color: #fff;
    animation: deep-pulse 3s infinite ease-in-out;
}

@keyframes deep-pulse {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.4), 0 0 20px rgba(59, 130, 246, 0.2);
    }

    50% {
        text-shadow: 0 0 20px rgba(6, 182, 212, 0.8), 0 0 40px rgba(6, 182, 212, 0.4);
    }
}

/* 4. Liquid Flow Effect */
.effect-liquid {
    background: linear-gradient(45deg, #fff, #3b82f6, #06b6d4, #d946ef, #fff);
    background-size: 400% 400%;
    color: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: liquid-flow 6s ease infinite;
}

@keyframes liquid-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 5. Minimal Typewriter Effect (Cursor removed) */
.effect-typewriter {
    /* display: inline-block; Removed to allow centering */
    /* border-right: 4px solid var(--accent-cyan); Removed cursor */
    /* padding-right: 5px; */
    /* animation: blink-cursor 0.75s step-end infinite; */
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

@keyframes blink-cursor {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--accent-cyan);
    }
}

/* 6. Spotlight / Reveal Effect */
.effect-spotlight {
    position: relative;
    display: inline-block;
    /* Required for width calculation */
    overflow: hidden;
}

.effect-spotlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    animation: spotlight-sweep 5s infinite;
}

@keyframes spotlight-sweep {
    0% {
        left: -100%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    60% {
        left: 200%;
        opacity: 0;
    }

    100% {
        left: 200%;
        opacity: 0;
    }
}

@keyframes fadePulse {
    0% {
        opacity: 0.8;
        transform: scale(0.99);
    }

    /* Improved minimums */
    100% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 10px var(--accent-electric);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Clients */
.clients {
    padding: 2rem 0;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(8, 12, 22, 0.5);
}

.section-label {
    text-align: center;
    color: var(--accent-cyan);
    /* Brighter Cyan */
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
    /* Cyan Glow */
    font-weight: 600;
}

.logo-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.client-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.client-logo:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Services */
.services {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #fff;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.4), 0 0 5px rgba(255, 255, 255, 0.5);
    /* Stronger glow for section titles */
}

/* Services Section */
.services {
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure full height in grid */
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15), 0 0 20px rgba(6, 182, 212, 0.1);
    border-color: var(--accent-cyan);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.service-card .icon-wrapper img {
    transition: transform 0.5s ease;
}

.service-card:hover .icon-wrapper img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px var(--accent-blue));
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    /* Ensure space before button */
    flex-grow: 1;
    /* Push button to bottom */
}

.service-card .btn {
    align-self: flex-start;
    /* Or center/stretch depending on preference, align-self prevents full width stretch if unnecessary */
    margin-top: auto;
}

/* Featured Visual */
.featured-visual {
    padding: 4rem 0;
    position: relative;
}

.full-width-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 500px;
}

.full-width-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    /* REVERTED */
    padding: 2rem;
    max-width: 400px;
    /* REVERTED: removed transform, width, text-align */
}

.trigger-modal {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trigger-modal:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
    border-color: var(--accent-electric);
}

/* Impact */
.impact {
    padding: 6rem 0;
}

.impact-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4px 12px;
    border-radius: 20px;
}

/* About */
.about {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #050810 100%);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff, #a0aec0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.about-image img {
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    /* REVERTED: removed margin 0 auto */
}

/* Tech Stack */
.tech-stack {
    padding: 4rem 0;
    text-align: center;
}

.tech-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
}

.tech-logos span {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* Architecture */
.architecture {
    flex-direction: column;
    gap: 1rem;
}

.flow-connector {
    transform: rotate(90deg);
}

.flow-step {
    width: 100%;
    max-width: 300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.step-number {
    margin-bottom: 0;
}

.architecture-visual {
    margin: 3rem auto 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    max-width: 70%;
    /* Reduced size */
}

/* Contact */
.contact {
    padding: 6rem 0;
}

/* Contact Container */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

/* Ensure form wrapper is centered */
.contact-form-wrapper {
    padding: 2rem;
    /* Reduced from 3rem */
    width: 100%;
}

.contact-form-wrapper h2 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    /* Slightly smaller heading */
}

.contact-form-wrapper p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    /* Reduced */
}

.form-group {
    margin-bottom: 1rem;
    /* Reduced from 1.5rem */
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
}

.form-group select {
    background: rgba(10, 15, 30, 0.9);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    cursor: pointer;
    font-weight: 500;
}

.form-group select option {
    background: #020408;
    color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.full-width {
    width: 100%;
}

.contact-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-visual img {
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    /* REVERTED: removed margin 0 auto */
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background: #020408;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.footer-social a:hover {
    background: var(--accent-blue);
    color: var(--bg-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .nav-links {
        display: none;
        /* Mobile menu implementation would go here */
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: var(--glass-bg);
    margin: 10% auto;
    padding: 2.5rem;
    border: 1px solid var(--accent-cyan);
    width: 90%;
    max-width: 700px;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: var(--text-muted);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 20px;
}

.close-modal:hover {
    color: var(--accent-electric);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.modal-icon img {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 0 10px var(--accent-blue));
}

.modal-header h2 {
    font-size: 2rem;
    margin: 0;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Industries We Serve */
.industries {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.client-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    /* Allows wrapping on very small screens, but stays single line on desktop */
}

.industry-tile {
    /* Fixed width to ensure uniformity in a single line */
    width: 200px;
    padding: 2rem 1rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(8, 12, 22, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Ensure border is visible */
    border-radius: 16px;
}

.industry-tile:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.15);
}

.industry-tile img {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
    transition: transform 0.4s ease;
}

.industry-tile:hover img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px var(--accent-electric));
}

.industry-tile h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.industry-tile p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Tech Stack Grid */
.tech-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.tech-tile {
    width: 140px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(8, 12, 22, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.tech-tile:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

.tech-tile img {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.3));
}

.tech-tile span {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    /* pure white for max brightness */
    text-shadow: 0 0 10px #06b6d4, 0 0 20px #d946ef;
    /* Cyan + Purple Neon Glow */
    transition: all 0.3s ease;
}

.tech-tile:hover span {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-electric);
}

.icon-fallback {
    width: 50px;
    height: 50px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.3));
}