/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--bg-hero);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-bottom: 2rem;
    padding-top: 40px !important;
}

/* Video Background */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* opacity: 0.1; */
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.4;
}


/* Mobile Responsive for Modal */
@media (max-width: 768px) {
    .email, .sol {
        margin-top: 15px;
    }

    .contact-modal {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 30px 20px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .modal-title {
        font-size: 20px;
    }

    .trust-badges {
        flex-direction: column;
        gap: 10px;
    }

    .trust-badge {
        justify-content: center;
    }
}


/* Background Effects */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--neon-blue);
    animation: particleFloatEnhanced 15s linear infinite;
    opacity: 0.8;
}

.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.neural-node {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--neon-green);
    animation: neuralPulseEnhanced 3s ease-in-out infinite;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    /* max-width: 600px; */
    padding: 2rem 0;
    opacity: 1;
    visibility: visible;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    animation: badgeGlow 2s ease-in-out infinite alternate;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-weight: 400;
    max-width: 999px;
    margin: 0 auto;
}

.hero-subdescription {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    text-align: center;
    min-width: 120px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-suffix {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--neon-blue);
    line-height: 1;
    text-shadow: 0 0 10px var(--neon-blue);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Hero Visual Elements */
.hero-visual {
    position: relative;
    height: clamp(400px, 50vh, 600px);
    display: flex;
    align-items: center;
    justify-content: end;
    z-index: 10;
}

.ai-animation-container {
    position: relative;
    width: clamp(300px, 80vw, 550px);
    height: clamp(300px, 80vw, 550px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Code Window */
.code-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(300px, 93%, 510px);
    height: clamp(220px, 88%, 444px);
    background: rgba(13, 17, 23, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: codeWindowFloat 6s ease-in-out infinite, codeWindowPulse 3s ease-in-out infinite;
    overflow: hidden;
}

.window-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: var(--transition);
}

.control.close { 
    background: #ff5f57; 
}

.control.close:hover { 
    background: #ff3b30; 
    box-shadow: 0 0 10px #ff5f57;
}

.control.minimize { 
    background: #ffbd2e; 
}

.control.minimize:hover { 
    background: #ffac00; 
    box-shadow: 0 0 10px #ffbd2e;
}

.control.maximize { 
    background: #28ca42; 
}

.control.maximize:hover { 
    background: #20a232; 
    box-shadow: 0 0 10px #28ca42;
}

.window-title {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
}

.code-content {
    padding: 1.5rem;
    font-size: clamp(0.75rem, 2vw, 1.4rem);
    line-height: 1.7;
    color: #e6edf3;
    overflow-y: auto;
    max-height: calc(100% - 60px);
}

.code-line {
    margin-bottom: 0.3rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: typeInLine 0.8s ease forwards;
    white-space: nowrap;
    overflow: hidden;
}

.keyword { color: #ff7b72; font-weight: 500; }
.module { color: #7ee787; }
.variable { color: #79c0ff; }
.class { color: #ffa657; font-weight: 600; }
.function { color: #d2a8ff; }
.property { color: #79c0ff; }
.number { color: #a5d6ff; }

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.element {
    position: absolute;
    width: clamp(55px, 8vw, 75px);
    height: clamp(55px, 8vw, 75px);
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.4);
    animation: elementFloat 8s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.element:hover {
    transform: scale(1.15);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.6);
    animation-play-state: paused;
}

.element.ai-chip {
    animation-delay: 0s;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

.element.ai-chip:hover {
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.6);
}

.element.neural-icon {
    animation-delay: 2s;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.element.neural-icon:hover {
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.6);
}

.element.data-icon {
    animation-delay: 4s;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 15px 40px rgba(240, 147, 251, 0.4);
}

.element.data-icon:hover {
    box-shadow: 0 20px 50px rgba(240, 147, 251, 0.6);
}

.element.cloud-icon {
    animation-delay: 6s;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.4);
}

.element.cloud-icon:hover {
    box-shadow: 0 20px 50px rgba(79, 172, 254, 0.6);
}

/* Typing Animation */
/* .neon-cyan {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px #39ff14;
            
} */

.typing-word {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #00f5ff 0%, #39ff14 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: left;
    animation: textGlow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 45px #00ffb7 !important;
    padding-bottom: 5px!important;
}

.typing-word::after {
    content: '|';
    color: #00f5ff;
    animation: typingCursor 1s infinite;
    -webkit-text-fill-color: #00f5ff !important;
    background: none !important;
    font-weight: normal;
    margin-left: 3px;
    text-shadow: 0 0 10px #00f5ff;
}

/* Enhanced Code Animation */
.code-line:nth-child(1) { animation-delay: 0.5s; }
.code-line:nth-child(2) { animation-delay: 1s; }
.code-line:nth-child(3) { animation-delay: 1.5s; }
.code-line:nth-child(4) { animation-delay: 2s; }
.code-line:nth-child(5) { animation-delay: 2.5s; }
.code-line:nth-child(6) { animation-delay: 3s; }
.code-line:nth-child(7) { animation-delay: 3.5s; }
.code-line:nth-child(8) { animation-delay: 4s; }
.code-line:nth-child(9) { animation-delay: 4.5s; }

/* Animations */
@keyframes typingCursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes typeInLine {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes elementFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-25px) rotate(90deg) scale(1.05);
    }
    50% {
        transform: translateY(-15px) rotate(180deg) scale(1);
    }
    75% {
        transform: translateY(-30px) rotate(270deg) scale(1.05);
    }
}

@keyframes codeWindowFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-20px);
    }
}

@keyframes codeWindowPulse {
    0%, 100% {
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 30px 100px rgba(14, 165, 233, 0.4);
    }
}

@keyframes particleFloatEnhanced {
    0% {
        transform: translateY(100vh) translateX(0) scale(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: scale(1) rotate(45deg);
    }
    90% {
        opacity: 1;
        transform: scale(1) rotate(315deg);
    }
    100% {
        transform: translateY(-100px) translateX(50px) scale(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes neuralPulseEnhanced {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
        box-shadow: 0 0 20px var(--neon-green);
    }
    50% {
        transform: scale(1.6);
        opacity: 1;
        box-shadow: 0 0 40px var(--neon-green), 0 0 80px var(--neon-green);
    }
}

@keyframes badgeGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 30px rgba(0, 245, 255, 0.2);
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 20px rgba(0, 245, 255, 0.8), 0 0 30px rgba(57, 255, 20, 0.3);
    }
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .hero-right{
        display: none!important;
    }

    .hero-section {
        text-align: center;
        padding-top: calc(var(--header-height, 80px) + 2rem);
        min-height: auto;
        padding-bottom: 3rem;
    }
    
    .hero-content {
        padding-top: 1rem;
        padding-bottom: 1rem;
        max-width: 100%;
    }
    
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
        margin-bottom: 2rem;
        gap: 1rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }

    .hero-visual {
        margin-top: 2rem;
    }
    
    .stat-item {
        min-width: 100px;
    }
}

@media (max-width: 767.98px) {
    .hero-content {
        padding-top: 5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-primary-gradient,
    .btn-outline-light {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        gap: 1rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-item {
        min-width: auto;
        width: calc(33.333% - 0.5rem);
        max-width: 120px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6vw, 3rem);
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-subdescription {
        font-size: 0.9rem;
    }
    
    .code-window {
        width: 95%;
        height: auto;
        min-height: 180px;
    }
    
    .code-content {
        padding: 1rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 575.98px) {
    .ai-animation-container {
        width: 95vw;
        height: 95vw;
        max-width: 280px;
        max-height: 280px;
    }

    .element {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .code-window {
        width: 90%;
        height: auto;
        min-height: 160px;
    }
    
    .code-content {
        padding: 0.75rem;
        font-size: 0.65rem;
        line-height: 1.5;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-subdescription {
        font-size: 0.85rem;
    }
    
    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .stat-item {
        width: calc(50% - 0.5rem);
        max-width: 100px;
    }
    
    .stat-number {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }
    
    .stat-suffix {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    .particle,
    .neural-node,
    .element,
    .code-window,
    .typing-word {
        animation: none !important;
    }
    
    .typing-word::after {
        animation: none !important;
        opacity: 1;
    }
}