/* ============================================ */
/* MODERN TECH BUSINESS THEME - CONTEMPORARY   */
/* ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================ */
/* MODERN TECH VARIABLES                       */
/* ============================================ */

:root {
    /* Vibrant Tech Palette */
    --primary-color: #6366f1;      /* Electric Indigo */
    --primary-dark: #4f46e5;       /* Deep Indigo */
    --primary-light: #818cf8;      /* Light Indigo */
    --secondary-color: #06b6d4;    /* Cyan */
    --accent-color: #10b981;       /* Emerald */
    --accent-secondary: #f59e0b;   /* Amber */
    --neon-glow: #00ff88;          /* Neon Green */
    
    /* Dark Mode Foundation */
    --bg-primary: #0f172a;         /* Deep Space Blue */
    --bg-secondary: #1e293b;       /* Dark Slate */
    --bg-tertiary: #334155;        /* Medium Slate */
    --bg-accent: rgba(99, 102, 241, 0.1); /* Indigo Tint */
    
    /* Text Colors */
    --text-primary: #f1f5f9;       /* Bright White */
    --text-secondary: #cbd5e1;     /* Light Gray */
    --text-muted: #94a3b8;         /* Medium Gray */
    --text-accent: var(--primary-color);
    
    /* Border & Effects */
    --border-color: #475569;       /* Slate Border */
    --border-light: #64748b;       /* Light Border */
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --shadow-neon: 0 0 30px rgba(0, 255, 136, 0.2);
    --shadow-dark: 0 10px 25px rgba(0, 0, 0, 0.5);
    
    /* Typography */
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--neon-glow));
    --gradient-bg: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    --gradient-card: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    
    /* Animation Curves */
    --ease-quart: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================ */
/* GLOBAL TECH THEME BASE                      */
/* ============================================ */

body {
    color: var(--dark-color);
    font-family: var(--font-body);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Animated Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10px, -10px) scale(1.02); }
    100% { transform: translate(0, 0) scale(1); }
}

/* ============================================ */
/* FUTURISTIC TYPOGRAPHY                       */
/* ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

h1 { 
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -0.1rem;
    color: white;
    left: 48%;
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 4px;
    box-shadow: var(--shadow-glow);
}

h2 { 
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    position: relative;
}

h3 { 
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
}

.lead {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ============================================ */
/* TECH HEADER & NAVIGATION                    */
/* ============================================ */

.site-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-dark);
}

.top-header {
    background: var(--gradient-primary);
    color: white;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    position: relative;
}


.main-nav a {
    color: var(--dark-color) !important;
    font-family: var(--font-heading);
    font-weight: 500;
    position: relative;
    transition: all 0.3s var(--ease-quart);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -8px;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateY(-50%);
    transition: width 0.3s var(--ease-quart);
    border-radius: 2px;
}

.main-nav a:hover {
    color: var(--text-primary) !important;
    background: var(--bg-accent);
    transform: translateX(8px);
}

.main-nav a:hover::before {
    width: 4px;
}

.page-header {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: var(--white);
    padding: var(--space-4xl) 0;
    text-align: 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 60 60"><circle cx="30" cy="30" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.5;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: white;
}
/* ============================================ */
/* TECH BUTTONS WITH GLOW EFFECTS              */
/* ============================================ */

.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 12px;
    transition: all 0.4s var(--ease-quart);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn::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.6s ease-in-out;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    position: relative;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.4s var(--ease-quart);
    z-index: -1;
}

.btn-secondary:hover {
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary:hover::after {
    width: 100%;
}

.btn-glass {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ============================================ */
/* GLASS MORPHISM CARDS                        */
/* ============================================ */

.card {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: var(--shadow-dark);
    transition: all 0.5s var(--ease-quart);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
}

.card-body {
    padding: 2rem;
}

.card-footer {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
}

/* Service Cards */
.service-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.5s var(--ease-quart);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-quart);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-glow);
}

/* ============================================ */
/* TECH SECTIONS WITH MODERN EFFECTS           */
/* ============================================ */

.section {
    padding: 6rem 0;
    position: relative;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    font-family: var(--font-heading);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 4px;
    box-shadow: var(--shadow-glow);
}

.section-title.text-left::after {
    left: 0;
    transform: none;
}


/* About Section */
.about-section {
    background: var(--bg-primary);
}

.feature-box {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s var(--ease-quart);
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    box-shadow: var(--shadow-glow);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::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="circuit" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="white" opacity="0.1"/><path d="M 10 0 L 10 20 M 0 10 L 20 10" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>');
    animation: circuitMove 30s linear infinite;
}

@keyframes circuitMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-20px, -20px); }
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-section .btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-section .btn:hover {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* ============================================ */
/* TECH FOOTER                                 */
/* ============================================ */

.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.6;
}

.footer-widget h4 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-widget a {
    color: var(--text-muted);
    transition: all 0.3s var(--ease-quart);
    text-decoration: none;
}

.footer-widget a:hover {
    color: var(--primary-color);
    transform: translateX(8px);
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-quart);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* ============================================ */
/* MODERN FORM STYLES                          */
/* ============================================ */

.contact-form-container,
.contact-details-container {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-dark);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    font-family: var(--font-heading);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.4s var(--ease-quart);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), var(--shadow-glow);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* ============================================ */
/* RESPONSIVE TECH DESIGN                      */
/* ============================================ */

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    .hero-section {
        padding: 8rem 0 6rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .main-nav {
        
        border-top: 1px solid var(--border-color);
        padding: 1rem 0;
    }
    
    .main-nav a {
        display: block;
        padding: 1rem 1.5rem;
        border-radius: 0;
    }
    
    .main-nav a::before {
        display: none;
    }
    
    .card,
    .service-card {
        margin-bottom: 2rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* ============================================ */
/* ADVANCED ANIMATIONS                         */
/* ============================================ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s var(--ease-expo);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.float-element {
    animation: float 6s ease-in-out infinite;
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary-color);
    animation: glitch-1 0.5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: 2px 0 var(--secondary-color);
    animation: glitch-2 0.5s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    5% { clip: rect(12px, 9999px, 59px, 0); }
    10% { clip: rect(48px, 9999px, 29px, 0); }
    15% { clip: rect(42px, 9999px, 73px, 0); }
    20% { clip: rect(63px, 9999px, 27px, 0); }
    25% { clip: rect(34px, 9999px, 55px, 0); }
    30% { clip: rect(86px, 9999px, 73px, 0); }
    35% { clip: rect(20px, 9999px, 20px, 0); }
    40% { clip: rect(26px, 9999px, 60px, 0); }
    45% { clip: rect(25px, 9999px, 66px, 0); }
    50% { clip: rect(57px, 9999px, 98px, 0); }
    55% { clip: rect(5px, 9999px, 46px, 0); }
    60% { clip: rect(82px, 9999px, 31px, 0); }
    65% { clip: rect(54px, 9999px, 27px, 0); }
    70% { clip: rect(28px, 9999px, 99px, 0); }
    75% { clip: rect(45px, 9999px, 69px, 0); }
    80% { clip: rect(23px, 9999px, 85px, 0); }
    85% { clip: rect(54px, 9999px, 84px, 0); }
    90% { clip: rect(45px, 9999px, 47px, 0); }
    95% { clip: rect(37px, 9999px, 20px, 0); }
    100% { clip: rect(4px, 9999px, 91px, 0); }
}

/* ============================================ */
/* CUSTOM SCROLLBAR FOR DARK THEME            */
/* ============================================ */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-accent);
    box-shadow: var(--shadow-glow);
}

/* Firefox Scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-secondary);
}

/* ============================================ */
/* UTILITY CLASSES                            */
/* ============================================ */

.text-glow {
    text-shadow: 0 0 10px currentColor;
}

.bg-glass {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
}

.border-glow {
    box-shadow: var(--shadow-glow);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================ */
/* PERFORMANCE OPTIMIZATIONS                  */
/* ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hardware acceleration */
.card,
.service-card,
.btn,
.feature-box {
    transform: translateZ(0);
    will-change: transform;
}

/* END OF MODERN TECH BUSINESS THEME */