/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

/* Allow text selection and pointer cursor for interactive elements */
button, a, input, textarea, select {
    user-select: auto;
    cursor: pointer;
}

input, textarea {
    cursor: text;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #f59e0b;
    --accent-color: #6366f1;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --background: #ffffff;
    --background-secondary: #f9fafb;
    --background-dark: #111827;
    --border-color: #e5e7eb;
    --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);
    
    /* Typography */
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 2.25rem;
    --radius-md: 2.25rem;
    --radius-lg: 2.25rem;
    --radius-xl: 2.25rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 24px;
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    position: relative;
    min-width: 140px;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background: #1e293b;
    color: white;
    border: 2px solid #1e293b;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.3);
}

.btn-primary:hover {
    background: #334155;
    border-color: #334155;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.4);
}

.btn-primary:active {
    background: #0f172a;
    border-color: #0f172a;
    box-shadow: 0 1px 4px rgba(30, 41, 59, 0.5);
}

.btn-outline {
    background: transparent;
    color: #1e293b;
    border: 2px solid #1e293b;
    box-shadow: none;
}

.btn-outline:hover {
    background: #1e293b;
    color: white;
    border-color: #1e293b;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.3);
}

.btn-outline:active {
    background: #0f172a;
    border-color: #0f172a;
    box-shadow: 0 1px 4px rgba(30, 41, 59, 0.5);
}

.btn-sm {
    padding: 12px 24px;
    font-size: 12px;
    min-width: 120px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 12px;
    min-width: 150px;
    border-radius: var(--radius-lg);
}

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

/* ===== PRELOADER ===== */


/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    height: 60px;
    background: transparent;
    backdrop-filter: none;
    border: 1px solid transparent;
    border-radius: var(--radius-xl);
    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(40px) saturate(200%);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.navbar {
    padding: 8px 24px;
    height: 100%;
    display: flex;
    align-items: center;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: var(--font-size-xl);
    cursor: pointer;
}

.logo-icon {
    color: var(--primary-color);
    font-family: var(--font-mono);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-normal);
    position: relative;
    cursor: pointer;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

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

/* ===== DROPDOWN MENU STYLES ===== */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-icon {
    font-size: 12px;
    transition: transform var(--transition-normal);
}

.nav-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    padding: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown {
    transition: transform 0.3s ease;
}

.nav-dropdown:hover {
    transform: none;
}

.nav-dropdown .nav-link {
    transition: color 0.3s ease;
}

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

.nav-dropdown .nav-link::after {
    display: none;
}

.dropdown-item {
    margin: 0;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-md);
    margin: 2px;
    outline: none;
    border: none;
    box-shadow: none;
}

.dropdown-link:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}

.external-link {
    position: relative;
}

.external-icon {
    font-size: 10px;
    opacity: 0.6;
    margin-left: auto;
}

.external-link:hover .external-icon {
    opacity: 1;
}

.dropdown-link i:first-child {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

/* Стрелка указывающая на dropdown */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: none;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

/* Невидимая область для плавного hover */
.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -21px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 21px;
    background: transparent;
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
    .nav-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    .dropdown-menu {
        position: fixed;
        top: 80px;
        left: 20px;
        right: 20px;
        transform: none;
        width: calc(100% - 40px);
        min-width: auto;
        max-width: none;
        padding: 16px;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .dropdown-menu::after {
        display: none;
    }
    
    .dropdown-item {
        margin-bottom: 8px;
    }
    
    .dropdown-item:last-child {
        margin-bottom: 0;
    }
    
    .dropdown-link {
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 8px;
        background: var(--background-light);
        border: 1px solid var(--border-color);
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: all 0.2s ease;
    }
    
    .dropdown-link:hover {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        transform: none;
    }
    
    .dropdown-link i:first-child {
        width: 20px;
        text-align: center;
        font-size: 16px;
    }
    
    .external-icon {
        margin-left: auto;
        font-size: 12px;
    }
}

/* Tablet dropdown styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .dropdown-menu {
        min-width: 240px;
        padding: 12px;
    }
    
    .dropdown-link {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .dropdown-link i:first-child {
        width: 18px;
        font-size: 15px;
    }
}

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



.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding-top: 100px;
}

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

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-2xl);
    align-items: center;
    padding: var(--spacing-3xl) 0;
}

.hero-greeting {
    margin-bottom: var(--spacing-lg);
}

.greeting-text {
    color: var(--primary-color);
    font-weight: 500;
    font-size: var(--font-size-lg);
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-xl);
}

.title-line {
    display: block;
}

.title-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

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

.stat-number {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.code-window {
    background: var(--background-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.window-header {
    background: #1e293b;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.window-controls {
    display: flex;
    gap: var(--spacing-sm);
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close { background: #ef4444; }
.control.minimize { background: #f59e0b; }
.control.maximize { background: #6366f1; }

.window-title {
    color: #94a3b8;
    font-size: var(--font-size-sm);
    font-family: var(--font-mono);
}

.window-content {
    padding: var(--spacing-lg);
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
}

.code-line {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

/* Hide code content initially for typing animation */
.code-line .code {
    opacity: 0;
}

.code-line .code.typing-ready {
    opacity: 1;
}

.line-number {
    color: #64748b;
    margin-right: var(--spacing-lg);
    min-width: 20px;
}

.code {
    color: #e2e8f0;
}

.keyword { color: #c084fc; }
.variable { color: #60a5fa; }
.property { color: #34d399; }
.string { color: #fbbf24; }

/* Cursor blink animation */
.cursor-blink {
    animation: blink 1s infinite;
    color: var(--primary-color);
    font-weight: bold;
}

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

.floating-elements {
    position: absolute;
    width: 1400px;
    height: 1400px;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.tech-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -30px;
    backdrop-filter: blur(10px);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
}

.tech-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.tech-icon:hover {
    opacity: 1;
    transform: scale(1.3) rotate(10deg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
}

.tech-react {
    color: #61dafb;
    /* animation: chaotic-float-1 8s linear infinite; */
}

.tech-js {
    color: #f7df1e;
    /* animation: chaotic-float-2 12s linear infinite; */
}

.tech-html {
    color: #e34f26;
    /* animation: chaotic-float-3 10s linear infinite; */
}

.tech-css {
    color: #1572b6;
    /* animation: chaotic-float-4 15s linear infinite; */
}

.tech-nextjs {
    color: #000000;
    /* animation: chaotic-float-5 14s linear infinite; */
}

.tech-vue {
    color: #4fc08d;
    /* animation: chaotic-float-6 9s linear infinite; */
}

.tech-docker {
    color: #2496ed;
    /* animation: chaotic-float-7 11s linear infinite; */
}

.tech-portainer {
    color: #13bef9;
    /* animation: chaotic-float-8 13s linear infinite; */
}

.tech-php {
    color: #777bb4;
    /* animation: chaotic-float-9 16s linear infinite; */
}

.tech-phpmyadmin {
    color: #f29111;
}

.tech-sql {
    color: #336791;
}

.tech-trae {
    color: #00d4ff;
}

.tech-cursorai {
    color: #8b5cf6;
}

.tech-deepseek {
    color: #ff6b6b;
}

.tech-anthropic {
    color: #ff8c42;
}

.tech-chatgpt {
    color: #10a37f;
}

@keyframes chaotic-float-1 {
    0% { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 0.7; }
    8% { transform: translate(280px, 0) rotate(29deg) scale(1); opacity: 1; }
    25% { transform: translate(198px, -198px) rotate(90deg); }
    50% { transform: translate(0, -280px) rotate(180deg); }
    75% { transform: translate(-198px, -198px) rotate(270deg); }
    100% { transform: translate(280px, 0) rotate(360deg); }
}

@keyframes chaotic-float-2 {
    0% { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 0.7; }
    6% { transform: translate(-260px, 0) rotate(22deg) scale(1); opacity: 1; }
    25% { transform: translate(-184px, 184px) rotate(90deg); }
    50% { transform: translate(0, 260px) rotate(180deg); }
    75% { transform: translate(184px, 184px) rotate(270deg); }
    100% { transform: translate(-260px, 0) rotate(360deg); }
}

@keyframes chaotic-float-3 {
    0% { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 0.7; }
    7% { transform: translate(0, 300px) rotate(25deg) scale(1); opacity: 1; }
    25% { transform: translate(-212px, 212px) rotate(90deg); }
    50% { transform: translate(-300px, 0) rotate(180deg); }
    75% { transform: translate(-212px, -212px) rotate(270deg); }
    100% { transform: translate(0, 300px) rotate(360deg); }
}

@keyframes chaotic-float-4 {
    0% { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 0.7; }
    5% { transform: translate(200px, 200px) rotate(18deg) scale(1); opacity: 1; }
    25% { transform: translate(0, 283px) rotate(90deg); }
    50% { transform: translate(-200px, 200px) rotate(180deg); }
    75% { transform: translate(-283px, 0) rotate(270deg); }
    100% { transform: translate(200px, 200px) rotate(360deg); }
}

@keyframes chaotic-float-5 {
    0% { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 0.7; }
    9% { transform: translate(-200px, -200px) rotate(32deg) scale(1); opacity: 1; }
    25% { transform: translate(-283px, 0) rotate(90deg); }
    50% { transform: translate(-200px, 200px) rotate(180deg); }
    75% { transform: translate(0, 283px) rotate(270deg); }
    100% { transform: translate(-200px, -200px) rotate(360deg); }
}

@keyframes chaotic-float-6 {
    0% { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 0.7; }
    10% { transform: translate(350px, 0) rotate(36deg) scale(1); opacity: 1; }
    25% { transform: translate(247px, -247px) rotate(90deg); }
    50% { transform: translate(0, -350px) rotate(180deg); }
    75% { transform: translate(-247px, -247px) rotate(270deg); }
    100% { transform: translate(350px, 0) rotate(360deg); }
}

@keyframes chaotic-float-7 {
    0% { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 0.7; }
    12% { transform: translate(0, -380px) rotate(43deg) scale(1); opacity: 1; }
    25% { transform: translate(-269px, -269px) rotate(90deg); }
    50% { transform: translate(-380px, 0) rotate(180deg); }
    75% { transform: translate(-269px, 269px) rotate(270deg); }
    100% { transform: translate(0, -380px) rotate(360deg); }
}

@keyframes chaotic-float-8 {
    0% { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 0.7; }
    13% { transform: translate(-290px, 290px) rotate(47deg) scale(1); opacity: 1; }
    25% { transform: translate(-410px, 0) rotate(90deg); }
    50% { transform: translate(-290px, -290px) rotate(180deg); }
    75% { transform: translate(0, -410px) rotate(270deg); }
    100% { transform: translate(-290px, 290px) rotate(360deg); }
}

@keyframes chaotic-float-9 {
    0% { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 0.7; }
    14% { transform: translate(250px, -250px) rotate(50deg) scale(1); opacity: 1; }
    25% { transform: translate(354px, 0) rotate(90deg); }
    50% { transform: translate(250px, 250px) rotate(180deg); }
    75% { transform: translate(0, 354px) rotate(270deg); }
    100% { transform: translate(250px, -250px) rotate(360deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-2xl);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: var(--radius-md);
    margin: 0 auto var(--spacing-md);
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: var(--radius-sm);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

.scroll-text {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SECTION STYLES ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.section-description {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: var(--spacing-3xl) 0;
    background: var(--background-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.about-story h3,
.about-values h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.about-story {
    margin-bottom: var(--spacing-2xl);
}

.about-story p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.values-list {
    list-style: none;
}

.values-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

.values-list i {
    color: var(--accent-color);
    font-size: var(--font-size-lg);
}

.skills-category {
    margin-bottom: var(--spacing-xl);
}

.skills-category h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.skill-tag {
    background: white;
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

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

/* ===== SERVICES SECTION ===== */


/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
    padding: var(--spacing-3xl) 0;
    background: var(--background-secondary);
}

.portfolio-showcase {
    width: 100%;
}

/* Featured Project */
.featured-project {
    grid-area: featured;
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-project:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}



.project-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
}

.project-mockup {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 16/10;
    background: white;
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: var(--background-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.mockup-header {
    height: 32px;
    background: white;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #28ca42; }

.mockup-content {
    padding: 16px;
    height: calc(100% - 32px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.content-block {
    height: 24px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    animation: pulse 2s infinite;
}

.content-block.small { width: 60%; }
.content-block.medium { width: 80%; }

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









/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Featured project sizing and styling */
.projects-grid .project-card.featured-project {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    font-size: 16px;
    padding: 2rem;
}

.projects-grid .project-card.featured-project .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.projects-grid .project-card.featured-project .card-description {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.projects-grid .project-card.featured-project .project-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
}

.projects-grid .project-card.featured-project .card-tech span {
    font-size: 0.875rem;
    padding: 6px 12px;
}

.projects-grid .project-card.featured-project .card-header {
    margin-bottom: 1.5rem;
}

/* Regular project cards positioning */
/* 1. MINESBORKA - колонки 1-2, ряды 1-2 (уже задано выше) */

/* 2. INZEFIRE - колонки 3-4, ряд 1 */
.projects-grid .project-card:nth-child(2) {
    grid-column: 3 / 5;
    grid-row: 1;
}

/* 3. Trust - 2 ряд 3 колонка */
.projects-grid .project-card:nth-child(3) {
    grid-column: 3;
    grid-row: 2;
}

/* 4. Аналитическая панель - 2 ряд 4 колонка */
.projects-grid .project-card:nth-child(4) {
    grid-column: 4;
    grid-row: 2;
}

/* Будущие карточки */
/* 5. 3 ряд 1 колонка */
.projects-grid .project-card:nth-child(5) {
    grid-column: 1;
    grid-row: 3;
}

/* 6. 3 ряд 2 колонка */
.projects-grid .project-card:nth-child(6) {
    grid-column: 2;
    grid-row: 3;
}

/* 7. 3 ряд 3 колонка */
.projects-grid .project-card:nth-child(7) {
    grid-column: 3;
    grid-row: 3;
}

/* 8. 3 ряд 4 колонка */
.projects-grid .project-card:nth-child(8) {
    grid-column: 4;
    grid-row: 3;
}

.projects-grid .project-card:nth-child(n+9) {
    grid-column: auto;
}

/* Smaller styles for all project cards (excluding featured project MINESBORKA) */
.projects-grid .project-card .card-title {
    font-size: 16px;
}

.projects-grid .project-card .card-description {
    font-size: var(--font-size-sm);
}

/* Base font size for first and second cards */
.projects-grid .project-card:nth-child(1) .card-description,
.projects-grid .project-card:nth-child(2) .card-description {
    font-size: var(--font-size-base);
}

/* Position for third card (Trust) - 2 ряд 3 колонка */
.projects-grid .project-card:nth-child(3) {
    grid-column: 3;
    grid-row: 2;
}

/* Position for fourth card (Аналитическая панель) - 2 ряд 4 колонка */
.projects-grid .project-card:nth-child(4) {
    grid-column: 4;
    grid-row: 2;
}

.projects-grid .project-card .project-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

/* Larger styles for featured project - only for desktop */
@media (min-width: 1025px) {
    .featured-project .card-title {
        font-size: 24px;
        font-weight: 700;
    }

    .featured-project .card-description {
        font-size: 16px;
        line-height: 1.6;
    }

    .featured-project .project-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .featured-project .card-tech span {
        font-size: 14px;
        padding: 6px 12px;
    }

    .featured-project .card-link {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

.project-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.project-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
}

.project-status {
    padding: 4px 12px;
    background: white;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 16px 0;
    font-size: 14px;
    flex-grow: 1;
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
}

.card-tech span {
    padding: 4px 8px;
    background: var(--background-secondary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
}

.card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
}

.card-link {
    width: 36px;
    height: 36px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.card-link * {
    cursor: pointer;
}

.card-link:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.portfolio-cta {
    text-align: center;
}

.portfolio-cta p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* ===== EXPERIENCE SECTION ===== */
.experience-section {
    padding: var(--spacing-3xl) 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-3xl);
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 20px; /* Center of line at 30px: 30px - 10px (half of 20px) = 20px */
    top: 24px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.timeline-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-period {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.timeline-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
    padding: var(--spacing-3xl) 0;
    background: var(--background-secondary);
    overflow: hidden;
}

.partners-carousel {
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: fit-content;
    padding: 20px 0;
    will-change: transform;
}

.partner-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 120px;
    transition: all 0.3s ease;
}

.partner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7);
    transition: all 0.3s ease;
    opacity: 0.6;
}

.partner-item:hover .partner-logo {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}



/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: var(--spacing-3xl) 0;
    background: var(--background-secondary);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-xl);
    justify-content: center;
    align-items: stretch;
    max-width: 800px;
    width: 100%;
}

.contact-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
    flex: 1;
}

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

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
}

.contact-icon i {
    font-size: var(--font-size-xl);
    color: white;
}

.contact-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

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

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.contact-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}





/* ===== FOOTER ===== */
.footer {
    padding: var(--spacing-xl) 0;
    background: var(--background-secondary);
}

.footer-copyright {
    text-align: center;
    color: var(--text-secondary);
}

.copyright-text {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.development-text {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.dev-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

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

.dev-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.fas.fa-heart {
    color: #e74c3c;
    animation: heartbeat 1.5s ease-in-out infinite;
    margin-left: 4px;
    transition: color 0.3s ease;
}

.development-text:hover .fas.fa-heart {
    color: #ffb3ba;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    /* Hide games section in navigation on tablets */
    .nav-item:has(a[href="games.html"]) {
        display: none !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-2xl);
    }
    
    .hero-visual {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    /* Hide contact button on tablets */
    .nav-actions {
        display: none;
    }
    
    /* Hide scroll indicator on tablets */
    .scroll-indicator {
        display: none;
    }
    
    /* Fix navbar padding on tablets */
    .navbar {
        padding: 8px 24px;
    }
    
    /* Disable hover effects on tablets */
    .project-card:hover,
    .btn:hover,
    .contact-card:hover,
    .skill-card:hover,
    .nav-link:hover {
        transform: none !important;
        box-shadow: var(--shadow-md) !important;
    }
    

    
    /* Projects grid for tablets - single column with uniform styles */
    .projects-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        grid-template-areas: none;
    }
    
    /* Reset all project cards to uniform styles on tablets */
    .projects-grid .project-card {
        padding: 24px;
        grid-column: unset !important;
        grid-row: unset !important;
    }
    
    /* Reset featured project styles to match regular cards */
    .projects-grid .project-card.featured-project {
        padding: 24px;
        font-size: inherit;
        grid-column: unset !important;
        grid-row: unset !important;
    }
    
    /* Uniform card title styles */
    .projects-grid .project-card .card-title,
    .projects-grid .project-card.featured-project .card-title {
        font-size: 18px !important;
        font-weight: 600;
        margin-bottom: 12px;
    }
    
    /* Uniform card description styles */
    .projects-grid .project-card .card-description,
    .projects-grid .project-card.featured-project .card-description,
    .projects-grid .project-card:nth-child(2) .card-description {
        font-size: 14px !important;
        line-height: 1.5;
        margin-bottom: 16px;
    }
    
    /* Uniform project icon styles */
    .projects-grid .project-card .project-icon,
    .projects-grid .project-card.featured-project .project-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 20px !important;
    }
    
    /* Uniform card tech styles */
    .projects-grid .project-card .card-tech span,
    .projects-grid .project-card.featured-project .card-tech span {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }
    
    /* Uniform card header styles */
    .projects-grid .project-card .card-header,
    .projects-grid .project-card.featured-project .card-header {
        margin-bottom: 24px !important;
    }
    
    /* Uniform card link styles */
    .projects-grid .project-card .card-link,
    .projects-grid .project-card.featured-project .card-link {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }
    
    /* Override all featured project specific styles */
    .projects-grid .project-card.featured-project .card-title {
        font-size: 18px !important;
        font-weight: 600 !important;
        margin-bottom: 12px !important;
    }
    
    .projects-grid .project-card.featured-project .card-description {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
    }
    
    .projects-grid .project-card.featured-project .project-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 20px !important;
    }
    
    /* Timeline styles for tablets */
    .timeline {
        max-width: 100%;
        padding: 0 24px;
    }
    
    .timeline-item {
        padding-left: 50px;
        margin-bottom: 32px;
    }
    
    .timeline-marker {
        left: 12px; /* Center of line at 19px: 19px - 7px (half of 14px) = 12px */
        width: 14px;
        height: 14px;
        border: 3px solid white;
    }
    
    .timeline-content {
        padding: 24px 20px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    .timeline-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
        gap: 16px;
    }
    
    .timeline-header h3 {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 0;
        line-height: 1.3;
    }
    
    .timeline-period {
        font-size: 13px;
        padding: 8px 14px;
        border-radius: var(--radius-md);
        font-weight: 500;
        white-space: nowrap;
    }
    
    .timeline-description {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 18px;
        color: var(--text-secondary);
    }
    
    .timeline-skills {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .timeline-skills .skill-tag {
        font-size: 13px;
        padding: 8px 12px;
        border-radius: var(--radius-md);
        background: var(--background-light);
        color: var(--text-primary);
        border: 1px solid var(--border-color);
        font-weight: 500;
    }
    
    /* Adjust timeline vertical line for tablets */
    .timeline::before {
        left: 19px; /* Center of 14px marker: 12px + 7px = 19px */
        width: 2px;
    }
    
    /* Fix button border-radius on tablets */
    .btn {
        border-radius: var(--radius-xl) !important;
    }
ь    
    /* Adjust tech icons orbit for tablets */
    .tech-icon {
        width: 50px;
        height: 50px;
        margin: -25px 0 0 -25px;
        font-size: var(--font-size-xl);
    }
    
    @keyframes orbit-1 {
        0% { transform: rotate(0deg) translateX(150px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
    }
    
    @keyframes orbit-2 {
        0% { transform: rotate(90deg) translateX(120px) rotate(-90deg); }
        100% { transform: rotate(450deg) translateX(120px) rotate(-450deg); }
    }
    
    @keyframes orbit-3 {
        0% { transform: rotate(180deg) translateX(160px) rotate(-180deg); }
        100% { transform: rotate(540deg) translateX(160px) rotate(-540deg); }
    }
    
    @keyframes orbit-4 {
        0% { transform: rotate(120deg) translateX(130px) rotate(-120deg); }
        100% { transform: rotate(480deg) translateX(130px) rotate(-480deg); }
    }
    
    @keyframes orbit-5 {
        0% { transform: rotate(160deg) translateX(170px) rotate(-160deg); }
        100% { transform: rotate(520deg) translateX(170px) rotate(-520deg); }
    }
    
    @keyframes orbit-6 {
        0% { transform: rotate(200deg) translateX(100px) rotate(-200deg); }
        100% { transform: rotate(560deg) translateX(100px) rotate(-560deg); }
    }
    
    @keyframes orbit-7 {
        0% { transform: rotate(240deg) translateX(180px) rotate(-240deg); }
        100% { transform: rotate(600deg) translateX(180px) rotate(-600deg); }
    }
    
    @keyframes orbit-8 {
        0% { transform: rotate(280deg) translateX(140px) rotate(-280deg); }
        100% { transform: rotate(640deg) translateX(140px) rotate(-640deg); }
    }
    
    @keyframes orbit-9 {
        0% { transform: rotate(320deg) translateX(160px) rotate(-320deg); }
        100% { transform: rotate(680deg) translateX(160px) rotate(-680deg); }
    }
}

/* Desktop/Mobile visibility classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    /* Hide games section in navigation */
    .nav-item:has(a[href="games.html"]) {
        display: none !important;
    }
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 10px;
        right: 10px;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        border-radius: var(--radius-lg);
        gap: 8px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu .nav-item {
        margin-bottom: 0;
    }
    
    .nav-menu .nav-link {
        font-size: 16px;
        padding: 12px 16px;
        background: var(--background-light);
        border-radius: var(--radius-md);
        display: block;
        text-align: center;
        border: 1px solid var(--border-color);
        transition: none;
    }
    
    /* Mobile resource links styling */
    .nav-menu .mobile-only .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        text-decoration: none;
    }
    
    .nav-menu .mobile-only .nav-link i {
        font-size: 14px;
    }
    
    .nav-menu .mobile-only .nav-link .fa-external-link-alt {
        margin-left: auto;
        font-size: 12px;
        opacity: 0.7;
    }
    
    .nav-menu .nav-link::after {
        display: none;
    }
    
    /* Mobile dropdown styles */
    .nav-menu .nav-dropdown {
        position: relative;
    }
    
    .nav-menu .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 8px 0 0 0;
        margin: 0;
        min-width: auto;
    }
    
    .nav-menu .dropdown-menu::before,
    .nav-menu .dropdown-menu::after {
        display: none;
    }
    
    .nav-menu .nav-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-menu .dropdown-item {
        margin-bottom: 8px;
    }
    
    .nav-menu .dropdown-link {
        padding: 12px 16px;
        background: var(--background-light);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        color: var(--text-primary);
        font-size: 15px;
        transition: all 0.2s ease;
    }
    
    .nav-menu .dropdown-link:hover {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
    
    .nav-menu .dropdown-link i:first-child {
        width: 18px;
        text-align: center;
        font-size: 14px;
    }
    
    .nav-menu .dropdown-link .external-icon {
        margin-left: auto;
        font-size: 12px;
        opacity: 0.7;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hide contact button on mobile */
    .nav-actions {
        display: none;
    }
    
    /* Hide scroll indicator on mobile */
    .scroll-indicator {
        display: none;
    }
    
    /* Fix button border-radius on mobile */
    .btn {
        border-radius: var(--radius-xl) !important;
    }
    
    /* Disable all hover effects on mobile except buttons */
    .project-card:hover,
    .contact-card:hover,
    .skill-card:hover,
    .nav-link:hover,
    .timeline-item:hover,
    .about-card:hover {
        transform: none !important;
    }
    
    .btn-primary:hover {
        background: #334155 !important;
        border-color: #334155 !important;
        box-shadow: 0 4px 12px rgba(30, 41, 59, 0.4) !important;
        transform: none !important;
    }
    
    .btn-outline:hover {
        background: #1e293b !important;
        color: white !important;
        border-color: #1e293b !important;
        box-shadow: 0 2px 8px rgba(30, 41, 59, 0.3) !important;
        transform: none !important;
    }
    
    /* Disable transitions for better mobile performance, but keep tech-icon, cursor animations and header transitions */
    *:not(.tech-icon):not(.cursor-blink):not(.header) {
        transition: none !important;
        animation-duration: 0s !important;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-visual {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .btn {
        min-width: 160px;
        font-size: 14px;
    }
    
    .header {
        top: 0;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
        border: none;
        transition: all 0.3s ease;
    }
    
    .header.scrolled {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(40px) saturate(200%);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
        border: none;
    }
    
    .hero-section {
        padding-top: 60px;
    }

    .navbar {
        padding: 6px 16px;
    }
    
    /* Portfolio Mobile Styles */
    .portfolio-showcase {
        display: flex;
        flex-direction: column;
        gap: 32px;
        grid-template-areas: none;
    }
    
    .featured-project {
        padding: 24px;
    }
    
    .project-visual {
        order: 2;
    }
    
    .project-info {
        order: 1;
        gap: 16px;
    }
    
    .project-title {
        font-size: 24px;
    }
    
    .project-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .projects-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        grid-template-areas: none;
    }
    
    /* Reset all project cards to uniform styles on mobile */
    .projects-grid .project-card {
        padding: 24px;
        grid-column: unset !important;
        grid-row: unset !important;
    }
    
    /* Reset featured project styles to match regular cards */
    .projects-grid .project-card.featured-project {
        padding: 24px;
        font-size: inherit;
        grid-column: unset !important;
        grid-row: unset !important;
    }
    
    /* Uniform card title styles */
    .projects-grid .project-card .card-title,
    .projects-grid .project-card.featured-project .card-title {
        font-size: 18px !important;
        font-weight: 600;
        margin-bottom: 12px;
    }
    
    /* Uniform card description styles */
    .projects-grid .project-card .card-description,
    .projects-grid .project-card.featured-project .card-description,
    .projects-grid .project-card:nth-child(2) .card-description {
        font-size: 14px !important;
        line-height: 1.5;
        margin-bottom: 16px;
    }
    
    /* Uniform project icon styles */
    .projects-grid .project-card .project-icon,
    .projects-grid .project-card.featured-project .project-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 20px !important;
    }
    
    /* Uniform card tech styles */
    .projects-grid .project-card .card-tech span,
    .projects-grid .project-card.featured-project .card-tech span {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }
    
    /* Uniform card header styles */
    .projects-grid .project-card .card-header,
    .projects-grid .project-card.featured-project .card-header {
        margin-bottom: 24px !important;
    }
    
    /* Uniform card link styles */
    .projects-grid .project-card .card-link,
    .projects-grid .project-card.featured-project .card-link {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }
    
    /* Override all featured project specific styles for mobile */
    .projects-grid .project-card.featured-project .card-title {
        font-size: 18px !important;
        font-weight: 600 !important;
        margin-bottom: 12px !important;
    }
    
    .projects-grid .project-card.featured-project .card-description {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
    }
    
    .projects-grid .project-card.featured-project .project-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 20px !important;
    }
    
    .timeline::before {
        left: 24px;
    }
    
    .timeline-marker {
        left: 16px;
        top: 20px;
        width: 16px;
        height: 16px;
        border: 3px solid white;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-content {
        border-radius: var(--radius-md);
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .contact-info {
        flex-direction: column;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .hero-actions .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .portfolio-filters {
        flex-direction: column;
        align-items: center;
    }
    
    /* Hide timeline line and markers on mobile */
    .timeline::before {
        display: none;
    }
    
    .timeline-marker {
        display: none;
    }
    
    .timeline {
        max-width: 100%;
        padding: 0;
    }
    
    .timeline-item {
        padding-left: 0;
        margin-bottom: 24px;
    }
    
    /* Style timeline cards like project cards */
    .timeline-content {
        background: white;
        padding: 24px;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-color);
        display: flex;
        flex-direction: column;
        height: 100%;
        transition: all var(--transition-normal);
    }
    
    .timeline-content:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: rgba(99, 102, 241, 0.3);
    }
    
    /* Style timeline header like project card header */
    .timeline-header {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 24px;
    }
    
    .timeline-header h3 {
        font-size: 18px;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0;
        line-height: 1.3;
    }
    
    .timeline-period {
        padding: 4px 12px;
        background: white;
        border-radius: var(--radius-md);
        font-size: 12px;
        font-weight: 500;
        color: var(--text-secondary);
        border: 1px solid var(--border-color);
    }
    
    .timeline-description {
        color: var(--text-secondary);
        line-height: 1.5;
        margin: 0 0 16px 0;
        font-size: 14px;
        flex-grow: 1;
    }
    
    .timeline-skills {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: flex-start;
        align-items: center;
        margin-top: auto;
    }
    
    .timeline-skills .skill-tag {
        padding: 4px 8px;
        background: var(--background-secondary);
        border-radius: var(--radius-sm);
        font-size: 12px;
        color: var(--text-secondary);
        border: 1px solid var(--border-color);
    }
    
    /* Reduce floating elements on mobile for better performance */
    .tech-icon:nth-child(n+7) {
        display: none;
    }
    
    /* Adjust remaining tech icons for mobile - reduced to 0.4x size */
    .tech-icon {
        width: 16px;
        height: 16px;
        margin: -8px 0 0 -8px;
        font-size: 12px;
    }
    
    .tech-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    @keyframes chaotic-float-1 {
        0% { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 0.7; }
        8% { transform: translate(140px, 0) rotate(29deg) scale(1); opacity: 1; }
        25% { transform: translate(99px, -99px) rotate(90deg); }
        50% { transform: translate(0, -140px) rotate(180deg); }
        75% { transform: translate(-99px, -99px) rotate(270deg); }
        100% { transform: translate(140px, 0) rotate(360deg); }
    }
    
    @keyframes chaotic-float-2 {
        0% { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 0.7; }
        6% { transform: translate(-130px, 0) rotate(22deg) scale(1); opacity: 1; }
        25% { transform: translate(-92px, 92px) rotate(90deg); }
        50% { transform: translate(0, 130px) rotate(180deg); }
        75% { transform: translate(92px, 92px) rotate(270deg); }
        100% { transform: translate(-130px, 0) rotate(360deg); }
    }
    
    @keyframes chaotic-float-3 {
        0% { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 0.7; }
        7% { transform: translate(0, 150px) rotate(25deg) scale(1); opacity: 1; }
        25% { transform: translate(-106px, 106px) rotate(90deg); }
        50% { transform: translate(-150px, 0) rotate(180deg); }
        75% { transform: translate(-106px, -106px) rotate(270deg); }
        100% { transform: translate(0, 150px) rotate(360deg); }
    }
    
    @keyframes chaotic-float-4 {
        0% { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 0.7; }
        5% { transform: translate(100px, 100px) rotate(18deg) scale(1); opacity: 1; }
        25% { transform: translate(0, 141px) rotate(90deg); }
        50% { transform: translate(-100px, 100px) rotate(180deg); }
        75% { transform: translate(-141px, 0) rotate(270deg); }
        100% { transform: translate(100px, 100px) rotate(360deg); }
    }
    
    @keyframes chaotic-float-5 {
        0% { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 0.7; }
        9% { transform: translate(-100px, -100px) rotate(32deg) scale(1); opacity: 1; }
        25% { transform: translate(-141px, 0) rotate(90deg); }
        50% { transform: translate(-100px, 100px) rotate(180deg); }
        75% { transform: translate(0, 141px) rotate(270deg); }
        100% { transform: translate(-100px, -100px) rotate(360deg); }
    }
    
    @keyframes chaotic-float-6 {
        0% { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 0.7; }
        10% { transform: translate(175px, 0) rotate(36deg) scale(1); opacity: 1; }
        25% { transform: translate(124px, -124px) rotate(90deg); }
        50% { transform: translate(0, -175px) rotate(180deg); }
        75% { transform: translate(-124px, -124px) rotate(270deg); }
        100% { transform: translate(175px, 0) rotate(360deg); }
    }
    
    @keyframes chaotic-float-7 {
        0% { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 0.7; }
        12% { transform: translate(0, -190px) rotate(43deg) scale(1); opacity: 1; }
        25% { transform: translate(-134px, -134px) rotate(90deg); }
        50% { transform: translate(-190px, 0) rotate(180deg); }
        75% { transform: translate(-134px, 134px) rotate(270deg); }
        100% { transform: translate(0, -190px) rotate(360deg); }
    }
    
    @keyframes chaotic-float-8 {
        0% { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 0.7; }
        13% { transform: translate(-145px, 145px) rotate(47deg) scale(1); opacity: 1; }
        25% { transform: translate(-205px, 0) rotate(90deg); }
        50% { transform: translate(-145px, -145px) rotate(180deg); }
        75% { transform: translate(0, -205px) rotate(270deg); }
        100% { transform: translate(-145px, 145px) rotate(360deg); }
    }
    
    @keyframes chaotic-float-9 {
        0% { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 0.7; }
        14% { transform: translate(125px, -125px) rotate(50deg) scale(1); opacity: 1; }
        25% { transform: translate(177px, 0) rotate(90deg); }
        50% { transform: translate(125px, 125px) rotate(180deg); }
        75% { transform: translate(0, 177px) rotate(270deg); }
        100% { transform: translate(125px, -125px) rotate(360deg); }
    }
}

/* Mobile styles for partners section */
@media (max-width: 768px) {
    .partners-section {
        padding: 80px 0;
    }
    
    .partners-track {
        gap: 60px;
        padding: 15px 0;
    }
    
    .partner-item {
        width: 140px;
        height: 90px;
    }
}

@media (max-width: 480px) {
    .partners-section {
        padding: 60px 0;
    }
    
    .partners-track {
        gap: 40px;
        padding: 10px 0;
    }
    
    .partner-item {
        width: 120px;
        height: 80px;
    }
}

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

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

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

.animate-on-scroll {
    opacity: 0;
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== UTILITY ANIMATIONS ===== */
.hover-lift {
    transition: transform var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform var(--transition-normal);
}

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

/* ===== FOCUS STYLES DISABLED ===== */
*:focus {
    outline: none;
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .back-to-top {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* ===== KEYGEN STYLES ===== */
/* Sticky Footer Layout for Keygen */
.keygen-page html, .keygen-page body {
    height: 100%;
}

.keygen-page body {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.keygen-page .main-content {
    flex: 1;
    padding-top: 100px;
    padding-bottom: 60px;
}

/* Keygen Section */
.keygen-section {
    padding: 60px 0;
}

/* Section styles moved to main section above */

.keygen-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: none;
}

.keygen-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    color: #1e293b;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Custom Select Dropdown */
.custom-select {
    position: relative;
    width: 100%;
}

.select-button {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    color: #1e293b;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.select-button:focus,
.select-button.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.select-arrow {
    transition: transform 0.3s ease;
    color: #6b7280;
}

.select-button.active .select-arrow {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 4px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.select-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-option {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: var(--radius-sm);
}

.select-option:hover {
    background: #f3f4f6;
}

.select-option.selected {
    background: #eff6ff;
    color: #3b82f6;
    font-weight: 500;
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* Password Protection Styles */
.password-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.password-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.password-form {
    margin-bottom: 0;
}

.password-form .form-group {
    margin-bottom: 25px;
}

.password-form .form-group label {
    display: block;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 8px;
    font-weight: 500;
}

.password-form .form-group input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    color: #1e293b;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.password-form .form-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    position: relative;
    min-width: 150px;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: 100%;
    background: #1e293b;
    color: white;
    border: 2px solid #1e293b;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.3);
    margin-bottom: 0;
    font-family: inherit;
}

.password-submit:hover {
    background: #334155;
    border-color: #334155;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.4);
}

.password-submit:active {
    background: #0f172a;
    border-color: #0f172a;
    box-shadow: 0 1px 4px rgba(30, 41, 59, 0.5);
}

.password-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 10px;
    padding: 10px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.main-content-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Generate Button Styles */
.btn-keygen {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
}

.result-container {
    margin-top: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.copy-btn {
    background: #e2e8f0;
    border: none;
    border-radius: var(--radius-sm);
    color: #475569;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.copy-btn:hover {
    background: #cbd5e1;
}

.key-output {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    padding: 15px;
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #059669;
    word-break: break-all;
    margin-bottom: 15px;
}

.result-info {
    font-size: 0.9rem;
    color: #64748b;
}

.result-info p {
    margin: 5px 0;
}

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

.result-container {
    animation: fadeIn 0.5s ease;
}

/* Keygen Mobile Optimization */

/* Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .keygen-section {
        padding: 50px 0;
    }
    
    /* Section styles handled by main section styles */
    
    .keygen-container,
    .password-container {
        max-width: 550px;
        margin: 0 auto;
        padding: 35px 30px;
    }
    
    .form-group {
        margin-bottom: 25px;
    }
    
    .form-group input,
    .select-button {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    
    .select-dropdown {
        padding: 6px;
    }
    
    .select-option {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
    
    .password-submit,
    .btn-primary {
        padding: 16px 24px;
        font-size: 0.95rem;
    }
    
    .result-container {
        padding: 18px;
    }
    
    .key-output {
        padding: 12px;
        font-size: 0.85rem;
    }
}

/* Mobile devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .keygen-section {
        padding: 40px 0;
    }
    
    /* Section styles handled by main section styles */
    
    .keygen-container,
    .password-container {
        margin: 0 20px;
        padding: 30px 24px;
        border-radius: var(--radius-xl);
    }
    
    .form-group {
        margin-bottom: 24px;
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .select-button {
        padding: 16px 18px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: var(--radius-xl);
    }
    
    .select-dropdown {
        border-radius: var(--radius-xl);
        padding: 8px;
        margin-top: 6px;
    }
    
    .select-option {
        padding: 14px 18px;
        font-size: 15px;
        border-radius: 8px;
    }
    
    .select-option i {
        font-size: 14px;
    }
    
    .password-submit,
    .btn-primary {
        padding: 18px 24px;
        font-size: 16px;
        border-radius: var(--radius-xl);
        min-height: 54px;
    }
    
    .result-container {
        margin-top: 24px;
        padding: 20px;
        border-radius: 12px;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .result-header h3 {
        font-size: 1rem;
    }
    
    .copy-btn {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 8px;
        align-self: flex-end;
    }
    
    .key-output {
        padding: 16px;
        font-size: 14px;
        border-radius: 8px;
        line-height: 1.4;
    }
    
    .result-info {
        font-size: 14px;
    }
    
    .result-info p {
        margin: 8px 0;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .keygen-section {
        padding: 30px 0;
    }
    
    /* Section styles handled by main section styles */
    
    .keygen-container,
    .password-container {
        margin: 0;
        padding: 24px 20px;
        border-radius: var(--radius-xl);
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 6px;
        font-weight: 600;
    }
    
    .form-group input,
    .select-button {
        padding: 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: var(--radius-xl);
        border-width: 2px;
    }
    
    .form-group input:focus,
    .select-button:focus,
    .select-button.active {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    }
    
    .select-dropdown {
        border-radius: var(--radius-xl);
        padding: 8px;
        margin-top: 8px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .select-option {
        padding: 16px;
        font-size: 15px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .select-option i {
        font-size: 16px;
        width: 20px;
        text-align: center;
    }
    
    .select-option:hover {
        background: var(--background-light);
    }
    
    .select-option.selected {
        background: var(--primary-color);
        color: white;
    }
    
    .password-submit,
    .btn-primary {
        padding: 18px 20px;
        font-size: 16px;
        border-radius: var(--radius-xl);
        min-height: 56px;
        font-weight: 700;
        letter-spacing: 0.5px;
    }
    
    .result-container {
        margin-top: 20px;
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .result-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 16px;
    }
    
    .result-header h3 {
        font-size: 1rem;
        text-align: center;
    }
    
    .copy-btn {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 8px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: var(--primary-color);
        color: white;
        font-weight: 600;
    }
    
    .copy-btn:hover {
        background: var(--primary-dark);
    }
    
    .key-output {
        padding: 16px;
        font-size: 13px;
        border-radius: 8px;
        line-height: 1.5;
        word-break: break-all;
        background: var(--background-light);
        border: 2px solid var(--border-color);
    }
    
    .result-info {
        font-size: 13px;
        background: white;
        padding: 16px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }
    
    .result-info p {
        margin: 10px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .result-info strong {
        color: var(--text-primary);
        font-weight: 600;
    }
    
    .password-error {
        font-size: 0.8rem;
        padding: 12px 16px;
        border-radius: 8px;
        margin-top: 12px;
    }
}