/* ========== ROOT VARIABLES ========== */
:root {
    /* Light Theme Colors */
    --primary-color: #1e3a8a;
    --secondary-color: #7c3aed;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --bg-color: #f3f4f6;
    --card-bg: rgba(255, 255, 255, 0.7);
    --header-bg: rgba(255, 255, 255, 0.1);
    --hero-text-color: #93aae9;

    /* Fonts */
    --font-primary: "SN Pro", sans-serif;
    --font-secondary: "SN Pro", sans-serif;

    /* Transitions */
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: #60a5fa;
    --secondary-color: #a78bfa;
    --accent-color: #fbbf24;
    --text-color: #f3f4f6;
    --bg-color: black;
    --card-bg: rgba(31, 41, 55, 0.7);
    --header-bg: rgba(17, 23, 39, 0.1);
    --hero-text-color: #60a5fa;
}

/* Skip Content */
a[href="#main-content"],
a[href="#main"],
a.skip-link,
.skip-to-content {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


html,
body {
    overflow-x: hidden;
}


body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background: var(--bg-color);
    overflow-x: hidden;
    position: relative;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== PARTICLES BACKGROUND ========== */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}



/* ========== GLASS MORPHISM HEADER ========== */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 150px;
    /* Control header height */
    padding: 0;
    /* Remove extra vertical padding */

    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    display: flex;
    align-items: center;
    /* Perfect vertical alignment */
}


.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-left,
.nav-right {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 0.9rem 0;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    padding-top: 20px;
}

body {
    padding-top: 110px;
    /* Same as header height */
}


/* ========== THEME TOGGLE ========== */
.theme-toggle {
    position: absolute;
    right: 25px;
    /* distance from right edge */
    top: 50%;
    /* vertical center */
    transform: translateY(-50%);
    z-index: 1001;
    width: 60px;
    height: 30px;
    background: var(--card-bg);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 5px;
    transition: var(--transition);
}

.theme-toggle i {
    font-size: 1rem;
    transition: var(--transition);
}

.sun-icon {
    color: #f59e0b;
}

[data-theme="dark"] .sun-icon {
    opacity: 0.3;
}

[data-theme="light"] .moon-icon,
body:not([data-theme]) .moon-icon {
    opacity: 0.3;
}



/* ========== PAGE HERO ========== */
.page-hero {
    position: relative;
    height: 600px;
    margin-top: 40px;
    overflow: hidden;
}

.page-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--hero-text-color);
}

.hero-overlay h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-overlay p {
    font-size: 1.5rem;
}

/* ========== SECTION TITLES ========== */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 3rem;
}


/* ========== ALUMNI SECTION ========== */
.alumni-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, transparent, var(--card-bg));
}

.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.alumni-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.alumni-card h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.alumni-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card-icon:hover {
    animation: rotateIcon 0.6s ease-in-out;
}

.alumni-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px 0 rgba(31, 38, 135, 0.2);
}

/* informational heading and list */
.info-section h3 {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* highlighted top-level h3 within info-section */
.info-section h3.highlight-heading {
    display: block;
    /* remove flex so text can wrap */
    color: var(--accent-color) !important;
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.info-list {
    list-style-type: disc;
    margin-left: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* topic-section heading & icon */
.topic-section h4 {
    font-size: 1.8rem;
    /* larger than normal list text */
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topic-icon {
    font-size: 1.4rem;
    color: var(--primary-color);
}

/* highlighted main section headings */
.highlight-heading {
    color: var(--accent-color);
    /* orange hover color */
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

/* nested bullet list for supporting points */
.sub-list {
    list-style-type: circle;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.sub-list li {
    margin-bottom: 0.25rem;
}

/* ========== ANIMATIONS ========== */
.fade-in {
    opacity: 1;
    animation: none;
    transform: none
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateIcon {
    0% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(180deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

/* ========== FOOTER ======== */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0 0;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-col p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.social-icons a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 1.5rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

.footer-bottom-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left,
.footer-right {
    margin: -50px;
}


.footer-right a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    pointer-events: auto;
}

.footer-right a:hover {
    color: var(--accent-color);
}

/* ========== SCROLL TO TOP BUTTON ========== */
.scroll-top {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    animation: float3D 3s ease-in-out infinite;
}

.scroll-top:hover {
    transform: translateY(-5px) rotateX(15deg) rotateY(15deg) rotateZ(10deg) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.scroll-top:active {
    transform: translateY(-3px) rotateX(10deg) rotateY(10deg) scale(1.05);
}

/* ========== CHAT WIDGET ======== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), 0 0 20px rgba(124, 58, 237, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
    touch-action: none;
    user-select: none;
    animation: float3D 3s ease-in-out infinite;
}

.chat-widget:hover {
    transform: scale(1.15) rotateZ(10deg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(124, 58, 237, 0.6);
    cursor: pointer;
}

.chat-widget:active {
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 58, 237, 0.8);
}

.chat-widget::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

@keyframes float3D {

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

    50% {
        transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    }
}

.chat-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    display: none;
    z-index: 998;
    border: none;
    box-shadow: none;
}

.chat-popup.active {
    display: block;
    animation: none;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    flex-direction: column;
    perspective: 1200px;
    align-items: flex-end;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-style: preserve-3d;
    border: none;
    position: relative;
    overflow: hidden;
    font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-links a:nth-child(1) {
    animation: flipIn3D 0.6s ease-out 0.1s backwards;
    background: #25D366;
}

.social-links a:nth-child(2) {
    animation: flipIn3D 0.6s ease-out 0.2s backwards;
    background: #0084FF;
}

.social-links a:nth-child(3) {
    animation: flipIn3D 0.6s ease-out 0.3s backwards;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-links a:nth-child(4) {
    animation: flipIn3D 0.6s ease-out 0.4s backwards;
    background: #EA4335;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    transform: rotateY(360deg) rotateX(15deg) scale(1.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    filter: brightness(1.2);
}

.social-links a:active {
    transform: rotateY(360deg) rotateX(15deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.social-links a i {
    font-size: 1.5rem;
    z-index: 10;
}

@keyframes flipIn3D {
    from {
        opacity: 0;
        transform: rotateX(90deg) rotateY(90deg) translateZ(50px);
    }

    to {
        opacity: 1;
        transform: rotateX(0deg) rotateY(0deg) translateZ(0px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .academy-layout {
        grid-template-columns: 1fr;
    }

    .academy-sidebar {
        position: static;
    }

    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem;
    }

    .menu-item {
        flex: 0 0 auto;
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-left,
    .nav-right {
        display: none;
    }

    .logo-text h2 {
        font-size: 1.2rem;
    }

    .logo-text p {
        font-size: 0.6rem;
    }

    .glass-cards-container,
    .academics-grid,
    .admission-steps,
    .facilities-grid,
    .blogs-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col iframe {
        width: 100%;
    }

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

    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ===============================
   HAMBURGER MENU
=================================*/
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 10px;
    border-radius: 12px;
    cursor: pointer;
    z-index: 2100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: 0.3s ease;
}

/* Animate Hamburger */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ===============================
   OVERLAY FOR MOBILE MENU
=================================*/
.overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: 0.4s ease;
    z-index: 1050;
}

.overlay.active {
    left: 0;
}

/* ===============================
   MOBILE MENU
=================================*/
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    opacity: 0;
    width: 260px;
    height: 100vh;
    background: rgba(96, 165, 250, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 2000;
}

.mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu a {
    text-decoration: none;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
}

.mobile-menu a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Close Button */
.mobile-close {
    position: absolute;
    top: 25px;
    right: 20px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.mobile-close:hover {
    background: var(--accent-color);
    color: white;
}


/* ===============================
   BOTTOM NAV (Mobile Only)
=================================*/
.bottom-nav {
    display: none;
}

/* ===============================
   RESPONSIVE DESIGN
=================================*/
@media (max-width: 992px) {

    .nav-left,
    .nav-right {
        display: none;
    }

    .hamburger {
        display: flex;
        position: absolute;
        left: 20px;
        top: 25px;
    }

    .theme-toggle {
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .logo-container {
        margin: 0 auto;
    }

    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(96, 165, 250, 0.20);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid rgba(255, 255, 255, 0.25);
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        z-index: 999;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }

    .bottom-nav a {
        text-decoration: none;
        color: var(--text-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 12px;
        color: white;
        font-weight: 600;
        transition: var(--transition);
    }

    .bottom-nav i {
        font-size: 18px;
        margin-bottom: 3px;
        color: var(--primary-color);
    }

    .bottom-nav a:hover {
        color: var(--accent-color);
    }

    body {
        padding-bottom: 70px;
    }
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}


/* Remove conflicting hamburger.open styles */