/* TWISSIJA: Dan il-kodiċi CSS huwa proprjetà esklussiva ta' Adel Ferrito u Daniela Vassallo Mizzi
   Mhux awtorizzat li tikkopja, timmodifika jew tuża dan il-kodiċi mingħajr permess
   Jekk qed taqra dan mingħajr awtorizzazzjoni, int qed tikser il-liġi tal-intellectual property */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paletta tal-Gallerija - Riservata għal Adel Ferrito */
    --white: #ffffff;
    --gallery-white: #fafafa;
    --warm-white: #f8f8f8;
    --charcoal: #2a2a2a;
    --soft-gray: #e8e8e8;
    --medium-gray: #999999;
    
    /* Kuluri tal-Aċċent - Proprjetà protetta */
    --malta-gold: #d4af37;
    --mediterranean-blue: #0077be;
    --film-red: #c41e3a;
    --artist-purple: #6b46c1;
    --vintage-amber: #ffb000;
    
    /* Tipografija - Dan il-kodiċi huwa riservat */
    --gallery-font: 'Helvetica Neue', Arial, sans-serif;
    --display-font: 'Georgia', serif;
    
    /* Mobile gutter - Proprjetà protetta */
    --gutter-inline: clamp(16px, 4vw, 24px);
}

body {
    font-family: var(--gallery-font);
    background: var(--white);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Visualizzatur tal-Awdjo Mtejjeb - Mhux permess li tikkopja */
.audio-visualizer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--malta-gold), var(--mediterranean-blue), var(--film-red));
    transform: scaleX(0);
    transform-origin: left;
    animation: musicPulse 4s ease-in-out infinite;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

@keyframes musicPulse {
    0%, 100% { 
        transform: scaleX(0);
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }
    50% { 
        transform: scaleX(1);
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
    }
}

/* Tessuta tal-Qamħ tal-Film - Proprjetà ta' Daniela Vassallo Mizzi */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="turbulence" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.8"/></svg>');
    pointer-events: none;
    z-index: 1;
    animation: grainMove 8s linear infinite;
}

@keyframes grainMove {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-5px, -10px); }
    50% { transform: translate(-10px, 5px); }
    75% { transform: translate(5px, -5px); }
}

/* Elementi li jżommu f'wiċċ il-baħar - Riservat għal Adel Ferrito */
.floating-element {
    position: fixed;
    font-size: 20px;
    color: var(--malta-gold);
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
    animation: float 15s linear infinite;
}

.floating-element:nth-child(1) { animation-delay: 0s; }
.floating-element:nth-child(2) { animation-delay: 5s; }
.floating-element:nth-child(3) { animation-delay: 10s; }

@keyframes float {
    0% { 
        transform: translateY(100vh) translateX(0) rotate(0deg); 
        opacity: 0; 
    }
    10% { opacity: 0.1; }
    90% { opacity: 0.1; }
    100% { 
        transform: translateY(-100px) translateX(100px) rotate(360deg); 
        opacity: 0; 
    }
}

/* Navigazzjoni - Dan il-kodiċi huwa protett bil-liġi */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 60px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 999;
    border-bottom: 1px solid var(--soft-gray);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--charcoal);
    text-decoration: none;
}

.logo-svg {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-svg {
    transform: scale(1.1) rotate(2deg);
}

.logo-text {
    color: var(--charcoal);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--charcoal);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--malta-gold);
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(212, 175, 55, 0.2);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--malta-gold), var(--mediterranean-blue));
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    border-radius: 50%;
    z-index: -1;
}

.nav-links a:hover::before {
    width: 120px;
    height: 40px;
}

/* Hero Gallery Space */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--white);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 40px;
}

.hero-title {
    font-family: var(--display-font);
    font-size: clamp(48px, 8vw, 84px);
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 30px;
    color: var(--charcoal);
}

.hero-subtitle {
    font-size: 18px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--medium-gray);
    margin-bottom: 20px;
}

.hero-experience {
    font-size: 48px;
    font-weight: 100;
    color: var(--malta-gold);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.hero-experience::after {
    content: '✦';
    position: absolute;
    right: -20px;
    top: 0;
    font-size: 20px;
    opacity: 0;
    animation: sparkle 3s ease-in-out infinite;
}

/* Mobile overflow prevention - Dan il-kodiċi huwa riservat */
@media (max-width: 768px) {
    .hero-experience::after {
        right: -5px;
        font-size: 12px;
    }
    
    /* Disable any problematic absolute elements on mobile - Proprjetà protetta */
    .malta-badge,
    .floating-element {
        display: none !important;
    }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

.hero-cta {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 15px 30px;
    border: 2px solid var(--charcoal);
    background: transparent;
    color: var(--charcoal);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--charcoal);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: var(--white);
}

.cta-button:hover::before {
    left: 0;
}

.cta-button.primary {
    background: var(--malta-gold);
    border-color: var(--malta-gold);
    color: var(--white);
}

.cta-button.primary::before {
    background: var(--charcoal);
}

/* Malta Badge */
.malta-badge {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    writing-mode: vertical-lr;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--medium-gray);
    border-left: 2px solid var(--malta-gold);
    padding-left: 20px;
}

/* Featured Work Gallery */
.gallery-section {
    padding: 120px 60px;
    background: var(--white);
    scroll-margin-top: 120px;
}

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

.section-number {
    font-size: 120px;
    font-weight: 100;
    color: var(--soft-gray);
    line-height: 1;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    -webkit-cursor: default;
    cursor: default;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.section-number:hover {
    color: var(--malta-gold);
    transform: scale(1.05) rotate(-2deg);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.section-title {
    font-family: var(--display-font);
    font-size: 48px;
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.section-description {
    font-size: 16px;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Interactive Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 20px;
}

.portfolio-item {
    position: relative;
    background: var(--white);
    border: 1px solid var(--soft-gray);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -webkit-cursor: pointer;
    cursor: pointer;
    overflow: hidden;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.05), rgba(0, 119, 190, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.portfolio-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.15),
        0 5px 15px rgba(212, 175, 55, 0.1);
    border-color: var(--malta-gold);
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-image {
    width: 100%;
    height: 300px;
    background: var(--gallery-white);
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.08) rotate(1deg);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--malta-gold) 0%, var(--mediterranean-blue) 100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--white);
    font-size: 16px;
    letter-spacing: 2px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.portfolio-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.2) 100%);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 0.95;
    transform: scale(1.05);
}

.portfolio-overlay::after {
    content: '↗';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    opacity: 0;
    transform: translate(10px, -10px);
    transition: all 0.3s ease 0.1s;
}

.portfolio-item:hover .portfolio-overlay::after {
    opacity: 1;
    transform: translate(0, 0);
}

/* Logo tal-Portfolio f'nofs l-overlay - Proprjetà ta' Adel Ferrito u Daniela Vassallo Mizzi */
.portfolio-overlay .portfolio-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    opacity: 1;
    transform: scale(0.5) rotate(-180deg);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4)) 
            drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3))
            drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
    z-index: 100;
    position: relative;
}

.portfolio-item:hover .portfolio-overlay .portfolio-logo {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5)) 
            drop-shadow(0 6px 12px rgba(212, 175, 55, 0.4))
            drop-shadow(0 0 30px rgba(255, 255, 255, 0.3))
            drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.portfolio-content {
    padding: 40px;
}

.portfolio-title {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 10px;
    color: var(--charcoal);
}

.portfolio-role {
    font-size: 14px;
    color: var(--malta-gold);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.portfolio-description {
    font-size: 14px;
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 5px 12px;
    background: var(--gallery-white);
    border: 1px solid var(--soft-gray);
    font-size: 12px;
    color: var(--charcoal);
    letter-spacing: 1px;
}

/* Malta Film Commission Integration */
.malta-section {
    padding: 120px 60px;
    background: var(--gallery-white);
    scroll-margin-top: 120px;
}

.malta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.malta-content h2 {
    font-family: var(--display-font);
    font-size: 48px;
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 30px;
}

.malta-content p {
    font-size: 16px;
    color: var(--medium-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.malta-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 100;
    color: var(--malta-gold);
    display: block;
    transition: all 0.3s ease;
    -webkit-cursor: default;
    cursor: default;
}

.stat:hover .stat-number {
    transform: scale(1.2);
    color: var(--mediterranean-blue);
    text-shadow: 0 0 20px rgba(0, 119, 190, 0.3);
}

.stat-label {
    font-size: 12px;
    color: var(--medium-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* COMPLETELY NEW DYNAMIC TIMELINE */
.imdb-showcase {
    padding: 120px 60px;
    background: var(--charcoal);
    color: var(--white);
    scroll-margin-top: 120px;
}

.imdb-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

/* Grilja tat-tieqa tal-filmografija fuq desktop – eleganti u ċentrata */
.imdb-intro-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
    margin: 20px auto 0;
    max-width: 1100px;
}
.imdb-highlights { text-align: left; }
.imdb-highlights .section-title { font-size: 28px; margin-bottom: 10px; }
.imdb-highlights p { color: rgba(255,255,255,0.85); }
.imdb-stats .malta-stats { margin-top: 6px; }

.imdb-title {
    font-family: var(--display-font);
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 30px;
}

/* REVOLUTIONARY TIMELINE DESIGN */
.filmography-timeline {
    margin-top: 60px;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

.timeline-container {
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--malta-gold) 0%, #fffbe6 100%);
    box-shadow: 0 0 10px 2px var(--malta-gold), 0 0 24px 4px rgba(212,175,55,0.10);
    z-index: 0;
    border-radius: 3px;
    animation: timelineGlow 2.5s infinite alternate;
}

@keyframes timelineGlow {
    0% { box-shadow: 0 0 10px 2px var(--malta-gold), 0 0 24px 4px rgba(212,175,55,0.10); }
    100% { box-shadow: 0 0 18px 4px var(--malta-gold), 0 0 36px 8px rgba(212,175,55,0.13); }
}

.timeline-item {
    display: flex;
    margin-bottom: 100px;
    position: relative;
    align-items: center;
}

/* Alternate sides */
.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-content {
    /* Film frame background - Dan il-kodiċi huwa protett */
    background-image: url('/Assets/Logo/film-frame.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    color: var(--charcoal);
    /* Uniform dimensions għal konsistenza - Riservat għal Adel Ferrito */
    width: 680px;
    min-height: 380px;
    /* Padding li jqis il-perforazzjonijiet tal-film - Proprjetà protetta */
    padding: 75px 110px;
    margin-bottom: 24px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-sizing: border-box;
    /* Perfect centering - Dan il-kodiċi huwa protett */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    /* Film reel loading animation - Mhux permess li tikkopja */
    opacity: 0;
    transform: scale(0.95) rotate(-1deg);
    animation: filmFrameLoad 0.8s ease-out forwards;
}

/* Film grain texture enhancement - Riservat għal Adel Ferrito u Daniela Vassallo Mizzi */
.timeline-content::after {
    content: '';
    position: absolute;
    top: 75px;
    left: 110px;
    right: 110px;
    bottom: 75px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="turbulence" baseFrequency="0.9" numOctaves="1" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.02"/></svg>');
    pointer-events: none;
    opacity: 0.3;
    z-index: 0;
    transition: all 0.4s ease;
    transform: scale(1);
}

/* Film grain hover animation - Mhux permess li tikkopja */
.timeline-content:hover::after {
    opacity: 0.4;
    transform: scale(1.01) rotate(0.2deg);
}

/* Content wrapper for perfect centering - Proprjetà protetta */
.timeline-content > * {
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Ensure text stays above the grain effect - Dan il-kodiċi huwa protett */
.timeline-content h3,
.timeline-content p,
.timeline-content .tag {
    position: relative;
    z-index: 1;
}

/* Content constraint rules - Proprjetà protetta */
.timeline-content h3,
.timeline-content p {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* Film frame animation keyframes - Dan il-kodiċi huwa riservat għal Daniela Vassallo Mizzi */
@keyframes filmFrameLoad {
    0% { 
        opacity: 0; 
        transform: scale(0.95) rotate(-1deg); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.02) rotate(0.5deg); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
    }
}

/* Staggered film frame animations - Riservat għal Adel Ferrito */
.timeline-item:nth-child(1) .timeline-content { animation-delay: 0.1s; }
.timeline-item:nth-child(2) .timeline-content { animation-delay: 0.2s; }
.timeline-item:nth-child(3) .timeline-content { animation-delay: 0.3s; }
.timeline-item:nth-child(4) .timeline-content { animation-delay: 0.4s; }
.timeline-item:nth-child(5) .timeline-content { animation-delay: 0.5s; }
.timeline-item:nth-child(6) .timeline-content { animation-delay: 0.6s; }

/* Mobile film frame timeline - Layout only - Dan il-kodiċi huwa riservat */
@media (max-width: 768px) {
    /* Hide timeline line on mobile - Dan il-kodiċi huwa riservat */
    .timeline-line {
        display: none;
    }
    
    /* Hide timeline arrows on mobile - Proprjetà protetta */
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        display: none;
    }
    
    /* MASTER UI - Mobile timeline flow - PERFECT CENTERING - Dan il-kodiċi huwa protett */
    .timeline-item {
        margin-bottom: 35px;
        display: block;
        text-align: center;
        position: relative;
        /* REMOVED PADDING - Perfect centering without side padding */
        padding: 0;
        width: 100%;
        /* Ensure items are perfectly centered */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Mobile timeline content base styles - Proprjetà protetta */
    .timeline-content {
        /* Maintain film frame background - Dan il-kodiċi huwa protett */
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
        /* Perfect mobile centering - CENTERED CONTENT - Proprjetà protetta */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        /* Touch-friendly interactions - Dan il-kodiċi huwa riservat */
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        /* Prevent horizontal overflow */
        box-sizing: border-box;
        overflow: hidden;
        margin: 0 auto 15px;
    }
    
    /* Reset timeline positioning on mobile - Proprjetà protetta */
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0 auto 15px !important;
        position: relative;
        left: auto;
        right: auto;
    }
    
    /* Mobile hover effects - Dan il-kodiċi huwa protett */
    .timeline-content:hover {
        /* More subtle mobile hover - less movement */
        transform: scale(1.02) translateY(-2px);
        /* Simplified mobile glow */
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.25),
                    0 4px 20px rgba(0, 0, 0, 0.1);
        /* Subtle mobile border */
        border: 1px solid rgba(212, 175, 55, 0.3);
    }
    
    /* Mobile content hover - minimal movement */
    .timeline-content:hover h3 {
        transform: translateX(1px);
        color: var(--malta-gold);
        text-shadow: 0 1px 3px rgba(212, 175, 55, 0.1);
    }
    
    .timeline-content:hover p {
        transform: translateX(0.5px);
        color: var(--charcoal);
    }
    
    /* Mobile tag hover - very subtle */
    .timeline-content:hover .tag {
        transform: translateY(-0.5px) scale(1.01);
        background: var(--malta-gold);
        color: var(--white);
        box-shadow: 0 1px 4px rgba(212, 175, 55, 0.15);
    }
    
    /* Mobile film grain hover - minimal change */
    .timeline-content:hover::after {
        opacity: 0.35;
        transform: scale(1.005);
    }
}

/* Touch device optimization - Dan il-kodiċi huwa protett */
@media (hover: none) and (pointer: coarse) {
    /* Touch-only devices - disable complex hover effects */
    .timeline-content:hover {
        /* Simplified touch feedback */
        transform: scale(1.01);
        box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
        border: 1px solid rgba(212, 175, 55, 0.25);
    }
    
    .timeline-content:hover h3,
    .timeline-content:hover p {
        transform: none;
    }
    
    .timeline-content:hover .tag {
        transform: scale(1.005);
    }
    
    .timeline-content:hover::after {
        opacity: 0.3;
        transform: none;
    }
}

/* Extra small mobile devices - COMPREHENSIVE - Dan il-kodiċi huwa protett */
@media (max-width: 480px) {
    .timeline-content {
        /* ENLARGED SMALL MOBILE - Better presence - Proprjetà protetta */
        width: min(85vw, 320px) !important;
        min-height: 190px !important;
        padding: 45px 55px 35px 55px !important;
        /* Maintain aspect ratio */
        background-size: 100% 100%;
        margin-bottom: 12px !important;
    }
    
    /* Reset positioning for very small screens */
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: min(85vw, 320px) !important;
        margin: 0 auto 12px !important;
    }
    
    /* Adjust film grain for smaller screens */
    .timeline-content::after {
        top: 45px;
        left: 55px;
        right: 55px;
        bottom: 35px;
    }
    
    /* Very small mobile text - REMOVED - Consolidated into main mobile rules */
    
    /* Timeline item mobile spacing */
    .timeline-item {
        margin-bottom: 35px;
    }
    
    /* Year badge mobile sizing */
    .timeline-year {
        font-size: 11px;
        padding: 6px 10px;
        margin: 10px auto 8px auto;
    }
    
    /* IMDB Section very small mobile */
    .imdb-title {
        font-size: 24px;
    }
    
    .section-number {
        font-size: 50px;
    }
    
    /* Minimal hover on very small screens */
    .timeline-content:hover {
        transform: scale(1.01) translateY(-1px);
        box-shadow: 0 0 6px rgba(212, 175, 55, 0.12),
                    0 2px 6px rgba(0, 0, 0, 0.05);
    }
}

/* Position film frames relative to center line - Desktop only - Proprjetà protetta */
@media (min-width: 769px) {
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: calc(50% + 20px);
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-right: calc(50% + 20px);
    }
}

/* Film frame connection arrows - Desktop only - Dan il-kodiċi huwa protett */
@media (min-width: 769px) {
    .timeline-item:nth-child(odd) .timeline-content::before {
        content: '';
        position: absolute;
        left: -18px;
        top: 50%;
        width: 0;
        height: 0;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        border-right: 18px solid var(--malta-gold);
        transform: translateY(-50%);
        filter: drop-shadow(2px 0 4px rgba(212, 175, 55, 0.3));
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .timeline-item:nth-child(even) .timeline-content::before {
        content: '';
        position: absolute;
        right: -18px;
        top: 50%;
        width: 0;
        height: 0;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        border-left: 18px solid var(--malta-gold);
        transform: translateY(-50%);
        filter: drop-shadow(-2px 0 4px rgba(212, 175, 55, 0.3));
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    /* Arrow hover animations - Dan il-kodiċi huwa protett */
    .timeline-item:nth-child(odd) .timeline-content:hover::before {
        transform: translateY(-50%) scale(1.1) translateX(-1px);
        filter: drop-shadow(2px 0 6px rgba(212, 175, 55, 0.4));
    }
    
    .timeline-item:nth-child(even) .timeline-content:hover::before {
        transform: translateY(-50%) scale(1.1) translateX(1px);
        filter: drop-shadow(-2px 0 6px rgba(212, 175, 55, 0.4));
    }
}

.timeline-content:hover {
    /* Refined film frame hover effect - Dan il-kodiċi huwa protett */
    transform: scale(1.03) rotate(0.5deg) translateY(-4px);
    /* Subtle golden glow - Cross-browser compatible */
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3),
                0 8px 30px rgba(0, 0, 0, 0.15);
    /* Enhanced border without overwhelming glow */
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.timeline-content h3 {
    font-size: 24px;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--charcoal);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Content hover animations - Proprjetà protetta */
.timeline-content:hover h3 {
    transform: translateX(2px);
    color: var(--malta-gold);
    text-shadow: 0 1px 4px rgba(212, 175, 55, 0.15);
}

.timeline-content p {
    font-size: 16px;
    color: var(--medium-gray);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.1s;
}

.timeline-content:hover p {
    transform: translateX(1px);
    color: var(--charcoal);
}

.timeline-content .tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 16px;
    background: #fffbe6;
    color: var(--malta-gold);
    border: 1.5px solid var(--malta-gold);
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    margin-right: 6px;
    margin-bottom: 4px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateY(0px);
}

/* Staggered tag animations on frame hover - Dan il-kodiċi huwa protett */
.timeline-content:hover .tag {
    transform: translateY(-1px) scale(1.02);
    background: var(--malta-gold);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.timeline-content:hover .tag:nth-child(1) { transition-delay: 0.2s; }
.timeline-content:hover .tag:nth-child(2) { transition-delay: 0.25s; }
.timeline-content:hover .tag:nth-child(3) { transition-delay: 0.3s; }

.timeline-content .tag:hover {
    background: var(--malta-gold);
    color: var(--white);
    border-color: var(--malta-gold);
}

/* Year badges ON the timeline */
.timeline-year {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--malta-gold);
    color: var(--white);
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    text-align: center;
    transition: all 0.4s ease;
    -webkit-cursor: pointer;
    cursor: pointer;
    box-shadow: 0 0 6px 2px var(--malta-gold), 0 0 16px 4px rgba(212,175,55,0.10);
    z-index: 2;
    border: 3px solid var(--white);
    min-width: 70px;
    margin-top: 8px;
}

.timeline-year:hover {
    background: var(--mediterranean-blue);
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 16px 4px var(--mediterranean-blue), 0 0 32px 8px rgba(0,119,190,0.13);
    border-color: var(--gallery-white);
}

/* Enhanced Instagram Feed */
.instagram-section {
    padding: 120px 60px;
    background: var(--white);
    scroll-margin-top: 120px;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.instagram-post {
    position: relative;
    aspect-ratio: 1;
    background: var(--gallery-white);
    border: 1px solid var(--soft-gray);
    overflow: hidden;
    -webkit-cursor: pointer;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 12px;
}

.instagram-post::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, var(--malta-gold), var(--mediterranean-blue), var(--film-red));
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
    animation: instagramShimmer 3s ease-in-out infinite;
}

@keyframes instagramShimmer {
    0%, 100% { transform: rotate(0deg) scale(0); opacity: 0; }
    50% { transform: rotate(180deg) scale(0.3); opacity: 0.1; }
}

.instagram-post:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--malta-gold);
}

.instagram-post:hover::before {
    opacity: 0.15;
    animation-duration: 1s;
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.instagram-post:hover img {
    transform: scale(1.1);
    filter: contrast(1.1) saturate(1.2);
}

.post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 25px;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 3;
}

.instagram-post:hover .post-overlay {
    transform: translateY(0);
}

.post-overlay::before {
    content: '✦';
    position: absolute;
    top: -30px;
    right: 20px;
    font-size: 20px;
    background: var(--malta-gold);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.3s ease 0.2s;
}

.instagram-post:hover .post-overlay::before {
    transform: scale(1);
}

.post-overlay p {
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

/* Instagram Feed Integration Styles */
.instagram-feed-container {
    max-width: 1400px;
    margin: 60px auto 0;
}

.instagram-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--soft-gray);
    border-top: 3px solid var(--malta-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.instagram-loading p {
    color: var(--medium-gray);
    font-size: 16px;
    font-style: italic;
}

.instagram-fallback {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Instagram API Post Styles */
.instagram-api-post {
    position: relative;
    aspect-ratio: 1;
    background: var(--gallery-white);
    border: 1px solid var(--soft-gray);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 12px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.instagram-api-post:nth-child(1) { animation-delay: 0.1s; }
.instagram-api-post:nth-child(2) { animation-delay: 0.2s; }
.instagram-api-post:nth-child(3) { animation-delay: 0.3s; }
.instagram-api-post:nth-child(4) { animation-delay: 0.4s; }
.instagram-api-post:nth-child(5) { animation-delay: 0.5s; }
.instagram-api-post:nth-child(6) { animation-delay: 0.6s; }

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

.instagram-api-post:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--malta-gold);
}

.instagram-api-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.instagram-api-post:hover img {
    transform: scale(1.1);
    filter: contrast(1.1) saturate(1.2);
}

.instagram-api-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 25px;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.instagram-api-post:hover .instagram-api-overlay {
    transform: translateY(0);
}

.instagram-api-overlay::before {
    content: '✦';
    position: absolute;
    top: -30px;
    right: 20px;
    font-size: 20px;
    background: var(--malta-gold);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.3s ease 0.2s;
}

.instagram-api-post:hover .instagram-api-overlay::before {
    transform: scale(1);
}

.instagram-api-overlay p {
    font-size: 14px;
    margin: 0;
    font-style: italic;
    line-height: 1.4;
}

.instagram-api-overlay .post-caption {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.instagram-api-overlay .post-date {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 5px;
}

.instagram-api-overlay .post-stats {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-api-post:hover .instagram-api-overlay .post-stats {
    opacity: 1;
}

/* Contact Section */
.contact-section {
    padding: 120px 60px;
    background: var(--charcoal);
    color: var(--white);
    scroll-margin-top: 120px;
    text-align: center;
}

/* Primary Email Contact - Dan il-kodiċi huwa riservat għal Daniela Vassallo Mizzi */
.primary-contact {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.email-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 40px;
    background: linear-gradient(135deg, var(--malta-gold), var(--mediterranean-blue));
    border-radius: 16px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.email-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.email-cta:hover::before {
    left: 100%;
}

.email-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px rgba(212, 175, 55, 0.4), 0 0 40px rgba(0, 119, 190, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.email-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.email-text {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.email-subtitle {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Social Media Separator - Proprjetà protetta */
.social-separator {
    margin: 40px 0 24px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-separator::before,
.social-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--malta-gold), transparent);
    margin: 0 20px;
}

    .social-separator span {
        color: var(--malta-gold);
        font-size: 14px;
        letter-spacing: 2px;
        text-transform: uppercase;
        font-weight: 300;
        padding: 0 var(--gutter-inline);
    }

/* Social Media Links Adjustment - Mhux permess li tikkopja */
.social-only {
    margin-top: 0;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-content h2 {
    font-family: var(--display-font);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 24px;
    color: var(--white);
    letter-spacing: 1px;
}

.contact-description {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: var(--white);
}

.contact-services,
.contact-info {
    margin: 32px 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-services h3,
.contact-info h3 {
    color: var(--malta-gold);
    font-size: 1.3rem;
    margin-bottom: 16px;
    text-align: center;
}

.contact-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-services li {
    padding: 8px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-services li:last-child {
    border-bottom: none;
}

.contact-info p {
    font-size: 1.1rem;
    margin: 8px 0;
    text-align: center;
}

/* Contact section now uses .about-links class for perfect consistency */

.contact-footer {
    text-align: center;
    margin-top: 32px;
    margin-bottom: 0;
    font-size: 1.2rem;
}

.contact-logo-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: flex-start;
}

.contact-logo {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.2));
}

.contact-logo:hover {
    transform: scale(1.1) rotate(3deg);
    filter: drop-shadow(0 6px 20px rgba(212, 175, 55, 0.4));
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info h2 {
    font-family: var(--display-font);
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    color: var(--charcoal);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--soft-gray);
    background: var(--gallery-white);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--malta-gold);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--malta-gold);
    color: var(--white);
    border: none;
    font-size: 14px;
    letter-spacing: 1px;
    -webkit-cursor: pointer;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: var(--charcoal);
}

/* Large Desktop Optimizations - Dan il-kodiċi huwa riservat għal Daniela Vassallo Mizzi */
@media (min-width: 1600px) {
    .nav-content {
        max-width: 1600px;
    }
    
    .portfolio-grid {
        max-width: 1600px;
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    }
    
    .malta-grid,
    .contact-grid {
        max-width: 1600px;
    }
    
    .imdb-content {
        max-width: 1600px;
    }
    
    .instagram-grid {
        max-width: 1600px;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    .hero-content {
        max-width: 1000px;
    }
    
    .hero-title {
        font-size: clamp(84px, 10vw, 120px);
    }
    
    .about-section {
        max-width: 1400px;
    }
    
    /* Large screen gallery enhancement - Mhux permess li tikkopja */
    .gallery-container {
        width: 1400px;
        max-width: 90vw;
    }
}

/* Ultra-wide Desktop (4K+) - Proprjetà protetta */
@media (min-width: 2400px) {
    .nav-content,
    .portfolio-grid,
    .malta-grid,
    .contact-grid,
    .imdb-content,
    .instagram-grid {
        max-width: 2000px;
    }
    
    .hero-content {
        max-width: 1200px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
        gap: 80px;
    }
}

/* MASTER MOBILE TEXT SIZING - Complete solution - Dan il-kodiċi huwa protett */
@media (max-width: 768px) {
    /* Mobile film frames can grow slightly more - Better presence */
    .timeline-content {
        width: min(92vw, 380px) !important;
        min-height: 240px !important;
        padding: 55px 70px 45px 70px !important;
        /* PERFECT CENTERING - All content centered in film frame */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: min(92vw, 380px) !important;
    }
    
    /* Mobile film grain positioning - Updated for larger frames */
    .timeline-content::after {
        top: 55px !important;
        left: 70px !important;
        right: 70px !important;
        bottom: 45px !important;
    }
    
    /* ENHANCED READABILITY - Slightly larger text with safe margins */
    .timeline-content h3 {
        font-size: 13px !important;
        line-height: 1.1 !important;
        margin-bottom: 3px !important;
        /* Better text wrapping for mobile */
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        -webkit-hyphens: auto !important;
        hyphens: auto !important;
        max-width: 100% !important;
        /* Prevent text overflow */
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        /* Better font weight for readability */
        font-weight: 400 !important;
    }
    
    .timeline-content p {
        font-size: 10px !important;
        line-height: 1.1 !important;
        margin-bottom: 4px !important;
        /* Better text wrapping */
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        /* Ensure text doesn't extend too far */
        max-width: 100% !important;
    }
    
    /* PROPORTIONED GOLD TAGS - Content-sized, not full-width */
    .timeline-content .tag {
        font-size: 6px !important;
        padding: 1px 4px !important;
        margin: 1px 2px 1px 0 !important;
        /* CRITICAL: Content-sized tags, not full-width */
        display: inline-block !important;
        width: auto !important;
        max-width: 60% !important;
        /* Compact tag styling */
        border-radius: 3px !important;
        font-weight: 500 !important;
        /* Minimal border for visibility */
        border: 0.5px solid var(--malta-gold) !important;
        /* Prevent tag expansion */
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        /* Ensure proper text fit */
        box-sizing: border-box !important;
    }
}

/* EXTRA SMALL MOBILE - Refined proportions */
@media (max-width: 480px) {
    .timeline-content {
        width: min(88vw, 340px) !important;
        min-height: 210px !important;
        padding: 50px 60px 40px 60px !important;
        /* PERFECT CENTERING - Extra small mobile */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: min(88vw, 340px) !important;
    }
    
    .timeline-content::after {
        top: 50px !important;
        left: 60px !important;
        right: 60px !important;
        bottom: 40px !important;
    }
    
    /* Proportional text for very small screens - Still readable */
    .timeline-content h3 {
        font-size: 11px !important;
        margin-bottom: 2px !important;
        line-height: 1.0 !important;
    }
    
    .timeline-content p {
        font-size: 8px !important;
        margin-bottom: 3px !important;
        line-height: 1.0 !important;
    }
    
    .timeline-content .tag {
        font-size: 5px !important;
        padding: 0.5px 3px !important;
        border-radius: 2px !important;
        /* Extra small mobile - even more compact tags */
        max-width: 50% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* Mobile Menu Button - Riservat għal Adel Ferrito */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--malta-gold);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 20px var(--gutter-inline);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 1000;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .nav-links a {
        color: white;
        font-size: 24px;
        font-weight: 300;
        letter-spacing: 2px;
        text-decoration: none;
        transition: all 0.3s ease;
        padding: 16px 32px;
        border-radius: 8px;
    }
    
    .nav-links a:hover {
        color: var(--malta-gold);
        background: rgba(212, 175, 55, 0.1);
        transform: scale(1.05);
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 var(--gutter-inline);
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .malta-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 var(--gutter-inline);
        margin: 0 auto;
        box-sizing: border-box;
        text-align: center;
    }
    
    .malta-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 300px;
        margin: 30px auto 0;
    }
    
    /* Section vertical padding - horizontal handled by --gutter-inline */
    .gallery-section,
    .malta-section,
    .imdb-showcase,
    .instagram-section,
    .contact-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    /* IMDB Section Mobile Styles - COMPREHENSIVE - Dan il-kodiċi huwa protett */
    .imdb-showcase {
        padding: 60px var(--gutter-inline);
    }
    
    .imdb-content {
        padding: 0;
        max-width: 100%;
    }

    /* Layout għall-introduzzjoni tal-filmografija – grilja sempliċi u ċentrata */
    .imdb-intro-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 12px;
    }
    .imdb-highlights p { margin-bottom: 10px; }
    .imdb-stats .malta-stats { max-width: 420px; margin: 0 auto; }
    
    .imdb-title {
        font-size: 28px;
        margin-bottom: 20px;
        line-height: 1.2;
    }
    
    .imdb-header-flex {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        margin-bottom: 16px;
    }
    
    .section-number {
        font-size: 60px;
        margin-bottom: 10px;
    }
    
    .section-description {
        font-size: 16px;
        line-height: 1.6;
        padding: 0 var(--gutter-inline);
        max-width: none;
    }
    
    /* Filmography timeline mobile container - PERFECT CENTERING */
    .filmography-timeline {
        padding: 0;
        margin: 40px 0 0 0;
        max-width: 100%;
        width: 100%;
        /* Ensure perfect centering */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .malta-badge {
        display: none;
    }
    
    .contact-logo-container {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .contact-logo {
        width: 60px;
        height: 60px;
    }
    
    /* Mobile Typography Improvements - Proprjetà protetta */
    .section-title {
        font-size: 32px;
    }
    
    .portfolio-title {
        font-size: 20px;
    }
    
    .portfolio-subtitle {
        font-size: 14px;
    }
    
    /* Mobile Spacing Consistency - Dan il-kodiċi huwa riservat */
    .hero-content,
    .gallery-section,
    .malta-section,
    .imdb-showcase,
    .instagram-section,
    .contact-section,
    .about-section {
        padding-left: var(--gutter-inline);
        padding-right: var(--gutter-inline);
    }
    
    .hero-content {
        padding-top: 0;
        padding-bottom: 0;
    }
    
    /* Hero mobile height fix - Proprjetà protetta */
    .hero {
        height: 100svh;
    }
    
    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .hero-experience {
        font-size: 36px;
        margin-bottom: 30px;
    }
    
    .hero-cta {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    /* Timeline mobile rules consolidated above - Dan il-kodiċi huwa protett */
}

/* Animation Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* SEO Enhancement Elements */
.schema-enhancement {
    display: none;
}

/* Additional Animation Keyframes */
@keyframes noteFloat {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -150px) scale(1.5);
    }
}

@keyframes particleExplode {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.3);
        opacity: 0;
    }
}

/* Additional utility classes for inline styles */
.floating-element-left-10 { left: 10%; }
.floating-element-left-50 { left: 50%; }
.floating-element-left-80 { left: 80%; }

.malta-button-container {
    margin-top: 30px;
}

.malta-button-inline {
    display: inline-block;
    font-size: 14px;
    padding: 12px 24px;
}

.malta-logo-image {
    width: 100%;
    height: auto;
}

.section-number-gold {
    color: var(--malta-gold);
}

.section-description-white {
    color: rgba(255,255,255,0.8);
}

.imdb-button-container {
    margin-top: 60px;
}

.imdb-button-white {
    color: var(--white);
    /* Neħħi l-bordura tad-deheb mill-buttuna tal-IMDB fil-filmografija - Proprjetà protetta */
    border: none;
    background: transparent;
    box-shadow: none;
}

/* Waqqaf l-effett tal-overlay fuq il-buttuna tal-IMDB biex ma jidhirx qisu "wire" - Dan il-kodiċi huwa riservat */
.imdb-showcase .cta-button.imdb-button-white::before {
    display: none;
}

/* Żomm hover sempliċi u nadif mingħajr borduri jew glow - Proprjetà protetta */
.imdb-showcase .cta-button.imdb-button-white:hover {
    color: var(--malta-gold);
    box-shadow: none;
    transform: translateY(-2px);
}

.instagram-button-container {
    text-align: center;
    margin-top: 60px;
}

/* Footer */
.site-footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 30px 0 20px 0;
    text-align: center;
    font-size: 15px;
    opacity: 0.8;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 60px;
}
.site-footer .footer-content a {
    color: var(--malta-gold);
    text-decoration: none;
    transition: color 0.3s;
}
.site-footer .footer-content a:hover {
    color: var(--mediterranean-blue);
}

/* Footer Enhancement - Proprjetà ta' Adel Ferrito u Daniela Vassallo Mizzi */
.footer-credits {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.footer-logo {
    height: 28px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 4px;
    transition: all 0.3s ease;
    filter: brightness(0.9);
}

.footer-logo:hover {
    filter: brightness(1.1) drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
    transform: scale(1.05);
}

.production-credit {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.footer-copyright {
    font-size: 14px;
    opacity: 0.8;
}

/* LinkedIn Link Styling - Proprjetà ta' Adel Ferrito u Daniela Vassallo Mizzi */
.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.linkedin-link:hover {
    color: var(--malta-gold) !important;
    transform: translateY(-1px);
}

.linkedin-icon {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.linkedin-link:hover .linkedin-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Mobile Footer Responsiveness */
@media (max-width: 768px) {
    .footer-credits {
        flex-direction: column;
        gap: 8px;
    }
    
    .production-credit {
        text-align: center;
    }
    
    .footer-logo {
        margin-right: 0;
        margin-bottom: 5px;
    }
}



/* Instagram Widget Custom Styling */
.instagram-widget-container {
    max-width: 1100px;
    margin: 40px auto 0 auto;
    padding: 0 20px 40px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: var(--gallery-white);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.06), 0 1.5px 8px rgba(0,0,0,0.04);
}

.snapwidget-widget {
    border: none;
    overflow: hidden;
    width: 100%;
    min-height: 450px;
}

/* Remove any leftover Instagram API/fallback styles */
.instagram-feed-container,
.instagram-loading,
.instagram-fallback,
.instagram-api-post,
.instagram-api-overlay {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* SnapWidget iframe styles - moved from inline */

.snapwidget-widget img,
.gallery-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.08), 0 1.5px 8px rgba(0,0,0,0.04);
    transition: transform 0.25s cubic-bezier(.68,-0.55,.27,1.55), box-shadow 0.25s, border 0.25s;
    background: var(--white);
    display: block;
}

.snapwidget-widget img:hover,
.gallery-image:hover {
    transform: scale(1.045);
    box-shadow: 0 0 0 4px var(--malta-gold), 0 8px 32px rgba(212, 175, 55, 0.12);
    z-index: 2;
}

/* Removed empty media queries for snapwidget-widget */

/* JavaScript-generated element styles */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
    z-index: 10;
}

.heart-pop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 60px;
    z-index: 1000;
    pointer-events: none;
    animation: heartPop 1s ease-out forwards;
}

.particle-explode {
    position: absolute;
    font-size: 20px;
    color: var(--malta-gold);
    pointer-events: none;
    z-index: 1000;
    opacity: 0.8;
    animation: particleExplode 1s ease-out forwards;
}

.elegant-star {
    position: fixed;
    top: 50%;
    left: 50%;
    font-size: 24px;
    color: var(--malta-gold);
    pointer-events: none;
    z-index: 9999;
    animation: starFloat 2s ease-out forwards;
}

/* Additional keyframe animations */
@keyframes starFloat {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -150px) scale(1.5);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes heartPop {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

@keyframes particleExplode {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.3);
        opacity: 0;
    }
}

/* --- About Section Styling --- */
.about-wrapper {
    scroll-margin-top: 120px;
    padding: 240px 0 120px 0;
    position: relative;
}

.about-section-number {
    text-align: center;
    margin-bottom: 40px;
    font-size: 120px;
    font-weight: 100;
    color: var(--soft-gray);
    line-height: 1;
    transition: all 0.3s ease;
    -webkit-cursor: default;
    cursor: default;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.about-section-number:hover {
    color: var(--malta-gold);
    transform: scale(1.05) rotate(-2deg);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 60px;
    background: var(--gallery-white);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.06), 0 1.5px 8px rgba(0,0,0,0.04);
    font-family: var(--gallery-font);
    color: var(--charcoal);
    overflow: hidden;
    box-sizing: border-box;
}
.about-section .section-title {
    font-family: var(--display-font);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 18px;
    color: var(--charcoal);
    letter-spacing: 1px;
    text-align: left;
}
.about-bio {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--charcoal);
    line-height: 1.7;
}
.about-section .aka {
    color: var(--malta-gold);
    font-weight: 400;
    font-size: 1rem;
}
.about-section p {
    margin-bottom: 12px;
    font-size: 1.08rem;
    line-height: 1.7;
}
.about-links {
    list-style: none;
    padding: 0;
    margin: 32px 0 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid var(--soft-gray);
    padding-top: 24px;
    flex-wrap: wrap;
}

/* Ikkentra aħjar is-social icons fuq desktop u żomm proporzjonijiet nodfa */
@media (min-width: 901px) {
    .about-links {
        max-width: 360px; /* 4 buttons * 64 + 3 gaps * 20 = 316 → safe headroom */
        margin-left: auto;
        margin-right: auto;
        align-items: center;
    }
}

.about-links li {
    font-size: 0.95rem;
}

.about-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--soft-gray);
    border-radius: 12px;
    color: var(--charcoal);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    box-sizing: border-box;
}

.about-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--malta-gold), var(--mediterranean-blue));
    transition: left 0.3s ease;
    z-index: -1;
}

.about-links a:hover {
    color: var(--white);
    border-color: var(--malta-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15), 0 3px 10px rgba(0,0,0,0.1);
}

.about-links a:hover::before {
    left: 0;
}

.about-links strong {
    margin-right: 8px;
    color: var(--malta-gold);
    transition: color 0.3s ease;
}

.about-links a:hover strong {
    color: var(--white);
}

.about-links .link-icon {
    width: 32px;
    height: 32px;
    color: var(--malta-gold);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.about-links a:hover .link-icon {
    transform: scale(1.1);
    color: var(--white);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

/* Spans removed from HTML for clean icon-only design */

.about-links .imdb-link {
    width: 64px;
    height: 64px;
    padding: 20px;
    box-sizing: border-box;
}

.about-links .imdb-text {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: var(--malta-gold);
    letter-spacing: 0.5px;
}

.about-links .imdb-link:hover .imdb-text {
    color: var(--white);
}

.about-bio-footer {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 0;
    font-size: 1.1rem;
}
/* Selected credits row under About – perfectly centered and subtle */
.about-selected-credits {
    margin-top: 12px;
    text-align: center;
}
.about-selected-credits p {
    margin: 0;
    color: var(--medium-gray);
}
.about-selected-credits a { text-decoration: none; }
.about-selected-credits a:hover { text-decoration: underline; }
/* Duplicate mobile rule removed - Dan huwa riservat għal Daniela Vassallo Mizzi */

/* --- FAQ Section Styling --- */
.faq-section {
    max-width: 900px;
    margin: 60px auto 60px auto;
    padding: 48px 32px 40px 32px;
    background: var(--gallery-white);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.06), 0 1.5px 8px rgba(0,0,0,0.04);
    font-family: var(--gallery-font);
    color: var(--charcoal);
}
.faq-section .section-title {
    font-family: var(--display-font);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 24px;
    color: var(--charcoal);
    letter-spacing: 1px;
    text-align: left;
}
.faq-item {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--soft-gray);
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-item h3 {
    font-size: 1.15rem;
    color: var(--malta-gold);
    font-weight: 500;
    margin-bottom: 6px;
}
.faq-item p {
    font-size: 1.05rem;
    color: var(--charcoal);
    margin-bottom: 0;
}
.faq-item a {
    color: var(--malta-gold);
    text-decoration: underline;
    transition: color 0.2s;
}
.faq-item a:hover {
    color: var(--mediterranean-blue);
}

/* Small mobile devices - Dan il-kodiċi huwa riservat */
@media (max-width: 700px) {
    .about-section, .faq-section {
        padding: 40px var(--gutter-inline);
        margin: 20px var(--gutter-inline) 40px var(--gutter-inline);
        border-radius: 12px;
    }
    .about-section .section-title, .faq-section .section-title {
        font-size: 24px;
    }
    .about-links {
        gap: 12px;
        justify-content: center;
    }
    .about-profile-pic {
        width: 120px;
        height: 120px;
    }
    .hero-title {
        font-size: 28px;
    }
    .nav {
        padding: 16px var(--gutter-inline);
    }
}

.about-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 36px;
    width: 100%;
    box-sizing: border-box;
}

/* Composition fix: dedicated centered stack below text (icons + tagline + credits) */
.about-section .about-links,
.about-section .about-bio-footer,
.about-section .about-selected-credits {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure the icons row sits on a single baseline with consistent spacing */
.about-section .about-links {
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.about-image-col {
    flex: 0 0 170px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.about-profile-pic {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--malta-gold);
    box-shadow: 0 4px 24px rgba(212, 175, 55, 0.10), 0 1.5px 8px rgba(0,0,0,0.04);
    background: var(--white);
}
.about-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}
.about-section .section-title {
    font-family: var(--display-font);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 18px;
    color: var(--charcoal);
    letter-spacing: 1px;
    text-align: left;
}
.about-bio {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--charcoal);
    line-height: 1.7;
}
/* About Section Mobile - Unified rules - Dan il-kodiċi huwa protett */
@media (max-width: 900px) {
    .about-section {
        padding: 60px var(--gutter-inline);
        margin: 40px var(--gutter-inline) 60px var(--gutter-inline);
    }
    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .about-image-col {
        flex: none;
        width: 100%;
        justify-content: center;
        margin-bottom: 12px;
    }
    .about-profile-pic {
        width: 140px;
        height: 140px;
    }
    .about-text-col {
        width: 100%;
        align-items: center;
        text-align: center;
    }
    .about-section .section-title {
        text-align: center;
        font-size: 28px;
    }
    .about-links {
        align-items: center;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
    }
}

.gold-accent {
    color: var(--malta-gold);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.about-imdb-badge {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-bottom: 10px;
}
.about-imdb-badge img {
    width: 46px;
    height: 22px;
    display: block;
}
@media (max-width: 900px) {
    .about-imdb-badge {
        justify-content: center;
        margin-bottom: 16px;
    }
}

.imdb-header-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 10px;
}
.imdb-logo-header {
    width: 46px;
    height: 22px;
    display: block;
}
.imdb-logo-btn {
    width: 32px;
    height: 16px;
    margin-right: 10px;
    vertical-align: middle;
}

.timeline-content img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 12px;
    display: block;
}

.imdb-episodes-note {
    font-size: 0.95em;
}

/* Malta Section Number Styling */
.malta-content .section-number {
    margin-bottom: 20px;
    text-align: left;
}

/* Gallery Modal - Proprjetà ta' Adel Ferrito u Daniela Vassallo Mizzi */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
    animation: fadeInBg 0.4s ease;
}

.gallery-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.gallery-container {
    position: relative;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(212, 175, 55, 0.1);
    max-width: 95vw;
    max-height: 95vh;
    width: 1200px;
    padding: 40px;
    animation: popIn 0.5s cubic-bezier(.68,-0.55,.27,1.55);
    overflow: hidden;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--malta-gold), var(--mediterranean-blue));
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-close:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.gallery-close svg {
    width: 24px;
    height: 24px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--soft-gray);
    padding-bottom: 20px;
}

.gallery-title {
    font-family: var(--display-font);
    font-size: 32px;
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.gallery-subtitle {
    font-size: 16px;
    color: var(--medium-gray);
    letter-spacing: 1px;
}

.gallery-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.gallery-nav {
    width: 56px;
    height: 56px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--malta-gold);
    border-radius: 50%;
    color: var(--malta-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    flex-shrink: 0;
}

.gallery-nav:hover {
    background: var(--malta-gold);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    background: rgba(212, 175, 55, 0.05);
}

.gallery-nav svg {
    width: 28px;
    height: 28px;
}

.gallery-image-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    background: var(--gallery-white);
    border-radius: 16px;
    overflow: hidden;
}

.gallery-image {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease;
}

.gallery-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.gallery-loading.active {
    display: block;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--soft-gray);
    border-top: 3px solid var(--malta-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.gallery-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid var(--soft-gray);
    gap: 30px;
}

.gallery-counter {
    font-size: 14px;
    color: var(--medium-gray);
    letter-spacing: 1px;
    font-weight: 500;
}

.gallery-thumbnails {
    display: flex;
    gap: 12px;
    max-width: 400px;
    overflow-x: auto;
    padding: 8px;
    /* Qbid tal-scrollbar għal browsers differenti - Dan il-kodiċi huwa riservat */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    scrollbar-width: none; /* Firefox */
}

.gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.gallery-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
    flex-shrink: 0;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnail:hover {
    transform: scale(1.1);
    border-color: var(--malta-gold);
}

.gallery-thumbnail.active {
    border-color: var(--malta-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-container {
        width: 95vw;
        max-height: 95svh;
        overflow: hidden;
        padding: 24px;
    }
    
    .gallery-modal {
        overflow-y: auto;
    }
    
    .gallery-image {
        max-width: 100%;
        max-height: 80svh;
        object-fit: contain;
    }
    
    .gallery-title {
        font-size: 24px;
    }
    
    .gallery-main {
        gap: 12px;
    }
    
    .gallery-nav {
        width: 44px;
        height: 44px;
    }
    
    .gallery-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .gallery-image-container {
        min-height: 300px;
    }
    
    .gallery-footer {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .gallery-thumbnails {
        max-width: 100%;
        /* Ħalli l-JavaScript jieħu ħsieb iċ-ċentrar dinamiku - Dan il-kodiċi huwa protett */
    }
    
    /* Contact Section Mobile Improvements - Riservat għal Adel Ferrito */
    .contact-content {
        padding: 0 var(--gutter-inline);
    }
    
    .contact-services {
        font-size: 16px;
        line-height: 1.8;
    }
    
    .contact-info {
        font-size: 16px;
        gap: 16px;
    }
    
    /* Primary Email Mobile - Dan il-kodiċi huwa protett */
    .email-cta {
        padding: 20px 24px;
        margin: 0 var(--gutter-inline);
    }
    
    .email-text {
        font-size: 16px;
    }
    
    .email-subtitle {
        font-size: 12px;
    }
    
    .social-separator {
        margin: 32px var(--gutter-inline) 20px var(--gutter-inline);
    }
    
    .social-separator::before,
    .social-separator::after {
        margin: 0 calc(var(--gutter-inline) * 0.75);
    }
    
    /* Mobile containment - Dan il-kodiċi huwa protett */
    
    /* Timeline mobile positioning - COMPREHENSIVE FIX - Dan il-kodiċi huwa protett */
    .timeline-year {
        /* Reposition year badges for mobile - don't hide completely */
        position: static;
        display: inline-block;
        margin: 15px auto 10px auto;
        transform: none;
        font-size: 12px;
        padding: 8px 14px;
        min-width: 50px;
    }
    
    /* Instagram Section Mobile - Mhux permess li tikkopja */
    .instagram-widget-container {
        margin: 20px auto 0 auto;
        padding: 0 var(--gutter-inline) 20px var(--gutter-inline);
    }
    
    .snapwidget-widget {
        min-height: 350px;
    }
    
    /* Malta Section Mobile - Dan il-kodiċi huwa protett */
    .malta-content {
        padding: 0 var(--gutter-inline);
    }
    
    .malta-content h2 {
        font-size: 28px;
    }
    
    .malta-content p {
        font-size: 16px;
        line-height: 1.7;
    }
}
