/* Next Level CSS - Advanced Effects & Animations */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* --- Advanced Root Variables --- */
:root {
    --primary-color: #0d47a1;
    --secondary-color: #1976d2;
    --accent-color: #ffc107;
    --light-gray-color: #f4f7f6;
    --dark-color: #222;
    --light-color: #fff;
    --font-family: 'Poppins', sans-serif;
    
    /* Advanced Color Palette */
    --gradient-primary: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    --gradient-accent: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    --gradient-hero: linear-gradient(135deg, rgba(13, 71, 161, 0.9) 0%, rgba(25, 118, 210, 0.8) 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    
    /* Advanced Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 15px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(25, 118, 210, 0.3);
    
    /* Animation Variables */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-elastic: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- General & Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--dark-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Advanced Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-accent);
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 600;
}

h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

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

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

.section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    font-weight: 700;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--gradient-accent);
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-bounce);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-smooth);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: var(--gradient-primary);
    color: var(--light-color);
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-strong);
}

.btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* --- Header & Navigation --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    padding: 0.2rem 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
}

.navbar:hover::before {
    opacity: 1;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  
}

.navbar .logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar .logo img {
    max-height: 70px; /* Increased height for desktop logo */
    width: auto;      /* Maintain aspect ratio */
    padding: 5px 0;   /* Add some vertical padding */
}

.navbar .nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap; /* Keep items in single line for desktop */
    white-space: nowrap; /* Prevent text wrapping */
}

.navbar .nav-links li {
    margin-left: 1.5rem; /* Reduced spacing to fit in single line */
}

.navbar .nav-links a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 25px;
    position: relative;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.navbar .nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition-smooth);
    border-radius: 25px;
    z-index: -1;
}

.navbar .nav-links a:hover::before,
.navbar .nav-links a.active::before {
    opacity: 1;
    transform: scale(1);
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: var(--light-color);
    transform: translateY(-2px);
}

/* Mobile Navigation Toggle */
.menu-toggle {
    display: none; /* Hidden by default on larger screens */
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
}


/* --- Hero Section (Home Page) --- */
.hero {
    position: relative;
    overflow: hidden;
    background: none;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-color);
    z-index: 1;
    margin-top: 80px; /* Push content below fixed navbar */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    animation: heroGradient 8s ease-in-out infinite;
}

@keyframes heroGradient {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.9; }
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-carousel img.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    background: none;
    border: none;
    box-shadow: none;
}


.hero-content h1 {
    font-size: 3.5rem;
    color: var(--light-color);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero-small for internal pages like Scholarship */
.hero-small {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem; /* Add margin below the hero section */
}

.hero-small h1 {
    color: var(--light-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-small p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Features Section (Home Page) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.feature-card {
    background: var(--gradient-card);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-strong);
}

.feature-card i {
    font-size: 3.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.feature-card:hover i {
    transform: scale(1.1) rotate(5deg);
}


/* --- Call to Action Section --- */
.cta-section {
    background: var(--gradient-primary);
    color: var(--light-color);
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: ctaPattern 20s linear infinite;
}

@keyframes ctaPattern {
    0% { transform: translateX(0); }
    100% { transform: translateX(100px); }
}
.cta-section h2 {
    color: var(--light-color);
    margin-bottom: 1.5rem;
}

/* --- Footer --- */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--light-color);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--light-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.footer-col ul li a {
    color: #ccc;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px 0;
}

.footer-col ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition-smooth);
}

.footer-col ul li a:hover::before {
    width: 100%;
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 2rem;
}

/* --- About Page Specific --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content img {
    width: 100%;
    border-radius: 10px;
}

/* --- Founders Section --- */
.founders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start; /* Align items to the start of the cross axis */
}

.founder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: var(--light-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.founder-card .about-image img {
    width: 200px; /* Adjust size as needed */
    height: 200px; /* Adjust size as needed */
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--primary-color);
}

.founder-card .about-text h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.founder-card .about-text p {
    font-size: 0.95rem;
    color: var(--dark-color);
}

@media (max-width: 768px) {
    .founders-grid {
        grid-template-columns: 1fr; /* Stack founders on smaller screens */
    }
}

/* --- Team Members Section --- */
.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
}

.team-member-card {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.team-member-card:hover {
    transform: translateY(-5px);
}

.team-member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--primary-color);
}

.team-member-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-member-card p {
    color: var(--dark-color);
    font-size: 0.95rem;
}

/* --- Services & Coaching Page --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--light-gray-color);
    border: 1px solid #eee;
    padding: 2rem;
    border-radius: 8px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* --- Study Abroad Page --- */
.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.destination-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    color: white;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-bounce);
    cursor: pointer;
}

.destination-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

.destination-card:hover::before {
    opacity: 0.3;
}

.destination-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.destination-card:hover img {
    transform: scale(1.15) rotate(2deg);
}

.destination-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-strong);
}
.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 3rem 1.5rem 1.5rem;
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.contact-info {
    background: var(--light-gray-color);
    padding: 2rem;
    border-radius: 8px;
}
.contact-info div {
    margin-bottom: 1.5rem;
}
.contact-info i {
    color: var(--primary-color);
    margin-right: 1rem;
}

/* --- Student Photos Grid --- */
.student-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
    justify-items: center;
}

.student-photo-card {
    background: var(--light-color);
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    overflow: hidden;
    height: 300px;
    aspect-ratio: 1;
}

.student-photo-card:hover {
    transform: translateY(-5px);
}

.student-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.student-photo-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.student-photo-card p {
    font-size: 0.95rem;
    color: var(--dark-color);
}

/* Desktop Navigation - Single Line */
@media (min-width: 993px) {
    .navbar .nav-links {
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    
    .navbar .nav-links li {
        margin-left: 1.2rem; /* Optimized spacing for single line */
    }
    
    .navbar {
        padding: 0.12rem 0; /* 50% reduction from 0.24rem for desktop */
    }
    
    .navbar .logo img {
        max-height: 80px; /* Larger logo for desktop */
    }
}

/* Advanced Loading Animation */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animation Classes - Disabled to prevent popup effects */
.animate-fadeInUp,
.animate-fadeInLeft,
.animate-fadeInRight {
    /* Animations disabled to prevent popup-like entrance effects */
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Animation Delays - Disabled */
.animate-delay-1,
.animate-delay-2,
.animate-delay-3,
.animate-delay-4,
.animate-delay-5 {
    /* Animation delays disabled */
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .navbar .nav-links {
        display: none; /* Hide nav links by default on smaller screens */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--light-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .navbar .nav-links li {
        margin: 0;
        text-align: center;
        padding: 0.8rem 0;
    }

    .navbar .nav-links a {
        padding: 10px 0;
        width: 100%;
        display: block;
    }

    .menu-toggle {
        display: block; /* Show hamburger menu */
    }

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

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

    .features-grid,
    .about-content,
    .founders-grid,
    .footer-grid,
    .student-photos-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
    
    .student-photos-grid {
        justify-items: center;
        max-width: 300px;
        margin: 0 auto;
    }

    .navbar {
        padding: 0.05rem 0; /* Minimal navbar padding for mobile */
    }

    .navbar .logo img {
        max-height: 60px; /* Increased logo size for mobile */
        padding: 2px 0;
    }

    .hero {
        margin-top: 60px; /* Adjust margin for mobile navbar height */
    }
    
    .footer-col h4 {
        font-size: 1rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 70vh;
    }

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

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

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .student-photos-grid {
        max-width: 280px;
        gap: 1.5rem;
    }
    
    .student-photo-card {
        height: 280px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem; /* Reduce container padding on very small screens */
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }

    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

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

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

    .navbar .logo {
        font-size: 1.4rem;
    }

    .navbar {
        padding: 0; /* No padding for very small screens */
    }

    .navbar .logo img {
        max-height: 70px; /* Even larger logo for very small screens */
        padding: 2px 0;
    }

    .hero {
        margin-top: 50px; /* Adjust margin for very small screens */
    }

    .menu-toggle {
        font-size: 1.8rem;
    }
    
    .footer-col h4 {
        font-size: 1rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}