/* ============================================
   TABLE OF CONTENTS
   ============================================
   1. CSS Reset & Base Styles
   2. Background & Video
   3. Language Switcher
   4. Blur Toggle Button
   5. Golden Sparkles Animation
   6. vCard Content Container
   7. Header Section
   8. Profile Column & Social Links
   9. Main Content Layout
   10. Glass Panels
   11. Contact Information
   12. Biography Panel & Button
   13. Useful Links Panel & Button
   14. Skills & Expertise Panel
   15. SERABEC Panel & Button
   16. Footer Section
   17. Bottom Footer Section
   18. Image Footer Section
   19. Links Modal
   20. Biography Modal
   21. SERABEC Modal
   22. Animations
   23. Responsive Styles
   ============================================ */

/* ============================================
   1. CSS RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a1a, #0f0f2a, #141432);
    color: #f5e6d3;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
    padding-bottom: 0;  /* ADD THIS - removes extra bottom padding */
}

/* ============================================
   2. BACKGROUND & VIDEO
   ============================================ */

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Background Video Orientation Fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .background-video {
        object-fit: cover;
        object-position: center 30%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .background-video {
        object-fit: cover;
    }
}

/* ============================================
   3. LANGUAGE SWITCHER
   ============================================ */

.language-switcher {
    position: fixed;
    top: 25px;
    left: 25px;
    display: flex;
    gap: 12px;
    z-index: 1000;
    background: rgba(5, 5, 13, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease forwards;
}

.lang-btn {
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #f5e6d3;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.lang-btn:hover {
    background: rgba(184, 150, 58, 0.3);
    transform: translateY(-2px);
    border-color: #D4AF37;
    color: #fff;
}

.lang-btn.active {
    background: linear-gradient(135deg, #D4AF37, #B8963A);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    color: #0a0a1a;
}

/* ============================================
   4. BLUR TOGGLE BUTTON
   ============================================ */

.blur-toggle-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(5, 5, 13, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 2px solid rgba(212, 175, 55, 0.4);
    color: #D4AF37;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    outline: none;
    animation: fadeIn 0.5s ease forwards, pulse 3s infinite 1s;
    opacity: 1;
}

.blur-toggle-btn:hover {
    background: rgba(184, 150, 58, 0.3);
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: #D4AF37;
    color: #FFD700;
}

.blur-toggle-btn:active {
    transform: scale(0.95);
}

.blur-toggle-btn i {
    transition: transform 0.5s ease;
}

.blur-toggle-btn.active i {
    transform: rotate(180deg);
}

.blur-toggle-btn::after {
    content: 'Activer/Désactiver l\'effet de flou';
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(10, 10, 26, 0.95);
    color: #D4AF37;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.blur-toggle-btn:hover::after {
    opacity: 1;
}

/* ============================================
   5. GOLDEN SPARKLES ANIMATION
   ============================================ */

.golden-sparkle {
    position: fixed;
    background: radial-gradient(circle, #FFD700 0%, #D4AF37 50%, #B8963A 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    animation: twinkleSparkle 0.8s ease-out forwards;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

@keyframes twinkleSparkle {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
    60% {
        opacity: 0.7;
        transform: scale(0.8) rotate(360deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(540deg);
    }
}

/* ============================================
   6. VCARD CONTENT CONTAINER
   ============================================ */

.vcard-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

/* ============================================
   7. HEADER SECTION
   ============================================ */

.header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px;
    margin-bottom: 30px;
    background: rgba(5, 5, 13, 0.15);
    border-radius: 25px;
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: backdrop-filter 0.3s ease, background 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.1s;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #B8963A, #A67C2E, #B8963A, #D4AF37);
}

.header-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.name-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.name {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #D4AF37, #F5E6D3, #B8963A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.title {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: #D4AF37;
    letter-spacing: 1px;
}

.tagline {
    font-size: 1rem;
    color: #e0d6c8;
    font-style: italic;
    max-width: 600px;
    line-height: 1.6;
}

/* Save Contact Button */
.save-contact-btn {
    padding: 12px 28px;
    background: rgba(212, 175, 55, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    border-radius: 50px;
    color: #D4AF37;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.save-contact-btn:hover {
    transform: translateY(-3px);
    background: rgba(212, 175, 55, 0.22);
    border-color: #D4AF37;
    color: #FFD700;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.save-contact-btn:active {
    transform: translateY(1px);
}

.save-contact-btn i {
    font-size: 1rem;
    color: #D4AF37;
    transition: color 0.3s ease;
    text-shadow: inherit;
}

.save-contact-btn:hover i {
    color: #FFD700;
}

/* ============================================
   8. PROFILE COLUMN & SOCIAL LINKS
   ============================================ */

.profile-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 40px;
    gap: 15px;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: contain;
    background: #0a0a1a;
    border: 3px solid #D4AF37;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.profile-social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.profile-social-links .social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(10, 10, 26, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #D4AF37;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.4);
    backdrop-filter: blur(2px);
}

/* LinkedIn original color */
.profile-social-links .social-link .fa-linkedin-in {
    color: #0077B5; /* LinkedIn blue */
    transition: all 0.3s ease;
}

/* Instagram original gradient-inspired color */
.profile-social-links .social-link .fa-instagram {
    color: #E4405F; /* Instagram pink/red */
    transition: all 0.3s ease;
}

/* Hover effects to keep them vibrant but slightly enhanced */
.profile-social-links .social-link:hover .fa-linkedin-in {
    color: #00a0dc; /* Lighter LinkedIn blue on hover */
    text-shadow: 0 0 10px rgba(0, 119, 181, 0.5);
}

.profile-social-links .social-link:hover .fa-instagram {
    color: #f77737; /* Instagram orange on hover */
    text-shadow: 0 0 10px rgba(228, 64, 95, 0.5);
}

/* Keep the circle border subtle on hover */
.profile-social-links .social-link:hover {
    border-color: #D4AF37; /* Keep gold border */
    transform: translateY(-5px) scale(1.05);
}

/* ============================================
   9. MAIN CONTENT LAYOUT
   ============================================ */

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

/* ============================================
   10. GLASS PANELS
   ============================================ */

.glass-panel {
    flex: 1;
    min-width: 280px;
    background: rgba(5, 5, 13, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, background 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
    overflow-x: hidden;
    word-wrap: break-word;
}

.glass-panel:nth-child(1) {
    animation-delay: 0.3s;
}

.glass-panel:nth-child(2) {
    animation-delay: 0.5s;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(212, 175, 55, 0.4);
}

.panel-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #D4AF37;
    display: flex;
    align-items: center;
}

.panel-title i {
    margin-right: 12px;
    font-size: 1.6rem;
    color: #D4AF37;
}

/* ============================================
   11. CONTACT INFORMATION - BUTTON STYLE
   ============================================ */

.contact-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    width: 100%;
}

/* Contact Button Style */
.contact-button {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 14px 20px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-button:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15);
}

.contact-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-button i {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #D4AF37;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-button:hover i {
    background: rgba(212, 175, 55, 0.25);
    color: #FFD700;
    transform: scale(1.05);
}

.contact-button .contact-text {
    flex: 1;
    word-break: break-all;
    overflow-wrap: break-word;
    line-height: 1.5;
    color: #e0d6c8;
    display: block;
    font-size: 1rem;
}

/* Make the label BOLD and GOLD */
.contact-button .contact-text strong {
    color: #D4AF37;
    font-weight: 800;
    margin-right: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.contact-button:hover .contact-text {
    color: #f5e6d3;
}

.contact-button:hover .contact-text strong {
    color: #FFD700;
}

/* Special handling for long email */
.contact-button .email-text {
    word-break: break-all;
    font-size: 0.95rem;
}

/* Hide old contact styles */
.contact-link,
.contact-info a:not(.contact-button) {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-button {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .contact-button i {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .contact-button .contact-text {
        font-size: 0.9rem;
    }
    
    .contact-button .contact-text strong {
        font-size: 0.75rem;
    }
    
    .contact-button .email-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .contact-info {
        gap: 10px;
    }
    
    .contact-button {
        padding: 10px 14px;
        gap: 10px;
        border-radius: 12px;
    }
    
    .contact-button i {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .contact-button .contact-text {
        font-size: 0.8rem;
    }
    
    .contact-button .contact-text strong {
        font-size: 0.7rem;
        margin-right: 4px;
    }
    
    .contact-button .email-text {
        font-size: 0.7rem;
    }
}

/* Desktop large screens */
@media (min-width: 769px) and (max-width: 1200px) {
    .contact-button {
        padding: 12px 16px;
    }
    
    .contact-button i {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .contact-button .email-text {
        font-size: 0.85rem;
    }
}

/* ============================================
   12. BIOGRAPHY PANEL & BUTTON
   ============================================ */

.biography-panel {
    display: flex;
    flex-direction: column;
}

.biography-panel .biography-btn-container {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.biography-panel .biography-btn,
.biography-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(184, 150, 58, 0.1));
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    border-radius: 50px;
    color: #D4AF37;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    backdrop-filter: blur(4px);
}

.biography-panel .biography-btn:hover,
.biography-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(184, 150, 58, 0.2));
    border-color: #D4AF37;
    transform: translateY(-3px);
    gap: 18px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.biography-panel .biography-btn:active,
.biography-btn:active {
    transform: translateY(1px);
}

.biography-panel .biography-btn i:first-child,
.biography-btn i:first-child {
    font-size: 1.1rem;
}

.biography-panel .biography-btn i:last-child,
.biography-btn i:last-child {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.biography-panel .biography-btn:hover i:last-child,
.biography-btn:hover i:last-child {
    transform: translateX(6px);
}

/* ============================================
   13. USEFUL LINKS PANEL & BUTTON
   ============================================ */

.links-panel {
    display: flex;
    flex-direction: column;
}

.useful-links-container {
    margin-top: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.useful-links-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(184, 150, 58, 0.1));
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    border-radius: 50px;
    color: #D4AF37;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 220px;
    backdrop-filter: blur(4px);
}

.useful-links-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(184, 150, 58, 0.2));
    border-color: #D4AF37;
    transform: translateY(-3px);
    gap: 18px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.useful-links-btn:active {
    transform: translateY(1px);
}

/* ============================================
   14. SKILLS & EXPERTISE PANEL
   ============================================ */

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

/* Skill Category Container */
.skill-category {
    margin-bottom: 20px;
    width: 100%;
    display: block;
    clear: both;
}

.skill-category:last-child {
    margin-bottom: 0;
}

/* Category Title - CENTERED */
.skill-category-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 20px;
    letter-spacing: 1px;
    border-left: none;  /* REMOVED left border */
    border-bottom: 3px solid #D4AF37;  /* ADDED bottom border for elegance */
    padding-left: 0;  /* REMOVED left padding */
    padding-bottom: 8px;  /* ADDED bottom padding for spacing */
    display: block;
    width: 100%;
    clear: both;
    text-align: center;  /* ADDED center alignment */
}

/* Skill Items Container - CENTERED VERTICALLY */
.skill-items-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
}

/* Individual Skill Tag - CENTERED */
.skill-tag {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.95rem;
    color: #e0d6c8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: default;
    transition: all 0.2s ease;
    width: auto;
    min-width: 240px;
}

.skill-tag:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
}

.skill-tag:hover {
    background: transparent;
    transform: none;
    border: none;
    color: #D4AF37;
}

/* Skill Icons */
.item-icon {
    font-size: 0.9rem;
    color: #D4AF37;
    transition: all 0.3s ease;
    width: 20px;
    text-align: center;
}

.skill-tag:hover .item-icon {
    color: #FFD700;
    transform: scale(1.1);
}

/* Rotating Star Animation */
.skill-tag .item-icon.fa-star {
    animation: rotateStar 3s linear infinite;
    display: inline-block;
}

.skill-tag:hover .item-icon.fa-star {
    animation: rotateStarFast 0.5s linear infinite;
}

@keyframes rotateStar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotateStarFast {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Skill Icon Specific Animations */
.camera-animation {
    animation: cameraClick 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes cameraClick {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    10% { transform: scale(0.95); }
    20% { transform: scale(1.05); opacity: 1; color: #FFD700; }
    30% { transform: scale(1); }
    50% { transform: translateX(2px); }
    60% { transform: translateX(-2px); }
    70% { transform: translateX(1px); }
    80% { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

.spin-continuous {
    animation: bounceLeftRight 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes bounceLeftRight {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.globe-spin {
    animation: globeSmoothWave 2.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes globeSmoothWave {
    0% { transform: translateX(0px) rotate(0deg); }
    25% { transform: translateX(6px) rotate(8deg); }
    50% { transform: translateX(0px) rotate(0deg); }
    75% { transform: translateX(-6px) rotate(-8deg); }
    100% { transform: translateX(0px) rotate(0deg); }
}

.pulse-continuous {
    animation: softPulse 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes softPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; color: #FFD700; }
}

.bounce-continuous {
    animation: softBounce 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes softBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.plane-animation {
    animation: planeFly 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes planeFly {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    25% { transform: translateX(3px) translateY(-2px) rotate(5deg); }
    50% { transform: translateX(0) translateY(0) rotate(0deg); }
    75% { transform: translateX(-3px) translateY(2px) rotate(-5deg); }
    100% { transform: translateX(0) translateY(0) rotate(0deg); }
}

/* Skill Icon Hover Effects */
.skill-tag:hover .camera-animation {
    animation: cameraFlash 0.4s ease;
}

.skill-tag:hover .spin-continuous {
    animation: bounceLeftRightFast 0.3s ease-in-out;
}

.skill-tag:hover .globe-spin {
    animation: globeWaveFast 0.4s ease-in-out;
}

.skill-tag:hover .pulse-continuous {
    animation: quickPulse 0.3s ease;
}

.skill-tag:hover .bounce-continuous {
    animation: quickBounce 0.3s ease;
}

@keyframes cameraFlash {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.3); filter: brightness(1.5); text-shadow: 0 0 5px #FFD700; }
    100% { transform: scale(1); filter: brightness(1); }
}

@keyframes bounceLeftRightFast {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

@keyframes globeWaveFast {
    0% { transform: translateX(0px) rotate(0deg); }
    25% { transform: translateX(4px) rotate(6deg); }
    75% { transform: translateX(-4px) rotate(-6deg); }
    100% { transform: translateX(0px) rotate(0deg); }
}

@keyframes quickPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: #FFD700; }
    100% { transform: scale(1); }
}

@keyframes quickBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ============================================
   15. SERABEC PANEL & BUTTON
   ============================================ */

.serabec-panel {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.serabec-btn-container {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.serabec-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(184, 150, 58, 0.1));
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    border-radius: 50px;
    color: #D4AF37;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 80%;
    backdrop-filter: blur(4px);
}

.serabec-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(184, 150, 58, 0.2));
    border-color: #D4AF37;
    transform: translateY(-3px);
    gap: 18px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.serabec-btn:active {
    transform: translateY(1px);
}

.serabec-btn i:first-child {
    font-size: 1.1rem;
}

.serabec-btn i:last-child {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.serabec-btn:hover i:last-child {
    transform: translateX(6px);
}

/* ============================================
   16. FOOTER SECTION - UPDATED
   ============================================ */

.footer {
    width: 100%;
    margin-top: 0px;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(5, 5, 13, 0.15);
    border-radius: 25px;
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: backdrop-filter 0.3s ease, background 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.7s;
    box-sizing: border-box;
}

.footer-divider {
    color: rgba(212, 175, 55, 0.3);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.copyright {
    font-size: 0.85rem;
    color: #a09888;
}

/* VCard Badge - Plain text style (no button/badge appearance) */
.vcard-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #a09888;  /* Same gray as copyright */
    background: transparent;  /* Remove background */
    padding: 0;  /* Remove padding */
    border-radius: 0;  /* Remove rounded corners */
    transition: color 0.3s ease;
}

.vcard-badge i {
    font-size: 0.9rem;
    color: #D4AF37;  /* Keep icon gold */
    opacity: 0.8;
}

.vcard-badge:hover {
    background: transparent;  /* No background on hover */
    color: #D4AF37;  /* Text turns gold on hover */
}

.vcard-badge:hover i {
    opacity: 1;
}

/* ============================================
   17. BOTTOM FOOTER SECTION
   ============================================ */

.bottom-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 25px;
    background: rgba(5, 5, 13, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.bottom-footer:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(5, 5, 13, 0.25);
}

.bottom-footer .created-by-section {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #a09888;
}

.bottom-footer .created-by-section span {
    background: linear-gradient(135deg, #D4AF37, #B8963A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bottom-footer .bizkonec-image {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.bottom-footer .bizkonec-image:hover {
    transform: scale(1.05);
}

.bottom-footer .digital-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bottom-footer .digital-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(184, 150, 58, 0.08));
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50px;
    color: #D4AF37;
    font-size: 0.7rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.bottom-footer .digital-contact-link:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(184, 150, 58, 0.2));
    border-color: #D4AF37;
    transform: translateY(-2px);
    gap: 8px;
    color: #FFD700;
}

.bottom-footer .digital-contact-link i:first-child {
    font-size: 0.7rem;
}

.bottom-footer .digital-contact-link i:last-child {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.bottom-footer .digital-contact-link:hover i:last-child {
    transform: translateX(4px);
}

/* ============================================
   18. IMAGE FOOTER SECTION
   ============================================ */

.image-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    margin: 0;
    background: transparent;
}

.maestro-image {
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.maestro-image:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* ============================================
   19. LINKS MODAL
   ============================================ */

.links-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.links-modal.active {
    opacity: 1;
    visibility: visible;
}

.links-modal-content {
    background: rgba(5, 5, 13, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    width: 90%;
    max-width: 550px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: modalFadeIn 0.4s ease;
}

.links-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.links-modal-header h3 {
    font-size: 1.8rem;
    color: #D4AF37;
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-modal {
    background: rgba(212, 175, 55, 0.15);
    border: none;
    color: #D4AF37;
    font-size: 2rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: rotate(90deg);
}

.links-modal-body {
    padding: 20px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-link {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: rgba(10, 10, 26, 0.5);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.modal-link:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
}

.modal-link-icon {
    width: 55px;
    height: 55px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.modal-link-icon i {
    font-size: 1.8rem;
    color: #D4AF37;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1;
    text-align: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.modal-link:hover .modal-link-icon {
    background: rgba(212, 175, 55, 0.3);
}

.modal-link:hover .modal-link-icon i {
    color: #FFD700;
    transform: scale(1.1);
}

.modal-link-info {
    flex: 1;
}

.modal-link-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f5e6d3;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.modal-link:hover .modal-link-info h4 {
    color: #D4AF37;
}

.modal-link-info p {
    font-size: 0.85rem;
    color: #a09888;
}

.modal-link i:last-child {
    color: #D4AF37;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.modal-link:hover i:last-child {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   20. BIOGRAPHY MODAL
   ============================================ */

.biography-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.biography-modal.active {
    opacity: 1;
    visibility: visible;
}

.biography-modal-content {
    background: rgba(5, 5, 13, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    width: 90%;
    max-width: 600px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: modalFadeIn 0.4s ease;
}

.biography-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.biography-modal-header h3 {
    font-size: 1.8rem;
    color: #D4AF37;
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-biography-modal {
    background: rgba(212, 175, 55, 0.15);
    border: none;
    color: #D4AF37;
    font-size: 2rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-biography-modal:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: rotate(90deg);
}

.biography-modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Biography Modal Scrollbar */
.biography-modal-body::-webkit-scrollbar {
    width: 6px;
}

.biography-modal-body::-webkit-scrollbar-track {
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
}

.biography-modal-body::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 10px;
}

.biography-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.8);
}

/* Biography Modal Image */
.bio-image-container {
    text-align: center;
    margin-bottom: 25px;
}

.bio-profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: contain;
    background: #0a0a1a;
    border: 3px solid #D4AF37;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Biography Name and Title */
.bio-name-title {
    text-align: center;
    margin-bottom: 25px;
    margin-top: 10px;
}

.bio-name {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #D4AF37, #F5E6D3, #B8963A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.bio-title {
    font-size: 1rem;
    font-weight: 600;
    color: #D4AF37;
    letter-spacing: 1px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    display: inline-block;
    padding: 6px 20px;
}

/* Biography Text */
.bio-text {
    color: #e0d6c8;
    line-height: 1.8;
    font-size: 1rem;
    counter-reset: section;
}

.bio-text p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.bio-text p:last-child {
    margin-bottom: 0;
}

/* Biography Intro Cards */
.bio-text > div:first-of-type,
.bio-text > div:nth-of-type(2),
.bio-text > div:nth-of-type(3),
.bio-text > div:nth-of-type(4),
.bio-text > div:nth-of-type(5),
.bio-text > div:nth-of-type(6),
.bio-text > div:nth-of-type(7) {
    background: rgba(10, 10, 26, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    padding: 20px 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.bio-text > div:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.bio-text > div:first-of-type::before {
    content: "1";
    position: absolute;
    top: -12px;
    left: 20px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #D4AF37, #B8963A);
    color: #0a0a1a;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bio-text > div:nth-of-type(2)::before {
    content: "2";
    position: absolute;
    top: -12px;
    left: 20px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #D4AF37, #B8963A);
    color: #0a0a1a;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Biography Subtitles */
.bio-subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    color: #D4AF37;
    margin-top: 35px;
    margin-bottom: 20px;
    padding-top: 25px;
    letter-spacing: 2px;
    border-left: 3px solid #D4AF37;
    padding-left: 12px;
    scroll-margin-top: 20px;
    counter-increment: section;
    position: relative;
    background: rgba(10, 10, 26, 0.4);
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding-bottom: 15px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
}

.bio-subtitle::before {
    content: counter(section);
    position: absolute;
    top: -15px;
    left: -15px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #D4AF37, #B8963A);
    color: #0a0a1a;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.bio-subtitle + div,
.bio-subtitle + ul,
.bio-subtitle + .bio-list {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: -1px;
    padding-top: 15px;
    background: rgba(10, 10, 26, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-top: none;
    border-radius: 0 0 20px 20px;
    padding: 20px 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    position: relative;
}

.bio-subtitle:hover,
.bio-subtitle:hover + div,
.bio-subtitle:hover + ul,
.bio-subtitle:hover + .bio-list {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: rgba(10, 10, 26, 0.45);
}

/* Biography List */
.bio-list {
    margin: 10px 0 10px 25px;
    padding-left: 10px;
}

.bio-list li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #e0d6c8;
}

.bio-list li::marker {
    color: #D4AF37;
}

/* Biography Images */
.bio-images-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 25px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    padding: 15px;
    background: rgba(10, 10, 26, 0.2);
    border-radius: 15px;
}

.bio-image-item {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.bio-image-item:hover {
    transform: scale(1.05);
    border-color: #D4AF37;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* ============================================
   21. SERABEC MODAL
   ============================================ */

.serabec-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.serabec-modal.active {
    opacity: 1;
    visibility: visible;
}

.serabec-modal-content {
    background: rgba(5, 5, 13, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    width: 90%;
    max-width: 550px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: modalFadeIn 0.4s ease;
}

.serabec-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.serabec-modal-header h3 {
    font-size: 1.5rem;
    color: #D4AF37;
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-serabec-modal {
    background: rgba(212, 175, 55, 0.15);
    border: none;
    color: #D4AF37;
    font-size: 2rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-serabec-modal:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: rotate(90deg);
}

.serabec-modal-body {
    padding: 30px;
}

.serabec-modal-body p {
    color: #e0d6c8;
    line-height: 1.7;
    margin-bottom: 15px;
}

.serabec-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 15px;
    border-left: 3px solid #D4AF37;
    padding-left: 12px;
}

.serabec-list {
    margin: 15px 0 15px 25px;
    padding-left: 10px;
}

.serabec-list li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #e0d6c8;
}

.serabec-list li::marker {
    color: #D4AF37;
}

/* SERABEC Images */
.serabec-images-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.serabec-image {
    max-width: 150px;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(10, 10, 26, 0.3);
}

.serabec-image:hover {
    transform: scale(1.05);
    border-color: #D4AF37;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* SERABEC Link */
.serabec-link-container {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    margin-bottom: 10px;
}

.serabec-website-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(184, 150, 58, 0.1));
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    border-radius: 50px;
    color: #D4AF37;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(4px);
}

.serabec-website-link:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(184, 150, 58, 0.2));
    border-color: #D4AF37;
    transform: translateY(-3px);
    gap: 18px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    color: #FFD700;
}

.serabec-website-link:active {
    transform: translateY(1px);
}

.serabec-website-link i:first-child {
    font-size: 1.1rem;
}

.serabec-website-link i:last-child {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.serabec-website-link:hover i:last-child {
    transform: translateX(6px);
}

/* ============================================
   22. ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    }
    100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ============================================
   23. RESPONSIVE STYLES
   ============================================ */

/* Tablet and Medium Screens */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .language-switcher {
        top: 20px;
        left: 20px;
        padding: 6px 12px;
        gap: 8px;
    }
    
    .lang-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    
    .blur-toggle-btn {
        top: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    .header {
        padding: 30px 25px;
        justify-content: center;
        text-align: center;
    }
    
    .profile-column {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .profile-image {
        margin-right: 0;
        margin-bottom: 0px;
        width: 160px;
        height: 160px;
    }
    
    .profile-social-links {
        gap: 5px;
    }
    
    .profile-social-links .social-link {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .title {
        font-size: 1.3rem;
    }
    
    .name-section {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .save-contact-btn {
        white-space: normal;
        padding: 10px 20px;
        width: 100%;
        justify-content: center;
    }
    
    .glass-panel {
        min-width: 100%;
    }
    
    .contact-link {
        font-size: 0.85rem;
        word-break: break-all;
        max-width: calc(100% - 50px);
    }
    
    .contact-info i {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        margin-right: 10px;
    }
    
    .useful-links-btn {
        min-width: 180px;
        padding: 10px 20px;
    }
    
    .links-modal-content {
        width: 95%;
    }
    
    .links-modal-header h3 {
        font-size: 1.4rem;
    }
    
    .modal-link {
        padding: 14px 18px;
    }
    
    .modal-link-icon {
        width: 45px;
        height: 45px;
    }
    
    .biography-modal-header h3 {
        font-size: 1.4rem;
    }
    
    .biography-modal-body {
        padding: 20px;
    }
    
    .bio-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .bio-name {
        font-size: 1.4rem;
    }
    
    .bio-title {
        font-size: 0.8rem;
    }
    
    .bio-subtitle,
    .bio-subtitle + *,
    .bio-subtitle + div,
    .bio-subtitle + ul,
    .bio-text > div {
        padding: 15px 18px;
    }
    
    .bio-subtitle::before {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
        top: -12px;
        left: -10px;
    }
    
    .bio-text > div::before {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
        top: -10px;
        left: 15px;
    }
    
    .serabec-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .serabec-modal-body {
        padding: 20px;
    }
    
    .serabec-subtitle {
        font-size: 1rem;
    }
    
    .serabec-image {
        width: 100px;
        height: 100px;
    }
    
    .serabec-images-container {
        gap: 15px;
    }
    
    .footer {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 20px 25px;
        justify-content: center;
    }
    
    .footer-divider {
        display: none;
    }
    
    .vcard-badge {
        font-size: 0.75rem;
    }
    
    .copyright {
        font-size: 0.75rem;
    }
    
    .bottom-footer {
        flex-direction: column;
        text-align: center;
        padding: 10px 20px;
        gap: 10px;
    }
    
    .bottom-footer .created-by-section {
        justify-content: center;
    }
    
    .bottom-footer .digital-contact-links {
        justify-content: center;
        width: 100%;
    }
    
    .bottom-footer .digital-contact-link {
        justify-content: center;
        padding: 5px 12px;
        font-size: 0.7rem;
    }
    
    .image-footer {
        padding: 15px 0;
    }
    
    .maestro-image {
        border-radius: 15px;
    }
}

/* Mobile Small Screens */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .language-switcher {
        top: 15px;
        left: 15px;
        padding: 5px 10px;
        gap: 6px;
    }
    
    .lang-btn {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
    
    .blur-toggle-btn {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .blur-toggle-btn::after {
        font-size: 0.7rem;
        top: 55px;
        padding: 6px 10px;
        white-space: nowrap;
    }
    
    .header {
        padding: 25px 20px;
    }
    
    .profile-image {
        width: 130px;
        height: 130px;
    }
    
    .profile-social-links {
        gap: 8px;
    }
    
    .profile-social-links .social-link {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .title {
        font-size: 1rem;
    }
    
    .tagline {
        font-size: 0.85rem;
    }
    
    .glass-panel {
        padding: 20px;
    }
    
    .panel-title {
        font-size: 1.3rem;
    }
    
    .contact-link {
        font-size: 0.75rem;
        word-break: break-all;
        max-width: calc(100% - 45px);
    }
    
    .contact-info i {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        margin-right: 8px;
    }
    
    .contact-info li {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .save-contact-btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .useful-links-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
        max-width: 250px;
    }
    
    .links-modal-header {
        padding: 18px 22px;
    }
    
    .links-modal-body {
        padding: 15px 22px 22px;
    }
    
    .modal-link-info h4 {
        font-size: 0.95rem;
    }
    
    .modal-link-info p {
        font-size: 0.75rem;
    }
    
    .bio-image-item {
        width: 90px;
        height: 90px;
    }
    
    .bio-subtitle {
        font-size: 1.1rem;
    }
    
    .bio-subtitle,
    .bio-subtitle + *,
    .bio-subtitle + div,
    .bio-text > div {
        padding: 12px 15px;
        margin-bottom: 15px;
    }
    
    .serabec-image {
        width: 80px;
        height: 80px;
    }
    
    .serabec-images-container {
        gap: 10px;
    }
    
    .footer {
        padding: 20px 25px;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .bottom-footer {
        padding: 8px 15px;
        gap: 8px;
    }
    
    .bottom-footer .created-by-section {
        font-size: 0.65rem;
        gap: 6px;
    }
    
    .bottom-footer .bizkonec-image {
        width: 24px;
        height: 24px;
    }
    
    .bottom-footer .digital-contact-link {
        font-size: 0.6rem;
        padding: 4px 10px;
    }
    
    .image-footer {
        padding: 10px 0;
    }
    
    .maestro-image {
        border-radius: 12px;
    }
}

/* Desktop Large Screens - Contact Info Fix */
@media (min-width: 769px) and (max-width: 1200px) {
    .contact-link {
        font-size: 0.9rem;
        word-break: break-all;
    }
    
    .contact-info i {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-right: 12px;
    }
    
    .contact-info li {
        font-size: 0.95rem;
    }
}

/* Android Specific Fixes */
@media (max-width: 768px) and (any-pointer: coarse) {
    .header,
    .header-text,
    .name-section,
    .title,
    .tagline {
        text-align: center !important;
    }
    
    .tagline {
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 15px;
    }
    
    .name {
        text-align: center;
        width: 100%;
    }
    
    .save-contact-btn {
        margin-left: auto;
        margin-right: auto;
    }
    
    .profile-social-links .social-link {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
    
    .social-link {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
}

/* Prevent unwanted click events */
.links-modal,
.biography-modal,
.serabec-modal {
    pointer-events: auto;
}

.links-modal-content,
.biography-modal-content,
.serabec-modal-content {
    pointer-events: auto;
}

.useful-links-btn,
.biography-btn,
.serabec-btn,
.close-modal,
.close-biography-modal,
.close-serabec-modal {
    position: relative;
    z-index: 10;
}

/* ============================================
   APP-LIKE STYLES - SAFE VERSION
   ============================================ */

/* Remove tap highlight on mobile (safe) */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Allow text selection (safe) */
input, textarea, [contenteditable] {
    -webkit-user-select: text;
    user-select: text;
}

/* Smooth scrolling (safe) */
html {
    scroll-behavior: smooth;
}

/* Safe area insets for notches - preserve original padding */
body {
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    
    /* Smooth font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove button default styles (safe) */
button {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    user-select: none;
}

/* Hidden scrollbar but functional (safe) */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* iOS status bar spacing (safe) */
@supports (padding-top: env(safe-area-inset-top)) {
    .language-switcher {
        top: max(2px, env(safe-area-inset-top));
    }
    
    .blur-toggle-btn {
        top: max(25px, env(safe-area-inset-top));
    }
}

/* Bottom safe area spacing (safe) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-footer {
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
}

/* App-like image behavior (safe) */
img {
    -webkit-user-drag: none;
    user-select: none;
}

/* App-like link behavior (safe) */
a, button, [role="button"] {
    -webkit-touch-callout: none;
    cursor: pointer;
}

/* Smooth scrolling for biography modal ONLY (safe) */
.biography-modal-body {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}


/* ============================================
   LANGUAGE SWITCHER - UNIVERSAL FIX FOR ALL SIZES
   ============================================ */

/* Keep language switcher fixed but handle overlap gracefully */
.language-switcher {
    position: fixed;
    top: 25px;
    left: 25px;
    display: flex;
    gap: 12px;
    z-index: 1000;
    background: rgba(5, 5, 13, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease forwards;
}

/* Universal fix: Add dynamic top padding to header */
.header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px;
    padding-top: clamp(50px, 8vw, 90px); /* Dynamic padding! */
    margin-bottom: 30px;
    background: rgba(5, 5, 13, 0.15);
    border-radius: 25px;
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: backdrop-filter 0.3s ease, background 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.1s;
}

/* Dynamic language switcher positioning */
@media (max-width: 768px) {
    .language-switcher {
        top: clamp(10px, 2vw, 20px);
        left: clamp(10px, 2vw, 20px);
        padding: clamp(4px, 1vw, 8px) clamp(8px, 2vw, 15px);
        gap: clamp(4px, 1vw, 10px);
    }
    
    .lang-btn {
        padding: clamp(4px, 0.8vw, 8px) clamp(8px, 1.5vw, 16px);
        font-size: clamp(0.65rem, 1.5vw, 0.85rem);
    }
    
    .header {
        padding: clamp(20px, 3vw, 30px);
        padding-top: clamp(60px, 10vw, 100px); /* Dynamic top padding */
        justify-content: center;
        text-align: center;
    }
}

/* Profile image - dynamic sizing */
.profile-image {
    width: clamp(120px, 20vw, 220px); /* Fluid sizing! */
    height: clamp(120px, 20vw, 220px); /* Fluid sizing! */
    border-radius: 50%;
    object-fit: contain;
    background: #0a0a1a;
    border: 3px solid #D4AF37;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

/* Profile column spacing */
.profile-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: clamp(20px, 4vw, 40px);
    gap: clamp(10px, 2vw, 15px);
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
    .profile-column {
        margin-right: 0;
        margin-bottom: clamp(15px, 3vw, 30px);
    }
    
    .profile-image {
        width: clamp(100px, 30vw, 180px);
        height: clamp(100px, 30vw, 180px);
    }
}

/* Remove ALL old language switcher media queries and just keep this! */

/* ============================================
   24. COMPLETE ANDROID MODAL FIX - Broadcast & Media + SERABEC
   ============================================ */

/* Fix for all modals on Android devices */
@media (max-width: 768px) {
    .links-modal, 
    .biography-modal, 
    .serabec-modal {
        align-items: flex-start !important;
        overflow-y: scroll !important;
        padding: 20px 10px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .links-modal-content, 
    .biography-modal-content, 
    .serabec-modal-content {
        margin: 20px auto !important;
        max-height: 85vh !important;
        min-height: 50vh !important;
        overflow-y: auto !important;
        width: 95% !important;
        border-radius: 25px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .links-modal-body, 
    .biography-modal-body, 
    .serabec-modal-body {
        padding: 20px !important;
        padding-bottom: 40px !important;
        overflow-y: auto !important;
        max-height: calc(85vh - 80px) !important;
    }
    
    /* Make close buttons easier to tap */
    .close-modal,
    .close-biography-modal,
    .close-serabec-modal {
        width: 50px !important;
        height: 50px !important;
        font-size: 2rem !important;
        background: rgba(212, 175, 55, 0.25) !important;
        z-index: 100 !important;
    }
    
    /* Ensure content is scrollable to bottom */
    .serabec-modal-body .serabec-link-container:last-child,
    .links-modal-body .modal-link:last-child,
    .biography-modal-body .bio-text > div:last-child {
        margin-bottom: 30px !important;
    }
    
    /* Fix for SERABEC images container */
    .serabec-images-container {
        flex-wrap: wrap !important;
        justify-content: center !important;
        margin-bottom: 20px !important;
    }
    
    /* Ensure modal header stays visible */
    .links-modal-header,
    .biography-modal-header,
    .serabec-modal-header {
        position: sticky !important;
        top: 0 !important;
        background: rgba(5, 5, 13, 0.95) !important;
        z-index: 20 !important;
        border-radius: 25px 25px 0 0 !important;
    }
}

/* Extra small devices (under 400px) */
@media (max-width: 480px) {
    .links-modal-content, 
    .biography-modal-content, 
    .serabec-modal-content {
        max-height: 90vh !important;
        width: 98% !important;
    }
    
    .links-modal-body, 
    .biography-modal-body, 
    .serabec-modal-body {
        padding: 15px !important;
        padding-bottom: 50px !important;
        max-height: calc(90vh - 70px) !important;
    }
    
    .serabec-image {
        width: 100px !important;
        height: auto !important;
    }
}

/* Landscape mode fix */
@media (max-width: 900px) and (orientation: landscape) {
    .links-modal-content, 
    .biography-modal-content, 
    .serabec-modal-content {
        max-height: 90vh !important;
        max-width: 85% !important;
    }
    
    .links-modal-body, 
    .biography-modal-body, 
    .serabec-modal-body {
        max-height: calc(90vh - 80px) !important;
    }
}


/* SERABEC Modal Email Button */
.serabec-email-container {
    margin-top: 20px;
    text-align: center;
}

.serabec-email-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.03));
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    border-radius: 40px;
    padding: 14px 20px;
    color: #D4AF37;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.serabec-email-btn i {
    font-size: 1.5rem;
    color: #D4AF37;
}

.serabec-email-btn span:first-of-type {
    font-size: 1rem;
    font-weight: 500;
}

.serabec-email-btn .email-note {
    font-size: 0.8rem;
    opacity: 0.75;
    font-style: italic;
}

.serabec-email-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.06));
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15);
    color: #FFD700;
}

.serabec-email-btn:hover i {
    color: #FFD700;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .serabec-email-btn {
        padding: 12px 16px;
    }
    
    .serabec-email-btn i {
        font-size: 1.3rem;
    }
    
    .serabec-email-btn span:first-of-type {
        font-size: 0.9rem;
    }
    
    .serabec-email-btn .email-note {
        font-size: 0.7rem;
    }
}

/* Shared Clickable Skill Button Styles */
.skill-tag.pilot-license-link,
.skill-tag.speaker-link,
.skill-tag.workshop-link,
.skill-tag.mapaq-link {
    cursor: pointer;
    text-decoration: none;
    color: #D4AF37;
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(184, 150, 58, 0.05));
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    border-radius: 50px;
    padding: 10px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 240px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.skill-tag.pilot-license-link:hover,
.skill-tag.speaker-link:hover,
.skill-tag.workshop-link:hover,
.skill-tag.mapaq-link:hover {
    color: #FFD700;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(184, 150, 58, 0.12));
    border-color: #D4AF37;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

.skill-tag.pilot-license-link:hover .clickable-skill-text,
.skill-tag.speaker-link:hover .clickable-skill-text,
.skill-tag.workshop-link:hover .clickable-skill-text,
.skill-tag.mapaq-link:hover .clickable-skill-text {
    color: #FFD700;
}

.skill-tag.pilot-license-link:hover .item-icon,
.skill-tag.speaker-link:hover .item-icon,
.skill-tag.workshop-link:hover .item-icon,
.skill-tag.mapaq-link:hover .item-icon {
    color: #FFD700;
}

/* External link indicator */
.skill-tag.pilot-license-link::after,
.skill-tag.speaker-link::after,
.skill-tag.workshop-link::after,
.skill-tag.mapaq-link::after {
    content: '\f35d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    margin-left: 4px;
    opacity: 0.6;
    transition: all 0.3s ease;
    color: #D4AF37;
}

.skill-tag.pilot-license-link:hover::after,
.skill-tag.speaker-link:hover::after,
.skill-tag.workshop-link:hover::after,
.skill-tag.mapaq-link:hover::after {
    opacity: 1;
    transform: translateX(3px);
}

/* Icon colors */
.skill-tag.pilot-license-link .item-icon,
.skill-tag.speaker-link .item-icon,
.skill-tag.workshop-link .item-icon,
.skill-tag.mapaq-link .item-icon {
    color: #D4AF37;
}

/* Speaker hover - pulse animation */
.skill-tag.speaker-link:hover .pulse-continuous {
    animation: quickPulse 0.3s ease;
    color: #FFD700;
}

/* Workshop hover - bounce animation */
.skill-tag.workshop-link:hover .bounce-continuous {
    animation: quickBounce 0.3s ease;
    color: #FFD700;
}

/* MAPAQ hover - pulse animation */
.skill-tag.mapaq-link:hover .pulse-continuous {
    animation: quickPulse 0.3s ease;
    color: #FFD700;
}

@keyframes planeFlyHover {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    30% { transform: translateX(5px) translateY(-4px) rotate(10deg); }
    60% { transform: translateX(-3px) translateY(2px) rotate(-6deg); }
    100% { transform: translateX(0) translateY(0) rotate(0deg); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .skill-tag.pilot-license-link,
    .skill-tag.speaker-link,
    .skill-tag.workshop-link,
    .skill-tag.mapaq-link {
        padding: 8px 18px;
        min-width: 200px;
        font-size: 0.9rem;
        gap: 8px;
    }
    
    .skill-tag.pilot-license-link::after,
    .skill-tag.speaker-link::after,
    .skill-tag.workshop-link::after,
    .skill-tag.mapaq-link::after {
        font-size: 0.65rem;
        margin-left: 3px;
    }
}

@media (max-width: 480px) {
    .skill-tag.pilot-license-link,
    .skill-tag.speaker-link,
    .skill-tag.workshop-link,
    .skill-tag.mapaq-link {
        padding: 8px 14px;
        min-width: 180px;
        font-size: 0.82rem;
        gap: 6px;
        border-radius: 40px;
    }
    
    .skill-tag.pilot-license-link::after,
    .skill-tag.speaker-link::after,
    .skill-tag.workshop-link::after,
    .skill-tag.mapaq-link::after {
        font-size: 0.6rem;
        margin-left: 2px;
    }
    
    .skill-tag.pilot-license-link .item-icon,
    .skill-tag.speaker-link .item-icon,
    .skill-tag.workshop-link .item-icon,
    .skill-tag.mapaq-link .item-icon {
        font-size: 0.8rem;
        width: 16px;
    }
}

/* MAPAQ Certificate Modal */
.cert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cert-modal.active {
    opacity: 1;
    visibility: visible;
}

.cert-modal-content {
    background: rgba(5, 5, 13, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    width: 90%;
    max-width: 650px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: modalFadeIn 0.4s ease;
}

.cert-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.cert-modal-header h3 {
    font-size: 1.4rem;
    color: #D4AF37;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-cert-modal {
    background: rgba(212, 175, 55, 0.15);
    border: none;
    color: #D4AF37;
    font-size: 1.3rem;
    cursor: pointer;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.close-cert-modal:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: rotate(90deg);
}

.cert-modal-body {
    padding: 20px 25px 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cert-image {
    max-width: 100%;
    max-height: 65vh;
    height: auto;
    border-radius: 12px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

/* Android modal fix for cert modal */
@media (max-width: 768px) {
    .cert-modal {
        align-items: flex-start;
        overflow-y: scroll;
        padding: 20px 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .cert-modal-content {
        margin: 20px auto;
        max-height: 85vh;
        overflow-y: auto;
        width: 95%;
        border-radius: 25px;
    }
    
    .cert-modal-header {
        position: sticky;
        top: 0;
        background: rgba(5, 5, 13, 0.95);
        z-index: 20;
        border-radius: 25px 25px 0 0;
    }
    
    .close-cert-modal {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        background: rgba(212, 175, 55, 0.25);
    }
    
    .cert-modal-header h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .cert-modal-content {
        max-height: 90vh;
        width: 98%;
    }
    
    .cert-modal-body {
        padding: 15px;
    }
    
    .close-cert-modal {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }
    
    .cert-modal-header {
        padding: 15px 18px;
    }
    
    .cert-modal-header h3 {
        font-size: 1.1rem;
        gap: 8px;
    }
}

/* Image container with zoom */
.cert-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.cert-image {
    max-width: 100%;
    max-height: 65vh;
    height: auto;
    border-radius: 12px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

/* Zoom controls */
.cert-zoom-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.cert-zoom-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 50%;
    background: rgba(5, 5, 13, 0.6);
    backdrop-filter: blur(4px);
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    color: #D4AF37;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
    outline: none;
}

.cert-zoom-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #D4AF37;
    color: #FFD700;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.cert-zoom-btn:active {
    transform: scale(0.95);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .cert-zoom-btn {
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
        font-size: 0.7rem;
    }
    
    .cert-zoom-controls {
        bottom: 10px;
        right: 10px;
        gap: 4px;
    }
}

/* QR Code Panel */
.qr-panel {
    text-align: center;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.qr-code-wrapper {
    background: rgba(10, 10, 26, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 18px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.qr-code-wrapper:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.15);
    transform: translateY(-3px);
    background: rgba(10, 10, 26, 0.6);
}

/* Pure white QR code area for reliable iPhone scanning */
#qrcode {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 180px;
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.08);
}

#qrcode img,
#qrcode canvas {
    display: block !important;
    margin: 0 auto !important;
    border-radius: 6px;
}

/* Hide any duplicate images/canvases */
#qrcode > *:not(:first-child) {
    display: none !important;
}

.qr-caption {
    font-size: 0.85rem;
    color: rgba(212, 175, 55, 0.7);
    font-style: italic;
    margin: 0;
    letter-spacing: 0.3px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .qr-code-wrapper {
        padding: 14px;
    }
    
    #qrcode {
        min-width: 150px;
        min-height: 150px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .qr-code-wrapper {
        padding: 10px;
    }
    
    #qrcode {
        min-width: 130px;
        min-height: 130px;
        padding: 6px;
    }
    
    .qr-caption {
        font-size: 0.75rem;
    }
}

/* Ensure only one QR code displays */
#qrcode {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 180px;
    overflow: hidden; /* Hide any overflow/duplicates */
}

/* Hide any duplicate images/canvases */
#qrcode > *:not(:first-child) {
    display: none !important;
}

#qrcode img,
#qrcode canvas {
    display: block !important;
    margin: 0 auto !important;
    border-radius: 8px;
}