/* =========================================
   VARIABLES & THEME SETUP (RUBY & CHARCOAL)
   ========================================= */
   :root {
    /* Eye-Catchy Premium Palette */
    --primary-color: #e11d48; /* Vibrant Ruby Red */
    --primary-dark: #be123c;
    --primary-light: #f43f5e;
    
    --accent-color: #fbbf24; /* Soft Gold */
    --accent-glow: rgba(225, 29, 72, 0.4);
    
    /* Dark Theme Colors */
    --bg-main: #0a0a0a; /* Very Dark Charcoal / Almost Black */
    --bg-light: #171717; /* Dark Grey */
    --bg-card: #1c1917; /* Warm Dark Grey for Cards */
    
    --text-main: #f8fafc;
    --text-muted: #a8a29e;
    
    /* Effects */
    --shadow-glow: 0 0 20px rgba(225, 29, 72, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-heading: 'Tiro Bangla', serif;
    --font-body: 'Hind Siliguri', sans-serif;
}

/* =========================================
   RESET & BASICS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Orbs */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -3;
    opacity: 0.25;
    animation: float 20s infinite alternate ease-in-out;
}

body::before {
    width: 450px;
    height: 450px;
    background: #e11d48;
    top: -150px;
    left: -150px;
}

body::after {
    width: 350px;
    height: 350px;
    background: #fbbf24;
    bottom: -100px;
    right: -100px;
    animation-delay: -10s;
    opacity: 0.15;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.1); }
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

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

.bg-light {
    background-color: var(--bg-light); /* Darker alternating section */
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 70px;
    color: var(--text-main);
    font-weight: 700;
}

.section-title::before,
.section-title::after {
    content: '';
    height: 3px;
    width: 80px;
    margin: 0 20px;
    border-radius: 50px;
    box-shadow: 0 0 12px rgba(225, 29, 72, 0.4);
}

.section-title::before {
    background: linear-gradient(to right, transparent, var(--primary-color));
}

.section-title::after {
    background: linear-gradient(to left, transparent, var(--primary-color));
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(225, 29, 72, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.5);
    background: var(--primary-light);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================
   CARD UTILITY
   ========================================= */
.glass {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: var(--shadow-card);
    border-radius: 12px;
    transition: var(--transition);
}

.glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border-color: rgba(225, 29, 72, 0.3);
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 25px 0;
    background: transparent;
}

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

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    background: var(--primary-color);
    border-radius: 4px;
    transform: rotate(45deg);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, var(--bg-main) 100%);
    z-index: -1;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
    padding-top: 80px; 
}

.profile-img-container {
    flex: 0 0 350px;
    position: relative;
}

.profile-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    position: relative;
    z-index: 2;
    background: var(--primary-color);
    box-shadow: 0 0 40px rgba(225, 29, 72, 0.3);
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text-main);
}

.hero-text h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-text .institution {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-text .institution i {
    color: var(--accent-color);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    color: var(--text-main);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
}

.objectives {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-card);
    border-radius: 8px;
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.objectives h4 {
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.objectives h4 i {
    color: var(--primary-color);
}

.contact-card {
    padding: 40px;
}

.contact-card h3 {
    margin-bottom: 30px;
    color: var(--text-main);
    font-size: 1.6rem;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-info-list i {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-info-list span {
    display: block;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 5px;
}

/* =========================================
   EDUCATION & SUBJECTS SECTION
   ========================================= */
.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.edu-card {
    padding: 40px;
    position: relative;
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.edu-card h3 {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 30px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255,255,255,0.1);
}

.timeline li {
    position: relative;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--bg-main);
    border: 2px solid var(--primary-color);
}

.timeline h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.timeline .year {
    display: inline-block;
    padding: 4px 12px;
    background: transparent;
    color: var(--accent-color);
    font-size: 0.9rem;
    border-radius: 4px;
    margin-top: 10px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.subjects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.subject-item {
    background: transparent;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.subject-item:hover {
    border-color: var(--primary-color);
    background: rgba(225, 29, 72, 0.05);
}

.subject-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.subject-item span {
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

/* =========================================
   ACHIEVEMENTS SECTION
   ========================================= */
.achievements-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.achievements-timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(255,255,255,0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 20px 50px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    background: var(--bg-main);
    border: 2px solid var(--primary-color);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-content {
    padding: 30px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
}

.timeline-year {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: block;
}

.timeline-content h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.info-item h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-form-container {
    padding: 40px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-main);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: #050505;
    color: white;
    padding-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-logo::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 4px;
    transform: rotate(45deg);
}

.social-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.footer-bottom {
    background: #000;
    padding: 20px 0;
    text-align: center;
}

/* =========================================
   ANIMATIONS & EFFECTS
   ========================================= */
.reveal { opacity: 0; transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; }
.fade-in { transform: translateY(0); }
.slide-up { transform: translateY(50px); }
.slide-up.active { transform: translateY(0); }
.slide-right { transform: translateX(-50px); }
.slide-right.active { transform: translateX(0); }
.slide-left { transform: translateX(50px); }
.slide-left.active { transform: translateX(0); }

/* =========================================
   RESPONSIVE STYLES
   ========================================= */
@media screen and (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-text h1 { font-size: 3rem; }
    .hero-text h2 { font-size: 2.2rem; }
    
    .hero-buttons { justify-content: center; }
    
    .profile-img-container { flex: 0 0 280px; }
    .profile-img { width: 280px; height: 280px; }
    
    .about-grid, .edu-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .achievements-timeline::before { left: 30px; }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) { left: 0; }
    
    .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 5px;
        right: auto;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background: var(--bg-light);
        flex-direction: column;
        text-align: center;
        padding: 30px 0;
        gap: 20px;
        transition: 0.4s;
    }
    
    .nav-links.active { left: 0; }
    .hamburger { display: block; }
    .section-title { font-size: 2rem; }
    .section-padding { padding: 80px 0; }
}

@media screen and (max-width: 576px) {
    .section-padding { padding: 50px 0; }
    .hero { min-height: auto; padding-bottom: 60px; }
    .hero-content { padding-top: 120px; gap: 30px; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-text h2 { font-size: 1.6rem; }
    .hero-text .institution { font-size: 1rem; flex-direction: column; text-align: center; gap: 5px; }
    .hero-buttons { flex-direction: column; gap: 15px; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .profile-img-container { flex: 0 0 220px; }
    .profile-img { width: 220px; height: 220px; }
    
    .section-title { font-size: 1.8rem; margin-bottom: 40px; }
    .about-text h3 { font-size: 1.8rem; }
    .objectives { padding: 20px 15px; }
    
    .edu-card { padding: 25px; }
    .edu-card h3 { font-size: 1.4rem; }
    .subjects-grid { grid-template-columns: 1fr; }
    
    .achievements-timeline::before { left: 20px; }
    .timeline-item { padding-left: 60px; padding-top: 10px; padding-bottom: 10px; }
    .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon { left: -5px; width: 40px; height: 40px; font-size: 1.2rem; top: 15px; }
    
    .contact-card, .contact-form-container { padding: 25px 20px; }
    .info-item { flex-direction: column; text-align: center; align-items: center; gap: 10px; }
    
    /* Hide heavy animations on small mobile to prevent horizontal scrolling and improve performance */
    body::before, body::after { display: none; }
}
