/* Variables & Reset */
:root {
    --primary-color: #007bff;
    --secondary-color: #0056b3;
    --accent-color: #00c6ff;
    --dark-bg: #1a1a1a;
    --light-bg: #f4f7f6;
    --text-color: #333;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

.btn-block {
    display: block;
    width: 100%;
    background: #25D366;
    /* WhatsApp Green */
    color: white;
    font-size: 1rem;
}

.btn-block:hover {
    background: #128C7E;
}

.text-center {
    text-align: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: height 0.3s ease;
}

.navbar.scrolled .logo img {
    height: 35px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #444;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.toggle .line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.toggle .line:nth-child(2) {
    opacity: 0;
}

.hamburger.toggle .line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: url('https://images.unsplash.com/photo-1626544827763-d516dce335ca?q=80&w=1920&auto=format&fit=crop') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 2;
    flex-wrap: wrap;
    /* For mobile */
}

.hero-text {
    flex: 1;
    max-width: 600px;
    padding-right: 20px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-form-wrapper {
    flex: 0 0 400px;
}

/* Glass Form */
.glass-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-form h3 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--white);
}

.glass-form p {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #ddd;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: var(--white);
    transform: scale(1.02);
}

/* Why Us - 3D Cube Area */
.why-us {
    padding: 100px 0;
    background: var(--light-bg);
    overflow: hidden;
}

.why-us-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.why-text {
    flex: 1;
    padding-right: 50px;
}

.why-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.why-text ul li {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.why-text ul li i {
    color: #28a745;
    font-size: 1.2rem;
}

.why-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    /* 3D depth */
}

/* 3D Cube Animation */
.scene {
    width: 200px;
    height: 200px;
    perspective: 600px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-100px);
    animation: spinBtn 10s infinite linear;
}

.cube__face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--white);
    line-height: 200px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    text-align: center;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0.8;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

.cube__face--front {
    transform: rotateY(0deg) translateZ(100px);
}

.cube__face--back {
    transform: rotateY(180deg) translateZ(100px);
}

.cube__face--right {
    transform: rotateY(90deg) translateZ(100px);
}

.cube__face--left {
    transform: rotateY(-90deg) translateZ(100px);
}

.cube__face--top {
    transform: rotateX(90deg) translateZ(100px);
}

.cube__face--bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

@keyframes spinBtn {
    0% {
        transform: translateZ(-100px) rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: translateZ(-100px) rotateX(360deg) rotateY(360deg);
    }
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--white);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: #eef7ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: 0.3s;
}

.feature-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--white);
}

/* Parallax Banner */
.banner-parallax {
    height: 500px;
    background: url('https://images.unsplash.com/photo-1531297461136-82lw9b448375?q=80&w=1920&auto=format&fit=crop') fixed center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.banner-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.banner-content h2 {
    font-size: 5rem;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1;
    margin-bottom: -58px;
    text-align: center;
}

.banner-content h2 span {
    display: inline-block;
    background-image: url("https://dl.dropbox.com/s/r2s8s2r17wi0xm6/flame.png?dl=0");
    background-position: 0 -1000px;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: fire 4s linear infinite;
}

@keyframes fire {
    0% {
        background-position: 0% -50%;
    }

    100% {
        background-position: 0% -25%;
    }
}

.floating-character {
    /* Position the character nicely in the banner or specific layout */
    max-height: 400px;
    /* Adjust based on image aspect ratio */
    width: auto;
    margin-top: 20px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Courses */
.courses {
    padding: 100px 0;
    background: #f9f9f9;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.course-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: 0.3s;
}

.course-card:hover::before {
    transform: scaleY(1);
}

.course-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #666;
}

.course-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.course-card p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

.btn-sm {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: #eee;
    color: #333;
}

.course-card:hover .btn-sm {
    background: var(--primary-color);
    color: var(--white);
}

/* Process */
.process {
    padding: 80px 0;
    background: var(--white);
}

.process-steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    background: #222;
    color: var(--white);
    padding: 60px 0 20px;
}

.contact-info {
    text-align: center;
    margin-bottom: 40px;
}

.contact-info h3 {
    font-size: 2rem;
}

.contact-info span {
    color: var(--accent-color);
}

.footer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.f-card {
    background: #333;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}

.f-card:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.f-card i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.f-card:hover i {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .nav-links {
        position: absolute;
        top: 60px;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
    }

    .navbar .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        width: 30px;
        height: 30px;
        justify-content: center;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        margin-top: 347px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 50px;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-form-wrapper {
        width: 100%;
        max-width: 400px;
    }

    .why-us-content {
        flex-direction: column-reverse;
        margin-top: 300px;
    }

    .why-text {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
        margin-top: 60px;
    }

    .why-text ul {
        text-align: left;
        display: inline-block;
    }

    .banner-content h2 {
        font-size: 2.5rem;
        margin-top: 122px;
    }

    .step {
        margin-bottom: 30px;
    }
}