/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    overflow-x: hidden;
    /* Prevent layout shifts during font loading */
    font-display: swap;
    /* Ensure stable layout during loading */
    min-height: 100vh;
    /* Prevent any initial layout shifts */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #888888;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #ffffff, #888888);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #000000 0%, #111111 100%);
    position: relative;
    overflow: hidden;
    /* Prevent layout shifts during loading */
    min-height: 100vh;
    /* Ensure content is visible immediately */
    opacity: 1;
    visibility: visible;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(120, 120, 120, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(120, 120, 120, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    height: 100vh;
    /* Prevent layout shifts */
    min-height: 100vh;
}

.hero-content {
    position: relative;
    z-index: 3;
    /* Ensure stable dimensions */
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Prevent font loading shifts */
    min-height: 4.5rem;
}

.expand-text {
    display: block;
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    /* Prevent layout shifts during font loading */
    min-height: 5.5rem;
    line-height: 1.1;
}

.highlight {
    background: linear-gradient(45deg, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 1rem;
    line-height: 1.6;
    /* Prevent layout shifts */
}

.hero-description {
    font-size: 1rem;
    color: #aaaaaa;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    min-height: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    /* Ensure stable positioning */
    min-height: 3rem;
    align-items: center;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.hero-visual {
    position: absolute;
    inset: 0;
    height: 100%;
    z-index: 0;
    /* Ensure stable dimensions */
    min-height: 100vh;
}

#globe-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Prevent layout shifts by setting initial dimensions */
    min-height: 100vh;
    min-width: 100%;
}

#globe-container canvas {
    width: 100%;
    height: 100%;
    display: block;
    /* Prevent canvas resizing issues */
    object-fit: cover;
}

/* Ensure globe container has stable dimensions during loading */
#globe-container:empty::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    position: absolute;
    top: 0;
    left: 0;
}



/* Services Section */
.services {
    padding: 100px 0;
    background: #111111;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
}

.services-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    transition: transform 0.5s ease;
    padding:1rem;
}

/* Make the 7th card span the full row for a more balanced layout */
.services-grid .service-card:nth-child(7) {
    grid-column: 1 / -1;
    max-width: 680px;
    justify-self: center;
}

/* Mobile: Keep 7th card in normal 2x2 grid */
@media (max-width: 768px) {
    .services-grid .service-card:nth-child(7) {
        grid-column: auto;
        max-width: none;
        justify-self: auto;
    }
}

/* Services Navigation */
.services-navigation {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 0 1rem;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    /* Start visible to prevent layout shifts */
    opacity: 1;
    transform: translateY(0) scale(1);
    /* Use a more subtle entrance animation */
    animation: cardEntranceSubtle 0.8s ease-out forwards;
    animation-delay: calc(var(--card-index, 0) * 0.1s + 0.3s);
    overflow: hidden;
    cursor: pointer;
    /* Ensure stable dimensions */
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card:nth-child(1) { --card-index: 0; }
.service-card:nth-child(2) { --card-index: 1; }
.service-card:nth-child(3) { --card-index: 2; }
.service-card:nth-child(4) { --card-index: 3; }
.service-card:nth-child(5) { --card-index: 4; }
.service-card:nth-child(6) { --card-index: 5; }

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardEntranceSubtle {
    0% {
        opacity: 0.7;
        transform: translateY(10px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 25px 50px rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.2),
        0 0 60px rgba(255, 255, 255, 0.1);
}

.service-card:hover .service-icon::before {
    width: 120px;
    height: 120px;
}

.service-card:hover .service-icon i {
    animation: iconPulse 1s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Floating animation for cards */
.service-card {
    animation: cardEntranceSubtle 0.8s ease-out forwards, floating 6s ease-in-out infinite;
    animation-delay: calc(var(--card-index, 0) * 0.1s + 0.3s), calc(var(--card-index, 0) * 0.5s + 2s);
}

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

/* Particle effects */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
    animation: particleFloat 3s linear infinite;
}

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

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover h3 {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card p {
    color: #cccccc;
    line-height: 1.6;
    transition: all 0.4s ease;
}

.service-card:hover p {
    color: #ffffff;
    transform: translateY(-1px);
}

.service-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(-10px);
}

.service-card:hover .service-arrow {
    color: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
    opacity: 1;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #000000;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}


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

.tech-item {
    background: rgba(255, 255, 255, 0.04);
    padding: 1.2rem;
    border-radius: 16px;
    text-align: center;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.05);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #111111;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundFloat 20s ease-in-out infinite;
}

/* Space background elements */
.space-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Second layer of stars for depth */
.stars::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 15px 60px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 60px 10px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 110px 50px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 160px 95px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 210px 35px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 25px 80px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 75px 45px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 125px 15px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 175px 65px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 25px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 90px 75px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 140px 40px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 190px 90px, rgba(255, 255, 255, 0.5), transparent);
    background-repeat: repeat;
    background-size: 220px 110px;
    animation: twinkle 8s ease-in-out infinite reverse;
}



/* Stars animation */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        /* Petites étoiles */
        radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 45px 85px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 70px 15px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 95px 65px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 120px 40px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 145px 90px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 170px 25px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 195px 75px, rgba(255, 255, 255, 0.2), transparent),
        /* Étoiles moyennes */
        radial-gradient(1.5px 1.5px at 35px 55px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 85px 35px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 135px 80px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 185px 45px, rgba(255, 255, 255, 0.3), transparent),
        /* Étoiles plus brillantes */
        radial-gradient(2px 2px at 55px 20px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 105px 70px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 155px 30px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 205px 85px, rgba(255, 255, 255, 0.5), transparent);
    background-repeat: repeat;
    background-size: 250px 120px;
    animation: twinkle 6s ease-in-out infinite;
}

/* Twinkling stars layer */
.stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Étoiles qui scintillent */
        radial-gradient(1px 1px at 30px 50px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 80px 20px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 130px 75px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 180px 40px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 50px 90px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 100px 60px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 150px 25px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 200px 80px, rgba(255, 255, 255, 0.3), transparent);
    background-repeat: repeat;
    background-size: 250px 120px;
    animation: twinkle-random 8s ease-in-out infinite;
    opacity: 0.4;
}

/* Additional twinkling stars layer */
.twinkling-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        /* Étoiles qui scintillent différemment */
        radial-gradient(1px 1px at 25px 35px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 70px 85px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 115px 25px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 165px 70px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 215px 45px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 35px 95px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 85px 55px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 135px 15px, rgba(255, 255, 255, 0.4), transparent);
    background-repeat: repeat;
    background-size: 240px 130px;
    animation: twinkle-random 12s ease-in-out infinite;
    animation-delay: 4s;
    opacity: 0.3;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.2; }
}

@keyframes twinkle-random {
    0%, 100% { 
        opacity: 0.2;
        transform: scale(1);
    }
    33% { 
        opacity: 0.5;
        transform: scale(1.02);
    }
    66% { 
        opacity: 0.3;
        transform: scale(0.98);
    }
}

/* Shooting stars */
.shooting-stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shooting-stars::before,
.shooting-stars::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    animation: shooting-star 8s linear infinite;
}

.shooting-stars::before {
    top: 20%;
    left: -10px;
    animation-delay: 0s;
}

.shooting-stars::after {
    top: 60%;
    left: -10px;
    animation-delay: 3s;
}

@keyframes shooting-star {
    0% {
        transform: translateX(0) translateY(0) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(100vh) rotate(45deg);
        opacity: 0;
    }
}

/* Orbit particles */
.orbit-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orbit-particles::before,
.orbit-particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    animation: orbit 10s linear infinite;
}

.orbit-particles::before {
    top: 30%;
    left: 50%;
    animation-delay: 0s;
}

.orbit-particles::after {
    top: 70%;
    left: 50%;
    animation-delay: 4s;
}

/* Additional orbit particles */
.extra-orbit-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.extra-orbit-particles::before,
.extra-orbit-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: orbit 12s linear infinite;
}

.extra-orbit-particles::before {
    width: 1.5px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
    top: 50%;
    left: 50%;
    animation-delay: 2s;
}

.extra-orbit-particles::after {
    width: 1px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
    top: 20%;
    left: 50%;
    animation-delay: 6s;
}

/* Occasional shooting stars */
.occasional-shooting-stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.occasional-shooting-stars::before,
.occasional-shooting-stars::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 1px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    animation: shooting-star 15s linear infinite;
}

.occasional-shooting-stars::before {
    top: 15%;
    left: -10px;
    animation-delay: 8s;
}

.occasional-shooting-stars::after {
    top: 75%;
    left: -10px;
    animation-delay: 12s;
}

@keyframes orbit {
    0% {
        transform: translateX(-50px) translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(50px) translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover i {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #cccccc;
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 3.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 700px;
    text-align: center;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #cccccc;
}



.contact-form .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0.5rem;
}

/* Launch button specific styles */
.launch-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 50px;
}

.launch-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.launch-btn:active {
    transform: translateY(0);
}

/* Rocket icon animation */
.launch-btn i {
    animation: rocket-pulse 3s ease-in-out infinite;
}

@keyframes rocket-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Propulsion effect on hover */
.launch-btn:hover i {
    animation: rocket-launch 0.8s ease-out;
}

@keyframes rocket-launch {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(-5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.contact-form .btn i {
    font-size: 1.1rem;
}

/* Contact buttons container */
.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* WhatsApp button specific styles */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: 1px solid #25D366;
    color: #ffffff;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 50px;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    border-color: #128C7E;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:active {
    transform: translateY(0);
}

/* WhatsApp icon animation */
.btn-whatsapp i {
    animation: whatsapp-pulse 3s ease-in-out infinite;
}

@keyframes whatsapp-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* WhatsApp hover effect */
.btn-whatsapp:hover i {
    animation: whatsapp-bounce 0.8s ease-out;
}

@keyframes whatsapp-bounce {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Calendly button specific styles */
.btn-calendly {
    background: linear-gradient(135deg, #006BFF, #0056CC);
    border: 1px solid #006BFF;
    color: #ffffff;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 50px;
}

.btn-calendly:hover {
    background: linear-gradient(135deg, #0056CC, #004499);
    border-color: #0056CC;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 107, 255, 0.3);
}

.btn-calendly:active {
    transform: translateY(0);
}

/* Calendly icon animation */
.btn-calendly i {
    animation: calendly-pulse 3s ease-in-out infinite;
}

@keyframes calendly-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Calendly hover effect */
.btn-calendly:hover i {
    animation: calendly-bounce 0.8s ease-out;
}

@keyframes calendly-bounce {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(-5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888888;
}

/* Footer */
.footer {
    background: #000000;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

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

.social-link:hover {
    background: linear-gradient(45deg, #ffffff, #888888);
    color: #000000;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888888;
}

/* Additional enhanced animations for services */
.service-card {
    position: relative;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 26px;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
}

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

@keyframes borderGlow {
    0%, 100% { 
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    }
    50% { 
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    }
}

.service-icon i {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.service-card:hover .service-icon i {
    animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(2deg); }
    75% { transform: translateY(3px) rotate(-2deg); }
}

/* Enhanced text animations */
.service-card h3 {
    position: relative;
    overflow: hidden;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, #ffffff, #888888);
    transition: left 0.6s ease;
}

.service-card:hover h3::after {
    left: 0;
}

/* Enhanced arrow animation */
.service-arrow {
    position: relative;
}

.service-arrow::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.service-card:hover .service-arrow::before {
    opacity: 1;
    transform: translateX(0);
}

/* Background pattern animation */
.services::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, transparent 98%, rgba(255, 255, 255, 0.02) 100%),
        linear-gradient(0deg, transparent 98%, rgba(255, 255, 255, 0.02) 100%);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: patternMove 20s linear infinite;
    pointer-events: none;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-container {
        justify-content: center;
    }
    
    .nav-logo {
        justify-content: center;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .expand-text {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .about {
        padding: 40px 0;
    }
    
    .services {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .about-video-bg {
        opacity: 0.6;
    }
    
    .about-overlay {
        background: rgba(0, 0, 0, 0.5);
    }
    
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        gap: 0.8rem;
        overflow: visible;
        position: relative;
        width: 100%;
        padding: 1rem;
    }
    
    .service-card {
        min-width: auto;
        flex-shrink: 1;
        margin-right: 0;
        padding: 1.2rem 0.8rem;
        font-size: 0.85rem;
        min-height: 240px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
        line-height: 1.3;
    }
    
    .service-card p {
        font-size: 0.8rem;
        line-height: 1.3;
        flex-grow: 1;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .services-navigation {
        display: none;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .slider-dots {
        gap: 0.4rem;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
    }
    
    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .tech-item {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        padding: 1rem;
    }
    
    .service-card {
        padding: 1rem 0.6rem;
        min-height: 200px;
    }
    
    .service-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .service-card p {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    
    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .tech-item {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .about-video-bg {
        opacity: 0.5;
    }
    
    .about-overlay {
        background: rgba(0, 0, 0, 0.6);
    }
}

/* Performance optimizations */
.service-card {
    will-change: transform, opacity, filter;
}

.service-icon {
    will-change: transform, box-shadow;
}

.service-card h3 {
    will-change: transform, background;
}

/* Smooth scrolling for better animation performance */
html {
    scroll-behavior: smooth;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-icon,
    .service-card h3,
    .service-arrow,
    .services::before,
    .services::after {
        animation: none !important;
        transition: none !important;
    }
    
    .service-card:hover {
        transform: none !important;
    }
    
    .service-card:hover .service-icon {
        transform: none !important;
    }
    
    .about-video-bg {
        display: none !important;
    }
    
    .about-overlay {
        background: #000000 !important;
    }
}

/* Reduce video intensity on very small screens for better performance */
@media (max-width: 480px) and (max-height: 600px) {
    .about-video-bg {
        opacity: 0.3;
    }
    
    .about-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
}
