:root {
    --purple: #6d28d9;
    --purple-dark: #5b21b6;
    --purple-light: #ede9fe;
    --blue-gradient-start: #3730a3;
    --black: #0f172a;
    --slate: #475569;
    --light-gray: #f8fafc;
    --white: #FFFFFF;
    --border-color: #e2e8f0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--slate);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Animations & Effects --- */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.card-tilt {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* --- Reusable Components --- */
.section {
    padding: 100px 0;
    overflow-x: hidden;
    /* Prevents horizontal scroll from animations */
}

.section-header {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .eyebrow {
    display: inline-block;
    background-color: var(--purple-light);
    color: var(--purple);
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 99px;
    font-size: 0.9rem;
}

.section-header h2 {
    font-weight: 800;
    font-size: 2.75rem;
    color: var(--black);
    margin-top: 1rem;
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--purple);
    border-color: var(--purple);
    color: var(--white);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--purple-dark);
    border-color: var(--purple-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(109, 40, 217, 0.2);
}

.btn-secondary {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    color: var(--slate);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--slate);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* --- Navbar --- */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease-in-out;
    background: transparent;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.25rem;
    /* Adjusted for better fit */
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar .btn-login {
    background-color: var(--white);
    color: var(--purple-dark);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
}

.navbar .btn-login:hover {
    background-color: var(--purple-light);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .navbar-toggler i {
    color: var(--black);
}

.navbar.scrolled .btn-login {
    background-color: var(--purple-light);
    color: var(--purple-dark);
}

.navbar.scrolled .btn-login:hover {
    background-color: var(--purple);
    color: var(--white);
}

.navbar-toggler {
    border: none;
    box-shadow: none !important;
}

.navbar-toggler i {
    font-size: 1.75rem;
    color: var(--white);
}

/* --- Hero Section --- */
.hero-section {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--blue-gradient-start) 0%, var(--purple) 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.05);
    z-index: 1;
    animation: float 12s ease-in-out infinite;
}

.hero-bg-icon.icon-1 {
    font-size: 8rem;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.hero-bg-icon.icon-2 {
    font-size: 12rem;
    top: 50%;
    right: -5%;
    animation-delay: 3s;
}

.hero-bg-icon.icon-3 {
    font-size: 6rem;
    bottom: 5%;
    left: 40%;
    animation-delay: 6s;
}

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

.hero-content h1 {
    font-weight: 900;
    font-size: 4rem;
    color: var(--white);
    line-height: 1.2;
    word-break: break-word;
}

.hero-content .animated-text {
    border-bottom: 4px solid rgba(255, 255, 255, 0.5);
}

.hero-content .lead {
    max-width: 600px;
    margin: 1.5rem auto 2.5rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* --- For Students Section --- */
.student-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
}

.student-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--purple-light);
    color: var(--purple);
    font-size: 2.5rem;
}

.student-card .card-title {
    font-weight: 700;
    color: var(--black);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.student-card .hashtag-badge {
    background-color: var(--purple-light);
    color: var(--purple-dark);
    font-weight: 600;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
}

/* --- Testimonials Section --- */
.testimonial-card-v2 {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.testimonial-card-v2::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 8rem;
    font-weight: 900;
    color: var(--purple);
    opacity: 0.05;
    line-height: 1;
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--black);
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.initials-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--purple-light);
    color: var(--purple-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.initials-avatar.large {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
}

.initials-avatar.extra-large {
    width: 120px;
    height: 120px;
    font-size: 3rem;
    margin: 0 auto 1.5rem auto;
    border: 4px solid var(--purple-light);
}

.testimonial-name {
    font-weight: 700;
    margin-bottom: 0;
    color: var(--black);
}

.testimonial-title {
    color: var(--slate);
    font-size: 0.9rem;
}

/* --- Interactive Team Section --- */
#team {
    background-color: var(--light-gray);
}

.team-member-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    align-items: center;
}

.team-member-name {
    font-weight: 700;
    margin-bottom: 0;
    color: var(--black);
}

.team-member-role {
    color: var(--slate);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.team-display-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    position: sticky;
    top: 120px;
}

.team-display-card h3 {
    font-weight: 700;
    color: var(--black);
}

.team-display-card .role {
    display: inline-block;
    color: var(--purple);
    font-weight: 600;
    background-color: var(--purple-light);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    margin-bottom: 1.5rem;
}

.team-display-card .bio {
    max-width: 400px;
    margin: 0 auto 1.5rem auto;
}

.team-display-card .social-links a {
    font-size: 1.5rem;
    color: var(--slate);
    margin: 0 0.5rem;
    transition: color 0.2s ease;
}

.team-display-card .social-links a:hover {
    color: var(--purple);
}

.team-bio {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

#member-jobenpreet:checked~.row .team-display-card #bio-jobenpreet,
#member-ekroop:checked~.row .team-display-card #bio-ekroop,
#member-gurpanth:checked~.row .team-display-card #bio-gurpanth,
#member-karan:checked~.row .team-display-card #bio-karan {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#member-jobenpreet:checked~.row .team-member-item[for="member-jobenpreet"],
#member-ekroop:checked~.row .team-member-item[for="member-ekroop"],
#member-gurpanth:checked~.row .team-member-item[for="member-gurpanth"],
#member-karan:checked~.row .team-member-item[for="member-karan"] {
    background-color: var(--white);
    border-color: var(--border-color);
}

/* --- Footer --- */
.footer {
    background-color: var(--white);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer h6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--black);
}

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

.footer-links a,
.footer p {
    color: var(--slate);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--purple);
}

.footer .social-links a {
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.footer .social-links a:hover {
    color: var(--purple);
}

.footer .copyright {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    margin-top: 40px;
}

/*
==============================================
ENHANCED RESPONSIVE MEDIA QUERIES
==============================================
*/

/* --- Disable Hover Effects on Touch Devices --- */
@media (hover: none) {

    .card-tilt:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
        box-shadow: none;
    }
}

/* --- Laptops and Tablets --- */
@media (max-width: 991.98px) {
    .section {
        padding: 80px 15px;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .navbar-collapse {
        background-color: var(--white);
        border-radius: 0.5rem;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .navbar.scrolled .navbar-collapse {
        background-color: transparent;
        box-shadow: none;
    }

    .team-display-card {
        position: static;
        margin-top: 2rem;
    }

    .footer {
        text-align: center;
    }

    .footer .social-links,
    .footer .d-flex {
        justify-content: center !important;
    }
}

/* --- Mobile Phones --- */
@media (max-width: 767.98px) {
    .section {
        padding: 60px 15px;
    }

    .navbar-brand {
        font-size: 1.1rem;
        /* Further reduce navbar brand size */
    }

    .section-header h2 {
        font-size: 1.75rem;
        /* Further reduce heading size */
    }

    .hero-section {
        padding: 100px 0;
    }

    .hero-content h1 {
        font-size: 2.25rem;
        /* Further reduce hero heading size */
        line-height: 1.3;
    }

    .hero-content .lead {
        font-size: 1rem;
        margin: 1rem auto 2rem;
    }

    .hero-bg-icon {
        display: none;
    }

    .student-card {
        padding: 2rem 1.5rem;
    }

    .testimonial-card-v2 {
        padding: 1.5rem;
    }

    .team-display-card .initials-avatar.extra-large {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .footer {
        padding: 60px 0 30px;
    }

    .footer .row>div {
        margin-bottom: 2rem;
        /* Add space between stacked footer columns */
    }
}