/* CSS Variables for Themes */

:root {
    --primary: #6c63ff;
    --secondary: #4a44c9;
    --accent: #ff6b6b;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: #333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

.light-theme {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


/* Header & Navigation */

header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    transform: rotate(30deg);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}


/* Hero Section - Full Coverage */

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    margin-top: 70px;
    overflow: hidden;
    background: var(--bg-color);
}

.hero-container {
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 45% 55%;
    height: 100%;
    align-items: center;
    gap: 0;
}

.text-content {
    padding-right: 2rem;
    z-index: 2;
}

.aicte-banner {
    background: rgba(108, 99, 255, 0.9);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    margin-left: 30px;
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.text-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    margin-left: 30px;
    line-height: 1.2;
    color: var(--text-color);
}

.text-content h1 .brand {
    color: var(--primary);
    margin-left: 0;
}

.text-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    margin-left: 30px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
}


/* New Explore Courses Button Design */

.btn-explore-courses {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin-left: 30px;
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-explore-courses::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-explore-courses:hover {
    transform: translateY(-5px) translateX(10px);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.6);
}

.btn-explore-courses:hover::before {
    left: 0;
}

.btn-explore-courses:active {
    transform: translateY(-2px) translateX(5px);
}


/* Button icon */

.btn-explore-courses i {
    margin-left: 10px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-explore-courses:hover i {
    transform: translateX(5px);
}


/* Spline Container - Full Right Side Coverage */

.spline-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
}

spline-viewer {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
}


/* Ensure Spline covers entire right side */

.spline-container spline-viewer {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}


/* Remove any gaps */

.hero-container,
.hero-content,
.spline-container {
    margin: 0;
    padding: 0;
}


/* Fix for Spline loading */

spline-viewer {
    background: transparent !important;
}


/* Section Styling */

section {
    padding: 5rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-heading h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
}

.section-heading p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}


/* About Section */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-secondary);
}


/* Courses Section - Compact Professional Design */

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    height: fit-content;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.course-image {
    height: 160px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-image i {
    position: absolute;
    z-index: 2;
}

.course-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 1;
}

.course-card:hover .course-image::before {
    transform: translateX(100%);
}


/* Fallback gradient when image fails to load */

.course-image:has(img[style*="display: none"]) {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-size: 1.25rem;
    line-height: 1.3;
}

.course-content p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.5;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.course-features span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(108, 99, 255, 0.1);
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.course-features i {
    color: var(--primary);
    font-size: 0.8rem;
}

.enrollment-badge {
    display: inline-block;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(108, 99, 255, 0.2);
}


/* Professional Apply Now Button Design */

.apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.apply-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    transition: all 0.4s ease;
    z-index: -1;
}

.apply-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
    color: white;
}

.apply-btn:hover::before {
    left: 0;
}

.apply-btn:active {
    transform: translateY(-1px);
}


/* Button icon */

.apply-btn i {
    margin-left: 8px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.apply-btn:hover i {
    transform: translateX(3px);
}


/* Button loading state */

.apply-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.apply-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Success state */

.apply-btn.success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.apply-btn.success:hover {
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}


/* Course card specific button improvements */

.course-card .apply-btn {
    margin-top: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.9rem;
}


/* Light theme adjustments */

.light-theme .apply-btn {
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.25);
}

.light-theme .apply-btn:hover {
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.35);
}


/* Testimonials Section */

.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border-color);
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
}

.testimonial-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active {
    background: var(--primary);
}


/* Contact Section */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-right: 1rem;
    width: 20px;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}


/* FAQ Section */

.faq-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1rem 0;
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--text-color);
}

.faq-question i {
    color: var(--primary);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-secondary);
}

.faq-answer.active {
    max-height: 500px;
    padding-top: 1rem;
}

.faq-question.active i {
    transform: rotate(180deg);
}


/* Footer */

footer {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-about p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3:after,
.footer-contact h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 0.8rem;
    color: var(--primary);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}


/* Responsive Design */

@media (max-width: 1200px) {
    .text-content h1 {
        font-size: 3rem;
    }
    .spline-container {
        width: 55%;
    }
    .btn-explore-courses {
        padding: 1.1rem 2.5rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .text-content {
        padding-right: 0;
        padding: 2rem;
    }
    .spline-container {
        position: relative;
        width: 100%;
        height: 400px;
        order: -1;
    }
    .text-content p {
        max-width: 100%;
    }
    .btn-explore-courses {
        margin-left: 0;
    }
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: auto;
        padding: 2rem 0;
    }
    .text-content h1 {
        font-size: 2.5rem;
    }
    .spline-container {
        height: 350px;
    }
    .btn-explore-courses {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    .apply-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    .apply-btn i {
        margin-left: 6px;
        font-size: 0.85rem;
    }
    .navbar {
        flex-wrap: wrap;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 1rem;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 0.5rem 0;
    }
    .mobile-menu {
        display: block;
    }
    .about-stats {
        grid-template-columns: 1fr;
    }
    .faq-section {
        padding: 2rem 1.5rem;
    }
    .courses-grid {
        grid-template-columns: 1fr;
    }
    .course-image {
        height: 140px;
    }
    .course-content {
        padding: 1.2rem;
    }
}

@media (max-width: 576px) {
    .text-content h1 {
        font-size: 2rem;
    }
    .text-content p {
        font-size: 1rem;
    }
    .spline-container {
        height: 300px;
    }
    .btn-explore-courses {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
    .apply-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
}
