/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #8B4513;
    --secondary-color: #CD853F;
    --accent-color: #DEB887;
    --burgundy: #800020;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --text-gray: #6c757d;
    --gradient-primary: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    --gradient-secondary: linear-gradient(135deg, #800020 0%, #A0202E 100%);
    --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 18px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 18px 36px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 18px;
    text-align: center;
    min-width: 48px;
    min-height: 48px;
    touch-action: manipulation;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(139, 69, 19, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 48px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-description {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== NAVIGATION ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
    transition: var(--transition);
}

#navbar.scrolled .logo-text {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 18px;
    position: relative;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

#navbar.scrolled .nav-link {
    color: var(--text-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: var(--transition);
}

#navbar.scrolled .hamburger span {
    background: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 50%, #800020 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    padding: 0 20px;
    max-width: 1200px;
}

.hero-title {
    font-size: 72px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.9s both;
}

.fade-in-delay-4 {
    animation: fadeIn 1s ease-out 1.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-light);
    border-radius: 25px;
    position: relative;
    animation: scroll 2s infinite;
}

.mouse::before {
    content: '';
    width: 6px;
    height: 10px;
    background: var(--text-light);
    border-radius: 3px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel 2s infinite;
}

@keyframes scroll {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

@keyframes wheel {
    0% {
        top: 10px;
        opacity: 1;
    }
    100% {
        top: 30px;
        opacity: 0;
    }
}

/* ===== QUOTE SECTION ===== */
.quote-section {
    padding: 80px 20px;
    background: var(--light-bg);
}

.featured-quote {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.quote-icon {
    font-size: 48px;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

.featured-quote p {
    font-size: 28px;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.featured-quote cite {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 100px 20px;
    background: var(--text-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

.about-image-container {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image {
    width: 100%;
    border-radius: 20px;
    transition: var(--transition);
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.05);
}

.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    z-index: -1;
}

.about-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--light-bg);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.badge-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.badge-item span {
    font-weight: 600;
    color: var(--text-dark);
}

.about-text .lead-text {
    font-size: 22px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
}

.qualifications,
.expertise-areas {
    margin-top: 40px;
}

.qualifications h3,
.expertise-areas h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.qualifications ul {
    display: grid;
    gap: 15px;
}

.qualifications li {
    display: flex;
    align-items: start;
    gap: 15px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 10px;
    transition: var(--transition);
}

.qualifications li:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.qualifications li i {
    color: var(--primary-color);
    margin-top: 3px;
    font-size: 18px;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(139, 69, 19, 0.3);
}

/* ===== JOURNEY TIMELINE ===== */
.journey-section {
    padding: 100px 20px;
    background: var(--light-bg);
}

.timeline {
    max-width: 900px;
    margin: 60px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: calc(50% + 40px);
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + 40px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--text-light);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--light-bg);
    z-index: 2;
}

.timeline-content {
    background: var(--text-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.timeline-year {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.timeline-content h4 {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--text-gray);
}

.timeline-content li {
    margin-bottom: 8px;
}

/* ===== ACHIEVEMENTS SECTION ===== */
.achievements-section {
    padding: 100px 20px;
    background: var(--text-light);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.achievement-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-color);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 32px;
}

.achievement-card h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.achievement-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== AWARDS SECTION ===== */
.awards-section {
    padding: 100px 20px;
    background: var(--light-bg);
}

.awards-timeline {
    max-width: 1000px;
    margin: 40px auto 0;
}

.award-year-group {
    margin-bottom: 50px;
}

.award-year {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.award-year::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
}

.awards-list {
    display: grid;
    gap: 20px;
}

.award-item {
    display: flex;
    gap: 20px;
    background: var(--text-light);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.award-item:hover {
    transform: translateX(10px);
    box-shadow: var(--box-shadow);
}

.award-item i {
    color: #FFD700;
    font-size: 24px;
    margin-top: 5px;
}

.award-item h4 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.award-item p {
    color: var(--text-gray);
    font-size: 15px;
}

/* ===== PUBLICATIONS SECTION ===== */
.publications-section {
    padding: 100px 20px;
    background: var(--text-light);
}

.publications-content {
    margin-top: 40px;
}

.publication-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.pub-category {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.pub-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.pub-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pub-icon i {
    color: var(--text-light);
    font-size: 28px;
}

.pub-category h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.pub-category p {
    color: var(--text-gray);
    line-height: 1.6;
}

.research-areas {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 15px;
}

.research-areas h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.research-tag {
    background: var(--text-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
}

.research-tag:hover {
    background: var(--gradient-primary);
    color: var(--text-light);
    border-color: transparent;
    transform: translateY(-3px);
}

/* ===== MEDIA SECTION ===== */
.media-section {
    padding: 100px 20px;
    background: var(--light-bg);
}

.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.media-category {
    background: var(--text-light);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

.media-category h3 {
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.media-category h3 i {
    color: var(--primary-color);
}

.media-list {
    display: grid;
    gap: 25px;
}

.media-item {
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.media-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.media-logo {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.media-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

.media-impact {
    margin-top: 50px;
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.media-impact h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.media-impact p {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.95;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    padding: 100px 20px;
    background: var(--text-light);
    position: relative;
    overflow: hidden;
}

.gallery-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 1440 320"><path fill="%23f8f9fa" fill-opacity="0.5" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>');
    background-size: cover;
    opacity: 0.3;
    pointer-events: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    perspective: 1000px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    touch-action: manipulation;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.gallery-item:hover {
    transform: translateY(-20px) scale(1.03) rotateX(2deg);
    box-shadow: 0 25px 60px rgba(139, 69, 19, 0.4);
    z-index: 10;
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
    animation: imageLoad 0.6s ease-out forwards;
}

@keyframes imageLoad {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-item:hover .gallery-image-wrapper img {
    transform: scale(1.2) rotate(3deg);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(139, 69, 19, 0) 0%, rgba(139, 69, 19, 0.85) 60%, rgba(139, 69, 19, 0.98) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    backdrop-filter: blur(2px);
}

.gallery-content {
    text-align: center;
    color: var(--text-light);
    transform: translateY(40px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
}

.gallery-item:hover .gallery-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.gallery-content i {
    font-size: 48px;
    margin-bottom: 15px;
    animation: pulseGlow 2s infinite ease-in-out;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.gallery-content h4 {
    font-size: 22px;
    font-weight: 600;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    }
    50% {
        transform: scale(1.15);
        opacity: 0.9;
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    }
}

/* Gallery lightbox effect */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 3px solid var(--text-light);
    border-radius: 12px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.3);
}

.gallery-item:hover::before {
    opacity: 0.8;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
}

/* Staggered animation for gallery items */
.gallery-item[data-aos="fade-up"] {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Hidden Gallery Items */
.hidden-gallery-item {
    display: none;
    animation: fadeInUpBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hidden-gallery-item.show {
    display: block;
}

@keyframes fadeInUpBounce {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Gallery Show More Section */
.gallery-show-more {
    margin-top: 50px;
    text-align: center;
    position: relative;
}

.btn-show-more {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-show-more::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: left 0.5s;
}

.btn-show-more:hover::before {
    left: 100%;
}

.btn-show-more:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(139, 69, 19, 0.4);
}

.btn-show-more:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-show-more .btn-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-show-more.active .btn-icon {
    transform: rotate(180deg);
}

.btn-show-more .btn-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive adjustments for show more button */
@media (max-width: 768px) {
    .btn-show-more {
        padding: 14px 32px;
        font-size: 16px;
        min-width: 180px;
    }
}

/* ===== VIDEO SECTION ===== */
.video-section {
    padding: 100px 20px;
    background: var(--light-bg);
    position: relative;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(139, 69, 19, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.video-container {
    max-width: 900px;
    margin: 50px auto 0;
    position: relative;
}

.video-wrapper {
    background: var(--text-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    position: relative;
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.video-wrapper:hover::before {
    opacity: 1;
}

.video-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 80px rgba(139, 69, 19, 0.25);
}

.video-frame {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 15px 15px 0 0;
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto;
    z-index: 1;
}

.video-description {
    padding: 30px;
    text-align: center;
    background: var(--text-light);
}

.video-description h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.video-description p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Video hover effects */
.video-frame:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(139, 69, 19, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.video-play-overlay:active .play-button::before {
    width: 100%;
    height: 100%;
}

/* Shine effect for gallery items */
@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
}

.gallery-item:hover::after {
    animation: shine 1.5s ease-in-out;
}

/* ===== VISION SECTION ===== */
.vision-section {
    padding: 100px 20px;
    background: var(--text-light);
}

.vision-intro {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.vision-intro .lead-text {
    font-size: 22px;
    line-height: 1.8;
    color: var(--text-dark);
}

.vision-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.pillar-card {
    background: var(--light-bg);
    padding: 35px 30px;
    border-radius: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-color);
}

.pillar-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.pillar-icon i {
    color: var(--text-light);
    font-size: 28px;
}

.pillar-card h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.pillar-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===== MESSAGE SECTION ===== */
.message-section {
    padding: 80px 20px;
    background: var(--gradient-secondary);
}

.message-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-light);
}

.message-box h2 {
    font-size: 36px;
    margin-bottom: 25px;
}

.message-box p {
    font-size: 20px;
    line-height: 1.8;
    opacity: 0.95;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 100px 20px;
    background: var(--light-bg);
}

.contact-content {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.contact-info {
    max-width: 800px;
    text-align: center;
}

.contact-info h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.info-item i {
    color: var(--primary-color);
    font-size: 24px;
}

.info-item h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.info-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

.info-item a {
    color: var(--primary-color);
}

.info-item a:hover {
    text-decoration: underline;
}

.social-links {
    margin-top: 40px;
}

.social-links h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 18px;
    transition: var(--transition);
}

.social-icons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

.contact-form-container h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.contact-form {
    background: var(--text-light);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 50px 20px 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.footer-info {
    width: 100%;
    text-align: center;
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-info p {
    opacity: 0.8;
    line-height: 1.8;
}

.copyright {
    margin-top: 20px;
    font-size: 14px;
}

.developer-credit {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 25px;
    line-height: 1.8;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(222, 184, 135, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid rgba(222, 184, 135, 0.3);
}

.developer-name {
    display: inline-block;
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24, #ff6b6b);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: genZGradient 3s ease infinite, genZFloat 2s ease-in-out infinite;
    letter-spacing: 2px;
    margin: 10px 0;
    filter: drop-shadow(0 0 10px rgba(78, 205, 196, 0.6));
}

@keyframes genZGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes genZFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

.footer-links,
.footer-social {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.footer-links h4,
.footer-social h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-social .social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-social .social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social .social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .section-title {
        font-size: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .gallery-image-wrapper {
        height: 300px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 70px;
        margin-right: 0;
        text-align: left;
    }
    
    .timeline-item::before {
        left: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--text-light);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 30px 0;
        gap: 20px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        color: var(--text-dark);
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .featured-quote p {
        font-size: 22px;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-pillars {
        grid-template-columns: 1fr;
    }
    
    .publication-categories {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-image-wrapper {
        height: 350px;
    }
    
    .video-frame {
        padding-bottom: 75%; /* Adjust aspect ratio for mobile */
    }
    
    .video-description {
        padding: 20px;
    }
    
    .video-description h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    /* Ensure the fixed navbar does not overlap hero content */
    .nav-container {
        padding: 12px 16px;
    }

    /* Reduce and tighten logo to preserve vertical space */
    .logo-text {
        font-size: 18px;
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60%;
    }

    /* Give the hero top padding to clear the fixed nav */
    .hero {
        padding-top: 92px; /* space for fixed navbar */
        height: auto;
        min-height: calc(100vh - 92px);
        align-items: flex-start; /* let content flow naturally */
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 28px;
        margin: 6px 0 10px;
        line-height: 1.12;
        word-break: break-word;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .hero-description {
        font-size: 15px;
        margin-bottom: 24px;
        line-height: 1.5;
    }

    /* Stack buttons vertically on narrow screens */
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 30px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        padding: 12px 18px;
        font-size: 16px;
    }

    /* Make stats stack cleanly */
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 420px;
        margin-top: 8px;
    }

    .stat-number {
        font-size: 32px;
    }

    .section-title {
        font-size: 22px;
    }

    .featured-quote p {
        font-size: 16px;
    }

    /* Timeline adjustments for narrow layout */
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 30px;
        margin-right: 30px;
    }

    .timeline-item::before {
        left: 12px;
    }

    .timeline::before {
        left: 12px;
    }

    .gallery-image-wrapper {
        height: 180px;
    }

    .gallery-content i {
        font-size: 24px;
    }

    .gallery-content h4 {
        font-size: 14px;
    }

    .video-description h3 {
        font-size: 16px;
    }

    .video-description p {
        font-size: 12px;
    }

    /* Hide overly large header shadows that can visually clash */
    .hero-title,
    .hero-subtitle,
    .hero-description {
        text-shadow: none;
    }
}
