/* Reset وتحديدات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #31b2cc;
    --secondary-blue: #31b2cc;
    --light-blue: #e6f7ff;
    --accent-blue: #31b2cc;
    --text-dark: #333;
    --text-light: #fff;
    --shadow: 0 4px 6px rgba(49, 178, 204, 0.1);
    --shadow-hover: 0 15px 30px rgba(49, 178, 204, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f8fafc;
    direction: ltr;
    padding-top: 100px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Banner */
.header-banner {
    width: 100%;
    height: 400px;
    background: linear-gradient(rgba(49, 178, 204, 0.7), rgba(49, 178, 204, 0.7)),
        url('image/poster.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
    /* No negative margin – body padding-top handles the header gap */
}

.banner-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 1.5rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

/* تأثيرات الظهور */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Video Section (Replaces Hero Section) */
.video-section {
    padding: 80px 0;
    margin-bottom: 60px;
    margin-top: 40px;
}

.video-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.video-content {
    padding-right: 40px;
}

.video-content h1 {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    line-height: 1.2;
}

.video-content h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 5px;
    background: var(--secondary-blue);
    border-radius: 3px;
}

.video-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-top: 40px;
}

.video-player {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background: #000;
    aspect-ratio: 16/9;
}

.video-player:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.3);
}

.video-player video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    cursor: pointer;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(49, 178, 204, 0.2), rgba(49, 178, 204, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: var(--transition);
    cursor: pointer;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: var(--transition);
}

/* Show controls when video is playing OR when hovering */
.video-player.playing .video-controls,
.video-player:hover .video-controls {
    opacity: 1;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.progress {
    height: 100%;
    background: var(--primary-blue);
    width: 0%;
    transition: width 0.2s ease;
    border-radius: 3px;
}

/* معرض Eye on Talents */
.gallery {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 40px;
    position: relative;
}

.gallery h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-blue);
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.gallery-item {
    background: var(--text-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-blue);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-content {
    padding: 30px;
    text-align: center;
}

.gallery-content h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.6rem;
    font-weight: 700;
}

.arabic-text {
    font-size: 1.4rem;
    color: var(--secondary-blue);
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* قسم الفريق */
.team {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0faff 0%, #e6f7ff 100%);
    border-radius: 30px 30px 0 0;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-blue);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.team-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.team-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 30px;
    padding: 20px 10px;
}

.team-carousel::-webkit-scrollbar {
    display: none;
}

.team-member {
    flex: 0 0 320px;
    height: 420px;
    cursor: pointer;
    scroll-margin-top: 120px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: var(--transition);
    border-radius: 20px;
    background: var(--text-light);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

.team-member:hover .card-inner {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-blue);
}

.card-front {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
}

.image-container {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 4px solid var(--light-blue);
    background: var(--light-blue);
    box-shadow: 0 8px 20px rgba(49, 178, 204, 0.15);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition);
}

.team-member:hover .image-container img {
    transform: scale(1.1);
}

.card-front h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.3;
    min-height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
}

.card-front p {
    color: var(--secondary-blue);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.hover-hint {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* أزرار التنقل */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover:not(:disabled) {
    background: var(--secondary-blue);
    transform: translateY(-50%) scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1) !important;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    border-radius: 24px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    padding: 0;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(49, 178, 204, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    z-index: 11;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(49, 178, 204, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 40px 30px 30px;
    color: white;
    display: flex;
    align-items: center;
    gap: 25px;
    flex-shrink: 0;
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.modal-image-container {
    width: 170px;
    height: 170px;
    border-radius: 15px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    flex: 1;
}

.modal-info h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.modal-info .role {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.modal-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    opacity: 0.9;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    max-height: calc(90vh - 200px);
    scroll-behavior: smooth;
    position: relative;
}


/* Custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-blue);
}

.bio-section h4 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.bio-section p {
    line-height: 1.7;
    color: var(--text-dark);
    font-size: 1.05rem;
}


/* قسم فريق التطوير */
.dev-team {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 30px 30px 0 0;
    margin-top: 20px;
    position: relative;
    border-top: 4px solid var(--light-blue);
}

.dev-team::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
}

.dev-team-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.dev-team-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 30px;
    padding: 20px 10px;
}

.dev-team-carousel::-webkit-scrollbar {
    display: none;
}

.dev-member {
    flex: 0 0 280px;
    height: 380px;
}

.dev-card {
    width: 100%;
    height: 100%;
    background: var(--text-light);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid transparent;
}

.dev-member:hover .dev-card {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-blue);
}

.dev-card-front {
    padding: 30px 25px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.dev-card-front .image-container {
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
}

.dev-card-front h4 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-weight: 700;
    line-height: 1.3;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dev-role {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 1rem;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dev-social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.dev-social-links a {
    color: var(--primary-blue);
    font-size: 1.2rem;
    transition: var(--transition);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-blue);
    text-decoration: none;
}

.dev-social-links a:hover {
    color: var(--text-light);
    background: var(--secondary-blue);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(49, 178, 204, 0.3);
}

/* تخصيص ألوان لكل منصة */
.dev-social-links a:nth-child(1):hover {
    background: #0077b5;
}

/* LinkedIn */
.dev-social-links a:nth-child(2):hover {
    background: #333;
}

/* GitHub */


/* أزرار التنقل لفريق التطوير */
.dev-prev-btn,
.dev-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dev-prev-btn:hover:not(:disabled),
.dev-next-btn:hover:not(:disabled) {
    background: var(--secondary-blue);
    transform: translateY(-50%) scale(1.1);
}

.dev-prev-btn:disabled,
.dev-next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1) !important;
}

.dev-prev-btn {
    left: 10px;
}

.dev-next-btn {
    right: 10px;
}

/* تأثيرات إضافية للبطاقات */
.dev-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dev-member:hover .dev-card::before {
    transform: scaleX(1);
}

/* التجاوب مع الشاشات المختلفة */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .video-container {
        gap: 60px;
    }
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .video-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .video-content {
        padding-right: 0;
        text-align: center;
    }

    .video-content h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .header-banner {
        height: 300px;
        margin-bottom: 40px;
    }

    .banner-content h1 {
        font-size: 3rem;
    }

    .banner-content p {
        font-size: 1.2rem;
    }

    .video-section {
        padding: 60px 0;
        margin-top: 20px;
    }

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

    .video-intro {
        font-size: 1.1rem;
    }

    .play-button {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .section-header h2,
    .gallery h2 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-container,
    .dev-team-container {
        padding: 0 30px;
    }

    .team-member {
        flex: 0 0 280px;
        height: 380px;
    }

    .image-container {
        width: 160px;
        height: 160px;
    }

    .dev-card-front .image-container {
        width: 140px;
        height: 140px;
    }

    .nav-btn,
    .dev-prev-btn,
    .dev-next-btn {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 25px 25px;
    }

    .modal-image-container {
        width: 140px;
        height: 140px;
    }

    .modal-info h3 {
        font-size: 1.6rem;
    }

    .modal-content {
        max-width: 700px;
        max-height: 85vh;
    }

    .modal-body {
        max-height: calc(85vh - 180px);
        padding: 25px;
    }

    .bio-content {
        padding: 25px;
    }

    .dev-member {
        flex: 0 0 240px;
        height: 340px;
    }
}

@media (max-width: 480px) {
    .header-banner {
        height: 250px;
        margin-bottom: 30px;
    }

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

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

    .video-section {
        padding: 50px 0;
        margin-top: 15px;
    }

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

    .video-intro {
        font-size: 1rem;
    }

    .play-button {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .gallery-content h3 {
        font-size: 1.4rem;
    }

    .arabic-text {
        font-size: 1.2rem;
    }

    .team-container,
    .dev-team-container {
        padding: 0 20px;
    }

    .team-member {
        flex: 0 0 240px;
        height: 360px;
    }

    .card-front,
    .dev-card-front {
        padding: 25px 20px;
    }

    .image-container {
        width: 140px;
        height: 140px;
    }

    .card-front h4 {
        font-size: 1.2rem;
    }

    .dev-member {
        flex: 0 0 220px;
        height: 320px;
    }

    .dev-card-front .image-container {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }

    .dev-card-front h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .dev-social-links {
        gap: 8px;
        margin-top: 15px;
    }

    .dev-social-links a {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .modal-content {
        width: 95%;
        max-width: 95%;
        max-height: 85vh;
        border-radius: 16px;
    }

    .modal-body {
        max-height: calc(85vh - 160px);
        padding: 20px;
    }

    .bio-content {
        padding: 20px;
    }

    .bio-content .responsibilities-title {
        font-size: 1.1rem;
    }

    .bio-section h4 {
        font-size: 1.3rem;
    }

}

/* تحسين المظهر على الشاشات الكبيرة */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* تحسينات إضافية */
.team-carousel {
    scroll-padding: 0 20px;
    scroll-snap-type: x mandatory;
}

.team-member {
    scroll-snap-align: center;
}

.dev-team-carousel {
    scroll-padding: 0 20px;
}

/* إضافة تأثيرات للصور */
.image-container {
    position: relative;
}

.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(49, 178, 204, 0.1), rgba(49, 178, 204, 0.1));
    opacity: 0;
    transition: var(--transition);
}

.team-member:hover .image-container::after,
.dev-member:hover .image-container::after {
    opacity: 1;
}

.bio-content {
    line-height: 1.7;
    color: var(--text-dark);
    font-size: 1.05rem;
    background: linear-gradient(135deg, #e6f7ff 0%, #f0faff 100%);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(49, 178, 204, 0.15);
}

.bio-content .about-description {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.bio-content .responsibilities-title {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.bio-content .responsibilities-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bio-content .responsibilities-list li {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.bio-content .responsibilities-list li::before {
    content: '•';
    color: var(--primary-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* ============================================================
   MOBILE NAV DRAWER - body padding corrections
   (drawer styles live in styles.css which is also loaded here)
   ============================================================ */
@media (max-width: 880px) {
    body {
        padding-top: 80px;
    }

    .header-banner {
        height: 320px;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }

    .header-banner {
        height: 220px;
        margin-bottom: 30px;
    }

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

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

    .video-section {
        padding: 40px 0;
    }

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

/* ============================================================
   PROFESSIONAL POLISH TOUCHES
   ============================================================ */

/* Gallery cards - smoother hover curve */
.gallery-item {
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.35s ease, border-color 0.35s ease;
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 20px 40px rgba(49, 178, 204, 0.18);
}

/* Consistent card transition */
.card-inner,
.dev-card {
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Image container subtle inner glow */
.image-container {
    box-shadow: 0 4px 16px rgba(49, 178, 204, 0.10),
        inset 0 0 0 3px rgba(49, 178, 204, 0.06);
}

/* Modal - richer shadow */
.modal-content {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(49, 178, 204, 0.08);
}

/* Nav carousel buttons */
.nav-btn,
.dev-prev-btn,
.dev-next-btn {
    box-shadow: 0 4px 14px rgba(49, 178, 204, 0.22);
}

/* Refined subtitle colour */
.section-subtitle {
    color: #555;
    letter-spacing: 0.1px;
}

/* Section headings tighter tracking */
.section-header h2,
.gallery h2 {
    letter-spacing: -0.4px;
}