* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3c72;
    --secondary-color: #2a5298;
    --accent-color: #ffd700;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-strong: rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Enhanced Navbar with Mobile Dropdown Fix */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 30px var(--shadow-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 30px var(--shadow-medium);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
}

.navbar-brand {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
    z-index: 1001;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 0;
    margin: 0 auto;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu>li>a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.nav-menu>li>a:hover {
    color: var(--primary-color);
    background: rgba(30, 60, 114, 0.1);
    transform: translateY(-2px);
}

/* Dropdown Menu - Desktop */
.dropdown {
    position: relative;
}

.dropdown .dropdown-toggle i {
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 240px;
    box-shadow: 0 10px 30px var(--shadow-medium);
    border-radius: 16px;
    list-style: none;
    padding: 12px 0;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
}

.dropdown.open .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}


.dropdown.open .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    padding: 14px 24px;
    display: block;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px 8px;
}

.dropdown-menu a:hover {
    background: rgba(30, 60, 114, 0.08);
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    background: rgba(30, 60, 114, 0.1);
    transition: all 0.3s ease;
    z-index: 1002;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
}

.menu-toggle:hover {
    background: rgba(30, 60, 114, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Enhanced Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    color: var(--white);
    padding: 120px 30px 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1.2s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-color);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    font-family: Libertinus Serif;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: 25px;
    color: var(--accent-color);
    font-weight: 600;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    margin-bottom: 40px;
    line-height: 1.8;
    opacity: 0.95;
    text-align: justify;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #ffed4e);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* Profile Card */
.hero-image {
    display: flex;
    justify-content: center;
    animation: slideInRight 1.2s ease-out;
    position: relative;
}

.profile-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(25px);
    border-radius: 32px;
    padding: 50px 40px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-mini {
    text-align: center;
    padding: 16px 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-mini:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-mini-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.stat-mini-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Enhanced Sections */
.section {
    padding: 100px 30px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section:nth-child(even) {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e9ecef 100%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 80px;
    position: relative;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    padding: 0 15px;
    word-wrap: break-word;
    hyphens: auto;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

/* PhD Students Toggle Buttons */
.phd-toggle-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.toggle-btn {
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.toggle-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.2);
}

/* PhD Students List with Transitions */
.phd-list {
    transition: all 0.5s ease;
}

.phd-list.hidden {
    display: none;
}

/* Enhanced Horizontal Scroll Container */
.scroll-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 60px;
}

.horizontal-scroll {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

/* Card styles with proper flex properties */
.card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 1px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(30, 60, 114, 0.08);
    position: relative;
    overflow: hidden;
    flex: 0 0 350px;
    min-height: 300px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.08), transparent);
    transition: left 0.8s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(30, 60, 114, 0.15),
        0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.card-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotateY(5deg);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.card:hover .card-title {
    color: var(--primary-color);
}

.card-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    text-align: justify;
}

/* Scroll buttons with proper positioning */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 2px solid rgba(30, 60, 114, 0.1);
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(30, 60, 114, 0.3);
}

.scroll-btn.left {
    left: 10px;
}

.scroll-btn.right {
    right: 10px;
}

/* About Section with Full-Width Stats */
.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

.about-image {
    text-align: center;
}

.about-photo {
    width: 300px;
    height: 400px;
    border-radius: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    color: white;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    overflow: hidden;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.about-text p {
    text-align: justify;
    line-height: 1.6;
}

/* Full-width stats container */
.stats {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    width: 100%;
    grid-column: 1 / -1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Table Styles for Projects */
.projects-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.projects-table th,
.projects-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.projects-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.projects-table tr:hover {
    background: rgba(30, 60, 114, 0.05);
}

.table-scroll {
    overflow-x: auto;
    border-radius: 12px;
}

/* New Sections Styling */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.info-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.info-card ul {
    list-style: none;
}

.info-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-card ul li:last-child {
    border-bottom: none;
}

/* PhD Students Section */
.phd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.phd-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
    text-align: center;
}

.phd-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.phd-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}

.phd-card .research-area {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 10px;
}

.phd-card .year {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Publication List Styles */
.publication-list {
    max-width: 1200px;
    margin: 0 auto;
}

.publication-item {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.publication-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.publication-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.publication-authors {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.publication-venue {
    color: var(--text-light);
    font-style: italic;
}

/* Collapsible Sections */
.collapsible-section {
    margin-bottom: 40px;
}

.collapsible-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.collapsible-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
}

.collapsible-header.active {
    border-radius: 16px 16px 0 0;
}

.collapsible-icon {
    transition: transform 0.3s ease;
}

.collapsible-header.active .collapsible-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: white;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Presentations List */
.presentation-list {
    list-style: none;
    padding: 0;
}

.presentation-list li {
    background: var(--bg-light);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.presentation-list li:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.presentation-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.presentation-details {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Responsibility List */
.responsibility-list {
    display: grid;
    gap: 20px;
}

.responsibility-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.responsibility-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.responsibility-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.responsibility-period {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.responsibility-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2c3e50, #3c5c78);
    color: white;
    padding: 60px 30px 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1 1 280px;
    min-width: 280px;
}

.footer-map iframe {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    height: 100%;
    min-height: 250px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-section p {
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.contact-info i {
    color: var(--accent-color);
    width: 20px;
    font-size: 1.1rem;
}

.quick-links {
    list-style: none;
}

.quick-links li {
    margin-bottom: 12px;
}

.quick-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-links a:hover {
    opacity: 1;
    color: var(--accent-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.developer-credit a {
    color: var(--accent-color);
    font-weight: 600;
    opacity: 0.9;
    text-decoration: none;
}

/* Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

/* Student Images */
.student-image-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #667eea;
    transition: all 0.3s ease;
}

.student-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.student-image.graduated {
    filter: grayscale(30%);
    border-color: #6c757d;
}

.phd-card:hover .student-image-container {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.phd-card:hover .student-image {
    transform: scale(1.1);
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================= */
/*  DEPARTMENT | CAROUSEL | NEWS SECTION  */
/* ============================================= */
.dept-info-section {
    padding: 80px 30px;
    background: var(--bg-light);
}

.dept-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
}

.dept-box {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dept-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* ---------------- About Department ---------------- */
.about-dept,
.scrollable-about {
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 30px;
    height: 360px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-wcrl h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

/* Scrollable About Area inside box */
.scrollable-about {
    overflow-y: auto;
    padding-right: 10px;
}

.scrollable-about::-webkit-scrollbar {
    width: 6px;
}

.scrollable-about::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent-color), var(--primary-color));
    border-radius: 10px;
}

.scrollable-about::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

/* Scroll Progress Bar (thin and aligned) */
.scroll-progress {
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: rgba(30, 60, 114, 0.1);
    border-radius: 10px;
}

.scroll-progress::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
    border-radius: 10px;
    transition: height 0.2s ease;
}

/* ---------------- Carousel ---------------- */
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 1s ease;
}

.carousel-image.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: var(--primary-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.carousel-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-progress {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* ---------------- News & Events ---------------- */
.news-events {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 360px;
    background: #fff;
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.news-events h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.news-wrapper {
    position: relative;
    height: 270px;
    margin: 6px 0;
    padding: 0;
    line-height: 1.4;
    overflow: hidden;
    font-size: 0.95rem;
}

.news-wrapper p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin: 0;
    padding: 6px 8px;
    border-radius: 6px;
    line-height: 1.6;
    transition: transform 0.6s ease, background 0.3s ease, color 0.3s ease;
}
.news-wrapper p a{
    text-decoration: none;
}
.news-wrapper p:hover {
    background: rgba(255, 215, 0, 0.15);
    color: var(--primary-color);
    transform: scale(1.02);
    cursor: pointer;
}

/* Ensure smooth upward scroll (ticker) */
.news-ticker-container {
    animation: scroll-up 20s linear infinite;
}

@keyframes scroll-up {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.news-wrapper:hover .news-ticker-container {
    animation-play-state: paused;
}



/* RESPONSIVE DESIGN */
/* Enhanced Mobile Menu */
@media (max-width: 992px) {
    .nav-container {
        justify-content: space-between;
        padding: 0 20px;
    }

    .navbar-brand {
        font-size: 22px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .menu-toggle {
        display: flex;
        position: relative;
        right: 0;
        transform: none;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
        gap: 0;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        max-width: 400px;
        margin-bottom: 0 auto;
    }

    .nav-menu>li>a {
        padding: 14px 20px;
        font-size: 17px;
        border-radius: 10px;
        margin-bottom: 0;
        width: 100%;
        display: block;
    }

    /* Dropdown specific for mobile - FIXED */
    .dropdown {
        width: 100%;
    }

    .dropdown .dropdown-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        position: relative;
    }

    .dropdown .dropdown-toggle i {
        margin-left: 8px;
        font-size: 0.8em;
    }

    .dropdown.open .dropdown-toggle i {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: relative;
        top: 10px;
        width: 100%;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        box-shadow: none;
        background: rgba(30, 60, 114, 0.05);
    }

    .dropdown.open > .dropdown-menu {
             max-height: 500px;
        padding: 10px 0;
        opacity: 1;
        visibility: visible;

    }

    .dropdown-menu a {
     text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    padding: 10px 16px;
    display: block;
    transition: background 0.18s ease, 
                color 0.18s ease, 
                transform 0.18s ease;
    border-radius: 8px;
    margin: 0;
    }

    .dropdown-menu a:hover {
        background: rgba(30, 60, 114, 0.08);
    color: var(--primary-color);
    transform: translateX(4px);
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
        padding: 0 20px;
    }

    .section {
        padding: 80px 20px;
    }

    .container {
        padding: 0 20px;
    }

    .profile-image {
        width: 180px;
        height: 180px;
    }

    .profile-card {
        padding: 40px 30px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .phd-toggle-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .toggle-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-photo {
        width: 220px;
        height: 280px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .footer {
        padding: 40px 20px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        padding: 0 20px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 0 20px;
    }

    .dept-container {
        grid-template-columns: 1fr;
    }

    .carousel-wrapper {
        height: 280px;
    }

    .news-wrapper {
        height: auto;
    }

    .dept-info-section {
        padding: 60px 20px;
    }
}

@media (max-width: 1200px) {
    .card {
        flex: 0 0 320px;
    }

    .scroll-wrapper {
        padding: 0 50px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .scroll-wrapper {
        padding: 0 40px;
    }

    .card {
        flex: 0 0 280px;
        min-height: 280px;
        padding: 30px 20px;
    }

    .scroll-btn {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .scroll-btn.left {
        left: 5px;
    }

    .scroll-btn.right {
        right: 5px;
    }

    .table-scroll {
        font-size: 14px;
    }

    .projects-table th,
    .projects-table td {
        padding: 12px 8px;
    }

    .stats {
        padding: 40px 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .stat-item {
        padding: 15px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .section {
        padding: 60px 20px;
    }

    .container {
        padding: 0 20px;
    }

    .nav-menu li {
        max-width: 350px;
    }

    .nav-menu>li>a {
        font-size: 16px;
        padding: 12px 18px;
    }

    .dropdown-menu a {
        font-size: 14px;
        padding: 9px 14px;
    }
}

@media (max-width: 480px) {
    .container,
    .nav-container,
    .hero-container,
    .footer-content {
        padding: 0 16px;
    }

    .navbar-brand {
        font-size: 18px;
        max-width: 200px;
        text-align: center;
        line-height: 1.2;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
        right: 16px;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        width: 20px;
    }

    .nav-menu {
        padding: 20px 16px;
    }

    .nav-menu li {
        max-width: 100%;
        margin-bottom: 6px;
    }

    .nav-menu>li>a {
        font-size: 15px;
        padding: 12px 16px;
    }

    .dropdown-menu {
        width: 95%;
    }

    .dropdown-menu a {
        font-size: 13px;
        padding: 8px 12px;
        margin: 2px 8px;
    }

    .profile-image {
        width: 160px;
        height: 160px;
    }

    .about-photo {
        width: 180px;
        height: 220px;
    }

    .scroll-wrapper {
        padding: 0 30px;
    }

    .card {
        flex: 0 0 260px;
        padding: 25px 15px;
    }

    .scroll-btn {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .stats {
        padding: 30px 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .toggle-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .footer {
        padding: 40px 16px 15px;
    }

    .footer-content {
        gap: 25px;
        padding: 0 16px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 16px;
    }

    .hero {
        padding: 100px 16px 60px;
    }

    .dept-info-section {
        padding: 60px 16px;
    }
}