/* Font Face */
@font-face {
    font-family: 'VCR OSD Mono';
    src: url('../font/VCR_OSD_MONO_1.001.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

/* Prevent scrolling during preloader */
body.preloader-active {
    overflow: hidden;
    height: 100vh;
}

.preloader.hide {
    opacity: 0;
}

/* Music Toggle Button */
.music-toggle {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.music-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.music-toggle:focus {
    outline: none;
}

.music-toggle.muted {
    opacity: 0.6;
}

.music-toggle.muted:hover {
    opacity: 1;
}

/* Music Toggle in Navbar Position */
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-toggle-navbar {
    margin-left: 10px;
    pointer-events: auto;
    z-index: 10;
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
}

.preloader-emoji-container {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
}

.emoji-earth {
    animation: rotate 2s linear infinite;
}

.emoji-astronaut1 {
    animation: bounce 0.8s ease-in-out infinite;
    animation-delay: 0.2s;
}

.emoji-gun {
    animation: wiggle 0.6s ease-in-out infinite;
    animation-delay: 0.4s;
}

.emoji-astronaut2 {
    animation: bounce 0.8s ease-in-out infinite;
    animation-delay: 0.6s;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.preloader.hide {
    opacity: 0;
    pointer-events: none;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f8fafc;
    --accent-color: #06b6d4;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --transition: all 0.3s ease;
}

body {
    font-family: 'VCR OSD Mono', 'Courier New', monospace;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    height: auto;
    position: relative;
    pointer-events: none;
}

.nav-logo {
    position: absolute;
    top: 2rem;
    left: 4rem;
    cursor: pointer;
    pointer-events: auto;
    outline: none;
}

.nav-logo:focus {
    outline: none;
}

.logo {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.logo-text:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.4);
}

.logo-text-large {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
    cursor: pointer;
    transition: color 0.3s ease, opacity 0.3s ease;
    outline: none;
    position: relative;
}

.logo-text-large:focus {
    outline: none;
}

.logo-text-large::before {
    content: "🌍👨‍🚀🔫👨‍🚀";
    position: absolute;
    top: 0;
    left: 0;
    color: white;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    display: inline-block;
    width: max-content;
}

.logo-text-large:hover {
    color: transparent;
    text-shadow: none;
}

.logo-text-large:hover::before {
    opacity: 1;
}

.nav-menu {
    position: absolute;
    top: 2rem;
    right: 4rem;
    display: flex;
    list-style: none;
    gap: 2rem;
    pointer-events: auto;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    outline: none;
}

.nav-link:focus {
    outline: none !important;
}

.nav-item a:focus {
    outline: none !important;
}

a:focus {
    outline: none !important;
}

*:focus {
    outline: none !important;
}

.nav-link:hover {
    color: var(--white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* Removed ::after underline effect */

/* Nav-button styles removed - using nav-link instead */

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: auto;
}

/* Show nav-toggle only on mobile */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
}

.bar {
    width: 20px;
    height: 2px;
    background: var(--white);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}









/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    background-image: url('../img/back2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Galaxy particles */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 200px 100px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 250px 60px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 300px 20px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 350px 90px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 400px 50px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 450px 120px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 500px 30px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 550px 80px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 600px 110px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 650px 40px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 700px 70px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 750px 100px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 800px 20px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 850px 90px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 900px 50px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 50px 150px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 100px 10px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 180px 120px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 220px 80px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 280px 140px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 320px 90px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 380px 160px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 420px 25px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 480px 180px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 520px 45px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 580px 130px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 620px 170px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 680px 35px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 720px 145px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 780px 65px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 820px 185px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 880px 105px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 920px 15px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 960px 125px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 70px 190px, rgba(255, 255, 255, 0.7), transparent);
    background-repeat: repeat;
    background-size: 1000px 200px;
    animation: starfield 15s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes starfield {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-200px); }
}

/* Background overlay removed - pure image background */

/* BG Section - Second image */
.bg-section {
    background-image: url('../img/bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    position: relative;
}

/* Mobile and tablet background for bg-section and video-section */
@media (max-width: 1024px) {
    .bg-section {
        background-image: url('../img/bg2.webp');
    }
    
    .video-section {
        background-image: url('../img/bg2.webp');
    }
    
    /* Move always.png higher on tablets */
    .hero-content {
        top: 15%;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

.bg-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem 2rem 2rem;
}

.bg-section .video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    z-index: 3;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 3rem 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    min-height: 70vh;
}

.video-title {
    font-family: 'VCR OSD Mono', monospace;
    font-size: 2rem;
    color: var(--white);
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: normal;
}

.bg-section .video-container .video-embed {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: var(--border-radius-lg);
    pointer-events: auto;
    z-index: 5;
}



/* Address moved to hero section */

.address-box {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.address-text {
    font-family: 'VCR OSD Mono', monospace;
    font-size: 1rem;
    color: var(--white);
    word-break: break-all;
}

.copy-button {
    background: transparent;
    color: var(--white);
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    position: relative;
    z-index: 15;
    pointer-events: auto;
}

.copy-button:focus {
    outline: none;
}



.copy-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.copy-button i {
    font-size: 0.875rem;
}

.separator {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'VCR OSD Mono', monospace;
    font-size: 1rem;
}

/* Sticky bottom section */
.sticky-bottom {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sticky-bottom-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

.dex-links {
    display: flex;
    gap: 1rem;
    pointer-events: auto;
}

.dex-link {
    color: var(--white);
    font-family: 'VCR OSD Mono', monospace;
    font-size: 1rem;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    cursor: pointer;
    outline: none;
}

.dex-link:hover {
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.dex-link:focus {
    outline: none;
}

.sticky-bottom .address-box {
    pointer-events: auto;
}

.address-box-button {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.address-box-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.address-box-button:focus {
    outline: none;
}

.copy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.copy-icon i {
    font-size: 0.875rem;
    color: var(--white);
}

/* Notification System */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    font-family: 'VCR OSD Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    z-index: 9999;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: rgba(16, 185, 129, 0.3);
}

.notification-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Meme Generator Page */
.meme-generator-page {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    background-image: url('../img/back2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Dodatkowe właściwości dla lepszego backgroundu */
    background-attachment: scroll;
    width: 100%;
    overflow-x: hidden;
}

.meme-generator-page .container {
    text-align: center;
}

.meme-generator-page h1 {
    color: var(--white);
    font-family: 'VCR OSD Mono', monospace;
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.meme-generator-page p {
    color: var(--white);
    font-family: 'VCR OSD Mono', monospace;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Meme Generator Layout */
.meme-generator-container {
    display: flex;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
    gap: 3rem;
    min-height: 600px;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.meme-controls {
    flex: 0 0 240px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    order: 2;
    max-width: 240px;
    min-width: 240px;
    width: 240px;
    overflow-y: auto;
    max-height: 80vh;
}

.canvas-title {
    color: var(--white);
    font-family: 'VCR OSD Mono', monospace;
    font-size: 1rem !important;
    margin: -0.5rem 0 0.5rem 0 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: left;
    opacity: 0.9 !important;
    line-height: 1.2 !important;
}

/* Desktop adjustments */
@media (min-width: 769px) {
    .canvas-title {
        margin: -0.2rem 0 1.5rem 0 !important;
    }
    
    .canvas-controls {
        margin-bottom: 1rem !important;
        margin-top: 0.5rem !important;
    }
    
    .meme-preview {
        padding-top: 1rem !important;
    }
    
    /* Increase panel size by 10% on PC */
    .meme-generator-container {
        max-width: 1540px !important;
    }
    
    /* Increase canvas size on PC */
    .meme-canvas {
        max-width: 600px !important;
    }
    
    /* Increase right panel size on PC */
    .meme-controls {
        flex: 0 0 280px !important;
        max-width: 280px !important;
        min-width: 280px !important;
        width: 280px !important;
    }
}

.text-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.text-inputs label {
    color: var(--white);
    font-family: 'VCR OSD Mono', monospace;
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
    display: block;
}

.meme-input {
    width: 100%;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--white);
    font-family: 'VCR OSD Mono', monospace;
    font-size: 0.8rem;
    outline: none;
    transition: var(--transition);
}

.meme-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.meme-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Select dropdown styling */
select.meme-input {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
}

select.meme-input option {
    background: #2a2a2a;
    color: white;
    padding: 0.5rem;
    border: none;
}

select.meme-input option:hover {
    background: #3a3a3a;
}

/* Firefox specific */
@-moz-document url-prefix() {
    select.meme-input option {
        background: #2a2a2a !important;
        color: white !important;
    }
}

/* Chrome/Safari specific */
select.meme-input:focus option {
    background: #2a2a2a;
    color: white;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

/* Font size slider */
.meme-slider {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    opacity: 0.8;
    transition: opacity 0.3s;
    margin-bottom: 0.5rem;
}

.meme-slider:hover {
    opacity: 1;
}

.meme-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
}

.meme-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
}

.size-display {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'VCR OSD Mono', monospace;
    font-size: 0.8rem;
    text-align: center;
    display: block;
    margin-bottom: 0.5rem;
}

/* Color picker */
.color-picker {
    width: 100%;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: transparent;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: calc(var(--border-radius) - 1px);
}

.color-picker::-moz-color-swatch {
    border: none;
    border-radius: calc(var(--border-radius) - 1px);
}

/* Draw controls */
.draw-controls {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 1rem 0;
}

.draw-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
}

.draw-btn.active {
    background: var(--primary-color);
    color: white;
}

/* File input */
.file-input {
    width: 100%;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--white);
    font-family: 'VCR OSD Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.file-input::-webkit-file-upload-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.7rem;
    margin-right: 0.5rem;
}

.file-input::-webkit-file-upload-button:hover {
    background: var(--primary-dark);
}

/* Image controls */
.image-controls {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* Canvas controls above canvas */
.canvas-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
    align-items: center;
}

.draw-controls-compact {
    display: flex;
    gap: 0.3rem;
}

.color-controls-compact {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Compact buttons */
.btn-compact {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-compact:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.btn-compact.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Compact color picker */
.color-picker-compact {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.color-picker-compact::-webkit-color-swatch {
    border: none;
    border-radius: calc(var(--border-radius) - 2px);
}

.color-picker-compact::-moz-color-swatch {
    border: none;
    border-radius: calc(var(--border-radius) - 2px);
}

/* Compact slider */
.slider-compact {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.slider-compact:hover {
    opacity: 1;
}

.slider-compact::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid white;
}

.slider-compact::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid white;
}

/* ============================================ */
/* RESPONSIVE DESIGN - MEME GENERATOR */
/* ============================================ */

/* Tablet Portrait */
@media (max-width: 1024px) {
    .meme-generator-container {
        margin: 1rem auto;
        padding: 1.5rem;
        gap: 2rem;
        min-height: auto;
    }
    
    .meme-controls {
        flex: 0 0 220px;
        max-width: 220px;
        min-width: 220px;
        width: 220px;
        padding: 0.8rem;
    }
    
    .canvas-title {
        font-size: 0.9rem !important;
        margin: -0.3rem 0 0.2rem 0 !important;
    }
    
    .canvas-controls {
        gap: 0.8rem;
        margin-bottom: 0.1rem;
    }
}

/* Show nav-toggle and hide sticky-bottom - ONLY for meme generator page */
/* Hide burger menu on desktop */
.meme-generator-page-body .burger-menu {
    display: none;
}

@media (max-width: 768px) {
    /* Hide sticky-bottom (X, Dex, Buy, CA) on mobile - ONLY for meme generator page */
    .meme-generator-page-body .sticky-bottom {
        display: none !important;
    }
    
    /* Show burger menu on mobile */
    .meme-generator-page-body .burger-menu {
        display: flex !important;
    }
    
    /* Burger menu styles for meme generator - ONLY on mobile */
    .meme-generator-page-body .burger-menu {
        position: fixed;
        right: -100%;
        top: 0;
        width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        border-left: 2px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
    }

    .meme-generator-page-body .burger-menu.active {
        right: 0;
    }

    .meme-generator-page-body .burger-menu-content {
        padding: 5rem 2rem 2rem 2rem;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .meme-generator-page-body .burger-nav-links {
        margin-bottom: 2rem;
    }

    .meme-generator-page-body .burger-nav-link,
    .meme-generator-page-body .burger-dex-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 0;
        color: var(--white);
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
        transition: var(--transition);
    }

    .meme-generator-page-body .burger-nav-link:hover,
    .meme-generator-page-body .burger-dex-link:hover {
        color: var(--primary-color);
        text-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
    }

    .meme-generator-page-body .burger-nav-link i,
    .meme-generator-page-body .burger-dex-link i {
        font-size: 1rem;
        opacity: 0.8;
    }

    .meme-generator-page-body .burger-dex-links {
        margin-bottom: 2rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .meme-generator-page-body .burger-address-section {
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .meme-generator-page-body .burger-address-label {
        display: block;
        color: var(--gray-400);
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .meme-generator-page-body .burger-address-container {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        padding: 0.5rem;
        border-radius: 5px;
    }

    .meme-generator-page-body .burger-address {
        font-family: 'Courier New', monospace;
        font-size: 0.7rem;
        color: var(--white);
        flex: 1;
        word-break: break-all;
    }

    .meme-generator-page-body .burger-copy-btn {
        background: none;
        border: none;
        color: var(--white);
        cursor: pointer;
        padding: 0.25rem;
        border-radius: 3px;
        transition: var(--transition);
    }

    .meme-generator-page-body .burger-copy-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--primary-color);
    }


}

/* Mobile Landscape & Small Tablets */
@media (max-width: 768px) {
    .meme-generator-page-body .meme-generator-page {
        background-size: 100% 100%; /* Dodatkowe wymuszenie dla tabletów */
        width: 100vw;
        min-height: 100vh;
        overflow-x: hidden;
    }
    
    .meme-generator-container {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        margin: 0.2rem;
        padding: 0rem 0.8rem 0.8rem 0.8rem;
        gap: 0rem;
        min-height: calc(100vh - 0.4rem);
    }
    
    .meme-preview {
        order: 1;
        width: 100%;
        max-width: 400px;
        padding: 0;
        transform: scale(1.0);
        transform-origin: center center;
        margin: 10rem auto 0 auto;
        margin-bottom: 0;
        min-height: auto !important;
    }
    
    .meme-controls {
        margin-top: -10px;
        padding-top: 0;
    }
    
    .meme-canvas {
        max-width: 360px;
    }
    
    .meme-controls {
        order: 2;
        flex: none;
        width: 100%;
        max-width: 400px;
        min-width: auto;
        padding: 0.8rem;
    }
    
    .canvas-title {
        display: none !important;
    }
    
    .canvas-controls {
        display: none !important;
    }
    
    .btn-compact {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .color-picker-compact {
        width: 28px;
        height: 28px;
    }
    
    .slider-compact {
        width: 70px;
    }
    
    .text-inputs {
        gap: 0.6rem;
    }
    
    .text-inputs label {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }
    
    /* Hide image upload on tablets */
    label[for="image-upload"],
    .file-input {
        display: none !important;
    }
    
    .meme-input {
        padding: 0.4rem;
        font-size: 0.8rem;
}

.btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.65rem;
        gap: 0.2rem;
    }
    
    .button-group {
        gap: 0.5rem;
        margin-top: 0.8rem;
    }
    
    .meme-slider {
        height: 4px;
    }
    
    .size-display {
        font-size: 0.7rem;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .meme-generator-page-body .meme-generator-page {
        background-size: 100% 100%; /* Wymuszenie pełnego pokrycia */
        background-attachment: scroll; /* Lepsze dla bardzo małych ekranów */
        width: 100vw;
        min-height: 100vh;
        overflow-x: hidden; /* Zapobiegaj horizontal scroll */
    }
    
    .meme-generator-container {
        margin: 0.1rem;
        padding: 0rem 0.6rem 0.6rem 0.6rem;
        gap: 0rem;
        border-radius: var(--border-radius);
        justify-content: flex-start;
        min-height: calc(100vh - 0.2rem);
    }
    
    .meme-preview {
        max-width: 100%;
        transform: scale(1.0);
        transform-origin: center center;
        margin: 8rem auto 0 auto;
        margin-bottom: 0;
        min-height: auto !important;
    }
    
    .meme-controls {
        margin-top: -10px;
        padding-top: 0;
    }
    
    .meme-canvas {
        max-width: 288px;
    }
    
    .meme-controls {
        max-width: 100%;
        padding: 0.6rem;
    }
    
    .canvas-title {
        display: none !important;
    }
    
    .canvas-controls {
        display: none !important;
    }
    
    .btn-compact {
        width: 26px;
        height: 26px;
        font-size: 0.6rem;
    }
    
    .color-picker-compact {
        width: 26px;
        height: 26px;
    }
    
    .slider-compact {
        width: 60px;
    }
    
    .text-inputs {
        gap: 0.5rem;
    }
    
    .text-inputs label {
        font-size: 0.65rem;
        margin-bottom: 0.2rem;
    }
    
    /* Hide image upload on phones */
    label[for="image-upload"],
    .file-input {
        display: none !important;
    }
    
    .meme-input {
        padding: 0.4rem;
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.6rem;
        gap: 0.2rem;
    }
    
    .button-group {
        flex-direction: column;
        gap: 0.4rem;
        margin-top: 0.6rem;
    }
    
    .meme-slider {
        height: 3px;
    }
    
    .size-display {
        font-size: 0.65rem;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .meme-generator-page-body .meme-generator-page {
        background-size: 100% 100%; /* Maksymalne wypełnienie na małych ekranach */
        background-attachment: scroll;
        width: 100vw;
        min-height: 100vh;
        overflow-x: hidden;
        background-position: center center;
    }
    
    .meme-generator-container {
        margin: 0.05rem;
        padding: 0rem 0.4rem 0.4rem 0.4rem;
        gap: 0rem;
        justify-content: flex-start;
        min-height: calc(100vh - 0.1rem);
    }
    
    .meme-preview {
        transform: scale(1.0);
        transform-origin: center center;
        margin: 7.5rem auto 0 auto;
        margin-bottom: 0;
        min-height: auto !important;
    }
    
    .meme-controls {
        margin-top: -5px;
        padding-top: 0;
    }
    
    .meme-canvas {
        max-width: 252px;
    }
    
    .canvas-controls {
        display: none !important;
    }
    
    .draw-controls-compact {
        gap: 0.3rem;
    }
    
    .color-controls-compact {
        gap: 0.3rem;
    }
    
    .canvas-title {
        display: none !important;
    }
    
    .btn-compact {
        width: 24px;
        height: 24px;
        font-size: 0.5rem;
    }
    
    .color-picker-compact {
        width: 24px;
        height: 24px;
    }
    
    .slider-compact {
        width: 50px;
    }
    
    .meme-controls {
        padding: 0.4rem;
    }
    
    .text-inputs label {
        font-size: 0.6rem;
    }
    
    /* Hide image upload on small phones */
    label[for="image-upload"],
    .file-input {
        display: none !important;
    }
    
    .meme-input {
        padding: 0.3rem;
        font-size: 0.7rem;
    }
    
    .btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.55rem;
    }
}



.btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'VCR OSD Mono', monospace;
    font-size: 0.65rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    outline: none;
}

.btn:focus {
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.meme-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: auto;
    order: 1;
    padding: 0 0;
}

.meme-canvas {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--border-radius-lg);
    background: var(--white);
    cursor: default;
}

/* Responsive */
@media (max-width: 1024px) {
    .meme-generator-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .meme-preview {
        min-height: auto !important;
    }
    
    .meme-controls {
        flex: none;
        width: 100%;
        max-width: 500px;
    }
    
    .button-group {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .meme-generator-container {
        padding: 1rem;
    }
    
    .meme-controls {
        padding: 1.5rem;
    }
    
    .button-group {
        flex-direction: column;
    }
}

/* Video Section */
.video-section {
    background-image: url('../img/bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 0;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    z-index: 3;
}

.video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius-lg);
    pointer-events: auto;
    z-index: 5;
}

/* Hero Content */
.hero-content {
    position: absolute;
    top: 6%;
    left: 50%;
    transform: translate(-50%, 0);
    text-align: center;
    z-index: 2;
    width: 95%;
    max-width: 1000px;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text-container {
    width: 100%;
    max-width: 500px;
}

.hero-title {
    font-family: 'VCR OSD Mono', monospace;
    font-size: 1.5rem;
    color: var(--white);
    font-weight: normal;
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8),
                 0 0 10px rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.hero-image {
    max-width: 600px;
    max-height: 360px;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: auto;
    z-index: 3;
    position: relative;
    display: block;
    margin: 0 auto;
}

.hero-text {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.always-img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 10px;
    transition: var(--transition);
}

.always-img:hover {
    transform: scale(1.02);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--gray-50);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img {
    max-width: 100%;
    height: auto;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-form {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-description {
    color: var(--gray-400);
    line-height: 1.6;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    color: var(--gray-400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 1rem;
    text-align: center;
    color: var(--gray-400);
}

/* Background Images - Desktop uses one scalable image, mobile gets optimized version */
@media (min-width: 769px) {
    .hero {
        background-image: url('../img/back2.webp'); /* Main desktop image - will be scaled automatically */
    }
    
    .meme-generator-page {
        background-image: url('../img/back2.webp'); /* Main desktop image - will be scaled automatically */
    }
}

@media (max-width: 768px) {
    .hero {
        background-image: url('../img/back3.webp'); /* Mobile optimized image */
    }
    
    .meme-generator-page {
        background-image: url('../img/back3.webp'); /* Mobile optimized image */
        background-size: 100% 100%; /* Maksymalne rozciągnięcie na mobile */
        background-attachment: fixed; /* Tło przypisane do viewport */
        background-position: center center;
        min-height: 100vh; /* Minimum full height */
        width: 100vw; /* Full width */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        width: 250px;
        height: 100vh;
        text-align: left;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        padding: 5rem 2rem 2rem 2rem;
        border-left: 2px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-item {
        margin-bottom: 1.5rem;
    }

    .nav-menu .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }



    /* Mobile menu backdrop */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .hero-text {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        white-space: normal;
        overflow: visible;
    }

    .always-img {
        max-width: 100%;
        width: 100%;
    }

    .video-section {
        padding: 2rem 0;
    }

    .video-container {
        max-width: 100%;
        margin: 0 1rem;
        padding: 2rem 1rem 3rem 1rem;
        min-height: auto;
    }

    .bg-section .video-container .video-embed {
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: 200px;
    }

    .video-embed {
        position: relative;
        height: auto;
        aspect-ratio: 16 / 9;
        min-height: 200px;
    }

    /* Address section removed - moved to hero */

    .address-box {
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        max-width: 90vw;
        flex-wrap: nowrap;
        border-radius: 8px;
    }

    .address-text {
        font-size: 0.75rem;
        word-break: break-all;
        line-height: 1.2;
        text-align: center;
    }

    .separator {
        font-size: 0.75rem;
    }

    .copy-icon {
        font-size: 0.75rem;
    }

    .sticky-bottom-row {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .dex-links {
        position: relative;
    }

    .music-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        position: absolute;
        top: 50%;
        right: -45px;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .hero-title {
        font-size: 1rem;
        white-space: normal;
        line-height: 1.3;
        max-width: 90vw;
    }

    .hero-text-container {
        max-width: 90vw;
    }

    .hero-image {
        max-width: 90vw;
        max-height: 250px;
    }

    .hero-content {
        top: 20%;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }
    
    /* Move always.png on small phones */
    .hero-content {
        top: 15%;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .features,
    .about,
    .contact {
        padding: 60px 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.about-text,
.contact-info {
    animation: fadeInUp 0.8s ease-out;
}

/* Hover Effects */
.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.contact-item:hover i {
    transform: scale(1.1);
}

/* Focus States */
.btn:focus,
.nav-link:focus,
.social-links a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Meme Generator Styles */
.meme-generator {
    padding: 80px 0;
    background: var(--gray-50);
}

.meme-generator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.upload-section {
    grid-column: 1 / -1;
}

.upload-area {
    border: 3px dashed var(--gray-300);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: var(--gray-50);
}

.upload-placeholder {
    color: var(--text-secondary);
}

.upload-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-placeholder h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.image-preview {
    max-width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.image-preview img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.controls-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    height: fit-content;
}

.text-controls h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.text-controls .form-group {
    margin-bottom: 1.5rem;
}

.text-controls label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.text-controls input[type="text"],
.text-controls input[type="color"],
.text-controls select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.text-controls input[type="text"]:focus,
.text-controls select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1);
}

.text-controls input[type="range"] {
    width: 100%;
    margin-top: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    min-width: 120px;
}

.canvas-section {
    grid-column: 1 / -1;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.canvas-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    padding: 1rem;
}



/* Success Message */
.success-message {
    background: #10b981;
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Newsletter */
.newsletter {
    margin-top: 2rem;
}

.newsletter h5 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.newsletter p {
    color: var(--gray-400);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--gray-700);
    border-radius: var(--border-radius);
    background: var(--gray-800);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: var(--gray-400);
}

.newsletter-form .btn {
    padding: 0.5rem;
    min-width: auto;
}

/* Footer Bottom Links */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* Active Navigation Link */
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive Meme Generator */
@media (max-width: 768px) {
    .meme-generator-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .controls-section {
        padding: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
} 