/* =========================================
   CSS Variables & Reset
   ========================================= */
:root {
    --primary: #0A4B78;
    --primary-light: #10609b;
    --secondary: #17B794;
    --secondary-light: #1dd1a1;
    --accent: #F26B5E;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --bg-gray: #F1F5F9;
    --text-dark: #0F172A;
    --text-gray: #64748B;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px -10px rgba(10, 75, 120, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    color: var(--text-dark); line-height: 1.7; 
    background: var(--bg-white); 
    -webkit-font-smoothing: antialiased; 
}
h1, h2, h3, h4 { font-weight: 800; color: var(--text-dark); line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { margin-bottom: 16px; }
.section-title p { color: var(--text-gray); max-width: 650px; margin: 0 auto; font-size: 1.1rem; line-height: 1.7; }

/* =========================================
   Buttons
   ========================================= */
.btn { 
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 32px; border-radius: 50px; font-weight: 600; 
    transition: var(--transition); cursor: pointer; border: none; 
    font-size: 0.95rem; letter-spacing: 0.01em; 
    position: relative; overflow: hidden; z-index: 1; 
}
.btn::before { 
    content: ''; position: absolute; top: 0; left: -100%; 
    width: 100%; height: 100%; 
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent); 
    transition: 0.6s; z-index: -1; 
}
.btn:hover::before { left: 100%; }
.btn-primary { 
    background: linear-gradient(135deg, var(--primary), var(--primary-light)); 
    color: white; box-shadow: 0 8px 20px rgba(10, 75, 120, 0.25); 
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10, 75, 120, 0.35); }
.btn-secondary { 
    background: rgba(255,255,255,0.15); color: white; 
    border: 2px solid rgba(255,255,255,0.5); backdrop-filter: blur(4px); 
}
.btn-secondary:hover { background: white; color: var(--primary); border-color: white; transform: translateY(-3px); }

/* =========================================
   Header & Navigation (Perfectly Aligned & Solid Background)
   ========================================= */
.header { 
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; 
    background: var(--bg-white); 
    box-shadow: 0 2px 15px rgba(0,0,0,0.05); 
    transition: var(--transition);
}
.header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Flexbox ensures logo and menu are perfectly aligned vertically */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
    transition: var(--transition);
}
.header.scrolled .nav {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo img { 
    height: 50px; width: auto; display: block; transition: var(--transition); 
}
.header.scrolled .logo img { 
    height: 40px; 
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 32px; 
    align-items: center; 
    margin: 0; 
    padding: 0;
}
.nav-links li {
    position: relative;
}
.nav-links a { 
    font-weight: 500; 
    position: relative; 
    color: var(--text-dark); 
    font-size: 0.95rem;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.nav-links a::after { 
    content: ''; position: absolute; bottom: 0; left: 0; 
    width: 0; height: 2px; background: var(--secondary); transition: var(--transition); 
}
.nav-links > li > a:hover::after, 
.nav-links > li > a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.header .lang-switch { 
    padding: 6px 16px; border: 1.5px solid var(--border); border-radius: 20px; 
    font-size: 0.85rem; font-weight: 600; color: var(--text-gray); transition: var(--transition); 
}
.header .lang-switch:hover { border-color: var(--primary); color: var(--primary); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu { 
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(15px); 
    background: var(--bg-white); min-width: 240px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
    border-radius: var(--radius); opacity: 0; visibility: hidden; 
    transition: var(--transition); padding: 12px; list-style: none; 
    margin-top: 15px; border: 1px solid var(--border-light);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu a { 
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; color: var(--text-dark) !important; 
    font-size: 0.9rem; font-weight: 500; border-radius: var(--radius-sm); 
    transition: var(--transition);
}
.dropdown-menu a::after { display: none; } /* Remove underline for dropdown items */
.dropdown-menu a:hover { background: var(--bg-light); color: var(--primary) !important; transform: translateX(4px); }

/* Mobile Toggle */
.mobile-toggle { 
    display: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    background: none; 
    border: none; 
    color: var(--text-dark);
    align-items: center;
    justify-content: center;
}

/* =========================================
   Hero Sections
   ========================================= */
.hero-main { 
    height: 100vh; min-height: 700px;
    background: linear-gradient(135deg, rgba(10, 75, 120, 0.85), rgba(23, 183, 148, 0.75)), url('../images/hero-bg.jpg') center/cover no-repeat; 
    display: flex; align-items: center; justify-content: center; text-align: center; color: white; 
    position: relative;
}
.hero-main::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 150px;
    background: linear-gradient(to top, rgba(255,255,255,1), transparent);
}
.hero-main h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 24px; color: white; font-weight: 800; letter-spacing: -0.03em; text-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.hero-main p { font-size: 1.25rem; margin-bottom: 40px; opacity: 0.95; max-width: 750px; margin-left: auto; margin-right: auto; line-height: 1.6; }

.hero-inner { 
    height: 50vh; min-height: 350px; 
    background: linear-gradient(135deg, rgba(10, 75, 120, 0.9), rgba(23, 183, 148, 0.8)), url('../images/inner-hero-bg.jpg') center/cover no-repeat; 
    display: flex; align-items: center; justify-content: center; text-align: center; color: white; 
    margin-top: 0; position: relative;
}
.hero-inner::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100px;
    background: linear-gradient(to top, rgba(255,255,255,1), transparent);
}
.hero-inner h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: white; margin-bottom: 12px; }
.hero-inner p { font-size: 1.15rem; opacity: 0.9; }

/* =========================================
   Components (Cards, Grids, Lists)
   ========================================= */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.card { 
    background: white; padding: 40px 32px; border-radius: var(--radius); 
    box-shadow: var(--shadow-sm); transition: var(--transition); 
    text-align: center; border: 1px solid var(--border-light); 
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.card:hover { transform: translateY(-12px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon { 
    width: 80px; height: 80px; 
    background: linear-gradient(135deg, var(--bg-light), #e0f2fe); 
    border-radius: 24px; display: flex; align-items: center; justify-content: center; 
    margin: 0 auto 24px; font-size: 2rem; color: var(--primary); transition: var(--transition); 
}
.card:hover .card-icon { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; transform: scale(1.1) rotate(5deg); border-radius: 30px; }
.card h3 { font-size: 1.3rem; margin-bottom: 16px; }
.card p { color: var(--text-gray); font-size: 1rem; line-height: 1.6; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { 
    height: 500px; background: url('../images/dr-yaser.jpg') center/cover no-repeat; 
    border-radius: 32px; box-shadow: var(--shadow); position: relative;
}
.about-img::after {
    content: ''; position: absolute; top: 20px; left: 20px; right: -20px; bottom: -20px;
    border: 4px solid var(--secondary); border-radius: 32px; z-index: -1; opacity: 0.3;
}
.about-text h2 { font-size: 2.2rem; margin-bottom: 24px; }
.about-text p { color: var(--text-gray); margin-bottom: 20px; font-size: 1.05rem; line-height: 1.8; }

.ivf-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.ivf-item { 
    display: flex; align-items: center; gap: 20px; padding: 24px; 
    background: white; border-radius: var(--radius); 
    box-shadow: var(--shadow-sm); border-left: 4px solid var(--secondary); 
    transition: var(--transition); 
    border-top: 1px solid var(--border-light); border-right: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
}
.ivf-item:hover { transform: translateX(8px) translateY(-4px); box-shadow: var(--shadow); border-left-color: var(--primary); }
.ivf-item i { font-size: 1.6rem; color: var(--secondary); transition: var(--transition); }
.ivf-item:hover i { color: var(--primary); transform: scale(1.1); }
.ivf-item h4 { font-size: 1.1rem; margin: 0; color: var(--text-dark); font-weight: 600; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.gallery-item { 
    height: 280px; border-radius: var(--radius); overflow: hidden; 
    position: relative; cursor: pointer; box-shadow: var(--shadow-sm); 
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { 
    position: absolute; inset: 0; 
    background: linear-gradient(135deg, rgba(10, 75, 120, 0.8), rgba(23, 183, 148, 0.6)); 
    display: flex; align-items: center; justify-content: center; 
    opacity: 0; transition: opacity 0.4s ease; color: white; font-size: 2rem; 
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Contact */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 32px; }
.contact-icon { 
    width: 56px; height: 56px; 
    background: linear-gradient(135deg, var(--primary), var(--secondary)); 
    color: white; display: flex; align-items: center; justify-content: center; 
    border-radius: 16px; font-size: 1.2rem; flex-shrink: 0; 
    box-shadow: 0 8px 16px rgba(10, 75, 120, 0.2);
}
.contact-item h4 { margin-bottom: 6px; font-size: 1.15rem; font-weight: 700; }
.contact-item p { color: var(--text-gray); margin: 0; font-size: 1rem; line-height: 1.6; }

.contact-form { background: white; padding: 40px; border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--border-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 600; color: var(--text-dark); font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea { 
    width: 100%; padding: 14px 18px; 
    border: 1.5px solid var(--border); border-radius: 12px; 
    font-family: inherit; font-size: 1rem; 
    transition: var(--transition); background: var(--bg-light); 
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { 
    outline: none; border-color: var(--primary); background: white; 
    box-shadow: 0 0 0 4px rgba(10, 75, 120, 0.08); 
}
.form-group textarea { height: 140px; resize: vertical; }

/* =========================================
   Footer
   ========================================= */
.footer { 
    background: linear-gradient(135deg, #073556, var(--primary)); 
    color: white; padding: 80px 0 30px; position: relative; overflow: hidden; 
}
.footer::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(23, 183, 148, 0.15), transparent 70%);
    border-radius: 50%;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 50px; position: relative; z-index: 1; }
.footer h4 { color: white; margin-bottom: 24px; font-size: 1.2rem; font-weight: 700; }
.footer-about p { color: rgba(255,255,255,0.7); margin-bottom: 24px; line-height: 1.8; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 14px; }
.footer-links a { color: rgba(255,255,255,0.7); transition: var(--transition); font-weight: 500; }
.footer-links a:hover { color: var(--secondary); padding-left: 6px; }
.social-links { display: flex; gap: 14px; }
.social-links a { 
    width: 42px; height: 42px; 
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; display: flex; align-items: center; justify-content: center; 
    color: white; transition: var(--transition); font-size: 1.1rem;
}
.social-links a:hover { background: var(--secondary); border-color: var(--secondary); transform: translateY(-4px); box-shadow: 0 8px 16px rgba(23, 183, 148, 0.4); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; color: rgba(255,255,255,0.5); font-size: 0.9rem; position: relative; z-index: 1; }

/* =========================================
   Publications & Presentations
   ========================================= */
.publication-list { list-style: none; padding: 0; margin: 0; }
.publication-item { 
    background: white; padding: 32px; border-radius: var(--radius); 
    box-shadow: var(--shadow-sm); margin-bottom: 24px; 
    border-left: 5px solid var(--secondary); transition: var(--transition); 
    border-top: 1px solid var(--border-light); border-right: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
}
.publication-item:hover { transform: translateX(8px); box-shadow: var(--shadow); border-left-color: var(--primary); }
.publication-title { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; line-height: 1.5; }
.publication-title a { color: var(--primary); transition: color 0.3s; }
.publication-title a:hover { color: var(--secondary); }
.publication-authors { color: var(--text-gray); font-size: 1rem; margin-bottom: 12px; font-style: italic; font-weight: 500; }
.publication-journal { font-size: 1rem; color: var(--text-dark); margin-bottom: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.publication-journal::before { content: '\f0f6'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--secondary); font-style: normal; }
.publication-meta { font-size: 0.9rem; color: var(--text-gray); line-height: 1.6; display: flex; flex-wrap: wrap; gap: 16px; }
.publication-meta a { color: var(--primary); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.publication-meta a:hover { color: var(--secondary); text-decoration: underline; }

.presentation-list { list-style: none; padding: 0; }
.presentation-item { 
    background: white; padding: 24px 32px; border-radius: var(--radius); 
    box-shadow: var(--shadow-sm); margin-bottom: 20px; 
    border-left: 5px solid var(--primary); 
    display: flex; align-items: flex-start; gap: 20px; transition: var(--transition); 
    border-top: 1px solid var(--border-light); border-right: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
}
.presentation-item:hover { transform: translateX(8px); box-shadow: var(--shadow); border-left-color: var(--secondary); }
.presentation-item i { color: var(--primary); font-size: 1.4rem; margin-top: 4px; transition: var(--transition); }
.presentation-item:hover i { color: var(--secondary); transform: scale(1.1); }
.presentation-item div { flex: 1; }
.presentation-item h4 { font-size: 1.15rem; color: var(--text-dark); margin-bottom: 8px; font-weight: 700; }
.presentation-item p { font-size: 0.95rem; color: var(--text-gray); margin: 0; line-height: 1.6; }

/* =========================================
   Scientific Activities & Degrees
   ========================================= */
.activity-section { margin-bottom: 70px; }
.activity-section h3 { 
    color: var(--text-dark); font-size: 1.8rem; margin-bottom: 30px; 
    padding-bottom: 15px; border-bottom: 2px solid var(--border-light); 
    display: flex; align-items: center; gap: 12px; font-weight: 800;
}
.activity-section h3 i { color: var(--secondary); font-size: 1.5rem; }

.activity-year { 
    color: var(--primary); font-weight: 700; font-size: 1.2rem; 
    margin-top: 30px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.activity-year::before {
    content: "\f073"; font-family: "Font Awesome 6 Free"; font-weight: 900; 
    color: white; background: var(--secondary); width: 32px; height: 32px; 
    display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 0.9rem;
}

.activity-list { list-style: none; padding-left: 0; margin-bottom: 10px; }
.activity-list li { 
    background: white; padding: 18px 24px 18px 50px; margin-bottom: 12px; 
    border-radius: 12px; box-shadow: var(--shadow-sm); 
    border-left: 3px solid var(--secondary); position: relative; transition: var(--transition);
    border-top: 1px solid var(--border-light); border-right: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
}
.activity-list li:hover { transform: translateX(6px); box-shadow: var(--shadow); border-left-color: var(--primary); }
.activity-list li::before { 
    content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; 
    color: var(--secondary); position: absolute; left: 20px; top: 20px; font-size: 1rem; transition: var(--transition);
}
.activity-list li:hover::before { color: var(--primary); transform: translateX(4px); }

.theses-table-wrapper { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.theses-table { width: 100%; border-collapse: collapse; margin-top: 20px; min-width: 600px; background: white; }
.theses-table th { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; padding: 18px 20px; text-align: left; font-weight: 600; font-size: 1rem; }
.theses-table td { padding: 18px 20px; border-bottom: 1px solid var(--border-light); font-size: 0.95rem; color: var(--text-dark); line-height: 1.6; }
.theses-table tr:last-child td { border-bottom: none; }
.theses-table tr:hover td { background: var(--bg-light); }

.degrees-list { list-style: none; padding: 0; }
.degrees-list li { 
    background: white; padding: 24px 28px; margin-bottom: 16px; 
    border-radius: var(--radius); box-shadow: var(--shadow-sm); 
    border-left: 5px solid var(--primary); display: flex; align-items: flex-start; gap: 20px; transition: var(--transition);
    border-top: 1px solid var(--border-light); border-right: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
}
.degrees-list li:hover { transform: translateX(8px); box-shadow: var(--shadow); border-left-color: var(--secondary); }
.degrees-list li i { color: var(--primary); font-size: 1.5rem; margin-top: 2px; flex-shrink: 0; transition: var(--transition); }
.degrees-list li:hover i { color: var(--secondary); transform: scale(1.1); }
.degrees-list li div { flex: 1; line-height: 1.7; font-size: 1.05rem; }

/* =========================================
   Responsive Design (Enhanced Mobile View)
   ========================================= */
@media (max-width: 992px) {
    .nav { height: 70px; }
    .logo img { height: 40px; }
    .hero-main h1 { font-size: 2.5rem; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .about-img { height: 400px; }
    .about-img::after { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    
    /* Mobile Menu Container */
    .nav-links { 
        display: none; 
        position: absolute; 
        top: 70px; 
        left: 0; 
        width: 100%; 
        background: var(--bg-white); 
        flex-direction: column; 
        align-items: flex-start; 
        padding: 20px; 
        box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
        gap: 0; 
        border-top: 1px solid var(--border-light);
        max-height: calc(100vh - 70px); /* Scrollable if menu is too long */
        overflow-y: auto;
    }
    .nav-links.active { display: flex; }
    
    .nav-links li { 
        width: 100%; 
        border-bottom: 1px solid var(--border-light); 
    }
    .nav-links li:last-child { border-bottom: none; }
    
    .nav-links a { 
        color: var(--text-dark) !important; 
        display: flex; 
        justify-content: space-between;
        align-items: center;
        padding: 16px 0; 
        width: 100%; 
        font-size: 1rem;
    }
    .nav-links a::after { display: none; }
    
    /* Mobile Dropdowns */
    .dropdown-menu { 
        position: static; 
        box-shadow: none; 
        opacity: 1; 
        visibility: visible; 
        transform: none; 
        display: none; 
        background: var(--bg-light); 
        margin: 0 0 15px 0; 
        border-radius: 12px; 
        padding: 10px; 
        border: none;
        width: 100%;
    }
    .dropdown.active .dropdown-menu { display: block; }
    
    .form-row { grid-template-columns: 1fr; }
    .hero-main h1, .hero-inner h1 { font-size: 2.2rem; }
    .section { padding: 70px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-form { padding: 24px; }
    .publication-item, .presentation-item { padding: 24px; }
    
    .grid { grid-template-columns: 1fr; }
    .card { padding: 30px 24px; }
}

/* =========================================
   Gallery Tabs
   ========================================= */
.gallery-tabs-container {
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-light);
    position: sticky;
    top: 85px;
    background: var(--bg-white);
    z-index: 100;
    padding: 10px 0;
}
.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 10px 0;
}
.gallery-tab {
    padding: 10px 20px;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-gray);
    transition: var(--transition);
    white-space: nowrap;
}
.gallery-tab:hover {
    background: var(--bg-white);
    border-color: var(--secondary);
    color: var(--primary);
    transform: translateY(-2px);
}
.gallery-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(10, 75, 120, 0.25);
}

/* Gallery Tab Content */
.gallery-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}
.gallery-tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Gallery Grid with Lightbox */
.gallery-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.gallery-grid-modern .gallery-item {
    height: 250px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.gallery-grid-modern .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-grid-modern .gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-grid-modern .gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 75, 120, 0.85), rgba(23, 183, 148, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: white;
    font-size: 2rem;
}
.gallery-grid-modern .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lightbox.active {
    display: flex;
}
.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}
.lightbox-close:hover {
    background: var(--secondary);
    transform: rotate(90deg);
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}
.lightbox-nav:hover {
    background: var(--secondary);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background: rgba(0,0,0,0.5);
    padding: 8px 20px;
    border-radius: 20px;
}

/* Empty State */
.empty-gallery {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}
.empty-gallery i {
    font-size: 4rem;
    color: var(--border);
    margin-bottom: 20px;
}
.empty-gallery h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .gallery-tabs-container {
        top: 70px;
        overflow-x: auto;
    }
    .gallery-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding: 10px 20px;
    }
    .gallery-tab {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .gallery-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    .gallery-grid-modern .gallery-item {
        height: 180px;
    }
}