/* ===== COSMOSOFT - MODERN ROCKET DESIGN ===== */

/* Root Variables */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --shadow-primary: 0 20px 25px -5px rgba(99, 102, 241, 0.1), 0 10px 10px -5px rgba(99, 102, 241, 0.04);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
    --shadow-glow-strong: 0 0 50px rgba(99, 102, 241, 0.5);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--dark-bg);
    overflow-x: hidden;
    position: relative;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: background-shift 20s ease-in-out infinite;
    z-index: -1;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
    z-index: 1050 !important;
}

/* Ensure consistent navbar styling across all pages */
@media (max-width: 991px) {
    .navbar {
        background: rgba(15, 23, 42, 0.98) !important; /* Consistent color */
        padding: 0.75rem 0 !important;
        height: auto !important;
        min-height: 70px !important;
    }
}

/* Base navbar container - will be overridden on mobile */
.navbar .container {
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure brand and button fit properly on mobile */
@media (max-width: 991px) {
    .navbar-brand {
        flex-shrink: 1 !important;
        max-width: calc(100% - 70px) !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        margin-right: 10px !important;
    }
    
    /* Container flexbox fix */
    .navbar .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
}

.navbar.scrolled {
    background: rgba(2, 6, 23, 0.98) !important;
    box-shadow: var(--shadow-primary);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light) !important;
    text-decoration: none;
}

.navbar-brand i {
    color: var(--primary-color);
    animation: rocket-pulse 2s infinite;
}

.nav-link {
    color: var(--text-gray) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* ===== MOBILE NAVIGATION - FIXED POSITIONING ===== */
.navbar-toggler {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    padding: 8px !important;
    display: block !important;
    width: 50px !important;
    height: 45px !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 1051 !important;
    /* FIX: Ensure button stays within viewport */
    margin-left: auto !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
}

.navbar-toggler:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.5) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 100% !important;
    height: 100% !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) !important;
}

/* Hide hamburger ONLY on large screens */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}

/* RADICAL FIX - FORCE BUTTON INSIDE VIEWPORT */
@media (max-width: 991px) {
    /* Force navbar to have proper space */
    .navbar .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: calc(100vw - 20px) !important;
        width: calc(100vw - 20px) !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        overflow: hidden !important;
    }
    
    .navbar-brand {
        max-width: calc(100% - 80px) !important;
        flex-shrink: 1 !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }
    
    .navbar-toggler {
        /* ABSOLUTE POSITIONING INSIDE NAVBAR */
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        right: 10px !important; /* 10px from right edge */
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 1052 !important;
        
        /* Beautiful design */
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 8px !important;
        width: 50px !important;
        height: 45px !important;
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4) !important;
        padding: 8px !important;
        box-sizing: border-box !important;
        transition: all 0.3s ease !important;
        margin: 0 !important;
    }
    
    .navbar-toggler:hover {
        background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)) !important;
        transform: translateY(-50%) scale(1.05) !important;
        box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6) !important;
    }
}

.navbar-collapse {
    background: transparent !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    border: none !important;
    z-index: 1050 !important;
}

/* Mobile menu background - FIXED POSITIONING */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(2, 6, 23, 0.98) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        backdrop-filter: blur(20px) !important;
        padding: 1.5rem !important;
        border-radius: 15px !important;
        border: 1px solid rgba(99, 102, 241, 0.2) !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
        /* Position directly under navbar */
        position: absolute !important;
        top: 100% !important;
        left: 15px !important;
        right: 15px !important;
        width: calc(100% - 30px) !important;
        z-index: 1040 !important;
        margin-top: 0.5rem !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    
    /* Prevent overlap and improve appearance */
    .navbar-collapse.show {
        max-height: calc(100vh - 120px) !important;
        overflow-y: auto !important;
        animation: slideDownSmooth 0.3s ease-out !important;
    }
}

/* Mobile navigation links optimization */
.navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
    font-weight: 500 !important;
    position: relative !important;
    display: block !important;
    text-align: center !important;
}

.navbar-nav .nav-link:hover {
    background: rgba(99, 102, 241, 0.15) !important;
    transform: translateY(-2px) !important;
    color: var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2) !important;
}

/* Mobile-specific navigation improvements */
@media (max-width: 991px) {
    .navbar-nav {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem 1.5rem !important;
        margin: 0.5rem 0 !important;
        border-radius: 10px !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        background: rgba(255, 255, 255, 0.05) !important;
        color: var(--text-light) !important;
        text-align: center !important;
        min-height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        /* Better touch targets for mobile */
        min-width: 44px !important;
        touch-action: manipulation !important;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link:active {
        background: rgba(99, 102, 241, 0.2) !important;
        color: white !important;
        transform: scale(1.02) !important;
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3) !important;
        border-color: var(--primary-color) !important;
    }
    
    .navbar-nav .nav-link.active {
        background: var(--gradient-primary) !important;
        color: white !important;
        border-color: transparent !important;
        font-weight: 700 !important;
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--darker-bg);
    overflow: hidden;
}

/* Simple text - no complications */

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

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="white" opacity="0.8"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.6"/><circle cx="40" cy="80" r="1" fill="white" opacity="0.7"/><circle cx="90" cy="90" r="1" fill="white" opacity="0.5"/><circle cx="10" cy="70" r="1" fill="white" opacity="0.9"/><circle cx="60" cy="10" r="1" fill="white" opacity="0.4"/><circle cx="30" cy="50" r="1" fill="white" opacity="0.8"/><circle cx="70" cy="70" r="1" fill="white" opacity="0.6"/></svg>') repeat;
    animation: twinkle 20s linear infinite;
}

.twinkling {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="0.5" fill="white" opacity="0.3"/><circle cx="75" cy="15" r="0.5" fill="white" opacity="0.2"/><circle cx="15" cy="75" r="0.5" fill="white" opacity="0.4"/><circle cx="85" cy="85" r="0.5" fill="white" opacity="0.1"/><circle cx="50" cy="30" r="0.5" fill="white" opacity="0.3"/><circle cx="35" cy="65" r="0.5" fill="white" opacity="0.2"/></svg>') repeat;
    animation: twinkle 15s linear infinite reverse;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-glow 3s ease-in-out infinite alternate;
}

.gradient-text {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-outline-light {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

/* Floating Cards */
.hero-image {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-primary);
    animation: float 6s ease-in-out infinite;
    min-width: 140px;
    max-width: 180px;
    min-height: 110px;
}

.floating-card:nth-child(1) {
    top: 8%;
    left: 3%;
    animation-delay: 0s;
}

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

.floating-card:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.floating-card h4 {
    color: var(--text-light);
    font-weight: 600;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background: var(--dark-bg);
    padding: 5rem 0;
    margin-top: 0;
}

/* Fix for sticky navbar overlap */
section:not(.hero-section) {
    padding-top: 80px;
}

/* Mobile-specific page header spacing */
@media (max-width: 991px) {
    .page-header {
        padding-top: 6rem !important; /* Extra space for mobile navbar */
        margin-top: 0 !important;
    }
    
    section:not(.hero-section) {
        padding-top: 90px !important; /* Extra padding for mobile */
    }
    
    /* Ensure page headers don't overlap with fixed navbar */
    .page-header.mt-5 {
        margin-top: 0 !important;
        padding-top: 7rem !important;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 3rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 0;
    animation: rotate 4s linear infinite;
}

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

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

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-glow-strong);
    border-color: var(--primary-color);
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-primary);
    position: relative;
    transition: all 0.3s ease;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover .service-icon::before {
    opacity: 1;
    animation: pulse-glow 2s ease-in-out infinite;
}

.service-icon i {
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--darker-bg);
    padding: 5rem 0;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-gray);
    font-weight: 500;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
    border-color: var(--primary-color);
}

.tech-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.tech-item span {
    color: var(--text-light);
    font-weight: 600;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--dark-bg);
    padding: 5rem 0;
}

/* ===== NEW CONTACT CTA STYLES ===== */
.contact-cta {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-primary);
    text-align: center;
}

.contact-hero-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-glow);
}

.contact-hero-icon i {
    font-size: 2rem;
    color: white;
}

.contact-email-display {
    margin-top: 2rem;
}

.email-card {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    color: var(--text-light);
}

.email-card i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.response-guarantee {
    margin-top: 2rem;
}

.guarantee-badge {
    background: var(--gradient-success);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Mobile optimizations for contact CTA */
@media (max-width: 768px) {
    .contact-cta {
        padding: 2rem;
        margin: 1rem;
    }
    
    .contact-hero-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-hero-icon i {
        font-size: 1.5rem;
    }
    
    .guarantee-badge {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-primary);
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-light);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    color: var(--text-light);
}

.form-control::placeholder {
    color: var(--text-gray);
}

.contact-info {
    padding: 2rem;
    text-align: center;
}

.contact-info i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.contact-info h4 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: var(--text-gray);
    margin: 0;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

/* ===== ANIMATIONS ===== */
@keyframes rocket-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes twinkle {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100px); }
}

@keyframes title-glow {
    0% { text-shadow: 0 0 20px rgba(99, 102, 241, 0.5); }
    100% { text-shadow: 0 0 30px rgba(99, 102, 241, 0.8), 0 0 40px rgba(139, 92, 246, 0.3); }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes background-shift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-20px) translateY(-10px); }
    50% { transform: translateX(20px) translateY(-20px); }
    75% { transform: translateX(-10px) translateY(10px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
        transform: scale(1.05);
    }
}

@keyframes slide-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-scale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--darker-bg);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

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

/* ===== SERVICE PRICING ===== */
.service-price {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-buttons {
    margin-top: 2rem;
}

/* ===== NAVIGATION ACTIVE STATE ===== */
.nav-link.active {
    color: var(--primary-color) !important;
}

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

/* ===== CONTACT PREVIEW ===== */
.contact-preview {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-primary);
}

/* ===== ABOUT CONTENT ===== */
.about-content {
    background: var(--dark-bg);
}

.about-stats {
    padding: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
    border-color: var(--primary-color);
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-gray);
    font-weight: 500;
    margin: 0;
}

/* ===== MISSION CARDS ===== */
.mission-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.mission-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-primary);
}

.mission-icon i {
    font-size: 2rem;
    color: white;
}

.mission-card h3 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.mission-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== TECH STACK EXTENDED ===== */
.tech-stack-extended {
    margin-top: 2rem;
}

/* ===== VALUES SECTION ===== */
.values-section {
    background: var(--darker-bg);
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-primary);
}

.value-icon i {
    font-size: 1.8rem;
    color: white;
}

.value-card h4 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== CONTACT INFO SECTION ===== */
.contact-info-section {
    background: var(--darker-bg);
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.contact-info-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-primary);
}

.contact-info-icon i {
    font-size: 2rem;
    color: white;
}

.contact-info-card h4 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info-card p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background: var(--dark-bg);
}

.accordion-item {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: transparent;
    color: var(--text-light);
    border: none;
    font-weight: 600;
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

.accordion-body {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-gray);
    padding: 1.5rem;
    line-height: 1.6;
}

/* ===== FORM LABELS ===== */
.form-label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-check-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

/* ===== COMING SOON SECTIONS ===== */
.coming-soon-section {
    background: var(--dark-bg);
}

.coming-soon-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4rem 3rem;
    box-shadow: var(--shadow-primary);
}

.coming-soon-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-glow);
    animation: pulse-glow 3s ease-in-out infinite;
}

.coming-soon-icon i {
    font-size: 3rem;
    color: white;
}

.coming-soon-card h2 {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.coming-soon-card .lead {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.feature-item h5 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-gray);
    margin: 0;
}

/* ===== NOTIFY SECTION ===== */
.notify-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.notify-section h4 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.notify-section p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.notify-form .input-group {
    max-width: 400px;
    margin: 0 auto;
}

/* ===== PREVIEW PRODUCTS ===== */
.preview-products-section {
    background: var(--darker-bg);
}

.product-preview-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-preview-card:hover::before {
    opacity: 0.05;
}

.product-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.product-preview-card > * {
    position: relative;
    z-index: 2;
}

.product-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-primary);
}

.product-icon i {
    font-size: 2rem;
    color: white;
}

.product-preview-card h4 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-preview-card p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-price {
    margin-bottom: 1rem;
}

.product-price .price-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-status {
    margin-top: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.coming-soon {
    background: var(--gradient-warning);
    color: white;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: var(--dark-bg);
}

/* ===== Z-INDEX MANAGEMENT ===== */
/* Ensure proper layering hierarchy */
.navbar {
    z-index: 1040 !important;
}

.navbar-collapse {
    z-index: 1041 !important;
}

.navbar-toggler {
    z-index: 1042 !important;
}

/* ===== ACCESSIBILITY WIDGET - MOBILE OPTIMIZED ===== */
#accessibility-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;
    font-family: var(--font-family) !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    /* FORCE VISIBILITY ON INDEX PAGE */
    animation: forceVisible 0.1s ease-out 0.5s both !important;
}

@keyframes forceVisible {
    0% {
        opacity: 0;
        visibility: hidden;
    }
    100% {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
}

/* Mobile specific accessibility widget positioning */
@media (max-width: 991px) {
    #accessibility-widget {
        bottom: 20px !important; /* Same as scroll-to-top */
        right: 20px !important;  /* Same as scroll-to-top */
        z-index: 999999 !important;
        /* Ensure it's always visible on mobile */
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #accessibility-toggle {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
        /* Match scroll-to-top button exactly */
        box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    #accessibility-panel {
        bottom: 80px !important; /* Adjusted for 50px button + 20px spacing */
        right: 0 !important;
        width: 280px !important;
        /* Adjust for mobile viewport */
        max-width: calc(100vw - 30px) !important;
    }
}

/* Force widget to stay in position regardless of accessibility states */
body.high-contrast #accessibility-widget,
body.grayscale #accessibility-widget,
body.big-cursor #accessibility-widget,
body.no-animations #accessibility-widget,
body.underline-links #accessibility-widget,
body.font-size-75 #accessibility-widget,
body.font-size-90 #accessibility-widget,
body.font-size-110 #accessibility-widget,
body.font-size-125 #accessibility-widget,
body.font-size-150 #accessibility-widget,
body.font-size-200 #accessibility-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* CRITICAL: Override any AOS animations that might hide the widget */
#accessibility-widget[data-aos],
#accessibility-widget .accessibility-toggle[data-aos] {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure widget is visible even during page load animations */
body:not(.loaded) #accessibility-widget {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999999 !important;
}

#accessibility-toggle {
    width: 50px !important;
    height: 50px !important;
    background: var(--gradient-primary) !important;
    border: none !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 1.2rem !important; /* Match scroll-to-top button */
    cursor: pointer !important;
    box-shadow: var(--shadow-glow) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 1000000 !important;
}

#accessibility-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow-strong);
}

#accessibility-panel {
    position: absolute !important;
    bottom: 70px !important;
    right: 0 !important;
    width: 300px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 15px !important;
    padding: 1.5rem !important;
    box-shadow: var(--shadow-glow) !important;
    display: none !important;
    color: var(--dark-bg) !important;
    z-index: 1000000 !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#accessibility-panel.show {
    display: block !important;
    animation: slideInUp 0.3s ease-out !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#accessibility-panel h4 {
    color: var(--dark-bg);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.accessibility-option {
    margin-bottom: 1rem;
}

.accessibility-option label {
    display: block;
    color: var(--dark-bg);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.font-size-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.font-size-controls button {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8rem !important;
    border-radius: 5px !important;
    position: relative !important;
    z-index: 100001 !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
    background: transparent !important;
}

#font-size-display {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 50px;
    text-align: center;
}

.accessibility-option button {
    width: 100% !important;
    padding: 0.5rem !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 100001 !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
    background: transparent !important;
}

.accessibility-option button:hover {
    transform: translateY(-2px);
}

/* Active state for accessibility buttons */
.accessibility-option button.active {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    font-weight: 600 !important;
}

.accessibility-option button.active:hover {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

/* ===== ACCESSIBILITY STATES ===== */
body.font-size-75 {
    font-size: 75% !important;
}

body.font-size-90 {
    font-size: 90% !important;
}

body.font-size-110 {
    font-size: 110% !important;
}

body.font-size-125 {
    font-size: 125% !important;
}

body.font-size-150 {
    font-size: 150% !important;
}

body.font-size-200 {
    font-size: 200% !important;
}

/* Protect accessibility widget from font size changes */
.accessibility-widget,
.accessibility-widget * {
    font-size: inherit !important;
}

body.high-contrast *:not(#accessibility-widget):not(#accessibility-widget *) {
    filter: contrast(150%) brightness(120%);
}

body.grayscale *:not(#accessibility-widget):not(#accessibility-widget *) {
    filter: grayscale(100%);
}

/* WIDGET PROTECTION - Same approach as font-size */
#accessibility-widget,
#accessibility-widget *,
.accessibility-widget,
.accessibility-widget * {
    filter: none !important;
}

body.big-cursor *:not(#accessibility-widget):not(#accessibility-widget *) {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="32" viewBox="0 0 24 32"><defs><linearGradient id="rocketGrad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%236363f1;stop-opacity:1" /><stop offset="50%" style="stop-color:%239b59b6;stop-opacity:1" /><stop offset="100%" style="stop-color:%23ff6b6b;stop-opacity:1" /></linearGradient><radialGradient id="flameGrad" cx="50%" cy="100%" r="60%"><stop offset="0%" style="stop-color:%23ff6b6b;stop-opacity:1" /><stop offset="50%" style="stop-color:%23ffa500;stop-opacity:1" /><stop offset="100%" style="stop-color:%23ffff00;stop-opacity:0.8" /></radialGradient></defs><ellipse cx="12" cy="28" rx="6" ry="4" fill="url(%23flameGrad)" opacity="0.8"/><path d="M8 20 L12 2 L16 20 L14 22 L10 22 Z" fill="url(%23rocketGrad)" stroke="white" stroke-width="0.8"/><circle cx="12" cy="8" r="2.5" fill="white" opacity="0.9"/><rect x="10.5" y="15" width="3" height="2" fill="white" opacity="0.7" rx="0.5"/></svg>'), auto !important;
}

body.no-animations *:not(#accessibility-widget):not(#accessibility-widget *) {
    animation: none !important;
    transition: none !important;
}

body.underline-links a:not(#accessibility-widget a):not(#accessibility-widget *) {
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
}

body.underline-links a:hover:not(#accessibility-widget a):not(#accessibility-widget *) {
    text-decoration-thickness: 3px !important;
}

/* ===== ACCESSIBILITY ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PAGE HEADER STYLES ===== */
.page-header {
    background: var(--dark-bg);
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a2e 100%);
    min-height: 40vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(99,99,241,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .floating-card {
        position: relative;
        margin: 0.5rem auto;
        animation: slideUpFromBottom 0.8s ease-out forwards;
        display: block;
        width: calc(33% - 0.5rem);
        max-width: 120px;
        min-height: 90px;
        padding: 0.75rem 0.5rem;
        text-align: center;
        opacity: 0;
        transform: translateY(30px);
    }
    
    .floating-card:nth-child(1) {
        animation-delay: 0.1s;
    }
    
    .floating-card:nth-child(2) {
        animation-delay: 0.3s;
    }
    
    .floating-card:nth-child(3) {
        animation-delay: 0.5s;
    }
    
    .floating-card h4 {
        font-size: 0.85rem;
        margin-top: 0.5rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        font-weight: 600;
    }
    
    .floating-card i {
        font-size: 1.5rem;
    }
    
    .hero-image {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        height: auto;
        margin-top: 0.5rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-section .container .row {
        flex-direction: column-reverse;
        margin: 0;
        width: 100%;
    }
    
    .hero-section .col-lg-6 {
        text-align: center;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .hero-section .container {
        padding: 0 1rem;
        max-width: 100%;
        overflow: hidden;
    }
    
    .hero-section {
        padding-top: 5rem;
        padding-bottom: 2rem;
        min-height: initial;
        height: auto;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .page-header {
        min-height: 50vh;
        padding-top: 4rem;
        padding-bottom: 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* ===== MOBILE MENU ACCESSIBILITY WIDGET COMPATIBILITY ===== */
@media (max-width: 991px) {
    /* SIMPLE CONTAINER FIX */
    .navbar .container {
        padding-left: 10px !important;
        padding-right: 60px !important; /* Make room for button */
        max-width: 100vw !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    /* Ensure mobile menu doesn't conflict with accessibility widget */
    .navbar-collapse.show {
        margin-bottom: 100px !important;
        max-width: 100% !important;
        right: 0 !important;
        left: 0 !important;
    }
    
    /* Add safe zone for accessibility widget */
    #accessibility-widget {
        bottom: 20px !important;
        right: 20px !important;
        position: fixed !important;
        z-index: 999999 !important;
    }
    
    /* Remove duplicate navbar styling to prevent color conflicts */
}

/* ===== TOUCH-FRIENDLY IMPROVEMENTS ===== */
@media (max-width: 991px) and (pointer: coarse) {
    /* Larger touch targets for better usability */
    .navbar-nav .nav-link {
        min-height: 56px !important;
        padding: 1.25rem 1.5rem !important;
        font-size: 1.2rem !important;
    }
    
    .navbar-toggler {
        width: 56px !important;
        height: 56px !important;
        padding: 12px !important;
    }
}

@media (max-width: 576px) {
    /* Extra small screens optimizations */
    .navbar-collapse.show {
        margin-bottom: 120px !important;
        max-width: 100% !important;
        padding: 1rem !important;
    }
    
    .navbar-nav .nav-link {
        font-size: 1rem !important;
        padding: 0.875rem 1rem !important;
        margin: 0.25rem 0 !important;
    }
    
    /* CRITICAL FIX for very small screens */
    .navbar .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    .navbar-toggler {
        right: 0.75rem !important;
        width: 45px !important;
        height: 40px !important;
        /* Force visibility */
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
    }
    
    .navbar-brand {
        max-width: calc(100% - 60px) !important;
        font-size: 1.3rem !important;
    }
}
    
    .hero-title {
        font-size: 1.8rem;
        padding: 0 1rem;
        margin-top: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 1rem;
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Mobile-specific text content */
    .hero-title .mobile-text {
        display: inline !important;
    }
    
    .hero-title .desktop-text {
        display: none !important;
    }
    
    .hero-subtitle .mobile-text {
        display: inline !important;
    }
    
    .hero-subtitle .desktop-text {
        display: none !important;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .floating-card {
        width: calc(33% - 0.5rem);
        max-width: 110px;
        min-height: 85px;
        margin: 0.25rem auto;
        display: inline-block;
        padding: 0.5rem;
        animation: slideUpFromBottom 0.8s ease-out forwards;
        opacity: 0;
        transform: translateY(30px);
    }
    
    .floating-card:nth-child(1) {
        animation-delay: 0.1s;
    }
    
    .floating-card:nth-child(2) {
        animation-delay: 0.3s;
    }
    
    .floating-card:nth-child(3) {
        animation-delay: 0.5s;
    }
    
    .floating-card h4 {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-top: 0.5rem;
        word-break: break-word;
        font-weight: 600;
        text-align: center;
    }
    
    .floating-card i {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
    
    .hero-section {
        padding-top: 5rem;
        padding-bottom: 2rem;
        min-height: initial;
        height: auto;
    }
    
    .hero-section .container .row {
        min-height: auto;
        align-items: center;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .page-header {
        min-height: 60vh;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
    
    .page-title {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .tech-stack {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem 1rem;
    }
}

/* ===== MOBILE MENU ANIMATIONS ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        opacity: 0 !important;
        transform: translateY(-20px) !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        visibility: hidden !important;
    }
    
    .navbar-collapse.show {
        opacity: 1 !important;
        transform: translateY(0) !important;
        visibility: visible !important;
        animation: slideDownFadeIn 0.4s ease-out !important;
    }
    
    .navbar-collapse.collapsing {
        opacity: 0.5 !important;
        transform: translateY(-10px) !important;
    }
    
    /* Staggered animation for nav links */
    .navbar-nav .nav-link {
        opacity: 0 !important;
        transform: translateX(-20px) !important;
        transition: all 0.3s ease !important;
    }
    
    .navbar-collapse.show .nav-link {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
    
    .navbar-collapse.show .nav-link:nth-child(1) { transition-delay: 0.1s !important; }
    .navbar-collapse.show .nav-link:nth-child(2) { transition-delay: 0.2s !important; }
    .navbar-collapse.show .nav-link:nth-child(3) { transition-delay: 0.3s !important; }
    .navbar-collapse.show .nav-link:nth-child(4) { transition-delay: 0.4s !important; }
}

/* Mobile menu slide animation */
@keyframes slideDownFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== MOBILE MENU OVERLAY ===== */
@media (max-width: 991px) {
    .navbar-collapse.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
        animation: fadeInOverlay 0.3s ease-out;
    }
}

@keyframes fadeInOverlay {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Smooth slide down animation for better UX */
@keyframes slideDownSmooth {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
        max-height: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        max-height: 400px;
    }
}
