/* ============================================
   GIANMIDE ULTIMATE EDITION - CSS
   Un design spettacolare con animazioni pazzesche
   ============================================ */

/* ============================================
   CSS VARIABLES - LIGHT & DARK THEME
   ============================================ */
:root[data-theme="light"] {
    --primary: #ff6b6b;
    --secondary: #4ecdc4;
    --accent: #00b3ff;
    --success: #51cf66;
    --warning: #ffd43b;
    --danger: #ff6b6b;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    
    --text-primary: #1a1a2e;
    --text-secondary: #495057;
    --text-tertiary: #868e96;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-sunset: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    
    --particle-color: rgba(0, 0, 0, 0.05);
}

:root[data-theme="dark"] {
    --primary: #ff8787;
    --secondary: #63e6e2;
    --accent: #4dd4ff;
    --success: #69db7c;
    --warning: #ffd859;
    --danger: #ff8787;
    
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-tertiary: #a0a0a0;
    
    --glass-bg: rgba(26, 26, 46, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-sunset: linear-gradient(135deg, #ff8787 0%, #ffd859 100%);
    
    --particle-color: rgba(255, 255, 255, 0.05);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

::selection {
    background: var(--primary);
    color: white;
}

/* Cursore personalizzato rimosso per performance */

/* ============================================
   PARTICLES BACKGROUND
   ============================================ */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--particle-color);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 12px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--glass-border);
}

.navbar.scroll-down {
    transform: translateY(-100%);
}

.navbar.scroll-up {
    transform: translateY(0);
}

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

.nav-logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.logo-emoji {
    font-size: 32px;
    display: inline-block;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(10deg); }
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent);
}

.theme-toggle {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 18px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 10000;
}

.hamburger div {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-secondary);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px); /* Ridotto da 80px per performance */
    opacity: 0.4; /* Ridotto per essere meno pesante */
    will-change: transform;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -150px;
    left: -150px;
    animation: orbFloat1 25s ease-in-out infinite;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    bottom: -100px;
    right: -100px;
    animation: orbFloat2 30s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 35s ease-in-out infinite;
}

/* Animazioni semplificate e più lente per performance */
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 30px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(calc(-50% + 20px), calc(-50% - 20px)); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Badge glow rimosso per performance */

/* Profile Picture */
.profile-container {
    position: relative;
    display: inline-block;
    margin-bottom: 32px;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--bg-primary);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-pic:hover {
    transform: scale(1.05) rotate(5deg);
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.8), rgba(255, 206, 87, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-pic:hover .profile-overlay {
    opacity: 1;
}

/* Anelli rotanti rimossi per performance - solo hover effect sul profilo */

.floating-emoji {
    position: absolute;
    font-size: 32px;
    animation: emojiFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.emoji-1 {
    top: -20px;
    left: -40px;
}

.emoji-2 {
    top: -30px;
    right: -40px;
    animation-delay: 1s;
}

.emoji-3 {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

@keyframes emojiFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Hero Title - Glitch semplificato */
.glitch {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 900;
    color: var(--text-primary);
    margin: 24px 0;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
    text-shadow: 
        2px 2px 0 rgba(255, 0, 255, 0.3),
        -2px -2px 0 rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.glitch:hover {
    text-shadow: 
        3px 3px 0 rgba(255, 0, 255, 0.5),
        -3px -3px 0 rgba(0, 255, 255, 0.5);
    transform: scale(1.02);
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-weight: 300;
}

.typing-text {
    display: inline-block;
}

.cursor-blink {
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: var(--primary);
    font-weight: bold;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.stat-card:hover::before {
    animation: cardShine 1s ease;
}

@keyframes cardShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-sunset);
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.6);
}

/* Button glow semplificato per performance */
.btn-glow {
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.mouse {
    width: 28px;
    height: 44px;
    border: 3px solid var(--text-primary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelScroll 2s ease-in-out infinite;
}

@keyframes wheelScroll {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

.arrow {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.arrow span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--text-primary);
    transform: rotate(45deg);
}

.arrow span:nth-child(2) {
    transform: rotate(-45deg);
    margin-left: 8px;
}

/* ============================================
   GLASSMORPHISM UTILITY CLASS (Ottimizzato)
   ============================================ */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px); /* Ridotto da 20px per performance */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   QUOTE SECTION
   ============================================ */
.quote-section {
    padding: 80px 0;
    position: relative;
}

.quote-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px;
    border-radius: 24px;
    position: relative;
    transition: all 0.3s ease;
}

.quote-card:hover {
    transform: translateY(-8px);
}

.quote-icon-left,
.quote-icon-right {
    position: absolute;
    font-size: 80px;
    color: var(--primary);
    opacity: 0.1;
}

.quote-icon-left {
    top: 20px;
    left: 20px;
}

.quote-icon-right {
    bottom: 20px;
    right: 20px;
}

.quote-text {
    font-size: clamp(20px, 4vw, 32px);
    font-weight: 600;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 32px;
    line-height: 1.5;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 4px;
}

.author-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   SEARCH SECTION
   ============================================ */
.search-section {
    padding: 40px 0 60px;
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 16px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.search-icon-wrapper {
    font-size: 20px;
    color: var(--text-secondary);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-clear {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-clear:hover {
    transform: scale(1.1);
    background: var(--danger);
}

.search-results {
    margin-top: 24px;
}

.search-result {
    max-width: 700px;
    margin: 0 auto;
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    animation: fadeInUp 0.5s ease;
}

.search-result i {
    font-size: 20px;
    color: var(--primary);
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
    padding: 80px 0;
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

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

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Warning Banner */
.warning-banner {
    max-width: 800px;
    margin: 0 auto 48px;
    padding: 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid var(--warning);
}

.warning-icon {
    font-size: 32px;
    color: var(--warning);
}

.warning-banner p {
    margin: 0;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
}

/* Gaffe Grid */
.gaffe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.gaffe-card {
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

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

.gaffe-header {
    padding: 24px 24px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.gaffe-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.gaffe-badge i {
    color: var(--primary);
}

.gaffe-rating {
    position: relative;
}

.rating-circle {
    position: relative;
    width: 70px;
    height: 70px;
}

.rating-svg {
    width: 70px;
    height: 70px;
    transform: rotate(-90deg);
}

.rating-svg circle {
    fill: none;
    stroke-width: 4;
}

.rating-svg circle:first-child {
    stroke: var(--bg-secondary);
}

.rating-svg circle.rating-progress {
    stroke: var(--primary);
    stroke-linecap: round;
    stroke-dasharray: 188.4;
    stroke-dashoffset: calc(188.4 - (188.4 * var(--rating)) / 100);
    transition: stroke-dashoffset 1s ease-out;
}

.rating-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
}

.gaffe-content {
    padding: 0 24px 24px;
}

.gaffe-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.3;
}

.title-icon {
    font-size: 28px;
}

.gaffe-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.gaffe-image-container {
    position: relative;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.gaffe-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gaffe-image-container:hover .gaffe-image {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gaffe-image-container:hover .image-overlay {
    opacity: 1;
}

.zoom-btn {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    transform: scale(1.2);
}

.gaffe-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.gaffe-comment {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.gaffe-comment i {
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.gaffe-comment p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
}

.gaffe-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

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

.action-btn.liked {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Like button states */
.like-btn {
    position: relative;
    overflow: hidden;
}

.like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.like-btn.liked {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    animation: heartPulse 0.6s ease;
}

.like-btn.liked i {
    color: #ff1744;
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.5);
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.like-btn .like-count {
    font-weight: 600;
    transition: all 0.3s ease;
}

.like-btn:hover .like-count {
    transform: scale(1.1);
}

/* ============================================
   SUBMIT FORM SECTION
   ============================================ */
.submit-section {
    padding: 80px 0 120px;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 48px;
    border-radius: 24px;
}

.gaffe-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.char-counter {
    text-align: right;
    font-size: 13px;
    color: var(--text-tertiary);
}

.rating-input-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.form-range {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-secondary);
    outline: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-sunset);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.form-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-sunset);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.rating-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    min-width: 40px;
    text-align: center;
    transition: transform 0.2s ease;
}

.btn-submit {
    width: 100%;
    margin-top: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-tertiary);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo h3 {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.footer-logo h3 span {
    color: var(--primary);
}

.footer-logo p {
    color: var(--text-secondary);
}

.footer-links h4,
.footer-social h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(8px);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-warning i {
    color: var(--warning);
}

.footer-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-waves svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    fill: var(--bg-secondary);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-sunset);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 9998;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   IMAGE MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 32px;
    right: 32px;
    font-size: 48px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
    color: var(--primary);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    bottom: 32px;
}

.toast i {
    color: var(--success);
    font-size: 20px;
}

.toast span {
    color: var(--text-primary);
    font-weight: 600;
}

/* Toast types */
.toast.success i {
    color: var(--success);
}

.toast.error i {
    color: var(--danger);
}

.toast.info i {
    color: var(--primary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: calc(100vh - 80px);
        background: var(--bg-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 48px 32px;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
        gap: 24px;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }

    .gaffe-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }

    .profile-ring {
        width: 190px;
        height: 190px;
    }

    .profile-ring-2 {
        width: 230px;
        height: 230px;
    }

    .stats-container {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .quote-card {
        padding: 32px 24px;
    }

    .quote-text {
        font-size: 20px;
    }

    .form-container {
        padding: 32px 24px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .footer-content {
        gap: 32px;
    }

    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 24px;
        right: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        padding: 12px 0;
    }

    .nav-logo {
        font-size: 24px;
    }

    .hero-badge {
        padding: 10px 20px;
        font-size: 13px;
    }

    .gaffe-card {
        border-radius: 20px;
    }

    .gaffe-header {
        padding: 20px 20px 12px;
        flex-direction: column;
        gap: 16px;
    }

    .gaffe-content {
        padding: 0 20px 20px;
    }

    .gaffe-title {
        font-size: 20px;
    }

    .search-container {
        padding: 12px 20px;
    }

    .modal-close {
        top: 16px;
        right: 16px;
        font-size: 36px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

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

.fadeIn {
    animation: fadeIn 0.5s ease-out;
}

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

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ============================================
   LOADING & SMOOTH RENDERING
   ============================================ */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .hero-cta,
    .search-section,
    .submit-section,
    .back-to-top,
    .cursor-dot,
    .cursor-outline,
    .particles-container {
        display: none;
    }
}
