/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark Mode */
body.dark-mode {
    --dark: #f1f5f9;
    --light: #0f172a;
    --white: #1e293b;
    --gray-light: #334155;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.5); } 50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.8); } }
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes blink { 50% { border-color: transparent; } }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes scaleIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--gray-light);
    box-shadow: var(--shadow);
}

body.dark-mode .navbar { background: rgba(15, 23, 42, 0.95); }
body.dark-mode .navbar.scrolled { background: rgba(15, 23, 42, 0.98); }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 800;
    color: var(--dark);
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    gap: clamp(10px, 2vw, 20px);
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

.theme-toggle, .search-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: var(--gray-light);
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover, .search-toggle:hover {
    background: var(--primary);
    color: white;
    transform: rotate(20deg);
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    border: none;
    background: var(--gray-light);
    color: var(--dark);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--primary);
    color: white;
}

.lang-toggle i.fa-chevron-down {
    font-size: 0.65rem;
    transition: transform 0.3s;
}

.lang-selector.open .lang-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 180px;
    max-height: 320px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    border: 2px solid var(--gray-light);
}

.lang-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 500;
}

.lang-option:first-child {
    border-radius: 10px 10px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 10px 10px;
}

.lang-option:hover {
    background: var(--gray-light);
}

.lang-option.active {
    background: var(--primary);
    color: white;
}

.lang-flag {
    font-size: 1.2rem;
}

body.dark-mode .lang-dropdown {
    background: var(--white);
    border-color: var(--gray-light);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero Section with Parallax */
.hero {
    background: var(--gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 100px 20px 60px;
}

body.dark-mode .hero { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); }

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

.particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.particle { position: absolute; width: 8px; height: 8px; background: rgba(255, 255, 255, 0.3); border-radius: 50%; animation: float 10s infinite; }

.hero-content { z-index: 10; max-width: 900px; animation: fadeInUp 1s ease; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.2); padding: 10px 20px; border-radius: 50px; font-size: 0.9rem; margin-bottom: 25px; backdrop-filter: blur(10px); }
.hero-badge i { color: var(--accent); }

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    min-height: 120px;
}

.typewriter { display: inline; }

.cursor {
    animation: blink 1s infinite;
    font-weight: 300;
}

.hero-subtitle { font-size: 1.2rem; opacity: 0.9; margin-bottom: 35px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Search Box */
.hero-search { margin-bottom: 40px; }
.search-box { display: flex; align-items: center; border-radius: 50px; padding: 8px; max-width: 550px; margin: 0 auto; transition: var(--transition); }
.search-box.glass { background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); border: 2px solid rgba(255, 255, 255, 0.3); }
.search-box:focus-within { background: rgba(255, 255, 255, 0.3); border-color: rgba(255, 255, 255, 0.5); transform: scale(1.02); }
.search-box i { padding: 0 15px; font-size: 1.1rem; opacity: 0.8; }
.search-box input { flex: 1; background: none; border: none; outline: none; color: white; font-size: 1rem; font-family: inherit; }
.search-box input::placeholder { color: rgba(255, 255, 255, 0.7); }

.search-btn {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.search-btn:hover { transform: scale(1.05); }
.search-btn.glow { animation: glow 2s infinite; }

.search-box.small { background: var(--white); border: 2px solid var(--gray-light); max-width: 400px; }
.search-box.small:focus-within { border-color: var(--primary); }
.search-box.small input { color: var(--dark); }
.search-box.small input::placeholder { color: var(--gray); }

/* Hero Stats */
.hero-stats { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.glass-card { background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 15px; padding: 20px 30px; text-align: center; transition: var(--transition); }
.glass-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.25); }
.hero-stat i { font-size: 1.5rem; margin-bottom: 10px; display: block; opacity: 0.8; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; }
.stat-label { font-size: 0.85rem; opacity: 0.8; }

/* Floating Shapes */
.floating-shapes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.float-shape { position: absolute; width: var(--size); height: var(--size); left: var(--left); top: var(--top); background: rgba(255, 255, 255, 0.1); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: calc(var(--size) * 0.5); animation: float 6s ease-in-out infinite; animation-delay: var(--delay); backdrop-filter: blur(5px); }

/* Scroll Indicator */
.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); text-align: center; animation: bounce 2s infinite; }
.mouse { width: 26px; height: 40px; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 15px; margin: 0 auto 10px; }
.wheel { width: 4px; height: 8px; background: rgba(255, 255, 255, 0.8); border-radius: 2px; margin: 8px auto; animation: scroll 1.5s infinite; }
@keyframes scroll { 0%, 100% { opacity: 1; transform: translateY(0); } 50% { opacity: 0.5; transform: translateY(8px); } }
.scroll-indicator p { font-size: 0.8rem; opacity: 0.7; }

/* How It Works */
.how-it-works { padding: 100px 0; background: var(--white); }
body.dark-mode .how-it-works { background: var(--light); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-tag { display: inline-block; background: var(--gradient); color: white; padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 15px; }
.section-header h2 { font-size: 2.5rem; color: var(--dark); margin-bottom: 10px; }
.section-header h2 i { color: var(--primary); }
.section-header p { color: var(--gray); font-size: 1.1rem; }

.steps-grid { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }

.step-card {
    background: var(--light);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    max-width: 280px;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

body.dark-mode .step-card { background: var(--white); }

.step-card:hover { transform: translateY(-10px) scale(1.02); border-color: var(--primary); box-shadow: var(--shadow-xl); }
.step-glow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--gradient); opacity: 0; transition: var(--transition); z-index: -1; }
.step-card:hover .step-glow { opacity: 0.1; }
.step-number { font-size: 3rem; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; opacity: 0.3; margin-bottom: 15px; }
.step-icon { width: 70px; height: 70px; background: var(--gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.5rem; color: white; }
.step-icon.pulse { animation: pulse 2s infinite; }
.step-card h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: 10px; }
.step-card p { color: var(--gray); font-size: 0.95rem; }
.step-connector { font-size: 1.5rem; color: var(--primary); display: flex; align-items: center; }
.connector-line { width: 50px; height: 2px; background: var(--primary); margin: 0 10px; }
.bounce { animation: bounce 1s infinite; }

/* Featured Section */
.featured-section { padding: 80px 0; background: var(--light); }
body.dark-mode .featured-section { background: var(--darker); }

.featured-card {
    background: var(--gradient);
    border-radius: 25px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.featured-badge { position: absolute; top: 20px; right: 20px; background: rgba(255, 255, 255, 0.2); padding: 8px 16px; border-radius: 50px; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; backdrop-filter: blur(10px); }
.featured-badge i { color: var(--accent); }
.featured-content { flex: 1; z-index: 10; }
.featured-info { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.featured-avatar { width: 60px; height: 60px; background: rgba(255, 255, 255, 0.2); border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.featured-avatar img { width: 60px; height: 60px; border-radius: 15px; object-fit: cover; }
.featured-info h2 { font-size: 1.8rem; margin-bottom: 5px; }
.featured-info a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.featured-description { font-size: 1.1rem; opacity: 0.9; margin-bottom: 20px; line-height: 1.7; }
.featured-stats { display: flex; gap: 25px; margin-bottom: 25px; }
.featured-stats span { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.featured-graphic { position: relative; width: 200px; height: 200px; }
.graph-circle { position: absolute; border: 3px solid rgba(255, 255, 255, 0.2); border-radius: 50%; }
.graph-circle:nth-child(1) { width: 200px; height: 200px; top: 0; left: 0; animation: rotate 10s linear infinite; }
.graph-circle:nth-child(2) { width: 150px; height: 150px; top: 25px; left: 25px; animation: rotate 8s linear infinite reverse; }
.graph-circle:nth-child(3) { width: 100px; height: 100px; top: 50px; left: 50px; animation: rotate 6s linear infinite; }

/* Language Filters */
.language-filters { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.lang-btn { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border: 2px solid var(--gray-light); background: var(--white); border-radius: 50px; cursor: pointer; font-weight: 500; transition: var(--transition); font-family: inherit; }
body.dark-mode .lang-btn { background: var(--light); border-color: var(--gray-light); }
.lang-btn:hover, .lang-btn.active { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-2px); }
.lang-dot { width: 10px; height: 10px; border-radius: 50%; }

/* Skeleton Loading */
.skeleton-card { background: var(--white); border-radius: 15px; padding: 25px; animation: fadeIn 0.5s ease; }
body.dark-mode .skeleton-card { background: var(--light); }
.skeleton-header, .skeleton-line, .skeleton-footer { background: linear-gradient(90deg, var(--gray-light) 25%, #e2e8f0 50%, var(--gray-light) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 10px; }
.skeleton-header { height: 60px; margin-bottom: 15px; }
.skeleton-header.gradient { height: 100px; }
.skeleton-line { height: 15px; margin-bottom: 10px; }
.skeleton-line.short { width: 60%; }
.skeleton-footer { height: 40px; margin-top: 15px; }

/* Repo of the Day */
.rotd-section { padding: 60px 0; background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); }
body.dark-mode .rotd-section { background: linear-gradient(135deg, #1e293b 0%, #334155 100%); }

.rotd-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: var(--transition);
    max-width: 800px;
    margin: 0 auto;
}

body.dark-mode .rotd-card { background: var(--white); }

.rotd-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 20px 60px rgba(99,102,241,0.2); }

.rotd-content { display: flex; align-items: center; gap: 30px; }

.rotd-avatar {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    border: 3px solid var(--primary);
    box-shadow: 0 8px 25px rgba(99,102,241,0.3);
}

.rotd-info h3 { font-size: 1.5rem; color: var(--dark); margin-bottom: 10px; }
.rotd-info p { color: var(--gray); font-size: 1rem; margin-bottom: 15px; line-height: 1.6; }

.rotd-stats {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

.rotd-stats span {
    font-size: 0.95rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.rotd-stats i { color: var(--primary); }

/* Popular Repos */
.popular-section { padding: 100px 0; background: var(--light); }
body.dark-mode .popular-section { background: var(--light); }
.repos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 25px; }

.repo-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

body.dark-mode .repo-card { background: var(--white); }

.repo-card:hover { transform: translateY(-8px) rotateX(5deg); border-color: var(--primary); box-shadow: var(--shadow-xl); }
.repo-card-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.repo-avatar { width: 50px; height: 50px; border-radius: 12px; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.3rem; }
.repo-info h3 { font-size: 1.1rem; color: var(--dark); margin-bottom: 3px; }
.repo-info a { color: var(--primary); text-decoration: none; font-size: 0.85rem; }
.repo-description { color: var(--gray); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.repo-stats { display: flex; gap: 20px; }
.repo-stat { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--gray); }
.repo-stat i { color: var(--primary); }
.repo-stat.stars i { color: var(--accent); }
.repo-stat.forks i { color: var(--secondary); }

.no-results { text-align: center; padding: 60px; }
.no-results i { font-size: 4rem; color: var(--gray-light); margin-bottom: 20px; }
.no-results h3 { color: var(--dark); margin-bottom: 10px; }

/* Stats Section with Charts */
.stats-section { padding: 100px 0; background: var(--white); }
body.dark-mode .stats-section { background: var(--light); }

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

.stat-card-3d {
    background: var(--light);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
    transform-style: preserve-3d;
    perspective: 1000px;
}

body.dark-mode .stat-card-3d { background: var(--white); }

.stat-card-3d:hover { transform: translateY(-10px) rotateY(5deg); box-shadow: var(--shadow-xl); }
.stat-card-content { text-align: center; }
.stat-icon { width: 60px; height: 60px; background: var(--gradient); border-radius: 15px; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-size: 1.5rem; color: white; }
.stat-icon.stars { background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%); }
.stat-icon.forks { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.stat-icon.lang { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }
.stat-card-3d h3 { font-size: 2rem; color: var(--dark); margin-bottom: 5px; }
.stat-card-3d p { color: var(--gray); font-size: 0.9rem; margin-bottom: 15px; }
.stat-bar { height: 8px; background: var(--gray-light); border-radius: 4px; overflow: hidden; }
.stat-bar-fill { height: 100%; background: var(--gradient); border-radius: 4px; transition: width 1s ease; }
.stat-bar-fill.stars { background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%); }
.stat-bar-fill.forks { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.stat-bar-fill.lang { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }

.chart-container { background: var(--light); border-radius: 20px; padding: 30px; }
body.dark-mode .chart-container { background: var(--white); }
.chart-container h3 { color: var(--dark); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.chart-container h3 i { color: var(--primary); }

/* Testimonials */
.testimonials-section { padding: 100px 0; background: var(--light); }
body.dark-mode .testimonials-section { background: var(--darker); }

.testimonials-slider { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }

.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
    border: 2px solid transparent;
}

body.dark-mode .testimonial-card { background: var(--light); }

.testimonial-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.testimonial-content { margin-bottom: 20px; }
.stars { color: var(--accent); margin-bottom: 15px; }
.testimonial-content p { color: var(--dark); font-size: 1rem; line-height: 1.8; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 15px; }
.author-avatar { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1.1rem; }
.testimonial-author h4 { color: var(--dark); font-size: 1rem; }
.testimonial-author span { color: var(--gray); font-size: 0.85rem; }

.no-reviews {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 15px;
    border: 2px dashed var(--gray-light);
    grid-column: 1 / -1;
}

body.dark-mode .no-reviews { background: var(--light); }

.no-reviews i {
    font-size: 2.5rem;
    color: #f59e0b;
    margin-bottom: 15px;
}

.no-reviews p {
    color: var(--gray);
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.review-actions { text-align: center; margin-top: 40px; }
.review-actions .btn { padding: 14px 35px; font-size: 1.05rem; }

.review-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.review-modal-overlay.active { display: flex; }

.review-modal {
    background: var(--white);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
    animation: modalSlideUp 0.3s ease;
}

body.dark-mode .review-modal { background: var(--light); }

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

.review-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-light);
}

.review-modal-header h3 {
    font-size: 1.3rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-modal-header h3 i { color: #f59e0b; }

.review-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-light);
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: var(--transition);
}

.review-modal-close:hover { background: #fee2e2; color: #dc2626; }

.review-modal .form-group { margin-bottom: 18px; }
.review-modal .form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; color: var(--dark); }
.review-modal .form-group input,
.review-modal .form-group textarea,
.review-modal .form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
}

body.dark-mode .review-modal .form-group input,
body.dark-mode .review-modal .form-group textarea,
body.dark-mode .review-modal .form-group select { background: var(--light); }

.review-modal .form-group input:focus,
.review-modal .form-group textarea:focus,
.review-modal .form-group select:focus { outline: none; border-color: var(--primary); }

.review-modal .btn { width: 100%; padding: 14px; font-size: 1rem; margin-top: 5px; }

/* Posts Section */
.posts-section { padding: 100px 0; background: var(--white); }
body.dark-mode .posts-section { background: var(--light); }

.trending-search { margin-bottom: 30px; display: flex; justify-content: center; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 25px; }

.post-card {
    background: var(--light);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

body.dark-mode .post-card { background: var(--white); }

.post-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: var(--shadow-xl); }
.post-card-header { background: var(--gradient); padding: 25px; color: white; position: relative; }
.post-card-title { font-size: 1.2rem; margin-bottom: 8px; line-height: 1.4; }
.post-card-date { font-size: 0.85rem; opacity: 0.9; display: flex; align-items: center; gap: 5px; }
.post-card-body { padding: 25px; }
.post-card-excerpt { color: var(--gray); margin-bottom: 20px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-footer { display: flex; justify-content: space-between; align-items: center; }
.post-card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { background: var(--white); color: var(--primary); padding: 5px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 500; }
.read-more { color: var(--primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 5px; transition: var(--transition); }
.read-more:hover { gap: 10px; }

.no-posts { text-align: center; padding: 80px 40px; background: var(--light); border-radius: 20px; }
body.dark-mode .no-posts { background: var(--white); }
.empty-icon { width: 80px; height: 80px; background: var(--gray-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.empty-icon i { font-size: 2rem; color: var(--gray); }
.no-posts h3 { color: var(--dark); margin-bottom: 10px; }
.no-posts p { color: var(--gray); margin-bottom: 25px; }

/* FAQ Section */
.faq-section { padding: 100px 0; background: var(--light); }
body.dark-mode .faq-section { background: var(--light); }

.faq-grid { max-width: 800px; margin: 0 auto; }

.faq-item {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

body.dark-mode .faq-item { background: var(--light); }

.faq-item:hover { border-color: var(--primary); }
.faq-item.active { border-color: var(--primary); }

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
}

.faq-question i { transition: var(--transition); color: var(--primary); }
.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 25px 20px;
}

.faq-answer p { color: var(--gray); line-height: 1.8; }

/* Contact Section */
.contact-section { padding: 100px 0; background: var(--white); }
body.dark-mode .contact-section { background: var(--light); }

.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; }

.contact-info { display: flex; flex-direction: column; gap: 25px; }
.contact-item { display: flex; align-items: center; gap: 15px; }
.contact-icon { width: 50px; height: 50px; background: var(--gradient); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; }
.contact-item h4 { color: var(--dark); font-size: 1rem; }
.contact-item p { color: var(--gray); font-size: 0.9rem; }
.contact-social { display: flex; gap: 12px; margin-top: 10px; }
.contact-social a { width: 45px; height: 45px; background: var(--light); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--dark); text-decoration: none; transition: var(--transition); }
body.dark-mode .contact-social a { background: var(--white); }
.contact-social a:hover { background: var(--primary); color: white; transform: translateY(-3px); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form .form-group input, .contact-form .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--light);
}

body.dark-mode .contact-form .form-group input,
body.dark-mode .contact-form .form-group textarea { background: var(--white); border-color: var(--gray-light); }

.contact-form .form-group input:focus, .contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.contact-form textarea { resize: vertical; min-height: 120px; }
.btn-block { width: 100%; justify-content: center; }

/* Newsletter */
.newsletter-section { padding: 80px 0; background: var(--light); }
body.dark-mode .newsletter-section { background: var(--darker); }

.newsletter-card { background: var(--gradient); border-radius: 20px; padding: 50px; display: flex; align-items: center; justify-content: space-between; gap: 40px; color: white; }
.newsletter-content h2 { font-size: 1.8rem; margin-bottom: 10px; }
.newsletter-form { flex: 1; max-width: 450px; }
.input-group { display: flex; gap: 10px; background: rgba(255, 255, 255, 0.2); padding: 8px; border-radius: 50px; backdrop-filter: blur(10px); }
.input-group input { flex: 1; background: none; border: none; outline: none; color: white; padding: 0 20px; font-family: inherit; }
.input-group input::placeholder { color: rgba(255, 255, 255, 0.8); }
.input-group .btn { background: white; color: var(--primary); }
.input-group .btn:hover { transform: scale(1.05); }

/* Buttons */
.btn { padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); cursor: pointer; border: none; font-size: 1rem; font-family: inherit; }
.btn-primary { background: var(--gradient); color: white; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* Footer */
.footer { background: var(--darker); color: white; padding: 80px 0 30px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-logo i { font-size: 1.5rem; color: var(--primary); }
.footer-logo h3 { font-size: 1.5rem; }
.footer-section p { color: var(--gray); line-height: 1.8; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-section h3 { font-size: 1.1rem; margin-bottom: 20px; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 12px; }
.footer-section ul a { color: var(--gray); text-decoration: none; transition: var(--transition); }
.footer-section ul a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom p { color: var(--gray); }
.footer-bottom i { color: #ef4444; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--gray); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }

/* Back to Top */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--gradient); color: white; border: none; border-radius: 50%; font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 1000; box-shadow: var(--shadow-lg); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }

/* Search Modal */
.search-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); z-index: 3000; display: flex; align-items: flex-start; justify-content: center; padding-top: 150px; animation: fadeIn 0.3s ease; }
.search-modal-content { background: var(--white); border-radius: 20px; width: 90%; max-width: 600px; overflow: hidden; animation: scaleIn 0.3s ease; }
body.dark-mode .search-modal-content { background: var(--light); }
.search-modal-input { display: flex; align-items: center; padding: 20px; border-bottom: 1px solid var(--gray-light); }
.search-modal-input i { color: var(--gray); font-size: 1.2rem; margin-right: 15px; }
.search-modal-input input { flex: 1; border: none; outline: none; font-size: 1.1rem; font-family: inherit; background: transparent; color: var(--dark); }
.search-modal-input kbd { background: var(--gray-light); padding: 5px 10px; border-radius: 5px; font-size: 0.8rem; color: var(--gray); }
.search-modal-results { padding: 20px; max-height: 400px; overflow-y: auto; }
.search-hint { color: var(--gray); text-align: center; padding: 20px; }

/* Shortcuts Modal */
.shortcuts-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); z-index: 3000; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.3s ease; }
.shortcuts-content { background: var(--white); border-radius: 20px; padding: 30px; width: 90%; max-width: 400px; animation: scaleIn 0.3s ease; }
body.dark-mode ..shortcuts-content { background: var(--light); }
.shortcuts-content h3 { color: var(--dark); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.shortcuts-content h3 i { color: var(--primary); }
.shortcut-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--gray-light); }
.shortcut-item span { color: var(--gray); }
.shortcut-item kbd { background: var(--gray-light); padding: 5px 10px; border-radius: 5px; font-size: 0.85rem; margin: 0 3px; }

/* Toast */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--white); padding: 15px 25px; border-radius: 10px; box-shadow: var(--shadow-xl); display: flex; align-items: center; gap: 12px; animation: slideIn 0.3s ease; min-width: 280px; }
.toast.success { border-left: 4px solid var(--secondary); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--primary); }
.toast i { font-size: 1.3rem; }
.toast.success i { color: var(--secondary); }
.toast.error i { color: var(--danger); }
.toast.info i { color: var(--primary); }
.toast span { color: var(--dark); font-weight: 500; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .container { padding: 0 24px; }
    .rotd-content { gap: 24px; }
    .rotd-avatar { width: 100px; height: 100px; }
    .rotd-info h3 { font-size: 1.3rem; }
}

@media (max-width: 992px) {
    .container { padding: 0 20px; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .newsletter-card { padding: 40px 30px; gap: 30px; }
    .newsletter-content h2 { font-size: 1.5rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-stats { gap: 30px; flex-wrap: wrap; justify-content: center; }
    .featured-card { flex-direction: column; text-align: center; }
    .featured-info { justify-content: center; }
    .featured-stats { justify-content: center; }
    .featured-graphic { display: none; }
    .search-box { max-width: 500px; }
    .language-filters { gap: 10px; }
    .rotd-content { flex-direction: column; text-align: center; }
    .rotd-stats { justify-content: center; }
    .rotd-avatar { width: 90px; height: 90px; }
}

@media (max-width: 768px) {
    :root { --radius: 12px; }

    .container { padding: 0 16px; }

    .nav-container { padding: 10px 16px; }
    .logo { gap: 8px; }
    .logo-icon { width: 32px; height: 32px; min-width: 32px; font-size: 0.85rem; }
    .logo span { font-size: clamp(1rem, 4vw, 1.3rem); }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        z-index: 1000;
        animation: fadeIn 0.2s ease;
    }
    body.dark-mode .nav-links { background: var(--light); }
    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1.1rem; padding: 8px 0; }
    .nav-links a::after { bottom: 2px; }
    .nav-links .theme-toggle,
    .nav-links .search-toggle {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .nav-links .lang-selector { margin-top: 5px; }
    .nav-links .lang-dropdown { left: 50%; transform: translateX(-50%); }
    .lang-selector.open .lang-dropdown { transform: translateX(-50%) translateY(0) !important; }

    .menu-toggle { display: flex; }

    .hero { padding: 100px 0 60px; }
    .hero-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    .hero-subtitle { font-size: clamp(0.85rem, 2.5vw, 1.05rem); margin-bottom: 25px; }
    .hero-stats { flex-direction: column; gap: 12px; margin-top: 25px; }

    .search-box { flex-direction: column; border-radius: 16px; max-width: 100%; }
    .search-box input { padding: 14px 18px; font-size: 0.95rem; }
    .search-box .btn { width: 100%; justify-content: center; padding: 14px; border-radius: 0 0 16px 16px; }

    .section-header { margin-bottom: 30px; }
    .section-header h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
    .section-header p { font-size: clamp(0.85rem, 2.5vw, 1rem); }
    .section-tag { font-size: 0.75rem; padding: 5px 14px; }

    .popular-section,
    .testimonials-section,
    .faq-section,
    .posts-section,
    .newsletter-section { padding: 60px 0 !important; }

    .repos-grid,
    .posts-grid { grid-template-columns: 1fr; gap: 18px; }

    .repo-card { padding: 20px; }
    .repo-card-header { gap: 12px; }
    .repo-card-header img { width: 42px !important; height: 42px !important; }
    .repo-info h3 { font-size: 1rem; }
    .repo-description { font-size: 0.85rem; }
    .repo-stats { gap: 15px; font-size: 0.85rem; }

    .rotd-section { padding: 40px 0; }
    .rotd-card { padding: 25px; }
    .rotd-content { gap: 18px; }
    .rotd-avatar { width: 80px; height: 80px; }
    .rotd-info h3 { font-size: 1.15rem; }
    .rotd-stats { gap: 15px; font-size: 0.85rem; flex-wrap: wrap; }

    .language-filters { gap: 8px; margin-bottom: 25px; }
    .lang-btn { padding: 7px 14px; font-size: 0.8rem; }

    .testimonials-slider { grid-template-columns: 1fr; gap: 18px; }
    .testimonial-card { padding: 22px; }
    .testimonial-content p { font-size: 0.9rem; }
    .review-actions { margin-top: 25px; }
    .review-actions .btn { padding: 12px 24px; font-size: 0.95rem; width: 100%; justify-content: center; }

    .review-modal { padding: 25px; width: 95%; }
    .review-modal-header h3 { font-size: 1.1rem; }

    .faq-item { padding: 18px; }
    .faq-question { font-size: 0.95rem; }

    .posts-grid { gap: 18px; }
    .post-card-header { padding: 20px; }
    .post-card-title { font-size: 1.05rem; }
    .post-card-body { padding: 20px; }
    .post-card-excerpt { font-size: 0.85rem; }

    .newsletter-card { flex-direction: column; text-align: center; padding: 30px 20px; }
    .newsletter-content h2 { font-size: 1.3rem; }
    .newsletter-form { max-width: 100%; width: 100%; }
    .input-group { flex-direction: column; border-radius: 14px; padding: 6px; }
    .input-group input { padding: 12px 16px; text-align: center; }
    .input-group .btn { width: 100%; justify-content: center; padding: 12px; }

    .footer { padding: 50px 0 25px; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .footer-section h3 { margin-bottom: 15px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 15px; }

    .back-to-top { width: 44px; height: 44px; bottom: 20px; right: 20px; font-size: 1rem; }

    .search-modal { padding-top: 100px; }
    .search-modal-content { width: 95%; }
    .search-modal-input { padding: 15px; }
    .search-modal-input input { font-size: 1rem; }

    .shortcuts-content { padding: 22px; }

    .form-row { grid-template-columns: 1fr; gap: 15px; }

    .contact-grid { gap: 30px; }
    .contact-section { padding: 60px 0; }

    .modal-content { max-height: 85vh; }
    .modal-header { padding: 20px; }
    .modal-header h2 { font-size: 1.3rem; }
    .modal-body { padding: 20px; }
    .modal-body pre { font-size: 0.85rem; }

    .steps-grid { flex-direction: column; gap: 15px; }
    .step-card { max-width: 100%; padding: 25px; }
    .step-connector { transform: rotate(90deg); }
    .step-number { font-size: 2.5rem; }

    .stats-section { padding: 60px 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 15px; }

    .featured-card { padding: 25px; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .nav-container { padding: 8px 14px; }
    .hero { padding: 90px 0 50px; }
    .hero-title { font-size: clamp(1.5rem, 7vw, 1.8rem); }
    .hero-badge { font-size: 0.7rem; padding: 4px 12px; }
    .hero-stats { gap: 10px; }
    .hero-stat { padding: 12px 16px; }
    .hero-stat span { font-size: 1rem; }
    .hero-stat small { font-size: 0.7rem; }

    .section-header h2 { font-size: clamp(1.2rem, 5vw, 1.4rem); }
    .section-tag { font-size: 0.7rem; padding: 4px 12px; }

    .rotd-card { padding: 20px; border-radius: 14px; }
    .rotd-avatar { width: 70px; height: 70px; }
    .rotd-info h3 { font-size: 1rem; }

    .repo-card { padding: 16px; border-radius: 12px; }
    .repo-card-header img { width: 36px !important; height: 36px !important; }
    .repo-info h3 { font-size: 0.9rem; }
    .repo-stats { gap: 12px; font-size: 0.8rem; }

    .testimonial-card { padding: 18px; }
    .author-avatar { width: 40px; height: 40px; font-size: 0.9rem; }

    .footer-section p { font-size: 0.85rem; }

    .btn { padding: 10px 18px; font-size: 0.85rem; }
    .btn-primary { padding: 10px 20px; }

    .language-filters { gap: 6px; }
    .lang-btn { padding: 6px 12px; font-size: 0.75rem; }
    .repos-grid,
    .posts-grid { gap: 14px; }

    .newsletter-card { padding: 25px 18px; }
    .newsletter-content h2 { font-size: 1.1rem; }
    .input-group input { font-size: 0.85rem; }

    .search-box input { padding: 12px 14px; font-size: 0.9rem; padding-right: 40px; }

    .review-modal { padding: 20px; }
    .review-modal .form-group input,
    .review-modal .form-group textarea { padding: 10px 12px; font-size: 0.85rem; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card-3d { padding: 18px; }
    .stat-card-3d h3 { font-size: 1.3rem; }
    .stat-card-3d p { font-size: 0.75rem; }

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

    .faq-item { padding: 14px; }
    .faq-question { font-size: 0.9rem; }

    .footer { padding: 40px 0 20px; }
    .footer-logo h3 { font-size: 1.1rem; }

    .back-to-top { width: 40px; height: 40px; bottom: 15px; right: 15px; font-size: 0.9rem; }

    .modal-content { border-radius: 12px; }
}

@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .hero-title { font-size: clamp(1.3rem, 6vw, 1.5rem); }
    .nav-links a { font-size: 1rem; }
    .search-modal { padding-top: 80px; }
    .rotd-avatar { width: 60px; height: 60px; }
    .stats-grid { grid-template-columns: 1fr; }
}
