/* 
    Y2Code Premium Theme - Enterprise AI & Digital Engineering Edition
    Focus: Futuristic dark theme, cyber-glow accents, rich typography, glassmorphism, and responsive micro-interactions.
*/

:root {
    --bg-dark: #f8fafc; /* Beautiful soft off-white background */
    --bg-slate: #ffffff; /* Pure white background */
    --bg-card: #ffffff; /* Pure white card background */
    --primary: #3b82f6; /* Modern tech blue */
    --primary-light: #1e40af; /* Accessible dark blue for tags/subtitles */
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --accent: #06b6d4; /* Electric cyan */
    --accent-glow: rgba(6, 182, 212, 0.08);
    --text-light: #0f172a; /* Deep navy near-black headers (WCAG AAA contrast) */
    --text-muted: #334155; /* Slate gray highly readable body text */
    --border: #e2e8f0; /* Soft gray border for clean card division */
    --border-hover: rgba(6, 182, 212, 0.35);
    --glow-indigo: rgba(59, 130, 246, 0.05);
    --glow-teal: rgba(6, 182, 212, 0.05);
}

/* Reset & Smooth Scroll */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-muted); /* Set body text to readable slate gray instead of light */
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
}

/* Premium Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-light);
}

/* Reusable Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Animations */
@keyframes float-slow {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.45; }
}

@keyframes spin-slow {
    to { transform: rotate(360deg); }
}

.animate-float {
    animation: float-slow 6s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 25s linear infinite;
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stunning Interactive Glow Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.glow-orb-primary {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    width: 600px;
    height: 600px;
}

.glow-orb-accent {
    background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 70%);
    width: 500px;
    height: 500px;
}

/* Modern Sticky Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1.25rem 0;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    padding: 0.85rem 0;
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

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

/* Light / Dark Hero Header Adjustments */
/* dark-hero pages (home, careers): transparent header → white nav links */
header.header-dark-hero .nav-links a {
    color: rgba(255, 255, 255, 0.85);
}
header.header-dark-hero .nav-links a:hover {
    color: #ffffff;
}

/* dark-hero pages when scrolled: white/light header → dark nav links */
header.header-dark-hero.scrolled .nav-links a {
    color: var(--text-muted);
}
header.header-dark-hero.scrolled .nav-links a:hover {
    color: var(--text-light);
}

/* light-hero pages: always dark nav links */
header.header-light-hero .nav-links a {
    color: var(--text-muted);
}
header.header-light-hero .nav-links a:hover {
    color: var(--text-light);
}

/* dark-hero: btn-secondary-outline in nav should look glassmorphic */
header.header-dark-hero .nav-links .btn-secondary-outline {
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}
header.header-dark-hero .nav-links .btn-secondary-outline:hover {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}
header.header-dark-hero.scrolled .nav-links .btn-secondary-outline,
header.header-light-hero .nav-links .btn-secondary-outline,
header.header-light-hero.scrolled .nav-links .btn-secondary-outline {
    color: #0f172a !important;
    border-color: #0f172a !important;
    background: transparent !important;
}
header.header-dark-hero.scrolled .nav-links .btn-secondary-outline:hover,
header.header-light-hero .nav-links .btn-secondary-outline:hover,
header.header-light-hero.scrolled .nav-links .btn-secondary-outline:hover {
    color: #ffffff !important;
    background: #0f172a !important;
    border-color: #0f172a !important;
    transform: translateY(-1px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 1001;
}

/* White hamburger on dark-hero pages */
header.header-dark-hero .mobile-menu-btn {
    color: rgba(255, 255, 255, 0.9);
}

/* Dark hamburger when scrolled (light bg) */
header.scrolled .mobile-menu-btn {
    color: var(--text-light);
}

@media (max-width: 991px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }
    
    .nav-links.mobile-navigation-active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.5rem;
        color: rgba(255, 255, 255, 0.85) !important;
    }
    
    .nav-links a:hover {
        color: #ffffff !important;
    }
    
    .header-cta {
        display: none !important;
    }
}

/* Section Tags */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.section-header-centered {
    text-align: center;
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Section Headers */
.section-title-premium {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    background: linear-gradient(180deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-attractive {
    background: linear-gradient(135deg, #818cf8 0%, #a855f7 50%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-desc-premium {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #475569; /* Premium legible dark slate-gray */
    max-width: 720px;
    margin: 1.5rem auto 3rem auto;
    text-align: center;
}

/* Buttons System */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem 2.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
}

.btn-primary-animated {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-primary-animated:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary-outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    color: #030712;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-accent:hover {
    background: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8.5rem;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.hero-flex {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats-row {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.hero-stat-item h3 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mockup-container {
    position: relative;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.4) 0%, rgba(17, 24, 39, 0.6) 100%);
    border: 1px solid var(--border);
    padding: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-container:hover {
    border-color: var(--border-hover);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.15);
}

.mockup-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 8px -1px rgba(15, 23, 42, 0.03);
    z-index: 10;
}

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

.glass-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.08), 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}

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

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-light);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.glass-card:hover .service-card-icon {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    transform: scale(1.05);
}

.service-bullets {
    list-style: none;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.service-bullets li i {
    color: var(--accent);
    font-size: 0.8rem;
}

/* Real Project Experience / Why Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
}

.experience-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.exp-stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: all 0.3s ease;
}

.exp-stat-card:hover {
    border-color: var(--border-hover);
    background: rgba(99, 102, 241, 0.03);
}

.exp-stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.exp-stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* Trust stats & numbers section */
.trust {
    padding: 6rem 0;
    background: var(--bg-slate);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Process Timeline Section */
.process-section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    position: relative;
    background-color: var(--bg-dark);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: clamp(2rem, 5vw, 3.5rem);
}

.process-card {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.process-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px -8px rgba(99, 102, 241, 0.15);
}

.process-number-bg {
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(99, 102, 241, 0.1);
    font-family: 'Outfit', sans-serif;
    z-index: 0;
    transition: all 0.5s ease;
    user-select: none;
}

.process-card:hover .process-number-bg {
    -webkit-text-stroke: 1px rgba(99, 102, 241, 0.25);
    transform: scale(1.05) rotate(-5deg);
}

.process-content {
    position: relative;
    z-index: 1;
}

.process-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
}

.process-card:hover .process-icon-box {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

.process-content h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.process-card:hover .process-content h4 {
    color: var(--primary);
}

.process-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.portfolio-image-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-content {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.portfolio-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.portfolio-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.portfolio-tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.tech-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Tech Stack grid section */
.tech-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.tech-tab {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tech-tab:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.02);
}

.tech-tab-icon {
    font-size: 1.75rem;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
}

.tech-tab h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.tech-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
}

.tech-logo-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tech-logo-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-hover);
    transform: scale(1.02);
}

.tech-logo-card i {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.tech-logo-card:hover i {
    color: var(--accent);
}

.tech-logo-card span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Testimonial Section */
.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-light);
}

/* Contact form section */
.contact-section {
    padding: clamp(4rem, 8vw, 6.5rem) 0;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-info-list {
    margin-top: 2.5rem;
    display: grid;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-light);
}

/* Global Premium Input Elements */
.contact-input,
.form-input-style {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: #f1f5f9; /* Soft, highly legible off-white */
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: #0f172a;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.contact-input:focus,
.form-input-style:focus {
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

select.contact-input,
textarea.contact-input {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

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

/* Floating WhatsApp Chat Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #25d366;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-widget:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    font-size: 1.4rem;
}

/* Header CTA specific */
.header-cta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Footer Section */
footer {
    background-color: var(--bg-slate);
    border-top: 1px solid var(--border);
    padding: 6rem 0 3rem;
}

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

.footer-col h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.75rem;
}

.footer-col ul {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.footer-col ul a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--text-light);
}

.footer-social-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    color: var(--text-light);
    border-color: var(--border-hover);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}



/* Mobile Responsiveness Rules */
@media (max-width: 1024px) {
    .hero-flex {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats-row {
        justify-content: center;
    }

    .why-us-grid {
        grid-template-columns: 1fr !important;
        gap: 3.5rem !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 3.5rem !important;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1025px) and (max-width: 1300px) {
    .nav-links {
        gap: 0.8rem !important;
    }
    .nav-links a {
        font-size: 0.85rem !important;
    }
    .header-cta a {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 1024px) {
    header {
        background: rgba(11, 17, 32, 0.95);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
    }

    header.scrolled {
        background: rgba(255, 255, 255, 0.96) !important;
    }

    .nav-links {
        display: none !important; /* Switch off squished horizontal desktop menu layout */
    }

    .header-cta {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .process-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 1.75rem !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Mobile Navigation Hamburger classes */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-navigation-active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 1.5rem;
    right: 1.5rem;
    width: auto;
    background: rgba(11, 17, 32, 0.98); /* Premium Cosmic Slate */
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Hero Multi-Slide Animations and Responsive Slider styles */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.hero-slide.active {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: block !important;
}

/* Individual Content Items Fade Up animations */
.hero-slide .animate-item {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.hero-slide.active .animate-item {
    opacity: 1;
    transform: translateY(0);
}

/* Add custom delays for sequential stagger fade-up */
.hero-slide.active .animate-item[style*="--delay: 1"] { transition-delay: 0.1s; }
.hero-slide.active .animate-item[style*="--delay: 2"] { transition-delay: 0.25s; }
.hero-slide.active .animate-item[style*="--delay: 3"] { transition-delay: 0.4s; }
.hero-slide.active .animate-item[style*="--delay: 4"] { transition-delay: 0.55s; }

/* Mockup transition inside slider */
.hero-slide .hero-visual {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active .hero-visual {
    opacity: 1;
    transform: scale(1);
}

/* Indicator Dots styling */
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.35);
}

.slider-dot.active {
    background: var(--accent);
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
}

/* ==========================================
   PREMIUM LIGHT & CONTRAST SYSTEMS OVERRIDES
   ========================================== */

/* 1. Anchored Dark Contrast Blocks (Hero, CTA, Footer) */
.hero, 
footer, 
#cta,
.cta-section {
    background-color: #0b1120 !important; /* Premium deep navy */
    --text-light: #ffffff !important;
    --text-muted: rgba(255, 255, 255, 0.6) !important;
    --border: rgba(255, 255, 255, 0.1) !important;
    --bg-card: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

.hero h1, .hero h2, .hero h3, .hero h4, .hero h5, .hero h6,
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6,
#cta h1, #cta h2, #cta h3, #cta h4, #cta h5, #cta h6,
.cta-section h1, .cta-section h2, .cta-section h3, .cta-section h4, .cta-section h5, .cta-section h6 {
    color: #ffffff !important;
}

.hero p, footer p, #cta p, .cta-section p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.hero a, footer a, #cta a, .cta-section a {
    color: rgba(255, 255, 255, 0.85) !important;
}

.hero a:hover, footer a:hover, #cta a:hover, .cta-section a:hover {
    color: #ffffff !important;
}

/* 2. Accessible Section Typography & Inputs Overrides */
.hero .section-title-premium,
#cta .section-title-premium,
.cta-section .section-title-premium {
    background: linear-gradient(180deg, #ffffff 0%, #d1d5db 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #ffffff !important;
}

.hero .section-desc-premium,
#cta .section-desc-premium,
.cta-section .section-desc-premium {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* 5. Sticky Navigation Header Enhancements */
header.scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03) !important;
}

header.scrolled .nav-links a {
    color: #334155 !important;
}

header.scrolled .nav-links a:hover {
    color: #0f172a !important;
}

/* "Book Consultation" button — solid black outline when scrolled */
header.scrolled .nav-links .btn-secondary-outline {
    color: #0f172a !important;
    border-color: #0f172a !important;
    background: transparent !important;
}

header.scrolled .nav-links .btn-secondary-outline:hover {
    color: #ffffff !important;
    background: #0f172a !important;
    border-color: #0f172a !important;
}

header.scrolled .mobile-menu-btn {
    color: #0f172a !important;
}


/* 6. Mobile Hambuger navigation drawer */
.mobile-navigation-active {
    background: rgba(15, 23, 42, 0.98) !important; /* Keep mobile drawer highly legible and deep dark */
}

.mobile-navigation-active a {
    color: rgba(255, 255, 255, 0.85) !important;
}

.mobile-navigation-active a:hover {
    color: #ffffff !important;
}

/* 7. Blog listing specific refinements */
.blog-item-card {
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04) !important;
}

.search-input {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

.search-input:focus {
    background: #ffffff !important;
    border-color: var(--accent) !important;
}

.category-count {
    background: #f1f5f9 !important;
    color: #0369a1 !important;
    font-weight: 700;
}

/* 8. Tech Stack Cards & Visual Refinements */
.tech-card-premium {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 8px -1px rgba(15, 23, 42, 0.02) !important;
    backdrop-filter: none !important;
}

.tech-card-premium:hover {
    background: #ffffff !important;
    border-color: var(--border-hover) !important;
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.08), 0 4px 16px -2px rgba(15, 23, 42, 0.04) !important;
}

.tech-card-name {
    color: #0f172a !important; /* Premium deep navy title text */
    font-family: 'Outfit', sans-serif !important;
}

.tech-card-desc {
    color: #334155 !important; /* Slate-gray description text */
}

.tech-card-cta {
    color: #3b82f6 !important; /* Readable blue tech action links */
}

.tech-card-cta:hover {
    color: #06b6d4 !important;
}

/* 9. Technology Details Page & Portfolio Details Page Overrides */
.technology-detail-section h1,
.technology-detail-section h2,
.technology-detail-section h3,
.technology-detail-section h4,
.technology-detail-section h5,
.technology-detail-section h6,
.portfolio-detail-section h1,
.portfolio-detail-section h2,
.portfolio-detail-section h3,
.portfolio-detail-section h4,
.portfolio-detail-section h5,
.portfolio-detail-section h6 {
    color: #0f172a !important;
}

.technology-detail-section p,
.portfolio-detail-section p,
.technology-detail-section li,
.portfolio-detail-section li {
    color: #334155 !important;
}

/* Floating badge text fix */
.floating-badge-card p {
    color: #334155;
}
.floating-badge-card p:first-of-type {
    color: var(--accent);
}

/* Specific overrides for floating badges inside the dark hero slides */
.hero .floating-badge-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}

.hero .floating-badge-card p {
    color: rgba(255, 255, 255, 0.7) !important; /* Extremely readable soft translucent white */
}

.hero .floating-badge-card p:first-of-type {
    /* Retain inline color rules for dynamic Odoo Sync / AI model labels */
    color: inherit !important; 
}

/* Dynamic Contextual Navigation Link Legibility before scroll */
header.header-dark-hero:not(.scrolled) .nav-links a {
    color: rgba(255, 255, 255, 0.8) !important;
}

header.header-dark-hero:not(.scrolled) .nav-links a:hover {
    color: #ffffff !important;
}

header.header-dark-hero:not(.scrolled) .btn-secondary-outline {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

header.header-dark-hero:not(.scrolled) .btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

header.header-dark-hero:not(.scrolled) .mobile-menu-btn {
    color: #ffffff !important;
}

/* Light transparent header rules for inner pages */
header.header-light-hero:not(.scrolled) .nav-links a {
    color: #334155 !important;
}

header.header-light-hero:not(.scrolled) .nav-links a:hover {
    color: #0f172a !important;
}

header.header-light-hero:not(.scrolled) .btn-secondary-outline {
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}

header.header-light-hero:not(.scrolled) .btn-secondary-outline:hover {
    background: rgba(15, 23, 42, 0.05) !important;
    color: #0f172a !important;
}

header.header-light-hero:not(.scrolled) .mobile-menu-btn {
    color: #0f172a !important;
}

header.header-light-hero:not(.scrolled) img {
    filter: none !important;
}



