/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --color-bg-deep: #020617;
    --color-bg-dark: #0a0f1a;
    --color-bg-card: #0f172a;
    --color-accent: #06fdd8;
    --color-accent-purple: #a855f7;
    --color-accent-blue: #3b82f6;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg-deep);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================================
   2. UTILITIES & ANIMATIONS
   ========================================= */
/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--color-bg-card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-purple), var(--color-accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
}

/* Container Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Form Utilities */
.full-width {
    grid-column: 1 / -1;
}

.form-input,
.form-textarea {
    width: 100%;
}

/* =========================================
   3. BACKGROUND ELEMENTS
   ========================================= */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 80%, rgba(6, 253, 216, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.03;
    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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 253, 216, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* =========================================
   4. NAVIGATION
   ========================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 2rem;
    backdrop-filter: blur(20px);
    background: rgba(2, 6, 23, 0.85);
    /* Slightly darker for better contrast */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    z-index: 101;
}

/* Logo Image Styling */
.logo img {
    height: 60px;
    /* Reduced from 85px for better proportion */
    background: white;
    padding: 4px;
    border-radius: 8px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* Desktop Navigation Links */
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 99999;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg-deep);
    z-index: 99998;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
}

.mobile-nav-overlay.active {
    transform: translateX(0);
}

.mobile-nav-overlay a {
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
}

.mobile-nav-overlay a.active {
    color: var(--color-accent);
}

/* Hamburger Animation State */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =========================================
   5. PAGE HEADERS & SECTIONS
   ========================================= */
.page-header {
    padding: 160px 2rem 80px;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.page-header p {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* =========================================
   6. BUTTONS
   ========================================= */
.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), #00d4aa);
    color: var(--color-bg-deep);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(6, 253, 216, 0.3);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 253, 216, 0.5);
}

/* =========================================
   7. CASE STUDY GRID (Shared)
   ========================================= */
.case-grid {
    padding: 0 2rem 100px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 4rem;
}

.case-study-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: transform 0.3s ease;
}

.case-study-item:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 253, 216, 0.2);
}

.case-image,
.case-image-link {
    display: block;
    position: relative;
    min-height: 400px;
    background-color: #0f172a;
    overflow: hidden;
}

.case-img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
}

.case-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-tag,
.tag {
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.case-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.tag {
    background: rgba(6, 253, 216, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.case-title,
.case-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.case-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat h4,
.stat .value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-accent);
    display: block;
    font-weight: 700;
}

.stat span,
.stat .label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.case-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.case-link:hover {
    color: var(--color-accent);
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    padding: 60px 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--color-text-muted);
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    justify-content: center;
    align-items: center;
}

.social-links a {
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    color: var(--color-accent);
    background: rgba(6, 253, 216, 0.1);
    border-color: rgba(6, 253, 216, 0.3);
    transform: translateY(-2px);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer .logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--color-accent-purple);
    text-decoration: none;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-accent);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* =========================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 900px) {
    .case-study-item {
        grid-template-columns: 1fr;
    }

    .case-image {
        min-height: 250px;
        order: -1;
        /* Ensure image is always on top on mobile */
    }

    .logo img {
        height: 45px;
        /* Mobile safe logo size */
    }

    .logo span {
        font-size: 1.2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {

    /* Hide Desktop Nav */
    .nav-links {
        display: none;
    }

    /* Show Hamburger */
    .hamburger {
        display: flex;
    }

    .page-header {
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .service-row {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .service-row.reverse {
        direction: ltr !important;
    }

    /* Stats grid */
    .stats .container {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .hero {
        padding-top: 140px;
    }
}

@media (max-width: 600px) {
    .stats .container {
        grid-template-columns: 1fr;
    }

    .case-content {
        padding: 2rem 1.5rem;
    }

    .logo span {
        display: none;
        /* Hide text if screen is very small, or keep it small */
    }
}

/* =========================================
   10. RESTORED PAGE STYLES (HOME)
   ========================================= */

/* Hero Styles */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 2rem 60px;
    background: radial-gradient(circle at 10% 20%, rgba(6, 253, 216, 0.05), transparent 40%);
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    text-align: center;
    margin: 0 auto;
}

.hero-badge span {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 253, 216, 0.2);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-secondary {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Floating Elements (Home) */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Stats Section */
.stats {
    padding: 4rem 2rem;
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Mission Section */
.mission {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.mission .container {
    text-align: center;
}

.mission-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    text-align: center;
}

.section-label {
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.section-text {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 4rem;
}

.mission-cards {
    display: grid;
    gap: 2rem;
}

.mission-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.mission-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
}

.mission-card-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 253, 216, 0.1);
    border-radius: 12px;
}

.mission-card-icon svg {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.mission-card h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

/* Mission Visuals (Rings) */
.visual-container {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    z-index: 1;
    pointer-events: none;
}

.visual-ring {
    position: absolute;
    border: 1px solid rgba(6, 253, 216, 0.1);
    border-radius: 50%;
    inset: 0;
    animation: rotate 20s linear infinite;
}

.visual-ring:nth-child(2) {
    inset: 50px;
    animation-duration: 25s;
    border-color: rgba(168, 85, 247, 0.1);
}

.visual-ring:nth-child(3) {
    inset: 100px;
    animation-duration: 30s;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Services Home Grid */
.services {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--color-bg-deep), var(--color-bg-dark));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: rgba(30, 41, 59, 0.4);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.6);
    border-color: var(--color-accent-purple);
}

.service-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    color: var(--color-accent-purple);
    flex-shrink: 0;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-muted);
}

/* Why Choose Us */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.why-us-card {
    background: rgba(15, 23, 42, 0.6);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.why-us-card:hover {
    transform: translateY(-10px);
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(6, 253, 216, 0.2);
}

.why-us-icon {
    width: 60px;
    height: 60px;
    background: rgba(6, 253, 216, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.why-us-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.why-us-card p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Testimonials (Legacy - kept if needed for other pages, but currently unused on Home) */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: var(--color-bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-bg-deep);
}

.author-info h5 {
    color: white;
    font-family: var(--font-display);
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* CTA Section */
.cta {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(6, 253, 216, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 32px;
    padding: 6rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 3rem;
}

/* =========================================
   11. RESTORED PAGE STYLES (CONTACT & SERVICES)
   ========================================= */

/* Contact Page Layout */
.contact-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 100px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    background: rgba(6, 253, 216, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.info-content h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-family: var(--font-display);
}

.info-content p,
.info-content a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
    text-decoration: none;
}

.info-content a:hover {
    color: var(--color-accent);
}

.map-container {
    width: 100%;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) contrast(1.2);
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-label {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input,
.form-textarea {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(2, 6, 23, 0.8);
    box-shadow: 0 0 0 4px rgba(6, 253, 216, 0.1);
}

.form-textarea {
    height: 150px;
    resize: vertical;
}

.btn-submit {
    background: var(--color-accent);
    color: var(--color-bg-deep);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: white;
    transform: translateY(-2px);
}

/* Services Page Specifics */
.services-detail {
    padding-bottom: 100px;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.service-visual {
    height: 400px;
    border-radius: 24px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.service-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #e2e8f0;
}

.feature-icon {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
}

/* Responsive Adjustments for restored styles */
@media (max-width: 900px) {
    .stats .container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .service-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-row.reverse .service-visual {
        order: -1;
    }

    .visual-container {
        display: none;
        /* Hide rings on mobile */
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding-top: 140px;
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    /* Mission Cards Mobile Fix */
    .mission-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .mission-card-icon {
        width: 60px;
        height: 60px;
    }

    .mission-card-icon svg {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        max-width: 32px;
        max-height: 32px;
    }

    /* Section Titles */
    .section-title {
        font-size: 2rem;
    }

    /* Stats Mobile */
    .stats .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Container padding */
    .container {
        padding: 0 1rem;
    }

    /* Page Header */
    .page-header {
        padding: 120px 1rem 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* CTA */
    .cta-box {
        padding: 3rem 1.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    /* Services Page */
    .service-visual {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: none;
    }

    .logo span {
        display: none;
    }

    .logo img {
        height: 40px;
    }

    /* Reduce padding on smaller screens */
    .mission,
    .services,
    .testimonials,
    .cta {
        padding: 60px 0;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
}

/* =========================================
   12. CASE STUDY DETAIL PAGES
   ========================================= */
.case-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 4rem;
}

.case-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4);
}

.case-hero .hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    z-index: 2;
    margin-top: 5rem;
    /* Offset for fixed nav */
}

.hero-tag {
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.case-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 100px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    margin-top: -6rem;
    /* Overlap with hero */
    position: relative;
    z-index: 10;
}

.stats-grid .stat-item {
    background: rgba(15, 23, 42, 0.9);
    /* More opaque for contrast */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stats-grid .stat-item h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.stats-grid .stat-item p {
    color: white;
    font-weight: 500;
}

.article-section {
    margin-bottom: 4rem;
}

.article-section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.article-section p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}


/* =========================================
   13. CONTACT PAGE
   ========================================= */

.contact-layout {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
    /* Match .container padding */
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
    /* Add spacing before footer */
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.info-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    min-width: 30px;
    /* Prevent shrink */
}

.info-content h3 {
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-size: 1.25rem;
    /* Ensure readable size */
}

.info-content p,
.info-content a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
}

.info-content a:hover {
    color: var(--color-accent);
}

.map-container {
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-wrapper {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.95rem;
}

/* Override existing utilities if too generic */
.contact-layout .form-input,
.contact-layout .form-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-layout .form-textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-layout .form-input:focus,
.contact-layout .form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(6, 253, 216, 0.1);
}

.submit-btn-wrapper {
    margin-top: 1rem;
}

/* Mobile Responsiveness for Contact */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        margin-top: 2rem;
        /* No overlap on mobile */
        gap: 1rem;
    }

    .case-hero {
        height: 50vh;
        margin-bottom: 2rem;
    }

    .case-hero .hero-content {
        margin-top: 3rem;
    }

    .stats-grid .stat-item {
        padding: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .stats-grid .stat-item h3 {
        font-size: 2rem;
        margin-bottom: 0;
    }
}

/* --- DynaBot Widget --- */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10001;
    font-family: var(--font-body);
}

.chatbot-toggle {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-purple));
    color: var(--color-bg-deep);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(6, 253, 216, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(6, 253, 216, 0.6);
}

.chatbot-toggle svg {
    width: 28px;
    height: 28px;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--color-accent);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.chatbot-container.active .chatbot-window {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

.chatbot-header {
    background: linear-gradient(90deg, rgba(6, 253, 216, 0.15), rgba(168, 85, 247, 0.15));
    padding: 16px;
    border-bottom: 1px solid rgba(6, 253, 216, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-title {
    color: var(--color-text);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bot-message {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-message {
    background: linear-gradient(135deg, rgba(6, 253, 216, 0.2), rgba(6, 253, 216, 0.1));
    color: var(--color-accent);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    border: 1px solid rgba(6, 253, 216, 0.3);
}

.chatbot-input-area {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    background: rgba(2, 6, 23, 0.8);
}

.chatbot-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 10px 18px;
    color: var(--color-text);
    outline: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.chatbot-input-area input:focus {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
}

.chatbot-input-area button {
    background: var(--color-accent);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--color-bg-deep);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}

.chatbot-input-area button:hover {
    transform: scale(1.05);
    background: white;
}

/* Typing Indicator Animation */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    border-bottom-left-radius: 2px;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--color-text-muted);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* =========================================
   MOBILE FIXES (Added 2026-01-10)
   ========================================= */

/* Issue 1 & 2: Mobile grid stacking and hamburger visibility */
@media (max-width: 768px) {

    /* Stack service cards vertically */
    .services-grid {
        grid-template-columns: 1fr !important;
    }

    /* Stack why-us cards vertically */
    .why-us-grid {
        grid-template-columns: 1fr !important;
    }

    /* Stack testimonial cards */
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }

    /* Ensure hamburger is visible and correctly sized */
    .hamburger {
        display: flex !important;
        width: 30px;
        height: 24px;
    }

    /* Hide desktop nav on mobile */
    .nav-links {
        display: none !important;
    }

    /* Footer centering */
    footer .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer .logo {
        justify-content: center;
        margin-bottom: 1rem;
    }

    /* Header logo size consistency */
    .logo img,
    .logo-img {
        height: 50px !important;
        width: auto !important;
        max-height: 50px;
    }

    /* Case study images - ensure visibility with proper height */
    .case-image,
    .case-hero-img {
        min-height: 250px !important;
        height: 250px !important;
        display: block !important;
        opacity: 1 !important;
        background-size: cover !important;
        background-position: center !important;
    }

    /* Ensure case study grid shows images */
    .case-study-item {
        grid-template-columns: 1fr !important;
    }

    /* Page header centering */
    .page-header {
        text-align: center;
    }

    .page-header .container {
        text-align: center;
    }
}

/* Smaller phones */
@media (max-width: 480px) {

    .logo img,
    .logo-img {
        height: 45px !important;
    }

    .logo span {
        font-size: 1rem;
    }

    /* Page headers */
    .page-header h1,
    .section-title {
        font-size: 1.8rem;
    }

    /* Case images on small screens */
    .case-image {
        min-height: 200px !important;
        height: 200px !important;
    }
}

/* =========================================
   PAGE ALIGNMENT STANDARDIZATION
   ========================================= */
/* Apply same centering to all page headers like homepage */
.page-header {
    text-align: center;
}

.page-header p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Services page alignment */
.service-row {
    text-align: center;
}

.service-content {
    text-align: left;
}

/* Case study detail pages */
.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stats-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

/* =========================================
   GLOBAL MOBILE/TABLET OVERFLOW FIX (All Pages)
   ========================================= */
@media (max-width: 1024px) {

    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .container {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Contact page layout */
    .contact-layout {
        flex-direction: column !important;
        padding: 1rem !important;
    }

    .contact-info,
    .contact-form {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Ensure all grids stack on mobile */
    .story-stats,
    .values-grid,
    .info-card {
        grid-template-columns: 1fr !important;
    }

    /* Page header text size */
    .page-header h1 {
        font-size: 1.8rem !important;
        padding: 0 1rem !important;
    }

    .page-header p {
        padding: 0 1rem !important;
    }

    /* Nav spacing */
    nav {
        padding: 0.5rem 1rem !important;
    }

    nav .container {
        padding: 0 !important;
    }

    /* Contact page info cards */
    .info-card {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 1rem !important;
        box-sizing: border-box !important;
    }

    .map-container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .map-container iframe {
        max-width: 100% !important;
    }
}

/* =========================================
   GLOBAL OVERFLOW PREVENTION (All Devices)
   ========================================= */
html,
body {
    overflow-x: hidden;
}

.info-card {
    max-width: 100%;
    box-sizing: border-box;
}

.map-container {
    max-width: 100%;
    overflow: hidden;
}

.map-container iframe {
    max-width: 100%;
}

.contact-layout {
    max-width: 100%;
    overflow-x: hidden;
}

.contact-info {
    max-width: 100%;
}