:root {
    --primary: #00f3ff;
    --secondary: #bc13fe;
    --bg-dark: #0a0a0f;
    --card-bg: #15151e;
    --text-light: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(188, 19, 254, 0.1) 0%, rgba(0, 0, 0, 0) 60%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

.hero-content {
    max-width: 50%;
    z-index: 1;
}

.hero-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.glitch {
    position: relative;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.btn-3d {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.4);
}

.btn-3d:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(188, 19, 254, 0.6);
}

.hero-image-container-3d {
    width: 45%;
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.5s;
}

.hero-content:hover~.hero-image-container-3d .hero-img {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

/* Courses Section */
.courses-section {
    padding: 5rem 5%;
    background: #0d0d12;
}

.section-title {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

/* 3D Card Styling */
.course-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s, box-shadow 0.5s;
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.course-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 243, 255, 0.2);
    z-index: 10;
}

.card-image {
    height: 180px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image i {
    font-size: 4rem;
    color: var(--primary);
    transition: transform 0.5s;
}

.course-card:hover .card-image i {
    transform: scale(1.2) rotate(10deg);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: var(--text-light);
}

.card-price {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: bold;
    margin-bottom: 1rem;
    display: block;
}

.btn-buy {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    width: 100%;
    text-transform: uppercase;
}

.btn-buy:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary);
}

/* Contact Section */
.contact-section {
    padding: 4rem 5%;
    display: flex;
    justify-content: center;
}

.glass-card {
    background: var(--glass);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 600px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.contact-details {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
}

.btn-whatsapp {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

footer {
    text-align: center;
    padding: 2rem;
    background: #050508;
    color: rgba(255, 255, 255, 0.5);
}

/* Animations included in styles above, adding floating animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px) rotateY(-15deg) rotateX(10deg);
    }

    50% {
        transform: translateY(-15px) rotateY(-15deg) rotateX(10deg);
    }

    100% {
        transform: translateY(0px) rotateY(-15deg) rotateX(10deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
        height: auto;
        padding-bottom: 50px;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-image-container-3d {
        width: 100%;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 600px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .course-card {
        border-radius: 10px;
    }

    .card-image {
        height: 100px;
    }

    .card-image i {
        font-size: 2.5rem;
    }

    .card-content {
        padding: 10px;
    }

    .card-content h3 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
        /* Truncate text if needed */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card-price {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .btn-buy {
        padding: 5px 10px;
        font-size: 0.75rem;
        width: 100%;
    }
}