@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

/* Progressive contact form */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.progressive-form .email-group,
.progressive-form .phone-group,
.progressive-form .event-group,
.progressive-form .message-group,
.progressive-form .form-actions {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.8s ease-out, opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
    margin-top: 0;
}

.progressive-form.step-1 .email-group,
.progressive-form.step-2 .email-group,
.progressive-form.step-2 .phone-group,
.progressive-form.step-3 .email-group,
.progressive-form.step-3 .phone-group,
.progressive-form.step-3 .event-group,
.progressive-form.step-4 .email-group,
.progressive-form.step-4 .phone-group,
.progressive-form.step-4 .event-group,
.progressive-form.step-4 .message-group,
.progressive-form.step-5 .email-group,
.progressive-form.step-5 .phone-group,
.progressive-form.step-5 .event-group,
.progressive-form.step-5 .message-group,
.progressive-form.step-5 .form-actions {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 1.5rem;
}

/* Name field is always visible as the starting point */
.progressive-form .name-group {
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 1.4rem;
}

/* Add vertical spacing between form fields */
.progressive-form .email-group,
.progressive-form .phone-group,
.progressive-form .event-group {
    margin-bottom: 1.4rem;
}

.progressive-form .name-group input[type="text"],
.progressive-form .email-group input[type="email"],
.progressive-form .phone-group input[type="tel"],
.progressive-form .message-group textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.3);
    background: transparent;
    padding: 0.4rem 0;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    resize: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.progressive-form .event-group select {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.3);
    background: transparent;
    padding: 0.4rem 0;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    transition: border-color 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    color: rgba(0,0,0,0.7);
}

.progressive-form .event-group select option {
    background: white;
    color: var(--dark-color);
    padding: 0.5rem;
}

.progressive-form .event-group select option[disabled] {
    color: rgba(0,0,0,0.5);
}

.progressive-form .name-group input[type="text"]:focus,
.progressive-form .email-group input[type="email"]:focus,
.progressive-form .phone-group input[type="tel"]:focus,
.progressive-form .event-group select:focus,
.progressive-form .message-group textarea:focus {
    outline: none;
    border-bottom-color: var(--dark-color);
}

.progressive-form .form-group {
    margin-bottom: 0;
}
/* Add Montserrat font for the hero section */

/* Global Styles */
:root {
    --primary-color: #2d3436;
    --secondary-color: #6c5ce7;
    --accent-color: #fd79a8;
    --light-color: #f8f9fa;
    --dark-color: #2d3436;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;

    /* Enhanced Typography Variables */
    --hero-title-size-desktop: 5rem;
    --hero-title-size-tablet: 3.5rem;
    --hero-title-size-mobile: 2.5rem;
    --hero-subtitle-size-desktop: 1.8rem;
    --hero-subtitle-size-tablet: 1.4rem;
    --hero-subtitle-size-mobile: 1.2rem;
    --hero-text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 4px 4px 16px rgba(0, 0, 0, 0.5);
    --hero-letter-spacing: 2px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    /* Optimize scrolling performance */
    backface-visibility: hidden;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Enhanced smooth scrolling */
* {
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 80px; /* Account for fixed header */
}

body {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    letter-spacing: 0.3px;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #e7ac20;
    border-radius: 6px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #d69e1d;
}

/* Firefox Scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #e7ac20 #f1f1f1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--hero-title-size-desktop);
    font-weight: 800;
    letter-spacing: var(--hero-letter-spacing);
}

h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    height: 3px;
    background: var(--accent-color);
}

h3 {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

section {
    padding: 5rem 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
.submit-btn {
    cursor: pointer;
    border: 2px solid var(--dark-color);
    background: transparent;
    color: var(--dark-color);
    padding: 1.2rem 2.5rem;
    border-radius: 2px;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    box-shadow: none;
}

button:hover,
.submit-btn:hover {
    background: var(--dark-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

button:active,
.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    transform: translateY(-100%);
}

header.visible {
    transform: translateY(0);
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-right: 3rem;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    font-weight: 700;
    font-size: 1.15rem;
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Enhanced Hero Branding */
.hero-branding {
    position: absolute;
    top: 8%;
    left: 8%;
    z-index: 20;
    color: white;
    opacity: 0;
    animation: brandingFadeIn 2s ease-out 1.5s forwards;
}

.hero-logo .brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.8), 1px 1px 6px rgba(0, 0, 0, 0.9);
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-logo .brand-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0.5rem 0 0 0;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
}

.hero-signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.signature-text {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 1px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    margin-bottom: 0.2rem;
}

.signature-subtitle {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Subtle Watermark */
.hero-watermark {
    position: absolute;
    bottom: 8%;
    right: 8%;
    z-index: 15;
    opacity: 0;
    animation: watermarkFadeIn 2s ease-out 3s forwards;
}

.watermark-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Branding Animation Keyframes */
@keyframes brandingFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes watermarkFadeIn {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--dark-color);
    /* Add a dark bg to prevent white flash */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.7s ease-in-out, opacity 0.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    transform: translateX(0);
    opacity: 1;
    z-index: 5;
    transition: transform 0.7s ease-in-out, opacity 0.5s ease-in-out;
}

.slide.exiting {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 3;
    transition: transform 0.7s ease-in-out, opacity 0.5s ease-in-out 0.1s;
}

.slide.preparing {
    transform: translateX(100%);
    transition: none;
    opacity: 0;
    z-index: 1;
}

/* First slide special animation - drops from top */
.slide.first-load {
    transform: translateY(0);
}

.slide.first-load.active {
    transform: translateY(0);
    transition: transform 0.8s ease-out, opacity 0.5s ease-out;
}

/* First slide image fall animation remains the same */
.slide.first-load .slide-image-container {
    animation: fallFromTop 0.8s ease forwards 1s;
}

.slide-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Enable hardware acceleration for better performance */
    will-change: transform;
}

.slide.first-load .slide-image-container {
    transform: translateY(0);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Force hardware acceleration and optimize for scrolling */
    transform: scale(1.05) translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    image-rendering: optimizeSpeed;
    /* Contain paint operations to prevent excessive repaints */
    contain: layout style paint;
    transition: transform 8s ease-out;
}

/* Subtle zoom animation on active slides */
.slide.active img {
    transform: scale(1.0);
    animation: subtleZoom 12s ease-in-out infinite;
}

/* Simple zoom animation */
@keyframes subtleZoom {

    0%,
    100% {
        transform: scale(1.0);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Loading state for images */
.slide img[data-loading="true"] {
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide img[data-loaded="true"] {
    opacity: 1;
    transform: scale(1.05);
}

/* Enhanced focus points for specific images */
.slide img[src*="IMG_Budapest-8"] {
    object-position: 60% 40%;
    /* Focus on architectural elements */
}

.slide img[src*="IMG_Budapest_home_2"] {
    object-position: 50% 35%;
    /* Focus on upper portion */
}

.slide img[src*="IMG_Budapest_home_3"] {
    object-position: 45% 50%;
    /* Slightly left-focused */
}

/* Enhanced loading states and skeleton screens */
.slide-image-container.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    position: relative;
}

.slide-image-container.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: enhancedSpin 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
}

.slide-image-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: enhancedSpin 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite reverse;
    transform: translate(-50%, -50%);
}

/* Enhanced skeleton screen */
.slide-image-container.skeleton {
    background: linear-gradient(90deg,
            #f0f0f0 0%,
            #e8e8e8 20%,
            #f0f0f0 40%,
            #e8e8e8 60%,
            #f0f0f0 80%,
            #e8e8e8 100%);
    background-size: 400% 100%;
    animation: skeletonPulse 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* Loading text overlay */
.slide-image-container.loading .loading-text {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    opacity: 0.8;
    animation: textFadeInUp 1s ease-in-out infinite alternate;
}

@keyframes loading-shimmer {
    0% {
        background-position: -400% 0;
    }

    100% {
        background-position: 400% 0;
    }
}

/* Hide loading state when image is loaded */
.slide img[data-loaded="true"]~.slide-image-container.loading::before,
.slide img[data-loaded="true"]~.slide-image-container.loading::after,
.slide img[data-loaded="true"]~.slide-image-container.loading .loading-text {
    display: none;
}

/* Smooth transition when loading completes */
.slide-image-container.loading-complete {
    animation: fadeSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Remove all specialized overlays */
.slide.overlay-portrait::after,
.slide.overlay-landscape::after,
.slide.overlay-nightlife::after,
.slide.overlay-architecture::after,
.slide.overlay-event::after {
    /* Use the default slide::after style */
    content: '';
}

/* Enhanced multi-layer gradient overlay system */
.slide::before {
    content: none; /* No base overlay */
}

.slide::after {
    content: ''; /* Restore the after element for text contrast */
    position: absolute;
    top: 0;
    left: 0;
    width: 60%; /* Extend coverage a bit more */
    height: 100%;
    /* Stronger gradient from left to right */
    background: linear-gradient(to right,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.6) 30%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0.2) 80%,
        transparent 100%);
    z-index: 2; /* Below text but above image */
    pointer-events: none;
}

/* First slide text animation (center to left) */
.slide.first-load .slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    max-width: 80%;
    z-index: 3;
    opacity: 1;
    text-align: center;
}

.slide.first-load.active .slide-content {
    animation: fadeInThenMoveLeft 2s forwards 0s;
}

/* Repositioned text overlay */
.text-overlay-static {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-70%); /* 20% higher than middle */
    color: white;
    width: auto;
    max-width: 800px;
    z-index: 25;
    text-align: left;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

/* No backdrop - pure minimalism */
.text-overlay-static::before {
    display: none;
}

/* Animation trigger for regular text fade-in with enhanced hierarchy */
.slide.active.text-visible .slide-content {
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateY(-50%) translateX(0);
}

/* Enhanced text overlay positioning system */
.absolute-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 25;
    pointer-events: none;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%) translateX(-20px);
    color: white;
    max-width: 650px;
    z-index: 25;
    opacity: 0;
    text-align: left;
    padding: 2.5rem;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.2) 50%, 
        transparent 100%);
    border-radius: 16px;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.text-overlay.text-visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.text-overlay.first-text {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(-20px);
    text-align: center;
    max-width: 800px;
}

.text-overlay.first-text.text-visible {
    transform: translate(-50%, -50%) translateX(0);
}

/* Restored original font with modern styling */
.main-title {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 4.5rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7); /* Drop shadow effect */
    letter-spacing: 0px; /* Normal tracking like before */
    line-height: 1.1;
    position: relative;
    display: inline-block; /* shrink to text width so underline matches exactly */
    z-index: 2;
    text-transform: none; /* No uppercase */
    opacity: 1;
    transform: none; /* No compression */
}

/* Minimal accent line */
.main-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%; /* match exact text width */
    height: 4px;
    background: white;
    border-radius: 0;
}

.creatio-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 0.7em; /* 10% smaller than the main title */
    letter-spacing: 3px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

/* Specific styling for logo version */
.logo .creatio-text {
    font-size: 0.9em;
    text-shadow: none;
    color: inherit;
}

/* Typewriter text with drop shadow */
.typewriter-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400; /* Medium weight like before */
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); /* Drop shadow effect */
    letter-spacing: 0.3px;
    position: relative;
    z-index: 2;
    font-style: normal;
    /* Fixed dimensions to prevent layout shift */
    width: auto;
    max-width: 600px;
    height: 80px;
    overflow: hidden;
    display: block;
    margin-top: 1.5rem;
    padding: 0;
    border-left: 2px solid white;
    padding-left: 1rem;
}


/* Mobile Responsive Design for Ultra-modern Overlay */
@media screen and (max-width: 768px) {
    .text-overlay-static {
        top: auto; /* Reset top positioning */
        bottom: 10%;
        left: 8%;
        transform: translateY(0); /* Reset the transform */
    }

    .main-title {
        font-size: 4rem;
        line-height: 0.9;
        margin-bottom: 0.5rem;
    }

    .main-title::after {
        display: none;
    }

    .typewriter-text {
        font-size: 1.1rem;
        line-height: 1.4;
        height: 70px;
        margin-top: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .text-overlay-static {
        top: auto; /* Reset top positioning */
        bottom: 30%; /* Middle bottom + 20% (from the 50% middle point) */
        left: 50%; /* Center horizontally */
        transform: translateX(-50%); /* Center alignment */
        text-align: center;
        align-items: center;
        width: 90%;
        max-width: 90%;
    }

    .main-title {
        font-size: 3rem;
        letter-spacing: -1px;
    }

    .typewriter-text {
        font-size: 0.95rem;
        line-height: 1.4;
        height: 65px;
        border-left: none; /* Remove left border for centered alignment */
        padding-left: 0;
        text-align: center;
    }
}

.slide.active.text-visible .slide-title,
.text-overlay.text-visible .slide-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.slide.active.text-visible .slide-title::after,
.text-overlay.text-visible .slide-title::after {
    opacity: 1;
    width: 80px;
}

/* First slide title is instantly visible */
.slide.first-load.active .slide-title {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

.slide.first-load.active .slide-title::after {
    opacity: 1;
    width: 80px;
    transition: none;
}

.slide-content p,
.text-overlay p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: var(--hero-subtitle-size-desktop);
    line-height: 1.6;
    margin-top: 2rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.95);
    max-width: 580px;
    opacity: 0;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7), 1px 1px 3px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.5px;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    transform: translateY(15px);
    position: relative;
    padding-left: 1rem;
}

.slide-content p::before,
.text-overlay p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 3px;
    height: 2rem;
    background: linear-gradient(180deg, var(--accent-color) 0%, transparent 100%);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.6s ease-in-out 0.4s;
}

.slide.active.text-visible p,
.text-overlay.text-visible p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.slide.active.text-visible p::before,
.text-overlay.text-visible p::before {
    opacity: 1;
}

/* First slide paragraph is instantly visible */
.slide.first-load.active p {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

.slide.first-load.active p::before {
    opacity: 1;
    transition: none;
}

/* Enhanced keyframe animations with improved easing */
@keyframes fallFromTop {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(0);
    }
}





/* Enhanced parallax effect with smoother motion */
@keyframes subtleParallax {
    0% {
        transform: scale(1.05) translateY(0px) translateZ(0);
    }

    25% {
        transform: scale(1.04) translateY(-3px) translateZ(0);
    }

    50% {
        transform: scale(1.02) translateY(-8px) translateZ(0);
    }

    75% {
        transform: scale(1.01) translateY(-5px) translateZ(0);
    }

    100% {
        transform: scale(1.0) translateY(0px) translateZ(0);
    }
}

/* Enhanced depth effect with smoother layered transforms */
@keyframes depthMovement {

    0%,
    100% {
        transform: scale(1.0) translateZ(0) rotateZ(0deg);
    }

    33% {
        transform: scale(1.015) translateZ(0) rotateZ(0.15deg);
    }

    66% {
        transform: scale(1.025) translateZ(0) rotateZ(-0.15deg);
    }
}

/* Enhanced image entrance animation with better easing */
@keyframes imageEnhancedEntrance {
    0% {
        transform: scale(1.15) translateZ(0);
        opacity: 0.6;
        filter: blur(1px);
    }

    50% {
        opacity: 0.9;
        filter: blur(0.5px);
    }

    100% {
        transform: scale(1.05) translateZ(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* Smoother breathing effect for active slides */
@keyframes breathingEffect {

    0%,
    100% {
        transform: scale(1.0) translateZ(0);
    }

    50% {
        transform: scale(1.025) translateZ(0);
    }
}

/* Loading skeleton animation */
@keyframes skeletonPulse {
    0% {
        background-color: #f0f0f0;
    }

    50% {
        background-color: #e0e0e0;
    }

    100% {
        background-color: #f0f0f0;
    }
}

/* Enhanced loading spinner */
@keyframes enhancedSpin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.1);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
    }
}

/* Interactive Elements and Navigation Hints */

/* Slideshow Progress Indicators */
.slideshow-progress {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    animation: fadeInUp 1s ease-out 3s both;
}

.progress-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
}

/* Desktop progress dots remain normal size */
@media screen and (min-width: 769px) {
    .progress-dot {
        width: 12px;
        height: 12px;
        border: 2px solid rgba(255, 255, 255, 0.6);
        background-color: rgba(255, 255, 255, 0.4);
    }

    .progress-dot::before {
        display: none;
    }
}

.progress-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.progress-dot.active {
    background-color: white;
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.progress-dot.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    margin-left: -8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

/* Mobile ripple animation - smaller size */
@media screen and (max-width: 768px) {
    .progress-dot.active::after {
        width: 12px;
        height: 12px;
        margin-top: -6px;
        margin-left: -6px;
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 1s ease-out 2.5s both;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
}

.scroll-arrow span {
    display: block;
    width: 2px;
    height: 8px;
    background-color: white;
    margin: 1px 0;
    border-radius: 1px;
    animation: scroll-bounce 2s infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

.scroll-arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-arrow span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scroll-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    40% {
        transform: translateY(8px);
        opacity: 1;
    }

    60% {
        transform: translateY(4px);
        opacity: 0.8;
    }
}

.scroll-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}



/* Enhanced Hover Effects for Text Elements */
.text-overlay .slide-title {
    transition: all 0.3s ease;
    cursor: default;
}

.text-overlay:hover .slide-title {
    text-shadow:
        var(--hero-text-shadow),
        0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.text-overlay p {
    transition: all 0.3s ease;
    cursor: default;
}

.text-overlay:hover p {
    text-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.7),
        1px 1px 3px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* Enhanced Mobile Responsive Optimizations */
@media screen and (max-width: 768px) {

    /* Performance optimizations for mobile: limit GPU hint to slideshow visuals */
    .slide img,
    .text-overlay,
    .scroll-indicator {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }


    /* Optimize slideshow for mobile */
    .slideshow-progress {
        bottom: 20px;
        padding: 0 10px;
    }

    /* Mobile progress dots use ::before pseudo-element for small visual size */

    .progress-dot:active {
        transform: scale(0.9);
        transition: transform 0.1s ease;
    }

    .scroll-indicator {
        bottom: 25px;
        right: 25px;
        /* Larger touch target */
        padding: 10px;
        -webkit-tap-highlight-color: transparent;
    }

    .scroll-text {
        font-size: 0.8rem;
        font-weight: 600;
    }

    /* Optimize image performance on mobile */
    .slide img {
        /* Reduce complex transforms on mobile */
        transform: scale(1.0) !important;
        will-change: auto;
    }

    .slide.active img {
        animation: none !important;
        transform: scale(1.0) !important;
    }

    /* Simplified overlays for better mobile performance */
    .slide::before {
        content: none;
    }

    .slide::after {
        content: none;
    }

    /* Remove hover effects on mobile for better performance */
    .text-overlay:hover .slide-title,
    .text-overlay:hover p {
        transform: none !important;
        text-shadow: var(--hero-text-shadow);
    }

    /* Optimize navigation for mobile */
    .nav-links {
        -webkit-overflow-scrolling: touch;
    }

    /* Touch-friendly interactive elements */
    .progress-dot,
    .scroll-indicator,
    .burger {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Reduce motion on mobile by default */
    .slide {
        transition: opacity 0.4s ease !important;
    }

    /* Optimize loading states for mobile */
    .slide-image-container.loading::before {
        width: 60px;
        height: 60px;
        border-width: 3px;
    }

    .slide-image-container.loading::after {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }
}

@media screen and (max-width: 480px) {

    /* Extra small mobile optimizations */
    .scroll-indicator {
        bottom: 20px;
        right: 20px;
        padding: 8px;
    }

    .progress-dot::before {
        width: 6px;
        height: 6px;
    }

    .progress-dot.active::after {
        width: 10px;
        height: 10px;
        margin-top: -5px;
        margin-left: -5px;
    }

    /* Optimize typography for very small screens */
    :root {
        --hero-title-size-mobile: 1.8rem;
        --hero-subtitle-size-mobile: 0.9rem;
    }

    /* Reduce complex effects on very small screens */
    .slide::before {
        content: none;
    }
    
    .slide::after {
        /* Bottom to middle gradient for mobile */
        width: 100%; /* Cover full width */
        height: 70%; /* Cover bottom 70% of the image */
        top: auto; /* Reset top positioning */
        bottom: 0; /* Position from bottom */
        background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.6) 40%,
            rgba(0, 0, 0, 0.4) 60%,
            rgba(0, 0, 0, 0.2) 80%,
            transparent 100%);
    }

    /* Ensure touch targets remain accessible */
    .burger {
        padding: 12px;
    }

    .burger div {
        width: 20px;
        height: 2px;
    }
}

/* Enhanced reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {

    /* Disable all slide animations */
    .slide {
        transition: opacity 0.3s ease !important;
        transform: none !important;
    }

    .slide.active,
    .slide.exiting,
    .slide.entering {
        animation: none !important;
        transform: none !important;
    }

    .slide img {
        animation: none !important;
        transform: scale(1.0) !important;
        transition: none !important;
    }

    .slide.active img {
        animation: none !important;
    }

    /* Disable overlay animations */
    .slide::before {
        content: none;
    }
    
    .slide::after {
        /* Bottom to middle gradient for mobile */
        width: 100%; /* Cover full width */
        height: 70%; /* Cover bottom 70% of the image */
        top: auto; /* Reset top positioning */
        bottom: 0; /* Position from bottom */
        background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.6) 40%,
            rgba(0, 0, 0, 0.4) 60%,
            rgba(0, 0, 0, 0.2) 80%,
            transparent 100%);
    }

    /* Disable interactive element animations */
    .progress-dot.active::after {
        animation: none !important;
    }

    .scroll-arrow span {
        animation: none !important;
    }

    /* Disable text animations */
    .text-overlay .slide-title,
    .text-overlay p {
        animation: none !important;
        transition: opacity 0.3s ease !important;
        transform: none !important;
    }

    .text-overlay:hover .slide-title,
    .text-overlay:hover p {
        transform: none !important;
    }

    /* Disable loading animations */
    .slide-image-container.loading::before,
    .slide-image-container.loading::after {
        animation: none !important;
    }

    /* Disable all keyframe animations */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* Keep essential opacity transitions for usability */
    .slide,
    .text-overlay,
    .progress-dot,
    .nav-links {
        transition: opacity 0.2s ease !important;
    }
}

@keyframes fadeInThenMoveLeft {
    0% {
        opacity: 1;
        /* Start visible */
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    40% {
        opacity: 1;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    100% {
        opacity: 1;
        left: 10%;
        transform: translateY(-50%);
        text-align: left;
    }
}

/* Enhanced Responsive Typography */
@media screen and (max-width: 1200px) and (min-width: 769px) {
    :root {
        --hero-title-size-desktop: 4.5rem;
        --hero-subtitle-size-desktop: 1.6rem;
        --hero-letter-spacing: 1.5px;
    }

    h1 {
        font-size: var(--hero-title-size-tablet);
        letter-spacing: 1.5px;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --hero-title-size-desktop: var(--hero-title-size-mobile);
        --hero-subtitle-size-desktop: var(--hero-subtitle-size-mobile);
        --hero-letter-spacing: 1px;
        --hero-text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 1px 1px 3px rgba(0, 0, 0, 0.9);
    }

    h1 {
        font-size: var(--hero-title-size-mobile);
        letter-spacing: 1px;
    }

    .slide-title {
        font-size: var(--hero-title-size-mobile);
        letter-spacing: 1px;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .slide-content p {
        font-size: var(--hero-subtitle-size-mobile);
        line-height: 1.4;
        letter-spacing: 0.3px;
        max-width: 100%;
    }

    /* Mobile Branding Adjustments */
    .hero-branding {
        top: 6%;
        left: 6%;
        right: 6%;
    }

    .hero-logo .brand-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }

    .hero-logo .brand-tagline {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .hero-signature {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .signature-text {
        font-size: 1.1rem;
    }

    .signature-subtitle {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }

    .hero-watermark {
        bottom: 6%;
        right: 6%;
    }

    .watermark-text {
        font-size: 0.7rem;
        writing-mode: horizontal-tb;
        text-orientation: initial;
    }

    /* Mobile Text Overlay Adjustments */
    .text-overlay {
        left: 6%;
        right: 6%;
        max-width: none;
        padding: 1.8rem;
        border-radius: 12px;
    }

    .text-overlay.first-text {
        left: 6%;
        right: 6%;
        max-width: none;
        transform: translateY(-50%) translateX(-20px);
    }

    .text-overlay.first-text.text-visible {
        transform: translateY(-50%) translateX(0);
    }

    .slide-content p,
    .text-overlay p {
        font-size: var(--hero-subtitle-size-mobile);
        line-height: 1.5;
        letter-spacing: 0.3px;
        max-width: 100%;
        margin-top: 1.5rem;
        padding-left: 0.8rem;
    }

    .slide-content p::before,
    .text-overlay p::before {
        height: 1.5rem;
    }

    /* Enhanced mobile image display */
    .slide img {
        /* Reduce zoom effect on mobile for better performance */
        transform: scale(1.02);
    }

    .slide.active img {
        transform: scale(1.0);
        /* Simpler animation for mobile devices */
        animation: none;
    }

    /* Optimized mobile overlay system */
    .slide::after {
        content: none;
    }
}

@media screen and (max-width: 480px) {
    :root {
        --hero-title-size-mobile: 2rem;
        --hero-subtitle-size-mobile: 1rem;
        --hero-letter-spacing: 0.5px;
    }

    .slide-title {
        font-size: 2rem;
        letter-spacing: 0.5px;
        margin-bottom: 0.8rem;
    }

    .slide-content p {
        font-size: 1rem;
        letter-spacing: 0.2px;
    }

    /* Extra Small Mobile Branding */
    .hero-branding {
        top: 4%;
        left: 4%;
        right: 4%;
    }

    .hero-logo .brand-title {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }

    .hero-logo .brand-tagline {
        font-size: 0.8rem;
        letter-spacing: 0.3px;
    }

    .hero-signature {
        margin-top: 1rem;
        padding-top: 0.8rem;
    }

    .signature-text {
        font-size: 1rem;
    }

    .signature-subtitle {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .hero-watermark {
        bottom: 4%;
        right: 4%;
    }

    .watermark-text {
        font-size: 0.6rem;
    }

    /* Extra Small Mobile Text Overlay */
    .text-overlay {
        left: 4%;
        right: 4%;
        padding: 1.5rem;
        border-radius: 10px;
    }

    .text-overlay.first-text {
        left: 4%;
        right: 4%;
    }

    .slide-content p,
    .text-overlay p {
        margin-top: 1.2rem;
        padding-left: 0.6rem;
    }

    .slide-content p::before,
    .text-overlay p::before {
        height: 1.2rem;
        width: 2px;
    }
}

/* Section adjustments to account for fixed header */
section:not(.hero) {
    padding-top: 5rem;
    /* Adjusted so content clears the fixed navbar */
    padding-bottom: 5rem;
}

/* About Me Section */
.o-meni {
    background-color: white;
}

.o-meni-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10rem;
    align-items: center;
    max-width: 1500px;
    margin: 0 auto;
    padding: 4rem 2rem 4rem 2rem;
}

.o-meni-image {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 0rem;
}

/* Polaroid Stack Container */
.polaroid-stack {
    position: relative;
    width: 368px; /* 15% bigger than 320px */
    height: 460px; /* 15% bigger than 400px */
}

/* Back Polaroid (slightly visible behind) */
.polaroid-back {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 8px;
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.25),
        0 6px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: rotate(3deg);
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Front Polaroid */
.polaroid-front {
    position: relative;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 8px;
    padding: 20px 20px 60px 20px;
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.25),
        0 8px 20px rgba(0, 0, 0, 0.15),
        0 3px 8px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.polaroid-front:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 12px 25px rgba(0, 0, 0, 0.2),
        0 5px 10px rgba(0, 0, 0, 0.15);
}

/* Photo area inside polaroid */
.polaroid-photo {
    width: 100%;
    height: calc(100% - 40px);
    overflow: hidden;
    border-radius: 4px;
    background: #f0f0f0;
}

.polaroid-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Polaroid caption at bottom */
.polaroid-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

/* Greeting positioned above the main text */
.greeting-header {
    margin-bottom: 1.5rem;
}

.greeting-small {
    display: block;
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 1.2rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.greeting-main {
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.o-meni-text {
    position: relative;
    /* Aged notebook paper background with ruled lines */
    background: 
        repeating-linear-gradient(
            transparent,
            transparent 30px,
            #e0e6ed 30px,
            #e0e6ed 31px
        ),
        linear-gradient(to bottom, 
            #f7f4f1 0%, 
            #f5f2ef 25%, 
            #f8f5f2 50%, 
            #f3f0ed 75%, 
            #f6f3f0 100%);
    padding: 3rem 4rem 4rem 4rem;
    margin: 3rem auto;
    max-width: 900px;
    /* Aged paper shadows and stains */
    box-shadow: 
        0 0 0 1px #d5d5d5,
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 0 50px rgba(139, 115, 85, 0.02);
    position: relative;
    transform: rotate(-0.3deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Clean notebook paper without pins */
.o-meni-text::before {
    display: none;
}

/* Aged notebook signature */
.o-meni-text::after {
    content: '-Filip Firšt';
    position: absolute;
    bottom: 1.5rem;
    right: 4rem;
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 1.1rem;
    color: #1a1a1a;
    transform: rotate(-0.8deg);
    font-weight: 400;
}

.o-meni-text p {
    margin-bottom: 0;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 31px;
    letter-spacing: 0.3px;
    text-align: justify;
    text-justify: inter-word;
    color: #1a1a1a;
    font-family: 'Courier New', 'Lucida Console', monospace;
    position: relative;
    /* Align perfectly with ruled lines */
    height: auto;
    min-height: 31px;
    padding: 0;
    margin-top: 1px;
}

/* Ensure proper spacing between paragraphs */
.o-meni-text p + p {
    margin-top: 31px;
}

/* Typewriter-style text variations - more subtle */
.o-meni-text p:nth-child(odd) {
    transform: rotate(0.05deg);
}

.o-meni-text p:nth-child(even) {
    transform: rotate(-0.03deg);
}

/* Simulate slight ink variations for aged effect */
.o-meni-text p:nth-child(4n) {
    color: #2a2a2a;
}

.o-meni-text p:nth-child(4n+1) {
    color: #1a1a1a;
}

.o-meni-text p:nth-child(4n+2) {
    color: #333333;
}

.o-meni-text p:nth-child(4n+3) {
    color: #202020;
}

/* Paper pickup effect on hover */
.o-meni-text:hover {
    transform: rotate(0deg) translateY(-3px);
    box-shadow: 
        0 0 0 1px #d5d5d5,
        0 10px 25px rgba(0, 0, 0, 0.15),
        inset 0 0 50px rgba(139, 115, 85, 0.03);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

/* Masonry mode overrides */
.gallery-grid.masonry-mode {
    display: block;
    column-count: 3;
    column-gap: 1.5rem;
    column-fill: balance;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8f9fa;
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    page-break-inside: avoid;
}

.gallery-item:not(.loaded) {
    background: linear-gradient(45deg, #f8f9fa 25%, #e9ecef 25%, #e9ecef 50%, #f8f9fa 50%, #f8f9fa 75%, #e9ecef 75%);
    background-size: 20px 20px;
    animation: loading-shimmer 1.5s infinite linear;
    min-height: 400px;
}

@keyframes loading-shimmer {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
    opacity: 0;
}

.gallery-item.loaded img {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

.gallery-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.galerija h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Prices Section */
.cijene {
    background-color: #f5f7fa;
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.price-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.price-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.price-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.price-card li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.price-card span {
    font-weight: 600;
    color: var(--primary-color);
}

.note {
    font-size: 0.9rem;
    font-style: italic;
    color: #777;
}

/* Contact Section */
.kontakt h2 {
    display: block;
    width: fit-content;
    margin: -5.5rem auto 7.5rem; /* lift heading slightly and add more space below */
    text-align: center;
}

.kontakt-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.kontakt-info h3 {
    margin-bottom: 1.5rem;
}

.kontakt-info p {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-link svg {
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

.social-link.instagram {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #f0f0f0 100%);
    color: var(--dark-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.social-link.instagram:hover {
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 50%, #e0e0e0 100%);
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.social-link.facebook {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #eeeeee 100%);
    color: var(--dark-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.social-link.facebook:hover {
    background: linear-gradient(135deg, #eeeeee 0%, #e5e5e5 50%, #dddddd 100%);
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Raleway', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 1rem;
}

/* Pricing CTA Section */
.pricing-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 0;
    margin-top: 5rem;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pricing-cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.pricing-text h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.pricing-text p {
    font-family: 'Raleway', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #495057;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.pricing-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--dark-color), #6c757d);
    border-radius: 16px 16px 0 0;
}

.pricing-form:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 6px 15px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.pricing-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

#pricing-email {
    flex: 1;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    color: var(--dark-color);
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
}

#pricing-email:focus {
    border-color: var(--dark-color);
    background: white;
    box-shadow: 0 0 0 2px rgba(45, 52, 54, 0.1);
}

#pricing-email::placeholder {
    color: #6c757d;
    font-weight: 400;
}

.pricing-btn {
    background: var(--dark-color);
    border: none;
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    color: white;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.pricing-btn:hover {
    background: #1a1f20;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 52, 54, 0.2);
}

.pricing-btn:active {
    transform: translateY(0);
}

.privacy-notice {
    margin-bottom: 0.75rem;
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.4;
}

.privacy-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 1px;
}

.privacy-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--dark-color);
    border-color: var(--dark-color);
}

.privacy-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    color: white;
    font-size: 9px;
    font-weight: bold;
}

.privacy-text {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.privacy-link {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #1a1f20;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    font-size: 0.9rem;
}

/* Media Queries */
@media screen and (max-width: 1024px) {
    html {
        font-size: 15px;
    }

    :root {
        --hero-title-size-desktop: 4.2rem;
        --hero-subtitle-size-desktop: 1.6rem;
        --hero-letter-spacing: 1.8px;
    }

    .slide-content {
        left: 5%;
    }

    .nav-links {
        gap: 2rem;
    }

    .nav-links a {
        font-size: 1.1rem;
        letter-spacing: 0.4px;
    }

    .logo {
        font-size: 2.2rem;
        letter-spacing: 0.8px;
    }

    h2 {
        font-size: 2.6rem;
        letter-spacing: 0.8px;
    }

    h3 {
        font-size: 1.8rem;
        letter-spacing: 0.4px;
    }
}

@media screen and (max-width: 768px) {
    .logo {
        font-size: 2rem;
        font-weight: 800;
        margin-right: 0;
        letter-spacing: 0.8px;
    }

    h2 {
        font-size: 2.2rem;
        letter-spacing: 0.8px;
    }

    h3 {
        font-size: 1.6rem;
        letter-spacing: 0.4px;
    }

    nav {
        padding: 1rem 5%;
        justify-content: space-between;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 1;
        visibility: visible;
        padding: 2rem;
        box-sizing: border-box;
        overflow: hidden; /* Prevent any content from showing outside */
    }

    .nav-links.active {
        transform: translateX(0);
    }

    /* Add a close button that always shows when menu is active */
    .nav-links.active::after {
        content: '×';
        position: absolute;
        top: 2rem;
        right: 2rem;
        font-size: 2.5rem;
        color: var(--primary-color);
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
        z-index: 10001;
        font-weight: 300;
        line-height: 1;
    }

    .nav-links.active::after:hover {
        transform: scale(1.1);
        background: rgba(255, 255, 255, 1);
    }

    .nav-links li {
        margin: 0.8rem 0;
        text-align: center;
        list-style: none;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.6s ease;
    }

    .nav-links.active li {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }

    .nav-links a {
        font-size: 1.6rem;
        font-weight: 600;
        color: var(--primary-color);
        text-decoration: none;
        padding: 1.2rem 2.5rem;
        display: block;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50px;
        margin: 0.5rem 0;
        min-width: 200px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 2px solid transparent;
        backdrop-filter: blur(10px);
    }

    .nav-links a:hover,
    .nav-links a:active {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-color: var(--primary-color);
    }

    .nav-links a:hover {
        color: var(--secondary-color);
        border-bottom: 1px solid var(--secondary-color);
    }

    .burger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 10000;
        position: relative;
        transition: opacity 0.3s ease;
    }

    /* Hide burger when menu is active */
    .burger.active {
        opacity: 0;
        pointer-events: none;
    }

    .burger div {
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        margin: 3px;
        transition: 0.3s;
    }

    /* Burger Animation - Disabled since we have a proper close button */
    .burger.active .line1 {
        /* Keep burger lines as-is when menu is open */
        transform: none;
    }

    .burger.active .line2 {
        /* Keep middle line visible */
        opacity: 1;
    }

    .burger.active .line3 {
        /* Keep burger lines as-is when menu is open */
        transform: none;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content-inner {
        padding: 1.5rem;
    }

    .slide-content {
        width: 90%;
        left: 5%;
    }

    .o-meni-content,
    .kontakt-wrapper {
        grid-template-columns: 1fr;
        padding-left: 1rem;
        gap: 3rem;
    }

    .o-meni-image {
        margin: 0 auto 2rem;
        padding-left: 0;
        justify-content: center;
        order: 2; /* Put polaroid second on mobile */
    }

    .o-meni-text {
        order: 1; /* Put letter first on mobile */
    }

    .polaroid-stack {
        width: 322px; /* 15% bigger than 280px */
        height: 403px; /* 15% bigger than 350px */
    }

    .polaroid-back {
        top: 12px;
        left: 12px;
    }

    .polaroid-front {
        padding: 15px 15px 50px 15px;
    }

    .greeting-main {
        font-size: 1.8rem;
    }

    .greeting-small {
        font-size: 0.9rem;
    }

    /* Mobile o-meni text paper/letter fixes */
    .o-meni-text {
        padding: 2rem 2.5rem 3rem 2.5rem; /* Reduce padding for mobile */
        margin: 0 auto 2rem auto; /* Remove top margin since it's first, keep bottom margin */
        max-width: 90%; /* Make narrower */
        order: 1; /* Put letter first on mobile */
        /* Adjust line height for mobile ruled lines */
        background: 
            repeating-linear-gradient(
                transparent,
                transparent 24px, /* Smaller line spacing */
                #e0e6ed 24px,
                #e0e6ed 25px
            ),
            linear-gradient(to bottom, 
                #f7f4f1 0%, 
                #f5f2ef 25%, 
                #f8f5f2 50%, 
                #f3f0ed 75%, 
                #f6f3f0 100%);
    }

    .o-meni-text p {
        font-size: 1rem; /* Smaller font for mobile */
        line-height: 25px; /* Match new line spacing */
        letter-spacing: 0.2px; /* Tighter letter spacing */
        min-height: 25px; /* Match line height */
    }

    .o-meni-text::after {
        bottom: 1rem; /* Adjust signature position */
        right: 2.5rem;
        font-size: 0.95rem; /* Smaller signature */
    }

    /* Ensure proper spacing between paragraphs on mobile */
    .o-meni-text p + p {
        margin-top: 25px; /* Match new line spacing */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    /* Pricing CTA responsive styling */
    .pricing-cta {
        padding: 4rem 0;
        margin-top: 3rem;
    }

    .pricing-cta-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .pricing-text h3 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .pricing-text p {
        font-size: 1.1rem;
    }

    .pricing-form {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .pricing-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    #pricing-email {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .pricing-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
        font-weight: 800;
        letter-spacing: 0.8px;
    }

    h2 {
        font-size: 1.8rem;
        font-weight: 800;
        letter-spacing: 0.6px;
    }

    h3 {
        font-size: 1.4rem;
        letter-spacing: 0.3px;
    }

    .logo {
        font-size: 1.8rem;
        letter-spacing: 0.6px;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .prev-btn,
    .next-btn {
        left: 3% !important;
        right: 3% !important;
        width: auto !important;
        height: auto !important;
        font-size: 3rem !important;
    }
    
    .prev-btn {
        left: 3% !important;
        right: auto !important;
    }
    
    .next-btn {
        right: 3% !important;
        left: auto !important;
    }

    .price-cards {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 1rem;
        margin-top: 2rem;
        padding: 0 0.5rem;
    }
    
    .gallery-grid.masonry-mode {
        column-count: 2;
        column-gap: 1rem;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }

    .polaroid-stack {
        width: 276px; /* 15% bigger than 240px */
        height: 345px; /* 15% bigger than 300px */
    }

    .polaroid-back {
        top: 10px;
        left: 10px;
    }

    .polaroid-front {
        padding: 12px 12px 40px 12px;
    }

    .greeting-main {
        font-size: 1.6rem;
    }

    .greeting-small {
        font-size: 0.85rem;
    }

    .polaroid-caption {
        font-size: 0.8rem;
        bottom: 15px;
    }

    /* Extra condensed o-meni text for very small screens */
    .o-meni-text {
        padding: 1.5rem 2rem 2.5rem 2rem; /* Even tighter padding */
        margin: 1.5rem auto; /* Smaller margins */
        max-width: 95%; /* Almost full width but still rectangular */
        /* Even smaller line spacing for very condensed look */
        background: 
            repeating-linear-gradient(
                transparent,
                transparent 20px, /* Very tight line spacing */
                #e0e6ed 20px,
                #e0e6ed 21px
            ),
            linear-gradient(to bottom, 
                #f7f4f1 0%, 
                #f5f2ef 25%, 
                #f8f5f2 50%, 
                #f3f0ed 75%, 
                #f6f3f0 100%);
    }

    .o-meni-text p {
        font-size: 0.9rem; /* Smaller font for very small screens */
        line-height: 21px; /* Match very tight line spacing */
        letter-spacing: 0.1px; /* Very tight letter spacing */
        min-height: 21px; /* Match line height */
    }

    .o-meni-text::after {
        bottom: 0.8rem; /* Adjust signature position */
        right: 2rem;
        font-size: 0.85rem; /* Smaller signature */
    }

    /* Ensure proper spacing between paragraphs on very small screens */
    .o-meni-text p + p {
        margin-top: 21px; /* Match very tight line spacing */
    }
}

/* Add after the container class */
.full-width {
    width: 98%;
    max-width: 100%;
    padding: 0 1%;
}

/* Gallery optimization */
.gallery-item img {
    /* Enable hardware acceleration */
    will-change: transform;
    cursor: pointer;
}

.gallery-loading {
    width: 100%;
    text-align: center;
    padding: 40px 0;
    font-size: 1.2rem;
    color: #777;
}

/* Add a loading animation */
@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.gallery-loading p {
    animation: pulse 1.5s infinite ease-in-out;
}

/* Instagram Feed Section - Redesigned */
.instagram-feed {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    padding: 5rem 0;
    text-align: center;
}

.instagram-intro {
    margin-bottom: 1rem;
}

.instagram-profile-section {
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.instagram-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.instagram-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.instagram-profile-display {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.instagram-profile-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #fafafa;
}

.instagram-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid #eee;
}

.instagram-handle {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.instagram-at {
    color: #999;
    margin-right: 0.2rem;
}

.instagram-username {
    color: var(--primary-color);
}

.instagram-preview {
    margin-bottom: 3rem;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.instagram-post {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background: white;
}

.instagram-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-post img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.instagram-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
}

.loading-placeholder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.placeholder-item {
    aspect-ratio: 1/1;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 12px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Removed instagram-btn styles - no longer needed */

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .instagram-intro h2 {
        font-size: 2rem;
    }
    
    .instagram-profile-section {
    text-align: center;
    }
    
    .instagram-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .instagram-grid,
    .loading-placeholder {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .instagram-profile-display {
        padding: 0.6rem 1.2rem;
        gap: 0.8rem;
    }

    .instagram-avatar {
        width: 40px;
        height: 40px;
    }
    
    .instagram-handle {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .instagram-grid,
    .loading-placeholder {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Services Section (Usluge) - Scrollable Carousel */
.usluge {
    background-color: #f8f9fa;
    padding: 0;
    margin: 3rem 0; /* Add spacing above and below */
    width: 100vw; /* Full viewport width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1); /* Drop shadow */
}

.services-carousel {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0; /* tiles span full width */
    height: 45vh; /* Fixed height ~30% of screen height */
}

.services-container {
    display: flex;
    gap: 0;
    overflow: hidden;
    transition: transform 0.4s ease;
    width: 300%; /* 3 tiles visible spanning 100% width */
    height: 100%;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
    font-size: 3rem;
    font-weight: 200;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    z-index: 10;
    user-select: none;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: none !important;
}

.carousel-arrow:hover {
    transform: translateY(-50%) !important;
}

.carousel-arrow-left {
    left: 3%;
    z-index: 20;
}

.carousel-arrow-right {
    right: 3%;
    z-index: 20;
}


.service-section {
    flex: 0 0 calc(100vw / 3);
    width: calc(100vw / 3);
    height: 100%; /* Match carousel height */
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}


.service-image {
    width: 100%;
    height: 100%; /* Fill the fixed-height tile */
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.service-section:hover .service-image img {
    transform: scale(1.02);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
    transition: all 0.5s ease;
}

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 4px;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.service-title::after {
    background: #8a782a !important;
}

.service-divider {
    width: 60px;
    height: 1px;
    background-color: white;
    margin: 0 auto 2rem;
    opacity: 0.7;
}

.service-btn {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 12px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.service-section:hover .service-btn {
    opacity: 1;
    transform: translateY(0);
}

.service-btn:hover {
    background-color: white;
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .usluge {
        margin: 1rem 0; /* Normal vertical margins */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.08);
        width: 100vw; /* Full viewport width */
        position: relative;
        left: 50%; /* Move to center */
        transform: translateX(-50%); /* Center it properly */
    }
    
    .services-carousel {
        padding: 0; /* match desktop so tiles span full width */
        gap: 0;
        height: 60vh; /* taller on mobile so arrows center correctly */
    }
    
    /* Keep the carousel horizontal on mobile */
    .services-container {
        display: flex;
        flex-direction: row;
        height: 100%;
        max-height: none;
    }
    
    .service-section {
        flex: 0 0 100vw; /* one tile per view */
        width: 100vw;
        height: 60vh; /* increase height ~20% for phones */
    }
    
    
    .service-title {
        font-size: 2.2rem; /* Bigger font size on mobile */
        letter-spacing: 3px;
    }
    
    .service-content {
        padding: 2rem 1.5rem 1.5rem; /* More padding */
    }
    
    .service-btn {
        opacity: 1;
        transform: translateY(0);
        padding: 12px 30px; /* Bigger button */
    font-size: 0.9rem;
    }
    
    .service-divider {
        width: 60px; /* Bigger divider */
        margin: 0 auto 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .gallery-grid.masonry-mode {
        column-count: 1;
        column-gap: 0;
    }
    
    .gallery-item {
        margin-bottom: 0.75rem;
    }
}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-top: 1rem;
        padding: 0 0.25rem;
    }
    
    .gallery-grid.masonry-mode {
        column-count: 1;
        column-gap: 0;
    }
    
    .gallery-item {
        margin-bottom: 0.5rem;
    }

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
    .usluge {
        margin: 0.5rem 0; /* Even smaller spacing */
    }
    
    .services-carousel {
        height: 60vh; /* match mobile carousel height */
    }

    .service-section {
        height: 60vh; /* ensure the album tile height increases on small screens */
    }
    
    .service-title {
        font-size: 2rem; /* Bigger font even on small screens */
        letter-spacing: 2px;
    }
    
    .service-content {
        padding: 1.8rem 1.2rem 1.2rem; /* More padding */
    }
    
    .service-btn {
        padding: 10px 25px; /* Bigger button */
        font-size: 0.85rem;
    }
}

/* Add missing closing bracket for previous media query block */
}

/* Performance Mode Optimizations */
.performance-mode * {
    /* Disable expensive CSS properties on low-power devices */
    text-shadow: none !important;
    /* Removed blanket filter restrictions to preserve visual quality */
}

.performance-mode .slide img {
    /* Disable complex transforms and animations */
    transform: none !important;
    animation: none !important;
    transition: opacity 0.3s ease !important;
}

.performance-mode .slide::before {
    content: none;
}

.performance-mode .slide::after {
    /* Stronger simplified gradient for performance mode */
    background: linear-gradient(to right,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.2) 80%,
        transparent 100%);
}

.performance-mode .text-overlay .slide-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.performance-mode .text-overlay p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {

    /* Remove hover effects on touch devices */
    .gallery-item:hover,
    .price-card:hover,
    button:hover,
    .submit-btn:hover,
    .social-link:hover,
    .nav-links a:hover {
        transform: none !important;
        box-shadow: var(--shadow) !important;
    }

    /* Add active states for touch feedback */
    .progress-dot:active {
        transform: scale(0.9);
        background-color: rgba(255, 255, 255, 0.9);
    }

    .scroll-indicator:active {
        opacity: 0.7;
        transform: scale(0.95);
    }

    button:active,
    .submit-btn:active {
        transform: scale(0.98);
    }

    .gallery-item:active {
        transform: scale(0.98);
    }
}

/* Optimize animations for 60fps on mobile */
@media screen and (max-width: 768px) {
    .slide {
        /* Use transform3d for hardware acceleration */
        transform: translate3d(0, 0, 0);
        will-change: opacity, transform;
    }

    .slide.active {
        transform: translate3d(0, 0, 0);
    }

    .slide.exiting {
        transform: translate3d(-100%, 0, 0);
    }

    .slide.preparing {
        transform: translate3d(100%, 0, 0);
    }

    /* Optimize text animations */
    .text-overlay {
        will-change: opacity;
        transform: translate3d(0, 0, 0);
    }

    /* Reduce complex gradients on mobile */
    .slide.overlay-portrait::after,
    .slide.overlay-landscape::after,
    .slide.overlay-nightlife::after,
    .slide.overlay-architecture::after,
    .slide.overlay-event::after {
        background: linear-gradient(to top,
                rgba(0, 0, 0, 0.85) 0%,
                rgba(0, 0, 0, 0.5) 40%,
                rgba(0, 0, 0, 0.2) 70%,
                transparent 100%) !important;
    }
}

/* Battery saving mode for very low-power devices */
@media screen and (max-width: 480px) {
    .performance-mode .slide {
        transition: opacity 0.2s ease !important;
    }

    .performance-mode .text-overlay {
        transition: opacity 0.2s ease !important;
    }

    .performance-mode .progress-dot {
        transition: transform 0.1s ease !important;
    }
}

/* Accessibility improvements for mobile */
@media screen and (max-width: 768px) {

    /* Ensure minimum touch target sizes */
    .progress-dot {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none !important;
        border: none !important;
        position: relative;
    }

    .progress-dot::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.6);
        transition: all 0.3s ease;
    }

    .progress-dot.active::before {
        background-color: white;
        border-color: white;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    .progress-dot:hover::before {
        background-color: rgba(255, 255, 255, 0.7);
        transform: scale(1.2);
    }

    .scroll-indicator {
        min-width: 44px;
        min-height: 44px;
    }

    .burger {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }

    /* Improve text readability on mobile */
    .slide-title {
        line-height: 1.2 !important;
        word-wrap: break-word;
        hyphens: auto;
    }

    .text-overlay p {
        line-height: 1.4 !important;
        word-wrap: break-word;
        hyphens: auto;
    }
}

/* Optimize for landscape mobile orientation */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .text-overlay {
        bottom: 5% !important;
        max-width: 50% !important;
    }

    .slideshow-progress {
        bottom: 15px !important;
    }

    .scroll-indicator {
        bottom: 15px !important;
        right: 15px !important;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .slide img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 
Simple Image Modal - Active CSS Style */
.simple-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Show modal when body has img-popup class */
body.img-popup .simple-image-modal {
    display: flex !important;
}

/* Modal image styling */
.simple-image-modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Ensure image is visible */
    display: block;
}

/* Prevent body scroll when modal is open */
body.img-popup {
    overflow: hidden;
}

/* Mobile fixes for modal positioning */
@media screen and (max-width: 768px) {
    /* Completely override modal styles for mobile */
    body.img-popup .simple-image-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: rgba(0, 0, 0, 0.95) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 999999 !important;
        margin: 0 !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }
    
    /* Simplified mobile image styling */
    body.img-popup .simple-image-modal img {
        max-width: 90vw !important;
        max-height: 90vh !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 2px solid white !important; /* Debug border to see if image is there */
        background-color: rgba(255, 255, 255, 0.1) !important; /* Debug background */
    }
    
    /* Ensure body doesn't interfere */
    body.img-popup {
        overflow: hidden !important;
        height: 100vh !important;
        width: 100vw !important;
        position: relative !important;
    }
    
    /* Remove any transforms that might cause issues */
    body.img-popup .simple-image-modal,
    body.img-popup .simple-image-modal img {
        transform: none !important;
    }
}

/* Legacy Modal Styles (keeping for compatibility) */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Hide modal image when no source is set */
.modal-content img:not([src]),
.modal-content img[src=""] {
    display: none;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #fd79a8;
    transform: scale(1.1);
}

.modal-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 0;
    pointer-events: none;
    transform: translateY(-50%);
}

.nav-btn {
    position: absolute;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    font-size: 2rem;
    font-weight: 300;
    color: white;
    user-select: none;
    outline: none;
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 2001;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.modal-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2001;
}

.modal-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #e7ac20;
    border-radius: 50%;
    animation: modalSpin 1s linear infinite;
    margin: 0 auto 1rem;
}

.modal-loader p {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    opacity: 0.8;
}

@keyframes modalSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Removed duplicate Instagram styles - using the redesigned version above */

/* Slow connection optimizations */
.slow-connection .modal {
    backdrop-filter: none;
}

.slow-connection .nav-btn {
    backdrop-filter: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.slow-connection .instagram-post:hover {
    transform: none;
}

/* Text Overlay System for Hero Section */
.absolute-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

/* Regular text positioning */
.text-overlay {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    max-width: 70%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    text-align: left;
    z-index: 15;
}

/* First text special positioning and animation */
.text-overlay.first-text {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
}

.text-overlay.first-text.text-visible {
    animation: fadeInThenMoveLeft 2s forwards 0s;
}

/* Simple text visibility without complex staggered animations */
.text-overlay.text-visible:not(.first-text) {
    opacity: 1;
}

.text-overlay .slide-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: var(--hero-title-size-desktop);
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: var(--hero-text-shadow);
    letter-spacing: var(--hero-letter-spacing);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-overlay.text-visible:not(.first-text) .slide-title {
    opacity: 1;
    transition-delay: 0.1s;
}

/* First text title is instantly visible */
.text-overlay.first-text.text-visible .slide-title {
    opacity: 1;
    transition: none;
}

.text-overlay p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: var(--hero-subtitle-size-desktop);
    line-height: 1.5;
    margin-top: 1rem;
    color: white;
    max-width: 600px;
    opacity: 0;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7), 1px 1px 3px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.5px;
    transition: opacity 0.5s ease-in-out;
}

.text-overlay.text-visible:not(.first-text) p {
    opacity: 1;
    transition-delay: 0.3s;
}

/* First text paragraph is instantly visible */
.text-overlay.first-text.text-visible p {
    opacity: 1;
    transform: translateY(0) translateZ(0);
    transition: none;
}

/* Mobile-specific styles */
@media screen and (max-width: 767px) {

    /* Position text higher on mobile - moved from 8% to 18% from bottom */
    .text-overlay {
        top: auto;
        bottom: 18%;
        left: 10%;
        transform: none;
        text-align: left;
        max-width: 85%;
        z-index: 15;
    }

    /* On mobile, first text starts in middle of screen but left-aligned */
    .text-overlay.first-text {
        bottom: auto;
        top: 50%;
        left: 10%;
        transform: translateY(-50%);
        text-align: left;
    }

    /* Animation from middle to bottom while staying left-aligned */
    @keyframes fadeInMoveDown {
        0% {
            opacity: 0;
            top: 50%;
            bottom: auto;
            transform: translateY(-50%);
        }

        20% {
            opacity: 1;
            top: 50%;
            bottom: auto;
            transform: translateY(-50%);
        }

        100% {
            opacity: 1;
            top: calc(100% - 18% - 5rem);
            bottom: auto;
            transform: translateY(0);
        }
    }

    .text-overlay.first-text.text-visible {
        animation: fadeInMoveDown 1.5s forwards ease-in-out;
    }

    /* Enhanced mobile typography */
    .text-overlay .slide-title {
        font-size: var(--hero-title-size-mobile);
        font-weight: 800;
        letter-spacing: var(--hero-letter-spacing);
        margin-bottom: 0.8rem;
        line-height: 1.2;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        text-shadow: var(--hero-text-shadow);
    }

    .text-overlay p {
        font-size: var(--hero-subtitle-size-mobile);
        font-weight: 500;
        line-height: 1.4;
        letter-spacing: 0.3px;
        margin-top: 0.5rem;
        max-width: 100%;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 1px 1px 3px rgba(0, 0, 0, 0.9);
    }
}

/* Enhanced tablet typography */
@media screen and (max-width: 1200px) and (min-width: 769px) {
    .text-overlay .slide-title {
        font-size: var(--hero-title-size-tablet);
        font-weight: 800;
        letter-spacing: 1.5px;
        line-height: 1.1;
    }

    .text-overlay p {
        font-size: var(--hero-subtitle-size-tablet);
        font-weight: 500;
        letter-spacing: 0.4px;
    }
}





