@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #00f2ff;
    --secondary-color: #33ff00;
    --background-color: #0a192f;
    --text-color: #ffffff;
    --card-background: #112240;
    --accent-color: #ff3366;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-color);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header and Navigation */
header {
    background-color: rgba(10, 25, 47, 0.9);
    position: fixed;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

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

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: 2rem;
}

/* Main Content */
main {
    padding-top: 80px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.hero-content {
    max-width: 600px;
}

.glitch {
    font-size: 3.5rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 var(--accent-color), -0.05em -0.025em 0 var(--secondary-color),
                 0.025em 0.05em 0 var(--primary-color);
    animation: glitch 725ms infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch {
    /* ... (keep existing glitch animation) ... */
}

@keyframes glitch-anim {
    /* ... (keep existing glitch-anim animation) ... */
}

@keyframes glitch-anim2 {
    /* ... (keep existing glitch-anim2 animation) ... */
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Services Section */
.service-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.service-card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 2rem;
    margin: 1rem;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.2);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Technology Section */
.tech-showcase {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.tech-item {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 2rem;
    margin: 1rem;
    width: 300px;
    text-align: center;
}

.tech-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.tech-stat {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 1rem;
}

/* Features Section */
.features-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.feature-item {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 2rem;
    margin: 1rem;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: scale(1.05);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Testimonials Section */
.swiper-container {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.testimonial-card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.pricing-card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 2rem;
    margin: 1rem;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: scale(1.05);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-color);
}

/* News Section */
.news-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.news-card {
    background-color: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
    margin: 1rem;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card h3 {
    padding: 1rem;
}

.news-card p {
    padding: 0 1rem 1rem;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--background-color);
    text-decoration: none;
    border-radius: 5px;
    margin: 1rem;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: var(--secondary-color);
}

/* Contact Section */
#contactForm {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

#contactForm input,
#contactForm select,
#contactForm textarea {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    background-color: var(--card-background);
    color: var(--text-color);
}

#contactForm button {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contactForm button:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--card-background);
    padding: 3rem 5%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

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

/* Floating Action Button */
.floating-action-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: var(--background-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

.floating-action-button:hover {
    background-color: var(--secondary-color);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--background-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }

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

    .hero-content {
        margin-bottom: 2rem;
    }

    .service-card,
    .tech-item,
    .feature-item,
    .pricing-card,
    .news-card {
        width: 100%;
    }
}

/* Animation for nav links */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

/* Dark mode styles */
body.dark-mode {
    --background-color: #ffffff;
    --text-color: #0a192f;
    --card-background: #f0f0f0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}