/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-ai: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

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

/* ============================================
   Language Switcher
   ============================================ */
.language-switcher {
    position: fixed;
    top: 12px;
    right: 20px;
    z-index: 1001;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    align-items: center;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-width: 44px;
    min-height: 44px;
    position: relative;
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
}

.lang-btn:hover {
    background: var(--bg-secondary);
}

.lang-btn.active {
    background: var(--gradient-ai);
    color: white;
}

.lang-btn .flag {
    font-size: 18px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 999;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav-brand:hover {
    opacity: 0.8;
}

.brand-name {
    color: var(--text-primary);
}

.brand-accent {
    background: var(--gradient-ai);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    display: block;
    padding: 0.5rem 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-ai);
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 50%, #f093fb15 100%);
}

.ai-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: aiFloat 20s ease-in-out infinite;
}

@keyframes aiFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

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

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-ai);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    width: 100%;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--gradient-ai);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-ai);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: 80px 0;
    box-sizing: border-box;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* ============================================
   About Section
   ============================================ */
.about {
    background: var(--bg-secondary);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2rem;
}

.feature-text {
    font-weight: 500;
    color: var(--text-primary);
}

/* ============================================
   Services Section
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Portfolio Section
   ============================================ */
.portfolio {
    background: var(--bg-secondary);
}

.portfolio-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.portfolio-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.portfolio-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-ai);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.portfolio-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.portfolio-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.portfolio-features {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.feature-tag {
    padding: 6px 14px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.portfolio-downloads {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-block;
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.download-btn:hover {
    transform: scale(1.05);
}

.download-btn:active {
    transform: scale(0.98);
}

.badge-img {
    height: 50px;
    width: auto;
}

.portfolio-visual {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.app-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    align-items: center;
    justify-items: center;
}

.screenshot-placeholder,
.screenshot-img {
    width: 100%;
    max-width: 200px;
    height: 360px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    object-fit: contain;
    background: #f9fafb;
    padding: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.gallery-img {
    cursor: pointer;
}

.screenshot-placeholder {
    background: var(--gradient-ai);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    text-align: center;
    padding: 1rem;
}

.qr-codes {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.qr-item {
    text-align: center;
}

.qr-placeholder,
.qr-img {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius);
    margin: 0 auto 0.5rem;
    box-shadow: var(--shadow-md);
    object-fit: contain;
}

.qr-placeholder {
    background: white;
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.qr-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}


/* ============================================
   Contact Section
   ============================================ */
.contact {
    background: var(--bg-secondary);
}

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

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.contact-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-action {
    text-align: center;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-brand .brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
}

.footer-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 998;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-brand {
        font-size: 1.25rem;
    }

    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 4vw, 2rem);
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: 100vh;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.1rem);
        margin-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: row;
        gap: 0.75rem;
        justify-content: center;
        align-items: center;
        margin-bottom: 3rem;
        flex-wrap: wrap;
    }

    .btn {
        flex: 0 1 auto;
        min-width: 200px;
        max-width: 300px;
    }

    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .feature-item {
        padding: 1.25rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-title {
        font-size: 1.25rem;
    }

    .portfolio-item {
        padding: 2rem;
    }

    .portfolio-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-title {
        font-size: clamp(1.75rem, 4vw, 2rem);
    }

    .portfolio-description {
        font-size: 1rem;
    }


    .app-screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .screenshot-placeholder,
    .screenshot-img {
        width: 200px;
        height: 400px;
        object-fit: contain;
    }

    .qr-codes {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        font-size: 2rem;
    }

    .language-switcher {
        top: 8px;
        right: 10px;
        padding: 4px;
        z-index: 1001;
        pointer-events: auto;
    }

    .lang-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-width: 48px;
        min-height: 48px;
    }

    .lang-btn .lang-text {
        display: none;
    }

    .footer {
        padding: 2rem 0;
    }

    .footer-brand .brand-name {
        font-size: 1.25rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .nav-brand {
        font-size: 1.1rem;
    }

    section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .hero {
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2.5rem;
        align-items: center;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 100%;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-direction: column;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-item {
        padding: 1rem;
        flex-direction: row;
    }

    .feature-icon {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .service-card {
        padding: 1.75rem 1.25rem;
    }

    .service-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .service-title {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

    .portfolio-item {
        padding: 1.5rem;
    }

    .portfolio-content {
        gap: 1.5rem;
    }

    .portfolio-title {
        font-size: 1.5rem;
    }

    .portfolio-description {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .portfolio-features {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .feature-tag {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    .portfolio-downloads {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .badge-img {
        height: 45px;
    }

    .app-screenshots-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .screenshot-placeholder,
    .screenshot-img {
        max-width: 160px;
        height: 280px;
        object-fit: contain;
    }

    .qr-codes {
        flex-direction: column;
        gap: 1.5rem;
    }

    .qr-placeholder,
    .qr-img {
        width: 100px;
        height: 100px;
    }

    .qr-label {
        font-size: 0.85rem;
    }

    .contact-item {
        padding: 1.25rem;
    }

    .contact-details h3 {
        font-size: 1.1rem;
    }

    .contact-details p {
        font-size: 0.9rem;
    }

    .language-switcher {
        top: 6px;
        right: 8px;
        padding: 3px;
        z-index: 1001;
        pointer-events: auto;
    }

    .lang-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
        min-width: 48px;
        min-height: 48px;
    }

    .footer {
        padding: 1.5rem 0;
    }

    .footer-brand .brand-name {
        font-size: 1.1rem;
    }

    .footer-tagline {
        font-size: 0.85rem;
    }

    .footer-info {
        font-size: 0.8rem;
    }
}

/* Small mobile (360px and below) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .portfolio-title {
        font-size: 1.25rem;
    }

    .screenshot-placeholder,
    .screenshot-img {
        width: 120px;
        height: 240px;
    }
}

/* Large screens (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
}

/* ============================================
   Gallery Lightbox Modal
   ============================================ */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
    overflow: hidden;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#gallery-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin: 0;
    display: block;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 3rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
    line-height: 1;
    padding: 0;
}

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

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 4rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
    line-height: 1;
    padding: 0;
    user-select: none;
}

.gallery-prev {
    left: 30px;
}

.gallery-next {
    right: 30px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    z-index: 10001;
}

/* Gallery responsive */
@media (max-width: 768px) {
    .gallery-close {
        top: 10px;
        right: 15px;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }

    .gallery-prev,
    .gallery-next {
        font-size: 3rem;
        width: 50px;
        height: 50px;
    }

    .gallery-prev {
        left: 15px;
    }

    .gallery-next {
        right: 15px;
    }

    .gallery-counter {
        bottom: 10px;
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .gallery-content {
        max-width: 95vw;
        max-height: 90vh;
    }

    #gallery-image {
        max-width: 95vw;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .gallery-content {
        max-width: 98vw;
        max-height: 85vh;
    }

    #gallery-image {
        max-width: 98vw;
        max-height: 85vh;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll behavior */
html {
    scroll-padding-top: 80px;
}

body {
    scroll-padding-top: 80px;
}


