/* Modern 2025 Portfolio - Ultra-Trendy Design */

/* ============================================ */
/* CSS Variables & Color Palette */
/* ============================================ */
:root {
    /* Light Mode Colors - Modern 2025 Palette */
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-tertiary: #6e6e73;
    
    /* Accent Colors - Vibrant Gradient */
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Glass morphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.12);
    
    /* Status Colors */
    --success: #34c759;
    --error: #ff3b30;
    --warning: #ff9500;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #1c1c1e;
    --bg-tertiary: #2c2c2e;
    --text-primary: #f5f5f7;
    --text-secondary: #98989d;
    --text-tertiary: #8e8e93;
    
    --glass-bg: rgba(28, 28, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
}

/* ============================================ */
/* Global Resets & Base Styles */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 
                 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
    cursor: none;
}

/* Prevent default cursor on all interactive elements */
a, button, input, textarea, select, .btn, .card, .nav-link,
[role="button"], [onclick], .clickable, .interactive-element,
.article-card, .repo-card, .membership-card, .stat-card, .skill-card,
.contact-method, .social-icon, label {
    cursor: none !important;
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    /* Restore default cursors on mobile */
    a, button, input, textarea, select, .btn, .card, .nav-link,
    [role="button"], [onclick], .clickable, .interactive-element,
    .article-card, .repo-card, .membership-card, .stat-card, .skill-card,
    .contact-method, .social-icon, label {
        cursor: auto !important;
    }
}

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

/* ============================================ */
/* Custom Cursor */
/* ============================================ */
.cursor-dot {
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.8);
}

.cursor-outline {
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

@media (max-width: 768px) {
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

/* ============================================ */
/* Animated Background */
/* ============================================ */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    bottom: -10%;
    right: -10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    top: 40%;
    right: 20%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-40px, 40px) scale(0.9);
    }
}

/* ============================================ */
/* Container */
/* ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

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

/* ============================================ */
/* Navigation - Glassmorphism */
/* ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.nav-brand {
    position: relative;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-text {
    position: relative;
    z-index: 2;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.2;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
    transition: color var(--transition-fast);
}

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

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

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

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-full);
    padding: 4px;
    cursor: pointer;
    width: 64px;
    height: 32px;
    position: relative;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    transform: scale(1.05);
}

.toggle-track {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    position: relative;
    background: var(--bg-tertiary);
}

.toggle-thumb {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-gradient);
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    transition: transform var(--transition-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .toggle-thumb {
    transform: translate(32px, -50%);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
}

/* ============================================ */
/* Hero Section */
/* ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    animation: slideDown 0.6s var(--transition-bounce);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(20deg);
    }
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 28px);
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.separator {
    margin: 0 12px;
    opacity: 0.5;
}

.hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

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

.btn-secondary:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn svg {
    transition: transform var(--transition-fast);
}

.btn:hover svg {
    transform: translateX(4px);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: rgba(255,255,255,0.5);
    animation: scrollDown 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(200%);
        opacity: 0;
    }
}

/* ============================================ */
/* Section Styles */
/* ============================================ */
section {
    padding: 120px 0;
    position: relative;
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }
}

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 16px auto 0;
    line-height: 1.6;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* Image Frame with 3D Effect */
.image-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.frame-inner {
    position: relative;
    aspect-ratio: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-xl);
    transform-style: preserve-3d;
    transition: transform var(--transition-base);
}

.frame-inner:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    font-weight: 800;
    color: white;
}

.frame-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
}

.about-text {
    font-size: 17px;
    line-height: 1.8;
}

.lead-text {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.about-text p {
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

/* Experience Timeline */
.experience-timeline {
    margin: 48px 0;
    padding: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.timeline-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    position: relative;
}

.timeline-item:not(:last-child) {
    border-bottom: 1px solid var(--glass-border);
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--accent-gradient);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
    box-shadow: 0 0 0 4px var(--glass-bg);
}

.timeline-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Skills Grid */
.skills {
    margin-top: 48px;
}

.skills h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.skill-category {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-base);
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.skill-category h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateY(-2px);
}

/* ============================================ */
/* Articles Section */
/* ============================================ */
/* ============================================
   Memberships Section
   ============================================ */
.memberships {
    background: var(--bg-primary);
}

.memberships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
}

@media (max-width: 768px) {
    .memberships-grid {
        grid-template-columns: 1fr;
    }
}

/* Membership Card */
.membership-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.membership-header {
    padding: 28px 28px 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.membership-logo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-md);
}

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

.membership-title-group {
    flex: 1;
}

.membership-org {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.membership-full-name {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

.membership-content {
    padding: 20px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.membership-description {
    color: var(--text-tertiary);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.membership-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

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

.membership-badge {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(168, 85, 247, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent-primary);
}

.membership-badge svg,
.membership-since svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.membership-benefits {
    padding: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.membership-benefits h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.membership-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.membership-benefits li {
    color: var(--text-tertiary);
    font-size: 14px;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

.membership-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 700;
}

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

.membership-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all var(--transition-base);
}

.membership-link:hover {
    color: var(--accent-secondary);
    gap: 12px;
}

.membership-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

.membership-link:hover svg {
    transform: translate(2px, -2px);
}

/* ============================================
   Articles Section
   ============================================ */
.articles {
    background: var(--bg-primary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Article Card */
.article-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

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

.article-header {
    padding: 28px 28px 16px;
    border-bottom: 1px solid var(--glass-border);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.article-platform {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--accent-gradient);
    color: white;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.article-date {
    color: var(--text-secondary);
    font-size: 14px;
}

.article-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.article-content {
    padding: 20px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-excerpt {
    color: var(--text-tertiary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.article-tag {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.article-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.article-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

.article-link:hover {
    gap: 8px;
    color: var(--accent-secondary);
}

.article-link::after {
    content: '→';
}

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

.repositories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

@media (max-width: 768px) {
    .repositories-grid {
        grid-template-columns: 1fr;
    }
}

/* Repository Card */
.repo-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

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

.repo-header {
    display: flex;
    align-items: start;
    gap: 12px;
    margin-bottom: 16px;
}

.repo-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.repo-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.repo-visibility {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.repo-description {
    color: var(--text-tertiary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.repo-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.repo-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.repo-stat strong {
    color: var(--text-primary);
    font-weight: 600;
}

.repo-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.repo-topic {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-primary);
}

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

.repo-language {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

.language-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.repo-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

.repo-link:hover {
    gap: 8px;
    color: var(--accent-secondary);
}

.repo-link::after {
    content: '→';
}

/* Loading Spinner */
.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 60px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner p {
    color: var(--text-secondary);
    font-size: 16px;
}

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

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Contact Info */
.contact-hero {
    margin-bottom: 48px;
}

.contact-hero h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-hero p {
    font-size: 17px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.contact-method {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.contact-method:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.method-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.method-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.method-content a,
.method-content p {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color var(--transition-fast);
}

.method-content a:hover {
    color: var(--accent-primary);
}

/* Social Connect */
.social-connect h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.social-icon {
    width: 48px;
    height: 48px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.social-icon:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Contact Form */
.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-header {
    margin-bottom: 32px;
}

.form-header h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 15px;
    color: var(--text-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all var(--transition-fast);
}

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

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

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

.form-status {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.form-status.success {
    background: rgba(52, 199, 89, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
    display: block;
}

.form-status.error {
    background: rgba(255, 59, 48, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
    display: block;
}

/* ============================================ */
/* Footer */
/* ============================================ */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 15px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
    font-size: 14px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

.footer-social {
    display: flex;
    gap: 24px;
}

.footer-social a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

/* ============================================ */
/* AOS Animation Support */
/* ============================================ */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
    transition-duration: 0.6s;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

/* ============================================ */
/* Utility Classes */
/* ============================================ */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* ============================================ */
/* COMPREHENSIVE RESPONSIVE DESIGN */
/* Mobile-First Approach: 480px to 4K (3840px) */
/* ============================================ */

/* ============================================ */
/* Mobile Menu Hamburger */
/* ============================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    border-radius: 2px;
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ============================================ */
/* Extra Small Devices (Phones, 320px to 480px) */
/* ============================================ */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 16px;
        max-width: 100%;
    }
    
    /* Navigation */
    .navbar .container {
        padding-top: 16px;
        padding-bottom: 16px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 20px;
        gap: 0;
        transition: left var(--transition-base);
        border-right: 1px solid var(--glass-border);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-link {
        display: block;
        padding: 20px 0;
        font-size: 18px;
        width: 100%;
    }
    
    .theme-toggle {
        width: 56px;
        height: 28px;
    }
    
    .toggle-thumb {
        width: 20px;
        height: 20px;
    }
    
    [data-theme="dark"] .toggle-thumb {
        transform: translate(28px, -50%);
    }
    
    /* Hero Section */
    .hero {
        min-height: calc(100vh - 70px);
        padding-top: 100px;
        padding-bottom: 40px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 6px 16px;
        margin-bottom: 24px;
    }
    
    .hero-title {
        font-size: 32px !important;
        line-height: 1.2;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 16px !important;
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 14px !important;
        margin-bottom: 24px;
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 40px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 32px !important;
    }
    
    .stat-label {
        font-size: 13px !important;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* About Section */
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-tag {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .section-title {
        font-size: 32px !important;
        margin-top: 12px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 32px;
    }
    
    .about-image {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .image-frame {
        width: 280px;
        height: 280px;
    }
    
    .avatar-placeholder {
        font-size: 72px !important;
    }
    
    .about-text {
        width: 100%;
    }
    
    .lead-text {
        font-size: 18px !important;
        margin-bottom: 16px;
    }
    
    .about-text p {
        font-size: 15px !important;
        margin-bottom: 16px;
    }
    
    .timeline-item h4 {
        font-size: 16px !important;
    }
    
    .timeline-item p {
        font-size: 13px !important;
    }
    
    /* Memberships Section */
    .memberships-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .membership-card {
        padding: 24px;
    }
    
    .membership-logo {
        width: 60px;
        height: 60px;
        font-size: 24px !important;
    }
    
    .membership-info h3 {
        font-size: 18px !important;
    }
    
    .membership-info p {
        font-size: 13px !important;
    }
    
    .membership-status {
        font-size: 12px !important;
        padding: 4px 12px;
    }
    
    .membership-details {
        gap: 12px;
        margin-top: 16px;
    }
    
    .detail-item {
        font-size: 13px !important;
    }
    
    /* Articles Section */
    .articles-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .article-card {
        padding: 20px;
    }
    
    .article-meta {
        font-size: 12px !important;
        margin-bottom: 12px;
    }
    
    .article-card h3 {
        font-size: 18px !important;
        margin-bottom: 8px;
    }
    
    .article-excerpt {
        font-size: 14px !important;
        margin-bottom: 12px;
    }
    
    .article-tags {
        gap: 6px;
    }
    
    .tag {
        font-size: 11px !important;
        padding: 4px 10px;
    }
    
    /* Repositories Section */
    .repos-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .repo-card {
        padding: 20px;
    }
    
    .repo-header h3 {
        font-size: 16px !important;
    }
    
    .repo-description {
        font-size: 13px !important;
        margin: 12px 0;
    }
    
    .repo-stats {
        gap: 16px;
    }
    
    .stat svg {
        width: 14px;
        height: 14px;
    }
    
    .stat span {
        font-size: 12px !important;
    }
    
    .repo-language {
        font-size: 12px !important;
    }
    
    /* Contact Section */
    .contact-wrapper {
        flex-direction: column;
        gap: 32px;
    }
    
    .contact-info,
    .contact-form {
        width: 100%;
    }
    
    .contact-hero h3 {
        font-size: 24px !important;
        margin-bottom: 12px;
    }
    
    .contact-hero p {
        font-size: 15px !important;
    }
    
    .contact-methods {
        gap: 20px;
        margin-top: 24px;
    }
    
    .method-content h4 {
        font-size: 14px !important;
    }
    
    .method-content p,
    .method-content a {
        font-size: 14px !important;
    }
    
    .form-header h3 {
        font-size: 22px !important;
    }
    
    .form-header p {
        font-size: 14px !important;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group label {
        font-size: 14px !important;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 15px !important;
        padding: 12px 16px;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-brand h3 {
        font-size: 20px !important;
    }
    
    .footer-brand p {
        font-size: 14px !important;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    /* Background Orbs - Smaller on mobile */
    .orb-1 {
        width: 300px;
        height: 300px;
    }
    
    .orb-2 {
        width: 250px;
        height: 250px;
    }
    
    .orb-3 {
        width: 200px;
        height: 200px;
    }
}

/* ============================================ */
/* Small Devices (Landscape Phones, 481px to 767px) */
/* ============================================ */
@media (min-width: 481px) and (max-width: 767px) {
    .container {
        padding: 0 24px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 76px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 76px);
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px 24px;
        gap: 0;
        transition: left var(--transition-base);
        border-right: 1px solid var(--glass-border);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-link {
        display: block;
        padding: 20px 0;
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 40px !important;
    }
    
    .hero-subtitle {
        font-size: 18px !important;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn {
        width: auto;
        min-width: 160px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .memberships-grid {
        grid-template-columns: 1fr !important;
    }
    
    .articles-grid {
        grid-template-columns: 1fr !important;
    }
    
    .repos-grid {
        grid-template-columns: 1fr !important;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
}

/* ============================================ */
/* Medium Devices (Tablets, 768px to 1023px) */
/* ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 32px;
        max-width: 100%;
    }
    
    .nav-menu {
        gap: 24px;
    }
    
    .hero-title {
        font-size: 48px !important;
    }
    
    .hero-subtitle {
        font-size: 20px !important;
    }
    
    .hero-description {
        font-size: 17px !important;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .about-content {
        gap: 48px;
    }
    
    .image-frame {
        width: 320px;
        height: 320px;
    }
    
    .memberships-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px;
    }
    
    .repos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    
    .contact-wrapper {
        gap: 48px;
    }
}

/* ============================================ */
/* Large Devices (Desktops, 1024px to 1439px) */
/* ============================================ */
@media (min-width: 1024px) and (max-width: 1439px) {
    .container {
        max-width: 1200px;
        padding: 0 40px;
    }
    
    .hero-title {
        font-size: 56px !important;
    }
    
    .hero-subtitle {
        font-size: 22px !important;
    }
    
    .memberships-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .repos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================ */
/* Extra Large Devices (Large Desktops, 1440px to 2559px) */
/* ============================================ */
@media (min-width: 1440px) and (max-width: 2559px) {
    .container {
        max-width: 1400px;
        padding: 0 48px;
    }
    
    .hero-title {
        font-size: 64px !important;
    }
    
    .hero-subtitle {
        font-size: 24px !important;
    }
    
    .hero-description {
        font-size: 19px !important;
    }
    
    .section-title {
        font-size: 48px !important;
    }
    
    .memberships-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .articles-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .repos-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ============================================ */
/* 2K Displays (2560px to 3839px) */
/* ============================================ */
@media (min-width: 2560px) and (max-width: 3839px) {
    .container {
        max-width: 2000px;
        padding: 0 64px;
    }
    
    .hero-title {
        font-size: 80px !important;
    }
    
    .hero-subtitle {
        font-size: 28px !important;
    }
    
    .hero-description {
        font-size: 22px !important;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .section-title {
        font-size: 56px !important;
    }
    
    .btn {
        padding: 18px 40px;
        font-size: 18px;
    }
    
    .stat-number {
        font-size: 56px !important;
    }
    
    .stat-label {
        font-size: 18px !important;
    }
    
    .memberships-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 32px;
    }
    
    .membership-card {
        padding: 40px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 32px;
    }
    
    .article-card {
        padding: 32px;
    }
    
    .repos-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 28px;
    }
    
    .repo-card {
        padding: 32px;
    }
}

/* ============================================ */
/* 4K Displays (3840px and above) */
/* ============================================ */
@media (min-width: 3840px) {
    .container {
        max-width: 3200px;
        padding: 0 80px;
    }
    
    .navbar .container {
        padding-top: 32px;
        padding-bottom: 32px;
    }
    
    .nav-brand {
        font-size: 36px;
    }
    
    .nav-link {
        font-size: 20px;
    }
    
    .hero {
        padding-top: 160px;
    }
    
    .hero-badge {
        font-size: 18px;
        padding: 12px 32px;
    }
    
    .hero-title {
        font-size: 120px !important;
        margin-bottom: 32px;
    }
    
    .hero-subtitle {
        font-size: 36px !important;
        margin-bottom: 24px;
    }
    
    .hero-description {
        font-size: 28px !important;
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.8;
    }
    
    .btn {
        padding: 24px 56px;
        font-size: 22px;
    }
    
    .hero-stats {
        margin-top: 80px;
        gap: 40px;
    }
    
    .stat-card {
        padding: 48px;
    }
    
    .stat-number {
        font-size: 72px !important;
    }
    
    .stat-label {
        font-size: 22px !important;
    }
    
    .section-tag {
        font-size: 18px;
        padding: 12px 32px;
    }
    
    .section-title {
        font-size: 80px !important;
        margin-top: 24px;
    }
    
    .image-frame {
        width: 600px;
        height: 600px;
    }
    
    .avatar-placeholder {
        font-size: 200px !important;
    }
    
    .lead-text {
        font-size: 32px !important;
        margin-bottom: 32px;
    }
    
    .about-text p {
        font-size: 24px !important;
        line-height: 1.8;
    }
    
    .timeline-item h4 {
        font-size: 26px !important;
    }
    
    .timeline-item p {
        font-size: 20px !important;
    }
    
    .memberships-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 48px;
    }
    
    .membership-card {
        padding: 56px;
    }
    
    .membership-logo {
        width: 120px;
        height: 120px;
        font-size: 48px !important;
    }
    
    .membership-info h3 {
        font-size: 32px !important;
    }
    
    .membership-info p {
        font-size: 20px !important;
    }
    
    .membership-status {
        font-size: 18px !important;
        padding: 8px 24px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 48px;
    }
    
    .article-card {
        padding: 48px;
    }
    
    .article-meta {
        font-size: 18px !important;
    }
    
    .article-card h3 {
        font-size: 32px !important;
    }
    
    .article-excerpt {
        font-size: 20px !important;
    }
    
    .tag {
        font-size: 16px !important;
        padding: 8px 20px;
    }
    
    .repos-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 40px;
    }
    
    .repo-card {
        padding: 48px;
    }
    
    .repo-header h3 {
        font-size: 28px !important;
    }
    
    .repo-description {
        font-size: 20px !important;
    }
    
    .stat span {
        font-size: 18px !important;
    }
    
    .contact-hero h3 {
        font-size: 48px !important;
    }
    
    .contact-hero p {
        font-size: 24px !important;
    }
    
    .method-content h4 {
        font-size: 24px !important;
    }
    
    .method-content p,
    .method-content a {
        font-size: 20px !important;
    }
    
    .form-header h3 {
        font-size: 40px !important;
    }
    
    .form-header p {
        font-size: 20px !important;
    }
    
    .form-group label {
        font-size: 20px !important;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 20px !important;
        padding: 20px 28px;
    }
    
    .footer-brand h3 {
        font-size: 32px !important;
    }
    
    .footer-brand p {
        font-size: 20px !important;
    }
    
    .footer-links a {
        font-size: 18px;
    }
    
    .footer-bottom p {
        font-size: 18px;
    }
}

/* ============================================ */
/* Touch Device Optimizations */
/* ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 48px;
        padding: 14px 28px;
    }
    
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .social-icon {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Remove hover effects */
    .btn:hover,
    .article-card:hover,
    .repo-card:hover,
    .membership-card:hover {
        transform: none;
    }
    
    /* Disable custom cursor on touch devices */
    body {
        cursor: auto !important;
    }
}

/* ============================================ */
/* Print Styles */
/* ============================================ */
@media print {
    .navbar,
    .hero-buttons,
    .scroll-indicator,
    .contact-form,
    .footer,
    .bg-animation,
    .cursor-dot,
    .cursor-outline,
    .mobile-menu-toggle,
    .theme-toggle {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero,
    section {
        page-break-inside: avoid;
    }
}

/* ============================================ */
/* Landscape Orientation Optimizations */
/* ============================================ */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ============================================ */
/* Reduced Motion Support */
/* ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .gradient-orb {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
}
