/*
  Teqkila Professional B2B Stylesheet v3.0
  Ultra-optimized with performance-first approach
*/

/* --- CSS VARIABLES & THEME --- */
:root {
    /* Core Colors */
    --primary-color: #0ea5e9;
    --primary-dark: #0369a1;
    --secondary-color: #8b5cf6;
    --secondary-dark: #7c3aed;
    --accent-color: #10b981;
    
    /* Background Colors */
    --dark-bg: #020617;
    --darker-bg: #010712;
    --light-bg: #0f172a;
    --lighter-bg: #1e293b;
    --card-bg: rgba(30, 41, 59, 0.6);
    
    /* Text Colors */
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    
    /* Border & Shadow */
    --border-color: rgba(51, 65, 85, 0.4);
    --border-light: rgba(148, 163, 184, 0.2);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5), 0 8px 10px -6px rgba(0,0,0,0.5);
    
    /* Typography */
    --font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
}

/* --- RESET & BASE STYLES --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- CONTAINER & LAYOUT --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    background: linear-gradient(135deg, var(--text-light) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: var(--space-sm);
    color: var(--text-muted);
}

/* --- GLASS MORPHISM UTILITY --- */
.glass-morphism {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

/* --- GRADIENT BORDER UTILITY --- */
.gradient-border {
    position: relative;
    background: var(--dark-bg);
    border-radius: var(--radius-md);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    border-radius: var(--radius-md);
    z-index: -1;
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
}

/* --- ULTRA-FAST PRELOADER --- */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--dark-bg);
    z-index: 9999;
    display: grid;
    place-items: center;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.preloader-logo {
    position: relative;
    width: 80px;
    height: 80px;
}

.logo-text {
    font-size: 3rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--primary-color);
    display: block;
    animation: logoReveal 0.8s ease-out;
}

/* --- ANIMATED BACKGROUND ELEMENTS --- */
.background-elements {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Gradient Orbs - Optimized */
.gradient-orbs {
    position: absolute;
    inset: 0;
}

.orb {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(40px);
    opacity: 0.3;
    will-change: transform;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 10%;
    left: 10%;
    animation: floatOrb 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: 10%;
    right: 10%;
    animation: floatOrb 25s ease-in-out infinite reverse;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    top: 50%;
    left: 50%;
    animation: floatOrb 30s ease-in-out infinite;
}

/* --- NAVIGATION ENHANCEMENTS --- */
.navbar {
    max-width: 100%;
    width: 95%;
    padding: 20px;
    margin: auto;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
    background: transparent;
}
.navbar.scrolled {
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.75rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--text-light);
    text-decoration: none;
    position: relative;
}

.logo-glow {
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
    transition: var(--transition-normal);
}

.nav-logo:hover .logo-glow {
    text-shadow: 0 0 30px rgba(14, 165, 233, 0.8);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: var(--transition-normal);
    position: relative;
}

.nav-link:hover {
    color: var(--text-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light) !important;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    transition: var(--transition-normal);
    text-decoration: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION ENHANCEMENTS --- */
.hero {
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    min-height: 80vh;
}

.hero-text {
    max-width: 600px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-lg);
}

.trust-badge i {
    color: var(--accent-color);
}

.hero-headline {
    margin-bottom: var(--space-lg);
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-effect {
    display: inline-block;
    border-right: 3px solid var(--primary-color);
    animation: blink 1s infinite;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--space-xl);
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    margin: var(--space-xl) 0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

/* Hero Visual Enhancements */
.hero-visual {
    position: relative;
}

.visual-container {
    position: relative;
    padding: var(--space-xl);
    min-height: 400px;
    display: grid;
    place-items: center;
}

.floating-card {
    position: absolute;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

.floating-card i {
    color: var(--primary-color);
}

.card-1 {
    top: 5%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 86%;
    right: 10%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.main-visual {
    position: relative;
    z-index: 2;
}

.code-window {
    background: var(--darker-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.window-header {
    background: var(--light-bg);
    padding: var(--space-sm);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.window-dots {
    display: flex;
    gap: var(--space-xs);
}

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--text-muted);
}

.window-dots span:nth-child(1) { background: #ef4444; }
.window-dots span:nth-child(2) { background: #f59e0b; }
.window-dots span:nth-child(3) { background: #10b981; }

.code-content {
    padding: var(--space-lg);
}

.code-content pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-content code {
    color: var(--text-light);
}

/* --- BUTTON COMPONENTS --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 22px;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-light);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

/* Magnetic Link Effect */
.magnetic-link {
    transition: var(--transition-normal);
    will-change: transform;
}

.magnetic-link:hover {
    transform: scale(1.05);
}
.m100{
    margin-top: 100px;
}
/* --- SECTION STYLES --- */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 100px auto var(--space-2xl);
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: var(--font-weight-semibold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

/* --- SERVICES SECTION --- */
.services {
    padding: 50px 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.service-card {
    padding: var(--space-xl);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-icon {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-lg);
    display: grid;
    place-items: center;
}

.service-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
    z-index: 2;
}

.icon-glow {
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: var(--radius-full);
    filter: blur(10px);
}

.service-card h3 {
    margin-bottom: var(--space-sm);
}

.service-features {
    list-style: none;
    margin-top: var(--space-lg);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
    color: var(--text-muted);
}

.service-features i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* --- CLIENT LOGOS SECTION --- */
.client-logos {
    padding: var(--space-xl) 0;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    color: var(--text-muted);
}

.logo-scroller {
    overflow: hidden;
    position: relative;
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.logo-track {
    display: flex;
    gap: var(--space-2xl);
    animation: scrollLogos 30s linear infinite;
    will-change: transform;
}

.logo-item {
    flex-shrink: 0;
    padding: var(--space-md);
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
}

/* --- TECHNOLOGY STACK --- */
/* .tech-stack {
    padding: var(--space-2xl) 0;
} */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--space-lg);
    margin: 0 auto;
}

.tech-card {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    transition: var(--transition-normal);
    position: relative;
}

.tech-card i {
    font-size: 2.5rem;
    transition: var(--transition-normal);
}

.tech-card:hover {
    transform: scale(1.1);
}

.tech-card:hover i {
    transform: scale(1.2);
}

/* --- TESTIMONIALS --- */
.testimonials {
    padding: var(--space-2xl) 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    padding: var(--space-xl);
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: var(--space-lg);
    color: var(--text-light);
}

.author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--light-bg);
    display: grid;
    place-items: center;
    color: var(--primary-color);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: var(--text-light);
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- CTA SECTION --- */
.cta-section {
    padding: var(--space-2xl) 0;
}

.cta-content {
    padding: var(--space-2xl);
    text-align: center;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-text h2 {
    margin-bottom: var(--space-sm);
}

.cta-action {
    display: flex;
    justify-content: center;
}

/* --- FOOTER ENHANCEMENTS --- */
.footer {
    background: var(--darker-bg);
    padding: var(--space-2xl) 0 var(--space-xl);
    margin-top: var(--space-2xl);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand p {
    margin: var(--space-sm) 0;
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links h4 {
    color: var(--text-light);
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-sm);
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form button {
    padding: var(--space-sm) var(--space-md);
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- CHAT WIDGET --- */
.chat-widget {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-full);
    display: grid;
    place-items: center;
    color: var(--text-light);
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 1000;
}

.chat-widget:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.chat-pulse {
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-full);
    background: var(--primary-color);
    animation: pulse 2s infinite;
    z-index: -1;
}

/* --- POPUP STYLES --- */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(10px);
    display: grid;
    place-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    padding: var(--space-2xl);
    max-width: 650px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    transition: var(--transition-normal);
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-title {
    margin-bottom: var(--space-sm);
    font-size: 50px;
    color: #ffffff;
    font-weight: 900;
}

.popup-text {
    margin-bottom: var(--space-md);
}

.popup-question {
    display: block;
    margin-bottom: var(--space-xl);
    color: var(--text-light);
    font-size: 1.1rem;
}

.popup-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

/* --- ACCESSIBILITY --- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 8px;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    z-index: 10000;
    transition: var(--transition-normal);
}

.skip-link:focus {
    top: 8px;
}

/* Focus styles for better accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* --- ANIMATIONS --- */
@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes blink {
    0%, 100% {
        border-color: var(--primary-color);
    }
    50% {
        border-color: transparent;
    }
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* --- REVEAL ANIMATION --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-lg);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hamburger {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-light);
        position: relative;
        transition: var(--transition-normal);
    }
    
    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background: var(--text-light);
        transition: var(--transition-normal);
    }
    
    .hamburger::before {
        top: -6px;
    }
    
    .hamburger::after {
        bottom: -6px;
    }
    
    .nav-toggle.active .hamburger {
        background: transparent;
    }
    
    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .popup-buttons {
        flex-direction: column;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-track {
        animation-duration: 20s;
    }
}

/* --- PERFORMANCE OPTIMIZATIONS --- */
/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Optimize for high-DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .glass-morphism {
        backdrop-filter: blur(10px);
    }
}

/* Print styles */
@media print {
    .preloader,
    .chat-widget,
    .background-elements,
    .nav-cta {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
/* Add these styles to your existing style.css file */

/* Text Center Utility */
.text-center {
    text-align: center;
}

/* Full Width Button */
.full-width {
    width: 100%;
}

/* Portfolio Styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.portfolio-card {
    transition: var(--transition-normal);
    overflow: hidden;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    height: 200px;
    background: var(--light-bg);
    display: grid;
    place-items: center;
    border-bottom: 1px solid var(--border-color);
}

.image-placeholder {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.7;
}

.portfolio-content {
    padding: var(--space-lg);
}

.portfolio-category {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.portfolio-stats {
    display: flex;
    gap: var(--space-lg);
    margin: var(--space-md) 0;
}

/* About Page Styles */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.about-text h2 {
    margin-bottom: var(--space-md);
}

.about-text h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.stat-card {
    padding: var(--space-lg);
    text-align: center;
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.value-card {
    padding: var(--space-xl);
    text-align: center;
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.team-card {
    padding: var(--space-xl);
    text-align: center;
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: var(--radius-full);
    display: grid;
    place-items: center;
    margin: 0 auto var(--space-md);
    font-size: 2rem;
    color: var(--primary-color);
}

.team-role {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
}

/* Audit Form Styles */
.audit-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-2xl);
}

.audit-form-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-family: inherit;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    padding: var(--space-xl);
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

/* Active Navigation State */
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .audit-form-container {
        padding: var(--space-lg);
    }
}