/* Modern CSS Reset & Variables */
:root {
    /* Color Palette */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Neutral Colors */
    --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;
    --gray-950: #020617;
    
    /* Background Colors */
    --bg-primary: var(--gray-950);
    --bg-secondary: var(--gray-900);
    --bg-tertiary: var(--gray-800);
    --bg-card: rgba(30, 41, 59, 0.8);
    
    /* Text Colors */
    --text-primary: var(--white);
    --text-secondary: var(--gray-300);
    --text-muted: var(--gray-400);
    
    /* Border Colors */
    --border-primary: var(--gray-700);
    --border-secondary: var(--gray-600);
    
    /* Shadow Colors */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-secondary: linear-gradient(135deg, var(--accent), var(--warning));
    --gradient-dark: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Monaco', monospace;
    
    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
    --z-loader: 9999;
}

/* CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loader);
    transition: opacity var(--transition-normal);
}

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

.loader-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-lg);
    animation: pulse 2s infinite;
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--gray-700);
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-md);
    overflow: hidden;
}

.loader-progress {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: loading 2s ease-in-out infinite;
}

.loader-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-logo {
    width: 40px;
    height: 40px;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
    padding: var(--space-xs) 0;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

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

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary);
}

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

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/bg.html') center/cover;
    opacity: 0.1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, var(--primary) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, var(--secondary) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, var(--accent) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    animation: float 20s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--space-2xl);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-top: var(--space-xl);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

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

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-2xl);
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.scroll-arrow {
    width: 2px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
}

/* Sections */
section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Features Section */
.features {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left var(--transition-slow);
}

.feature-card:hover::before {
    left: 100%;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.feature-tags {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Stats Section */
.stats {
    background: var(--bg-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    transition: all var(--transition-normal);
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

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

/* Gallery Section */
.gallery {
    background: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.gallery-image {
    width: 100%;
    height: 100%;
}

.gallery-image img,
.gallery-image .placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--white);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: var(--space-lg);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.gallery-overlay p {
    color: var(--gray-300);
    margin: 0;
}

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

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

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.contact-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-normal);
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 1.5rem;
    color: var(--white);
}

.contact-details h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-normal);
}

.contact-link:hover {
    color: var(--primary-light);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    padding: 120px 0 40px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-logo {
    width: 60px;
    height: 60px;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.footer-info p {
    color: var(--text-secondary);
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-column h4 {
    color: var(--primary);
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: var(--space-sm);
    transition: color var(--transition-normal);
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-primary);
}

.footer-copyright p {
    color: var(--text-muted);
    margin: 0;
}

.developer-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
}

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

.developer-name {
    color: var(--primary);
    font-weight: 600;
}

.developer-link:hover .developer-name {
    color: var(--white);
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 1200px) {
    .container {
        width: 95%;
        padding: 0 var(--space-md);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: var(--space-lg);
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        width: 92%;
        padding: 0 var(--space-sm);
    }
    
    /* Section spacing */
    section {
        padding: var(--space-2xl) 0;
    }
    
    /* Typography adjustments */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: var(--space-md);
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Hero section mobile optimizations */
    .hero {
        padding-top: 80px;
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 0 var(--space-sm);
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        margin-bottom: var(--space-xl);
    }
    
    .stat-item {
        background: var(--bg-card);
        border: 1px solid var(--border-primary);
        border-radius: var(--radius-lg);
        padding: var(--space-md);
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--space-md);
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Navigation mobile improvements */
    .navbar {
        padding: var(--space-sm) 0;
    }
    
    .nav-container {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-sm) 0;
    }
    
    .nav-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .nav-brand {
        flex-direction: column;
        gap: var(--space-xs);
        text-align: center;
    }
    
    .nav-title {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-primary);
        padding: var(--space-lg);
        flex-direction: column;
        gap: var(--space-md);
        box-shadow: var(--shadow-xl);
        z-index: var(--z-dropdown);
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: var(--space-sm);
        border-radius: var(--radius-md);
        transition: all var(--transition-normal);
        border: 1px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(99, 102, 241, 0.1);
        border-color: var(--primary);
    }
    
    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: var(--space-sm);
        padding-top: var(--space-sm);
    }
    
    .nav-actions .btn {
        width: 100%;
        justify-content: center;
        padding: var(--space-sm) var(--space-md);
    }
    
    .nav-toggle {
        display: flex;
        background: none;
        border: none;
        cursor: pointer;
        padding: var(--space-xs);
        border-radius: var(--radius-md);
        transition: all var(--transition-normal);
    }
    
    .nav-toggle:hover {
        background: rgba(99, 102, 241, 0.1);
    }
    
    .nav-toggle span {
        width: 24px;
        height: 2px;
        background: var(--text-primary);
        transition: all var(--transition-normal);
        border-radius: var(--radius-sm);
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Features mobile optimization */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .feature-card {
        padding: var(--space-lg);
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
    }
    
    /* Stats mobile optimization */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .stat-card {
        padding: var(--space-lg);
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    /* Gallery mobile optimization */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .gallery-item {
        aspect-ratio: 16/10;
    }
    
    .gallery-overlay {
        padding: var(--space-md);
    }
    
    .gallery-overlay h3 {
        font-size: 1.1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.9rem;
    }
    
    /* Contact mobile optimization */
    .contact-info {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .contact-item {
        padding: var(--space-lg);
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Footer mobile optimization */
    .footer-content {
        gap: var(--space-lg);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .developer-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    /* Extra small devices */
    .container {
        width: 95%;
        padding: 0 var(--space-xs);
    }
    
    /* Typography for very small screens */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* Hero adjustments */
    .hero {
        padding-top: 60px;
    }
    
    .hero-content {
        padding: 0 var(--space-xs);
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: var(--space-xs);
    }
    
    .hero-stats {
        gap: var(--space-sm);
    }
    
    .stat-item {
        padding: var(--space-sm);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: var(--space-sm);
        font-size: 0.85rem;
    }
    
    .btn-large {
        padding: var(--space-md);
        font-size: 0.9rem;
    }
    
    /* Feature cards */
    .feature-card {
        padding: var(--space-md);
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    /* Stats */
    .stat-card {
        padding: var(--space-md);
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Gallery */
    .gallery-item {
        aspect-ratio: 4/3;
    }
    
    .gallery-overlay {
        padding: var(--space-sm);
    }
    
    .gallery-overlay h3 {
        font-size: 1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.8rem;
    }
    
    /* Contact */
    .contact-item {
        padding: var(--space-md);
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-details h3 {
        font-size: 1.1rem;
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer-brand {
        text-align: center;
    }
    
    .footer-logo {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }
    
    .footer-info h3 {
        font-size: 1.25rem;
    }
    
    .footer-info p {
        font-size: 0.9rem;
    }
    
    .footer-column h4 {
        font-size: 1rem;
    }
    
    .footer-column a {
        font-size: 0.9rem;
    }
    
    .developer-link {
        font-size: 0.8rem;
        padding: var(--space-xs) var(--space-sm);
    }
}

@media (max-width: 480px) {
    /* Very small devices */
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    /* Navigation adjustments */
    .nav-logo {
        width: 35px;
        height: 35px;
    }
    
    .nav-title {
        font-size: 1.1rem;
    }
    
    /* Hero stats */
    .hero-stats {
        margin-bottom: var(--space-lg);
    }
    
    .stat-item {
        padding: var(--space-xs);
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Buttons */
    .btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.8rem;
    }
    
    .btn-large {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.85rem;
    }
    
    /* Cards */
    .feature-card,
    .stat-card,
    .contact-item {
        padding: var(--space-sm);
    }
    
    /* Gallery */
    .gallery-item {
        aspect-ratio: 1/1;
    }
    
    .gallery-overlay {
        padding: var(--space-xs);
    }
    
    .gallery-overlay h3 {
        font-size: 0.9rem;
    }
    
    .gallery-overlay p {
        font-size: 0.75rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--space-sm);
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: var(--space-lg);
    }
    
    .hero-stats {
        margin-bottom: var(--space-lg);
    }
    
    .hero-actions {
        margin-bottom: var(--space-lg);
    }
    
    section {
        padding: var(--space-xl) 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-logo,
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-scroll,
    .btn,
    .nav-actions {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-lg) 0;
    }
    
    .hero-title {
        font-size: 2rem;
        color: #000;
    }
    
    .hero-description {
        color: #333;
    }
    
    .section-title {
        color: #000;
    }
    
    .feature-card,
    .stat-card,
    .contact-item {
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* Accessibility improvements for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-particles {
        animation: none;
    }
    
    .scroll-arrow {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #000000;
        --bg-secondary: #0a0a0a;
        --bg-card: rgba(255, 255, 255, 0.05);
    }
}

/* Focus visible for keyboard navigation */
.btn:focus-visible,
.nav-link:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-md);
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .feature-card:hover,
    .stat-card:hover,
    .gallery-item:hover,
    .contact-item:hover {
        transform: none;
    }
    
    .nav-link:hover::after {
        width: 0;
    }
    
    .btn:hover::before {
        left: -100%;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    /* Improve touch targets */
    .btn,
    .nav-link,
    .nav-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing for mobile */
    .hero-content {
        padding: 0 var(--space-md);
    }
    
    .hero-badge {
        margin-bottom: var(--space-md);
    }
    
    .hero-title {
        margin-bottom: var(--space-md);
    }
    
    .hero-description {
        margin-bottom: var(--space-lg);
    }
    
    /* Improve mobile card layouts */
    .feature-card,
    .stat-card,
    .contact-item {
        margin-bottom: var(--space-md);
    }
    
    /* Better mobile button sizing */
    .btn-large {
        min-height: 56px;
        font-size: 1rem;
    }
    
    /* Improve mobile navigation */
    .nav-container {
        position: relative;
    }
    
    .nav-menu.active {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border: 1px solid var(--border-primary);
        border-top: none;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        box-shadow: var(--shadow-2xl);
    }
    
    /* Mobile hero adjustments */
    .hero {
        padding-top: 120px;
    }
    
    .hero-scroll {
        bottom: var(--space-md);
    }
    
    .scroll-indicator {
        font-size: 0.8rem;
    }
    
    .scroll-arrow {
        height: 15px;
    }
}

/* Tablet specific optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large screen optimizations */
@media (min-width: 1025px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content {
        max-width: 1000px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Ultra-wide screen support */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* Landscape phone optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: var(--space-sm);
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: var(--space-md);
    }
    
    .hero-stats {
        margin-bottom: var(--space-md);
    }
    
    .hero-actions {
        margin-bottom: var(--space-md);
    }
    
    section {
        padding: var(--space-lg) 0;
    }
    
    .nav-menu.active {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-primary: #ffffff;
        --text-secondary: #ffffff;
        --text-muted: #cccccc;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .feature-card,
    .stat-card,
    .contact-item {
        border: 2px solid var(--border-primary);
    }
}

/* Print media query improvements */
@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .hero {
        background: none !important;
        color: #000 !important;
    }
    
    .hero-title {
        color: #000 !important;
    }
    
    .section-title {
        color: #000 !important;
    }
    
    .feature-card,
    .stat-card,
    .contact-item {
        border: 1px solid #000 !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .btn {
        border: 1px solid #000 !important;
        color: #000 !important;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Mobile-specific fixes for top section */
@media (max-width: 768px) {
    /* Hero section mobile optimization */
    .hero {
        min-height: 100vh;
        padding-top: 80px;
        padding-bottom: var(--space-lg);
    }
    
    .hero-content {
        padding: 0 var(--space-sm);
        max-width: 100%;
    }
    
    /* Logo and title mobile sizing */
    .nav-logo {
        width: 35px;
        height: 35px;
    }
    
    .nav-title {
        font-size: 1.1rem;
    }
    
    /* Hero title mobile sizing */
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: var(--space-sm);
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: var(--space-xs) var(--space-sm);
        margin-bottom: var(--space-sm);
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: var(--space-md);
    }
    
    /* Hero stats mobile optimization */
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        margin-bottom: var(--space-md);
    }
    
    .stat-item {
        background: var(--bg-card);
        border: 1px solid var(--border-primary);
        border-radius: var(--radius-lg);
        padding: var(--space-sm);
        margin-bottom: var(--space-xs);
    }
    
    .stat-number {
        font-size: 1.5rem;
        margin-bottom: var(--space-xs);
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Hero actions mobile optimization */
    .hero-actions {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: center;
        margin-bottom: var(--space-md);
    }
    
    .btn-large {
        width: 100%;
        max-width: 280px;
        min-height: 48px;
        font-size: 0.9rem;
        padding: var(--space-sm) var(--space-md);
    }
    
    /* Hero scroll indicator mobile */
    .hero-scroll {
        bottom: var(--space-sm);
    }
    
    .scroll-indicator {
        font-size: 0.7rem;
    }
    
    .scroll-arrow {
        height: 12px;
    }
    
    /* Navigation mobile optimization */
    .navbar {
        padding: var(--space-xs) 0;
    }
    
    .nav-container {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .nav-brand {
        flex-direction: row;
        gap: var(--space-xs);
        align-items: center;
    }
    
    .nav-title {
        font-size: 1rem;
    }
    
    /* Mobile menu optimization */
    .nav-menu.active {
        top: 100%;
        max-height: 70vh;
        overflow-y: auto;
        padding: var(--space-md);
    }
    
    .nav-link {
        padding: var(--space-sm);
        font-size: 0.9rem;
    }
    
    .nav-actions {
        padding-top: var(--space-xs);
    }
    
    .nav-actions .btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.85rem;
        min-height: 40px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .hero {
        padding-top: 60px;
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: var(--space-xs);
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: var(--space-xs);
        margin-bottom: var(--space-xs);
    }
    
    .hero-description {
        font-size: 0.85rem;
        margin-bottom: var(--space-sm);
    }
    
    .hero-stats {
        margin-bottom: var(--space-sm);
    }
    
    .stat-item {
        padding: var(--space-xs);
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .btn-large {
        max-width: 250px;
        min-height: 44px;
        font-size: 0.85rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .nav-container {
        padding: var(--space-xs);
    }
    
    .nav-logo {
        width: 30px;
        height: 30px;
    }
    
    .nav-title {
        font-size: 0.9rem;
    }
}

/* Landscape orientation mobile fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 60px;
        padding-bottom: var(--space-sm);
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: var(--space-xs);
    }
    
    .hero-description {
        font-size: 0.8rem;
        margin-bottom: var(--space-sm);
    }
    
    .hero-stats {
        margin-bottom: var(--space-sm);
    }
    
    .hero-actions {
        margin-bottom: var(--space-sm);
    }
    
    .btn-large {
        min-height: 40px;
        font-size: 0.8rem;
    }
    
    section {
        padding: var(--space-md) 0;
    }
}

/* Aggressive Mobile Mobile Optimization - Complete Redesign */
@media (max-width: 768px) {
    /* Hero section - Much more compact */
    .hero {
        min-height: auto;
        padding: 60px 0 20px 0;
        display: block;
    }
    
    .hero-content {
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* Hero title - Much smaller */
    .hero-title {
        font-size: 1.5rem !important;
        line-height: 1.2;
        margin-bottom: 10px !important;
    }
    
    /* Hero badge - Minimal */
    .hero-badge {
        font-size: 0.7rem !important;
        padding: 5px 10px !important;
        margin-bottom: 10px !important;
    }
    
    /* Hero description - Compact */
    .hero-description {
        font-size: 0.8rem !important;
        line-height: 1.4;
        margin-bottom: 15px !important;
    }
    
    /* Hero stats - Much more compact */
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px !important;
        margin-bottom: 15px !important;
    }
    
    .stat-item {
        background: var(--bg-card);
        border: 1px solid var(--border-primary);
        border-radius: 8px;
        padding: 8px 5px !important;
        margin-bottom: 0 !important;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1rem !important;
        margin-bottom: 2px !important;
    }
    
    .stat-label {
        font-size: 0.65rem !important;
    }
    
    /* Hero actions - Compact buttons */
    .hero-actions {
        flex-direction: column;
        gap: 8px !important;
        align-items: center;
        margin-bottom: 15px !important;
    }
    
    .btn-large {
        width: 100%;
        max-width: 200px !important;
        min-height: 36px !important;
        font-size: 0.8rem !important;
        padding: 8px 15px !important;
    }
    
    /* Hero scroll - Minimal */
    .hero-scroll {
        bottom: 10px;
    }
    
    .scroll-indicator {
        font-size: 0.6rem;
    }
    
    .scroll-arrow {
        height: 8px;
    }
    
    /* Navigation - Much more compact */
    .navbar {
        padding: 5px 0 !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .nav-container {
        padding: 5px 15px !important;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-brand {
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }
    
    .nav-logo {
        width: 25px !important;
        height: 25px !important;
    }
    
    .nav-title {
        font-size: 0.9rem !important;
    }
    
    /* Hide nav menu by default on mobile */
    .nav-menu {
        display: none !important;
    }
    
    .nav-menu.active {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-primary);
        flex-direction: column;
        padding: 10px;
        gap: 5px;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .nav-link {
        padding: 8px !important;
        font-size: 0.8rem !important;
        text-align: center;
    }
    
    .nav-actions {
        display: flex;
        gap: 8px;
        padding-top: 0 !important;
    }
    
    .nav-actions .btn {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        min-height: 32px !important;
        min-width: 60px !important;
    }
    
    /* Hide nav toggle by default */
    .nav-toggle {
        display: none !important;
    }
    
    /* Show nav toggle only when needed */
    .nav-toggle.show {
        display: flex !important;
    }
}

/* Extra small mobile devices - Ultra compact */
@media (max-width: 480px) {
    .hero {
        padding: 50px 0 15px 0 !important;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.3rem !important;
        margin-bottom: 8px !important;
    }
    
    .hero-badge {
        font-size: 0.65rem !important;
        padding: 4px 8px !important;
        margin-bottom: 8px !important;
    }
    
    .hero-description {
        font-size: 0.75rem !important;
        margin-bottom: 12px !important;
    }
    
    .hero-stats {
        gap: 6px !important;
        margin-bottom: 12px !important;
    }
    
    .stat-item {
        padding: 6px 4px !important;
    }
    
    .stat-number {
        font-size: 0.9rem !important;
    }
    
    .stat-label {
        font-size: 0.6rem !important;
    }
    
    .hero-actions {
        gap: 6px !important;
        margin-bottom: 12px !important;
    }
    
    .btn-large {
        max-width: 180px !important;
        min-height: 32px !important;
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
    }
    
    .nav-container {
        padding: 4px 10px !important;
    }
    
    .nav-logo {
        width: 22px !important;
        height: 22px !important;
    }
    
    .nav-title {
        font-size: 0.8rem !important;
    }
    
    .nav-actions .btn {
        padding: 5px 8px !important;
        font-size: 0.7rem !important;
        min-height: 28px !important;
        min-width: 50px !important;
    }
}

/* Ultra small devices */
@media (max-width: 360px) {
    .hero {
        padding: 45px 0 10px 0 !important;
    }
    
    .hero-title {
        font-size: 1.2rem !important;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 4px !important;
    }
    
    .stat-item {
        padding: 5px !important;
    }
    
    .btn-large {
        max-width: 160px !important;
        min-height: 30px !important;
        font-size: 0.7rem !important;
    }
    
    .nav-logo {
        width: 20px !important;
        height: 20px !important;
    }
    
    .nav-title {
        font-size: 0.75rem !important;
    }
}

/* Landscape mobile - Ultra compact */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 40px 0 10px 0 !important;
        min-height: auto !important;
    }
    
    .hero-title {
        font-size: 1.2rem !important;
        margin-bottom: 6px !important;
    }
    
    .hero-badge {
        font-size: 0.6rem !important;
        padding: 3px 6px !important;
        margin-bottom: 6px !important;
    }
    
    .hero-description {
        font-size: 0.7rem !important;
        margin-bottom: 8px !important;
    }
    
    .hero-stats {
        margin-bottom: 8px !important;
    }
    
    .hero-actions {
        margin-bottom: 8px !important;
    }
    
    .btn-large {
        min-height: 28px !important;
        font-size: 0.7rem !important;
    }
    
    .navbar {
        padding: 3px 0 !important;
    }
    
    .nav-container {
        padding: 3px 10px !important;
    }
    
    .nav-logo {
        width: 20px !important;
        height: 20px !important;
    }
    
    .nav-title {
        font-size: 0.8rem !important;
    }
}

/* Discord Widget Styles */
.discord-widget-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-xl) 0;
    width: 100%;
    text-align: center;
}

.discord-widget-container iframe {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-normal);
    margin: 0 auto;
    display: block;
}

.discord-widget-container iframe:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

/* Mobile responsive Discord widget */
@media (max-width: 768px) {
    .discord-widget-container iframe {
        width: 100%;
        max-width: 350px;
        height: 400px;
    }
}

@media (max-width: 480px) {
    .discord-widget-container iframe {
        height: 350px;
    }
}

