/* Base Styles */
:root {
    --primary: #00ffff;
    --dark: #000000;
    --light: #ffffff;
    --glass-bg: rgba(0, 0, 0, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gray: #333333;
    --font-main: 'Syne', sans-serif;
    --font-loader: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background: linear-gradient(135deg, var(--dark) 0%, #001a1a 100%);
    color: var(--light);
    overflow-x: hidden;
}

/* Loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-text {
    display: flex;
    align-items: center;
    font-family: var(--font-loader);
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--light);
    letter-spacing: 4px;
}

.loader-text span {
    opacity: 0;
    transform: translateY(20px);
}

.fontloader {
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
}

.o-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.o-container span {
    position: relative;
    z-index: 2;
}

.o-fill {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
}

.loader {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    height: 60px;
    width: auto;
    position: relative;
    z-index: 2;
    opacity: 0;
}

.loader-circle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    z-index: 1;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader-content {
    position: relative;
    width: 100px;
    height: 100px;
}

.nodes-loader {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.nodes-loader:before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid transparent;
    border-top-color: rgba(0, 255, 255, 0.5);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.main-content {
    opacity: 0;
    visibility: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    z-index: 100;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu-icon {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 2;
}

.menu-icon span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    background: var(--light);
    transition: background 0.3s ease;
}

.menu-icon span::before,
.menu-icon span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--light);
    transition: transform 0.3s ease;
}

.menu-icon span::before {
    transform: translateY(-8px);
}

.menu-icon span::after {
    transform: translateY(8px);
}

.menu-icon.active span {
    background: transparent;
}

.menu-icon.active span::before {
    transform: rotate(45deg);
}

.menu-icon.active span::after {
    transform: rotate(-45deg);
}

@media (max-width: 848px) {
    .menu-icon {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        padding: 20px;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 0;
        padding: 12px;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(0, 255, 255, 0.1);
    }

    .contact-btn {
        width: 100%;
        margin: 10px 0;
        background: rgba(0, 255, 255, 0.15);
    }

    .contact-btn:hover {
        background: var(--primary);
    }
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    margin-left: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.contact-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease !important;
}

.contact-btn:hover {
    background: var(--primary);
    color: var(--dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.hero-container {
    width: 100%;
    padding-left: 10%;
}

.hero-content {
    max-width: 900px;
    margin-top: 15vh;
    text-align: left;
}

.hero-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 32px;
    display: block;
    font-weight: 500;
    opacity: 0.9;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.highlight {
    background: linear-gradient(45deg, var(--primary), #80ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    margin-bottom: 64px;
}

.cta-btn {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 16px 48px;
    font-size: 1.1rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: 500;
    letter-spacing: 1px;
}

.cta-btn:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

#hero-canvas {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

@media (max-width: 1200px) {
    .hero-container {
        padding-left: 8%;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
}

@media (max-width: 848px) {
    .hero-container {
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .hero-content {
        text-align: center;
        padding: 0;
    }
    
    .hero-content h1 {
        font-size: 3rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin: 0 auto 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-container {
        padding: 100px 20px;
    }
}

@media (max-width: 380px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
}

/* Services Section */
.services {
    padding: 120px 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 255, 255, 0.03));
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.section-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
    font-weight: 500;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--light);
}

.section-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background: transparent;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.03));
    opacity: 0;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

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

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 255, 255, 0.1);
    margin-bottom: 24px;
    color: var(--primary);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--dark);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--light);
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 848px) {
    .services {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 60px;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-card {
        padding: 30px;
    }
}

/* About Section */
.about {
    padding: 100px 20px;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    padding-right: 20px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--light);
    margin: 10px 0 20px;
    line-height: 1.2;
}

.about-text p {
    color: var(--light-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: left;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.stat-item:hover::after {
    width: 50px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
    font-family: 'Syne', sans-serif;
}

.stat-label {
    color: var(--light-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.image-container:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.2), transparent);
    z-index: 1;
}

@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text {
        padding-right: 0;
        text-align: center;
    }

    .stats-grid {
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-item {
        text-align: center;
    }

    .stat-item::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .image-container {
        transform: none;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 876px) {
    .about {
        padding: 60px 20px;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Our Projects Section */
.projects-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 48px;
    display: flex;
    align-items: center;
    
}

.projects-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    gap: 24px;
    /* height: 300px; */
    /* align-items: center; */
    /* justify-content: center; */
    padding-bottom: 16px;
    padding-top: 16px;
    scrollbar-width: none; 
}
.projects-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.project-card {
    width: 270px;
    height: 270px;
    min-width: 270px;
    max-width: 270px;
    min-height: 270px;
    max-height: 270px;
    flex: 0 0 auto;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: 0 4px 16px 0 rgba(0,255,255,0.06);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
}
.project-card:hover .project-content h3 {
    color: #fff;
}


.project-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.gradient-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,255,255,0.25) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
    pointer-events: none;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    filter: brightness(0.92);
    position: relative;
    z-index: 2;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    filter: brightness(0.92);
}

.project-content {
    padding: 16px 12px 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: none;
}
.project-content h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin: 0 0 4px 0;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
}


.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0 0 0;
}
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0,255,255,0.18);
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    outline: none;
}
.carousel-dot.active, .carousel-dot:hover {
    background: var(--primary);
    border-color: #fff;
}

@media (max-width: 700px) {
    .projects-carousel-wrapper {
        margin-top: 24px;
    }
    .project-card {
        width: 80vw;
        min-width: 80vw;
        max-width: 80vw;
        height: 80vw;
        min-height: 80vw;
        max-height: 80vw;
    }
    .project-image {
        aspect-ratio: 1 / 1;
    }
    .project-image img {
        height: 100%;
        width: 100%;
    }
}

.more-projects-text {
    margin-top: 28px;
    text-align: center;
    color: #b3f8ff;
    font-size: 1.08rem;
    opacity: 0.85;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.projects {
    padding: 100px 20px;
    background: linear-gradient(135deg, rgba(0,0,0,0.92) 0%, rgba(0,255,255,0.03) 100%);
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
}

.project-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0,255,255,0.06);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.025);
    border-color: var(--primary);
    box-shadow: 0 16px 48px 0 rgba(0,255,255,0.13);
}

.project-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    filter: brightness(0.92);
}

.project-content {
    padding: 32px 28px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-content h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.project-content p {
    color: var(--light);
    opacity: 0.85;
    font-size: 1.05rem;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 700px) {
    .projects {
        padding: 60px 8px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .project-content {
        padding: 20px 12px 18px 12px;
    }
    .project-image img {
        height: 160px;
    }
}

/* Contact Section */
.contact {
    padding: 100px 20px;
    background: var(--dark);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    text-align: center;
    color: var(--light);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-subtitle {
    text-align: center;
    color: var(--light-gray);
    margin-bottom: 40px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.phone-group {
    display: flex;
    gap: 10px;
}

#country-code {
    width: 120px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%2300FFFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 35px;
    color: var(--light);
}

#country-code option {
    background-color: var(--dark);
    color: var(--light);
    padding: 12px;
}

/* For Webkit browsers like Chrome/Safari */
#country-code::-webkit-scrollbar {
    width: 8px;
}

#country-code::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

#country-code::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

#country-code::-webkit-scrollbar-thumb:hover {
    background: #00ffff;
}

/* For Firefox */
#country-code {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.05);
}

#phone {
    flex: 1;
}

.submit-btn {
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn span {
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    background: #00ffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.submit-btn:hover span {
    transform: translateX(5px);
}

.form-group input::placeholder {
    color: var(--light-gray);
}

@media (max-width: 848px) {
    .contact {
        padding: 60px 20px;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .phone-group {
        flex-direction: column;
        gap: 20px;
    }

    #country-code {
        width: 100%;
    }
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.popup-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    margin: 20px;
}

.popup-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.popup-content p {
    color: var(--light);
    line-height: 1.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.popup-overlay.show .popup-content {
    transform: translateY(0);
}

.success-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--dark);
    animation: scaleIn 0.3s ease;
}

.popup-content h3 {
    color: var(--light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.popup-content p {
    color: var(--light-gray);
    line-height: 1.6;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Footer */
footer {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 50px 10% 20px;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray);
}

/* Responsive Design */
@media (max-width: 848px) {
    nav {
        padding: 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    #hero-canvas {
        width: 100%;
        opacity: 0.3;
    }
    
    .hero-content {
        text-align: left;
    }
}
