﻿:root {
    --primary: #6c63ff;
    --primary-dark: #564fd8;
    --secondary: #1e1e2c;
    --dark: #12121a;
    --light: #f8f9fa;
    --accent: #ff6b6b;
    --gradient: linear-gradient(135deg, #6c63ff 0%, #ff6b6b 100%);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--light);
    background-color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.25rem;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: 1000;
}

    .navbar.scrolled {
        padding: 0.75rem 2rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
    position: relative;
}



    .navbar-brand img {
        height: 40px;
        width: 40px;
        margin-right: 0.5rem;
        display: block;
        /* Show logo by default (mobile) */
    }

.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

    .nav-link::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: var(--transition);
    }

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

    .nav-link.active {
        color: var(--primary) !important;
        font-weight: 600;
    }

/* Mobile specific adjustments */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

        .navbar-brand img {
            height: 90px;
            width: 100px;
        }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
    }

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

    .btn-outline-primary:hover {
        background-color: var(--primary);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
    }

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
    padding-top: 80px;
}

    .hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1;
    }

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, #6c63ff 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-profile-image {
    text-align: center;
    position: relative;
}

    .hero-profile-image img {
        height: 280px;
        width: 286px;
        margin-left: 150px;
        object-fit: cover;
        border: 5px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        animation: float 6s ease-in-out infinite;
    }

@keyframes float {

    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Section Styling */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

    .section-title::after {
        content: "";
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 250px;
        height: 3px;
        background: var(--gradient);
    }

/* Features Section */
.features {
    background-color: var(--secondary);
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .feature-card:hover {
        transform: translateY(-10px);
        background-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: var(--gradient);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Courses Section */
.courses {
    background-color: var(--dark);
}

.course-card {
    background-color: var(--secondary);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

    .course-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }

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

.course-body {
    padding: 1.5rem;
}

.course-title {
    font-size: 1.5rem;
}

.course-duration {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

    .course-duration i {
        margin-right: 0.5rem;
        color: var(--primary);
    }

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.badge {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--secondary);
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 11px;
}

    .testimonial-text::before {
        content: '"';
        font-size: 4rem;
        position: absolute;
        top: -1.5rem;
        left: -1rem;
        opacity: 0.2;
        font-family: serif;
    }

.testimonial-author {
    display: flex;
    align-items: center;
}

    .testimonial-author img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        margin-right: 1rem;
    }

/* About Section */
.about {
    background-color: var(--dark);
}

.about-img-container {
    position: relative;
}

.about-img {
    border-radius: 15px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

.about-stats {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact {
    background-color: var(--dark);
}

.contact-form {
    background-color: var(--secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    transition: var(--transition);
    width: 100%;
}

    .form-control:focus {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: var(--primary);
        box-shadow: 0 0 0 0.25rem rgba(108, 99, 255, 0.25);
        color: white;
    }

.contact-form ::placeholder {
    color: rgba(255, 255, 255, 0.8);
    opacity: 1;
}

.contact-info {
    padding-left: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 1.5rem;
    color: var(--primary);
    margin-top: 0.3rem;
}

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

    .social-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
        color: white;
        transition: var(--transition);
    }

        .social-links a:hover {
            background-color: var(--primary);
            transform: translateY(-3px);
        }

/* Footer */
.footer {
    background-color: var(--secondary);
    padding: 4rem 0 2rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
}

    .footer-logo span {
        color: var(--primary);
    }

.footer-links h5 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

    .footer-links h5::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 114px;
        height: 2px;
        background: var(--gradient);
    }

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

    .footer-links a:hover {
        color: var(--primary);
        padding-left: 5px;
    }

.newsletter-form .input-group {
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form .form-control {
    background-color: var(--dark);
    border: none;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

    .back-to-top.active {
        opacity: 1;
        visibility: visible;
    }

/* Responsive Styles */
@media (max-width: 991.98px) {
    .section {
        padding: 4rem 0;
    }

    .hero-profile-image {
        margin-top: 3rem;
    }

    .contact-info {
        padding-top: 3rem;
        padding-left: 0;
    }
}

@media (max-width: 767.98px) {
    .hero {
        height: auto;
        padding: 8rem 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .navbar-collapse {
        padding: 1rem;
        background-color: var(--secondary);
        border-radius: 10px;
        margin-top: 0.5rem;
    }
}

/* Mobile-specific styles (below 576px) */
@media (max-width: 575.98px) {

    /* Base adjustments */
    body {
        font-size: 14px;
    }

    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    /* Navigation */
    .navbar {
        padding: 0.75rem 1rem;
    }

        .navbar.scrolled {
            padding: 0.5rem 1rem;
        }

    .navbar-brand {
        font-size: 13px;
    }

        .navbar-brand img {
            height: 38px;
            width: 42px;
        }

    /* Hero section */
    .hero {
        padding: 6rem 0 3rem;
        min-height: auto;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-profile-image img {
        height: 200px;
        width: 200px;
        margin: 2rem auto 0;
        margin-left: auto;
    }

    /* Section titles */
    .section-title::after {
        width: 150px;
    }

    /* Features */
    .feature-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }

    /* Stats */
    .stat-item {
        margin-bottom: 1.5rem;
    }

    /* Courses */
    .course-card {
        margin-bottom: 1.5rem;
    }

    /* Testimonials */
    .testimonial-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }

    /* About section */
    .about-img {
        margin-bottom: 2rem;
    }

    .about-stats {
        position: static;
        margin-top: 1rem;
    }

    /* Contact form */
    .contact-form {
        padding: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1rem;
    }

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

    /* Back to top button */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Additional mobile-specific tweaks */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-profile-image img {
        height: 180px;
        width: 180px;
    }

    .feature-icon {
        font-size: 2rem;
    }
}

/* Portrait mode specific adjustments */
@media (max-width: 575.98px) and (orientation: portrait) {
    .hero {
        padding-top: 5rem;
    }

    .hero-content {
        padding-bottom: 2rem;
    }
}
.modal {
    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;
}

.success-icon {
    color: #28a745;
}

.error-icon {
    color: #dc3545;
}

#sendButton {
    position: relative;
}

.spinner-border {
    margin-left: 8px;
    vertical-align: middle;
}
