:root {
    --primary-color: #ff3b3b;
    --secondary-color: #3b82f6;
    --primary-color-rgb: 255, 59, 59;
    --secondary-color-rgb: 59, 130, 246;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --text-color: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --card-bg: #1a1a1a;
    --transition: all 0.3s ease;
    --section-padding: 8rem 0;
    --container-padding: 0 2rem;
}

/* Add zoom reveal animation for hero title */
@keyframes zoomReveal {
    0% {
        opacity: 1;
        transform: scale(1.3);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* Mobile-optimized zoom reveal */
@keyframes zoomRevealMobile {
    0% {
        opacity: 1;
        transform: scale(1.1);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        linear-gradient(to right, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="%233b82f6" stroke-width="0.5"/><circle cx="50" cy="50" r="40" fill="none" stroke="%23ff3b3b" stroke-width="0.5"/><path d="M20,50 L80,50 M50,20 L50,80" stroke="%233b82f6" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
    background-position: center;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    z-index: 1000;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 80px; /* Increased height to ensure consistency */
}

.logo {
    max-width: 250px;
    display: flex !important;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo img {
    width: auto;
    height: auto;
    max-height: 55px; /* Reduced from 70px to 55px to make the header logo smaller */
    transition: all 0.3s ease;
    display: block !important; /* Force display */
}

.logo img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Shalimar', cursive;
    font-weight: 400;
    font-size: 2.6rem;
    display: inline-flex;
    align-items: baseline;
}

.logo-text-data {
    color: #ff3b3b;
    -webkit-text-fill-color: #ff3b3b;
}

.logo-text-sentry {
    color: #3b82f6;
    -webkit-text-fill-color: #3b82f6;
}

@media screen and (max-width: 480px) {
    .logo-text {
        font-size: 2.2rem;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

.nav-links li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    height: 100%;
}

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

.nav-links a:hover:after {
    width: 100%;
    height: 3px;
    box-shadow: 0 0 8px rgba(var(--primary-color-rgb), 0.5);
}

.nav-links a.active {
    color: #ff3b3b;
    font-weight: 600;
}

.nav-links a.active:after {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff3b3b, #3b82f6);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(var(--primary-color-rgb), 0.5);
}

/* Mobile Navigation Fixes */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
}

.mobile-menu-btn.active {
    color: var(--primary-color);
    transform: rotate(90deg);
}

@media screen and (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 640px) {
    .mobile-menu-btn {
        display: block;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
    }
    
    .logo img {
        max-height: 40px; /* Slightly smaller on mobile */
    }
    
    .nav-links {
        position: fixed;
        top: 80px; /* Updated to match new header height */
        right: 0; /* Change from left:0 to right:0 */
        width: 250px; /* Fixed width for better appearance */
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.95);
        padding: 0;
        gap: 0;
        transform: translateX(100%); /* Change from translateY to translateX */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        height: auto;
        border-left: 1px solid rgba(255, 255, 255, 0.1); /* Left border instead of bottom */
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        transform: translateX(0); /* Change from translateY to translateX */
        opacity: 1;
        visibility: visible;
        display: flex;
    }
    
    /* Mobile menu styles for when it's open */
    body .nav-links.active {
        pointer-events: auto;
        height: auto;
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        height: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        height: auto;
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    /* Position the ::after element correctly on mobile display */
    .nav-links a::after {
        bottom: 0;
        width: 50%;
        left: 25%;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(8, 10, 20, 0.9), rgba(12, 15, 25, 0.95));
    margin-bottom: 0;
    z-index: 1;
}

/* Animated Background */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background-color: rgba(10, 12, 20, 0.95);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) scale(2, 2);
    transform-origin: center center;
    opacity: 0.3;
    animation: gridFlow 15s linear infinite;
    filter: blur(1px);
}

@keyframes gridFlow {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Scanner line effect */
.grid-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0), 
        rgba(59, 130, 246, 0.4), 
        rgba(59, 130, 246, 0));
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    animation: scannerMove 8s ease-in-out infinite;
    opacity: 0.6;
    filter: blur(5px);
}

@keyframes scannerMove {
    0% { top: -100%; }
    75% { top: 200%; }
    100% { top: 200%; }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Digital Rain Effect */
.digital-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.rain-column {
    position: absolute;
    top: -100%;
    left: var(--position);
    width: 2px;
    height: 60%;
    background: linear-gradient(to bottom, 
        rgba(59, 130, 246, 0),
        rgba(59, 130, 246, 0.1),
        rgba(59, 130, 246, 0.2),
        rgba(59, 130, 246, 0.4),
        rgba(59, 130, 246, 0.1),
        rgba(59, 130, 246, 0)
    );
    animation: rainFall var(--duration) var(--delay) linear infinite;
    opacity: 0.4;
    filter: blur(4px);
}

@keyframes rainFall {
    0% {
        top: -50%;
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        top: 120%;
        opacity: 0;
    }
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    filter: blur(15px);
}

.particle-1 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at center, rgba(255, 59, 59, 0.4) 0%, rgba(255, 59, 59, 0) 70%);
    top: 15%;
    left: 10%;
    animation: particleFloat1 20s ease-in-out infinite;
}

.particle-2 {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
    top: 70%;
    right: 15%;
    animation: particleFloat2 25s ease-in-out infinite;
}

.particle-3 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at center, rgba(255, 59, 59, 0.3) 0%, rgba(255, 59, 59, 0) 70%);
    top: 40%;
    left: 20%;
    animation: particleFloat3 18s ease-in-out infinite;
}

.particle-4 {
    width: 110px;
    height: 110px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.35) 0%, rgba(59, 130, 246, 0) 70%);
    bottom: 20%;
    left: 15%;
    animation: particleFloat4 22s ease-in-out infinite;
}

.particle-5 {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at center, rgba(255, 59, 59, 0.3) 0%, rgba(255, 59, 59, 0) 70%);
    top: 25%;
    right: 20%;
    animation: particleFloat5 28s ease-in-out infinite;
}

.particle-6 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
    bottom: 30%;
    right: 25%;
    animation: particleFloat6 23s ease-in-out infinite;
}

@keyframes particleFloat1 {
    0% { opacity: 0; transform: translate(0, 0) scale(0.8); }
    25% { opacity: 0.6; }
    50% { opacity: 0.4; transform: translate(50px, 30px) scale(1.2); }
    75% { opacity: 0.6; }
    100% { opacity: 0; transform: translate(0, 0) scale(0.8); }
}

@keyframes particleFloat2 {
    0% { opacity: 0; transform: translate(0, 0) scale(0.8); }
    30% { opacity: 0.7; }
    60% { opacity: 0.5; transform: translate(-60px, 40px) scale(1.3); }
    80% { opacity: 0.7; }
    100% { opacity: 0; transform: translate(0, 0) scale(0.8); }
}

@keyframes particleFloat3 {
    0% { opacity: 0; transform: translate(0, 0) scale(0.9); }
    20% { opacity: 0.5; }
    55% { opacity: 0.4; transform: translate(70px, -50px) scale(1.1); }
    80% { opacity: 0.5; }
    100% { opacity: 0; transform: translate(0, 0) scale(0.9); }
}

@keyframes particleFloat4 {
    0% { opacity: 0; transform: translate(0, 0) scale(0.7); }
    25% { opacity: 0.6; }
    55% { opacity: 0.5; transform: translate(-40px, -60px) scale(1.2); }
    85% { opacity: 0.6; }
    100% { opacity: 0; transform: translate(0, 0) scale(0.7); }
}

@keyframes particleFloat5 {
    0% { opacity: 0; transform: translate(0, 0) scale(0.8); }
    20% { opacity: 0.5; }
    50% { opacity: 0.6; transform: translate(-70px, 20px) scale(1.1); }
    80% { opacity: 0.5; }
    100% { opacity: 0; transform: translate(0, 0) scale(0.8); }
}

@keyframes particleFloat6 {
    0% { opacity: 0; transform: translate(0, 0) scale(0.7); }
    30% { opacity: 0.7; }
    65% { opacity: 0.5; transform: translate(50px, -30px) scale(1.3); }
    85% { opacity: 0.7; }
    100% { opacity: 0; transform: translate(0, 0) scale(0.7); }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        rgba(10, 10, 15, 0.6) 0%, 
        rgba(5, 5, 10, 0.9) 100%);
    z-index: 0;
}

/* Create floating bokeh elements */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 59, 59, 0.4) 0%, rgba(255, 59, 59, 0) 20%),
        radial-gradient(circle at 80% 40%, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0) 20%),
        radial-gradient(circle at 40% 80%, rgba(255, 59, 59, 0.3) 0%, rgba(255, 59, 59, 0) 15%),
        radial-gradient(circle at 75% 15%, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0) 15%),
        radial-gradient(circle at 60% 60%, rgba(255, 59, 59, 0.3) 0%, rgba(255, 59, 59, 0) 15%);
    filter: blur(20px);
    animation: bokehFloat 20s ease-in-out infinite alternate;
}

/* Additional bokeh elements */
.hero .bokeh-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bokeh {
    position: absolute;
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0;
    z-index: 0;
}

.bokeh-1 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at center, rgba(255, 59, 59, 0.3) 0%, rgba(255, 59, 59, 0) 70%);
    top: 20%;
    left: 15%;
    animation: bokehPulse1 15s ease-in-out infinite;
}

.bokeh-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0) 70%);
    top: 50%;
    right: 20%;
    animation: bokehPulse2 18s ease-in-out infinite;
}

.bokeh-3 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at center, rgba(255, 59, 59, 0.25) 0%, rgba(255, 59, 59, 0) 70%);
    bottom: 25%;
    left: 30%;
    animation: bokehPulse3 12s ease-in-out infinite;
}

.bokeh-4 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0) 70%);
    top: 30%;
    right: 30%;
    animation: bokehPulse4 20s ease-in-out infinite;
}

@keyframes bokehFloat {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

@keyframes bokehPulse1 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.8);
    }
    25% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
        transform: translate(50px, 30px) scale(1.2);
    }
    75% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.8);
    }
}

@keyframes bokehPulse2 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.8);
    }
    30% {
        opacity: 0.6;
    }
    60% {
        opacity: 0.3;
        transform: translate(-40px, 20px) scale(1.2);
    }
    80% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.8);
    }
}

@keyframes bokehPulse3 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.8);
    }
    20% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.3;
        transform: translate(30px, -40px) scale(1.3);
    }
    80% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.8);
    }
}

@keyframes bokehPulse4 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.9);
    }
    25% {
        opacity: 0.4;
    }
    55% {
        opacity: 0.6;
        transform: translate(-50px, -25px) scale(1.1);
    }
    75% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.9);
    }
}

.hero .container {
    position: relative;
    z-index: 10;
    padding-bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    background-clip: text;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    padding: 0 10px;
    transform: translateY(0);
    opacity: 1;
    animation: initialTextEffect 2s forwards, zoomReveal 1.5s ease-out;
    visibility: visible;
    display: block;
}

/* Initial animation with smoother transition */
@keyframes initialTextEffect {
    0% {
        color: transparent;
        -webkit-text-stroke: 2px rgba(255, 59, 59, 0.8);
        text-shadow: 
            0 0 15px rgba(255, 59, 59, 0.4), 
            0 0 30px rgba(59, 130, 246, 0.2),
            0 0 1px rgba(255, 255, 255, 0.3);
        letter-spacing: 5px;
        filter: blur(0.3px);
        opacity: 1;
    }
    45% {
        color: transparent;
        -webkit-text-stroke: 2px rgba(59, 130, 246, 0.8);
        text-shadow: 
            0 0 15px rgba(59, 130, 246, 0.4), 
            0 0 30px rgba(255, 59, 59, 0.2),
            0 0 1px rgba(255, 255, 255, 0.3);
        letter-spacing: 1px;
        filter: blur(1px);
        opacity: 1;
    }
    50% {
        color: white;
        -webkit-text-stroke: 0px;
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.7),
            0 0 1px rgba(180, 100, 255, 0.7);
        letter-spacing: 1px;
        filter: blur(2px);
        opacity: 1;
    }
    100% {
        color: white;
        -webkit-text-stroke: 0px;
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.7),
            0 0 1px rgba(180, 100, 255, 0.7);
        letter-spacing: 1px;
        filter: blur(0px);
        opacity: 1;
    }
}

/* Mobile-optimized initial animation */
@media (max-width: 768px) {
    /* Also optimize the hero h1 initial animation */
    .hero h1 {
        font-size: 2.8rem;
        white-space: normal;
        padding: 0.5rem 1rem;
        transform: translateY(0);
        opacity: 1;
        animation: initialTextEffect 1.5s forwards, zoomRevealMobile 1s ease-out !important;
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
        max-width: 100%;
        /* Remove any blur filter here */
        filter: none !important;
        -webkit-filter: none !important;
    }
    
    @keyframes initialTextEffect {
        0% {
            color: rgba(255, 255, 255, 0);
            -webkit-text-stroke: 1px rgba(255, 59, 59, 0.7);
            letter-spacing: 1px;
            filter: none; /* Remove blur filter */
        }
        50% {
            color: rgba(255, 255, 255, 0.5);
            -webkit-text-stroke: 0.5px rgba(59, 130, 246, 0.7);
            letter-spacing: 0.5px;
            filter: none; /* Remove blur filter */
        }
        100% {
            color: rgba(255, 255, 255, 1);
            -webkit-text-stroke: 0;
            letter-spacing: 0.5px;
            filter: none; /* Remove blur filter */
        }
    }
}

@media (max-width: 480px) {
    /* Even simpler animation for small mobile devices */
    .hero h1 {
        font-size: 2rem;
        animation-duration: 1s !important;
        transform: translateZ(0);
        letter-spacing: normal;
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
        padding: 0 10px;
        max-width: 100%;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        /* Remove blur filter for mobile */
        filter: none !important;
        -webkit-filter: none !important;
    }
    
    @keyframes initialTextEffect {
        0% {
            opacity: 1;
            color: rgba(255, 255, 255, 0);
            -webkit-text-stroke: 0.5px rgba(255, 59, 59, 0.7);
            filter: none; /* Remove blur filter */
        }
        100% {
            opacity: 1;
            color: rgba(255, 255, 255, 1);
            -webkit-text-stroke: 0;
            filter: none; /* Remove blur filter */
        }
    }
    
    /* Simplify the gradient text effect too */
    .hero h1.gradient-text {
        background-size: 200% auto !important;
        animation-duration: 20s !important;
        transform: translateZ(0);
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        /* Remove blur filter */
        filter: none !important;
        -webkit-filter: none !important;
        text-shadow: none !important;
    }
}

/* Gradient text style applied after initial animation */
.hero h1.gradient-text {
    color: transparent;
    background: linear-gradient(90deg, #ff3b3b, #3b82f6, #ff3b3b);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 16s linear infinite;
    will-change: background-position;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-smooth: always;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 1px;
    /* Subtle depth without glow */
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.3));
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Clean up all the unused elements */
.hero h1.gradient-text::after {
    display: none;
}

/* Mobile gradient text - simpler animation */
.hero h1.mobile-gradient {
    background: linear-gradient(90deg, #ff3b3b, #3b82f6, #ff3b3b);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: mobileGradientFlow 8s linear infinite, zoomRevealMobile 1s ease-out !important;
    will-change: background-position;
}

@keyframes mobileGradientFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        padding-top: 5rem;
        z-index: 1000;
        transition: right 0.3s ease;
        backdrop-filter: blur(10px);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        padding: 1rem 2rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.8rem;
        padding: 0.5rem 1rem;
        transform: translateY(0);
        opacity: 1;
        animation: initialTextEffect 1.5s forwards, zoomRevealMobile 1s ease-out !important;
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
        max-width: 100%;
    }
    
    /* Service card mobile styles */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
        min-height: 200px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .service-card .icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }
    
    .service-card .icon i {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }
    
    /* About section mobile styles */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-stats {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Allow gradient animation in mobile */
    .hero h1.gradient-text:not(.mobile-gradient) {
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: zoomRevealMobile 1s ease-out forwards !important;
        transition: none !important;
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
        max-width: 100%;
        padding: 0 10px;
    }
    
    /* Keep gradient flow for mobile-gradient class */
    .hero h1.mobile-gradient {
        background: linear-gradient(90deg, #ff3b3b, #3b82f6, #ff3b3b);
        background-size: 200% auto;
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: mobileGradientFlow 8s linear infinite, zoomRevealMobile 1s ease-out forwards !important;
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
        max-width: 100%;
        padding: 0 10px;
    }
    
    /* Disable other text animations on mobile */
    #heroTitle {
        transition: none !important;
    }
    
    .hero h1.gradient-text::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
        max-width: 100%;
        min-height: 180px;
        margin: 0 auto;
    }

    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .service-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 6rem 1rem 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-text {
        width: 100%;
        margin-bottom: 2rem;
    }

    .about-stats {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        width: 100%;
        min-height: auto;
        padding: 1.25rem;
        margin-bottom: 0.5rem;
        overflow: visible;
    }
    
    .stat-content {
        width: 100%;
    }
    
    .stat-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .stat-content p {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        margin-top: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .services-grid {
        padding: 0 0.5rem;
    }
    
    .service-card {
        padding: 1.25rem;
        min-height: 160px;
    }
    
    .service-card .icon {
        width: 40px;
        height: 40px;
    }
    
    .service-card .icon i {
        font-size: 1.2rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .services-preview h2 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    /* Extra small screen stat cards */
    .stat-item {
        padding: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
        margin-right: 0.8rem;
    }
    
    .stat-icon i {
        font-size: 1rem;
    }
    
    .stat-content h3 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .stat-content p {
        font-size: 0.85rem;
        line-height: 1.2;
    }
}

/* Underline changes after gradient is applied */
.hero h1.gradient-text::after {
    animation: lineFlow 8s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes lineFlow {
    0% {
        background-position: 0% center;
        transform: scaleX(0.95);
    }
    50% {
        background-position: 100% center;
        transform: scaleX(1.05);
    }
    100% {
        background-position: 0% center;
        transform: scaleX(0.95);
    }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

/* Services Section */
.services-preview {
    padding: 4rem 0 4.5rem;
    background-color: var(--darker-bg);
    position: relative;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 30px;
    border-top: none;
    border-bottom: none;
}

.services-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(5, 5, 5, 0.98) 0%,
        rgba(10, 10, 15, 0.9) 40%,
        rgba(59, 130, 246, 0.05) 100%);
    opacity: 0.8;
}

.services-preview .container {
    position: relative;
    z-index: 1;
    padding-top: 70px;
    padding-bottom: 70px;
}

.services-preview h2 {
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
    text-align: center;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background-color: var(--card-bg);
    padding: 1.8rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(255, 59, 59, 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.service-card:hover .icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 10px 10px;
    border-color: transparent transparent var(--primary-color) transparent;
    opacity: 0;
    transition: var(--transition);
}

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

.service-card .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition);
}

.service-card .icon i {
    font-size: 1.8rem;
    color: var(--text-color);
}

.card-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-features li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.5;
}

.learn-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.learn-more i {
    transition: transform 0.3s ease;
}

.learn-more:hover i {
    transform: translateX(5px);
}

.view-all-services {
    text-align: center;
    margin-top: 3rem;
}

.view-all-services .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.view-all-services .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.view-all-services .cta-button i {
    transition: transform 0.3s ease;
}

.view-all-services .cta-button:hover i {
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 6rem 1rem 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        width: 100%;
        margin-bottom: 2rem;
    }

    .about-stats {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        margin-top: 1rem;
    }
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 59, 59, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid Layouts */
.team-grid, .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Section Spacing */
section {
    padding: 4rem 0;
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 3rem 0;
    text-align: center;
}

.footer-logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 59, 59, 0.2);
}

.submit-button {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 59, 59, 0.3);
}

/* About Section */
.about-preview {
    padding: 4.5rem 0;
    background-color: var(--darker-bg);
    position: relative;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 30px;
    border-top: none;
    border-bottom: none;
}

.about-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(5, 5, 5, 0.98) 0%,
        rgba(10, 10, 15, 0.9) 40%,
        rgba(255, 59, 59, 0.05) 100%);
    opacity: 0.8;
}

.about-preview .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    position: relative;
    z-index: 1;
    padding-top: 70px;
    padding-bottom: 70px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 2rem;
}

.about-text {
    text-align: left;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
}

.about-text h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: -rem 0;
    border-radius: 2px;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Add or update styles for stat cards */
.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-item {
    background-color: rgba(20, 20, 20, 0.8);
    border-radius: 10px;
    padding: 1.75rem;
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    width: 100%;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 20%,
        rgba(255, 59, 59, 0.1) 40%,
        rgba(59, 130, 246, 0.1) 60%,
        transparent 80%
    );
    transform: rotate(30deg);
    transition: transform 0.7s ease;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
}

.stat-item:hover::before {
    opacity: 1;
    transform: rotate(30deg) translateY(-30%);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2), 
                0 0 15px rgba(var(--primary-color-rgb, 255, 59, 59), 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    margin-right: 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb, 255, 59, 59), 0.8), 
        rgba(var(--secondary-color-rgb, 59, 130, 246), 0.8));
    flex-shrink: 0;
}

.stat-item i {
    font-size: 1.3rem;
    color: white;
    transition: transform 0.3s ease;
}

.stat-item:hover i {
    transform: scale(1.2);
}

.stat-content {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.stat-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #ffffff);
    transition: color 0.3s ease;
    line-height: 1.3;
}

.stat-content p {
    color: var(--text-secondary, #b0b0b0);
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.stat-item:hover .stat-content h3 {
    color: rgba(var(--primary-color-rgb, 255, 59, 59), 1);
}

@media (max-width: 992px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem;
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--darker-bg);
    position: relative;
    overflow: hidden;
    margin-top: 0;
    z-index: 4;
    padding-top: 30px;
    border-top: none;
    border-bottom: none;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(5, 5, 5, 0.98) 0%,
        rgba(10, 10, 15, 0.9) 40%,
        rgba(59, 130, 246, 0.05) 100%);
    opacity: 0.8;
}

.cta-section .container {
    position: relative;
    z-index: 1;
    padding-top: 70px;
}

.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section Background */
.services-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.subtle-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 25px 25px;
    opacity: 0.5;
    filter: blur(0.5px);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.03;
    filter: blur(20px);
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.5) 0%, rgba(59, 130, 246, 0) 70%);
    top: 10%;
    right: 5%;
    animation: shapeFloat1 35s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at center, rgba(255, 59, 59, 0.4) 0%, rgba(255, 59, 59, 0) 70%);
    bottom: 20%;
    left: 10%;
    animation: shapeFloat2 40s ease-in-out infinite;
}

.shape-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
    top: 40%;
    left: 20%;
    animation: shapeFloat3 45s ease-in-out infinite;
}

@keyframes shapeFloat1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.03; }
    50% { transform: translate(30px, 20px) scale(1.1); opacity: 0.05; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.03; }
}

@keyframes shapeFloat2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.03; }
    50% { transform: translate(-20px, 30px) scale(1.15); opacity: 0.05; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.03; }
}

@keyframes shapeFloat3 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.03; }
    50% { transform: translate(25px, -15px) scale(1.05); opacity: 0.04; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.03; }
}

/* About Section Background */
.about-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.radial-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, 
        rgba(255, 59, 59, 0.05) 0%, 
        rgba(59, 130, 246, 0.05) 30%, 
        rgba(5, 5, 10, 0) 70%);
    opacity: 0.4;
    filter: blur(30px);
    animation: pulsate 15s ease-in-out infinite;
}

@keyframes pulsate {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.3; }
}

.floating-dots {
    position: absolute;
    width: 100%;
    height: 100%;
}

.dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0.1;
    animation: dotFloat 20s linear infinite;
}

.dot-1 {
    background-color: rgba(255, 59, 59, 0.8);
    top: 20%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 35s;
}

.dot-2 {
    background-color: rgba(59, 130, 246, 0.8);
    top: 70%;
    right: 15%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.dot-3 {
    background-color: rgba(255, 59, 59, 0.8);
    top: 40%;
    right: 25%;
    animation-delay: 2s;
    animation-duration: 40s;
}

.dot-4 {
    background-color: rgba(59, 130, 246, 0.8);
    bottom: 30%;
    left: 20%;
    animation-delay: 10s;
    animation-duration: 25s;
}

@keyframes dotFloat {
    0% { transform: translate(0, 0); }
    25% { transform: translate(20px, 15px); }
    50% { transform: translate(5px, 30px); }
    75% { transform: translate(-10px, 15px); }
    100% { transform: translate(0, 0); }
}

/* CTA Section Background */
.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.glowing-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0), 
        rgba(59, 130, 246, 0.3), 
        rgba(255, 59, 59, 0.3),
        rgba(59, 130, 246, 0));
    filter: blur(2px);
    opacity: 0.3;
    animation: lineGlow 10s ease-in-out infinite;
}

@keyframes lineGlow {
    0% { opacity: 0.2; background-position: 0% 50%; }
    50% { opacity: 0.4; background-position: 100% 50%; }
    100% { opacity: 0.2; background-position: 0% 50%; }
}

/* Section Transitions */
.section-transition {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 5;
    pointer-events: none;
}

.hero-to-services {
    background: linear-gradient(to bottom, 
        rgba(8, 10, 20, 0) 0%, 
        rgba(8, 10, 20, 0.3) 30%,
        rgba(5, 5, 5, 0.95) 100%);
    filter: blur(15px);
}

.services-to-about {
    background: linear-gradient(to bottom, 
        rgba(5, 5, 5, 0) 0%, 
        rgba(5, 5, 5, 0.3) 30%,
        rgba(5, 5, 5, 0.95) 100%);
    filter: blur(15px);
}

.about-to-clients {
    background: linear-gradient(to bottom, 
        rgba(5, 5, 5, 0) 0%, 
        rgba(5, 5, 5, 0.3) 30%,
        rgba(5, 5, 5, 0.95) 100%);
    filter: blur(15px);
}

.about-to-cta {
    background: linear-gradient(to bottom, 
        rgba(5, 5, 5, 0) 0%, 
        rgba(5, 5, 5, 0.3) 30%,
        rgba(5, 5, 5, 0.95) 100%);
    filter: blur(15px);
}

/* Adjust sections for seamless blending */
.services-preview {
    background-color: var(--darker-bg);
    margin-top: 0;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    padding-top: 30px;
}

.about-preview {
    background-color: var(--darker-bg);
    margin-top: 0;
    position: relative;
    z-index: 3;
    margin-bottom: 0;
    padding-top: 30px;
}

.clients-section {
    background-color: var(--darker-bg);
    margin-top: 0;
    position: relative;
    z-index: 4;
    margin-bottom: 0;
    padding-top: 30px;
}

.cta-section {
    background-color: var(--darker-bg);
    margin-top: 0;
    position: relative;
    z-index: 5;
    padding-top: 30px;
}

/* Adjusted padding for content */
.hero .container {
    padding-bottom: 70px;
}

.services-preview .container {
    padding-top: 70px;
    padding-bottom: 70px;
}

.about-preview .container {
    padding-top: 70px;
    padding-bottom: 70px;
}

.cta-section .container {
    padding-top: 70px;
}

/* Gradient animation */
@keyframes gradientFlow {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Mobile optimizations for hero section */
@media (max-width: 768px) {
    /* Common spacing adjustments */
    section {
        padding: 4rem 0;
    }
    
    /* Adjust padding for better spacing on mobile */
    .container {
        padding: 0 1.5rem;
    }
    
    /* Fix overflow issues on mobile */
    body {
        overflow-x: hidden;
    }
    
    /* Improve form elements for mobile */
    input, textarea, select, button {
        font-size: 16px; /* Prevent iOS zoom on focus */
    }
    
    /* Make buttons more tappable */
    .cta-button, button, .social-links a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve mobile scrolling */
    html, body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Performance optimizations for mobile */
    .animated-bg {
        opacity: 0.6;
    }
    
    /* Reduce number of animated elements on mobile */
    .rain-column:nth-child(odd),
    .particle:nth-child(even),
    .bokeh:nth-child(odd) {
        display: none;
    }
    
    /* Use simpler animations for mobile */
    .digital-rain, 
    .particles, 
    .floating-shapes, 
    .floating-dots,
    .bokeh-container {
        will-change: transform;
        transform: translateZ(0);
        backface-visibility: hidden;
        perspective: 1000px;
    }
    
    /* Simplified particle animations for mobile */
    .particle {
        animation-duration: 30s !important; /* Slower animations use less CPU */
        transform: translateZ(0);
    }
    
    /* Reduce blur effects which are CPU intensive */
    .grid-overlay, 
    .hero::before, 
    .hero::after {
        filter: none !important;
        transform: none !important;
        opacity: 0.3 !important;
    }
    
    /* Simplify radial gradients */
    .radial-pulse {
        background: radial-gradient(circle at center, 
            rgba(255, 59, 59, 0.1) 0%, 
            transparent 70%) !important;
        filter: none !important;
        animation: none !important;
        opacity: 0.3 !important;
    }
    
    /* Optimize text rendering for better performance */
    .hero h1.gradient-text {
        background-size: 400% auto !important; /* Larger size means less calculation */
        animation-duration: 30s !important; /* Slower animation */
        filter: none !important; /* Remove expensive shadow effects */
        text-shadow: none !important;
        transform: translateZ(0);
        animation-timing-function: linear !important;
    }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Optimize hover states for touch devices */
    .nav-links a:hover::after {
        width: 0;
    }
    
    .nav-links a:active::after {
        width: 100%;
    }
    
    .service-card:hover {
        transform: translateY(0);
    }
    
    .service-card:active {
        transform: translateY(-5px);
    }
}

/* Add this at the end of the file for additional mobile performance optimizations */

/* Specialized performance modifications for lower-end mobile devices */
@media (max-width: 768px) and (prefers-reduced-motion: reduce), 
       (max-width: 580px) {
    /* Completely disable the most CPU-intensive animations */
    .animated-bg, 
    .digital-rain, 
    .bokeh-container,
    .particles, 
    .floating-shapes, 
    .floating-dots,
    .grid-overlay::after,
    .rain-column,
    .particle,
    .bokeh,
    .shape,
    .dot {
        display: none !important;
    }
    
    /* Provide a simplified static background instead */
    .hero {
        background: linear-gradient(135deg, rgba(8, 10, 20, 0.95), rgba(12, 15, 25, 0.99)) !important;
    }
    
    /* For reduced motion, keep zoom but make it quicker */
    .hero h1 {
        animation: zoomRevealMobile 0.5s ease-out forwards !important;
    }
    
    /* Maintain a minimal animated gradient for the title */
    .hero h1.gradient-text:not(.mobile-gradient) {
        background: linear-gradient(90deg, #ff3b3b, #3b82f6) !important;
        background-size: 100% !important;
        animation: zoomRevealMobile 0.5s ease-out forwards !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }
    
    /* Keep gradient animation for mobile-gradient class */
    .hero h1.mobile-gradient {
        background: linear-gradient(90deg, #ff3b3b, #3b82f6, #ff3b3b) !important;
        background-size: 200% auto !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        animation: mobileGradientFlow 8s linear infinite, zoomRevealMobile 0.5s ease-out forwards !important;
    }
    
    /* Reduce overall weight of animations */
    .services-preview,
    .about-preview {
        background-color: var(--darker-bg) !important;
        background-image: none !important;
    }
    
    /* Skip transition for title */
    #heroTitle:not(.mobile-gradient) {
        transition: none !important;
    }
}

@media (max-width: 768px) {
    .animated-bg, 
    .grid-overlay, 
    .rain-column, 
    .particles, 
    .particle, 
    .digital-rain, 
    .bokeh-container,
    .subtle-grid,
    .floating-shapes,
    .radial-pulse,
    .floating-dots,
    .glowing-line {
        animation: none !important;
        transition: none !important;
        opacity: 0.2 !important;
    }
    
    .hero {
        background: var(--dark-bg);
    }
    
    /* Allow gradient animation for mobile-gradient class */
    .hero h1.gradient-text:not(.mobile-gradient) {
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: zoomRevealMobile 1s ease-out forwards !important;
        transition: none !important;
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
        max-width: 100%;
        padding: 0 10px;
    }
    
    /* Enable simpler gradient animation for mobile */
    .hero h1.mobile-gradient {
        background: linear-gradient(90deg, #ff3b3b, #3b82f6, #ff3b3b);
        background-size: 200% auto;
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: mobileGradientFlow 8s linear infinite, zoomRevealMobile 1s ease-out forwards !important;
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .services-preview,
    .about-preview,
    .cta-section {
        background-color: var(--dark-bg);
    }
    
    #heroTitle:not(.mobile-gradient) {
        animation: zoomRevealMobile 1s ease-out forwards !important;
        transition: none !important;
        opacity: 1 !important;
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
        max-width: 100%;
        padding: 0 10px;
    }
}

/* Mobile optimized stat cards */
.stat-item-mobile {
    width: 100% !important;
    margin-bottom: 1rem !important;
    padding: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    background-color: rgba(25, 25, 30, 0.9) !important;
    border: 1px solid rgba(59, 130, 246, 0.15) !important;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2) !important;
    border-radius: 12px !important;
    transition: transform 0.3s ease !important;
}

.stat-item-mobile .stat-icon {
    margin-right: 1.2rem !important;
}

.stat-item-mobile .stat-content {
    flex: 1 !important;
}

.stat-item-mobile:hover {
    transform: translateY(-3px) !important;
}

/* Target data-mobile attribute for better mobile display */
@media (max-width: 768px) {
    .stat-item[data-mobile="true"] {
        width: 100%;
        margin-bottom: 1rem;
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    
    .stat-item[data-mobile="true"] .stat-icon {
        margin-right: 1rem;
        flex-shrink: 0;
    }
    
    .stat-item[data-mobile="true"] .stat-content {
        text-align: left;
        flex: 1;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .stat-item[data-mobile="true"] {
        padding: 1.25rem;
    }
    
    .stat-item[data-mobile="true"] .stat-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .stat-item[data-mobile="true"] h3 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-item[data-mobile="true"] p {
        font-size: 0.9rem;
        line-height: 1.3;
    }
}

/* Clients Section */
.clients-section {
    padding: 5rem 0;
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(5, 5, 5, 0.98) 0%,
        rgba(10, 10, 15, 0.9) 40%,
        rgba(255, 59, 59, 0.05) 100%);
    opacity: 0.8;
}

.clients-section .container {
    position: relative;
    z-index: 1;
    padding-top: 70px;
    padding-bottom: 70px;
}

.clients-section h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.clients-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.client-item {
    background-color: rgba(20, 20, 20, 0.8);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.client-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 20%,
        rgba(255, 59, 59, 0.1) 40%,
        rgba(59, 130, 246, 0.1) 60%,
        transparent 80%
    );
    transform: rotate(30deg);
    transition: transform 0.7s ease;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
}

.client-item:hover::before {
    opacity: 1;
    transform: rotate(30deg) translateY(-30%);
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2), 
                0 0 15px rgba(var(--primary-color-rgb, 255, 59, 59), 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.client-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: white;
    color: white;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb, 255, 59, 59), 0.3);
    overflow: hidden;
    padding: 5px;
    border: 2px solid transparent;
    background-origin: border-box;
    background-clip: content-box, border-box;
    background-image: 
        linear-gradient(white, white), 
        linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.client-logo img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    border-radius: 50%;
}

.client-item:hover .client-logo {
    transform: scale(1.1);
}

.client-info {
    text-align: center;
}

.client-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.client-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.client-item:hover .client-info h3 {
    color: var(--primary-color);
}

/* Mobile responsiveness for clients section */
@media (max-width: 768px) {
    .clients-section h2 {
        font-size: 2.2rem;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .client-item {
        padding: 1.5rem;
    }
    
    .client-logo {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .client-info h3 {
        font-size: 1.4rem;
    }
}

/* Transition between clients and CTA section */
.clients-to-cta {
    background: linear-gradient(to bottom, 
        rgba(5, 5, 5, 0) 0%, 
        rgba(5, 5, 5, 0.3) 30%,
        rgba(5, 5, 5, 0.95) 100%);
    filter: blur(15px);
}

.ptc-logo img {
    padding: 5px;
    object-fit: scale-down;
    max-width: 100%;
    max-height: 100%;
}

/* Logo Text Image */
.logo-text-image {
    height: auto;
    max-height: 40px;
    width: auto;
    display: block;
}

@media screen and (max-width: 768px) {
    .logo-text-image {
        max-height: 30px;
    }
}