/* ==========================================
   IVAN HRYB - PORTFOLIO STYLES
   Inspired by Shopify Editions Winter 2026
   Premium Dark Theme with Vibrant Gradients
   ========================================== */

/* CSS Variables - Design Tokens */
:root {
    /* Colors - Deep Premium Dark Theme */
    --bg-primary: #050505;
    /* Deeper black */
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);

    /* Aurora Gradients (Shopify Editions Style) */
    --gradient-blue: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-orange: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);

    /* Main Brand Gradient - Aurora Borealis feel */
    --gradient-main: linear-gradient(90deg, #2E3192 0%, #1BFFFF 100%);
    /* Alternative: linear-gradient(to right, #434343 0%, black 100%); for structured elements, but for accents use: */
    --gradient-aurora: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);

    /* Accent Colors - Sharp & Electric */
    --accent-primary: #1BFFFF;
    /* Cyan Electric */
    --accent-secondary: #2E3192;
    /* Deep Blue */
    --accent-tertiary: #d946ef;
    /* Magenta */

    /* Text Colors */
    /* Text Colors - High Contrast for Dark Mode */
    --text-primary: #ffffff;
    /* Pure white */
    --text-secondary: #e4e4e7;
    /* Light Zinc */
    --text-tertiary: #a1a1aa;
    /* Medium Zinc (was too dark before) */

    /* Border & Shadow */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(27, 255, 255, 0.2);
    --shadow-glow: 0 0 80px rgba(27, 255, 255, 0.1);

    /* Spacing */
    --section-padding: 180px;
    /* More breathable */
    --container-width: 1400px;
    /* Wider layout */

    /* Typography - Editorial */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Animation */
    --transition-fast: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-medium: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.9s cubic-bezier(0.16, 1, 0.3, 1);

    /* Theme transition */
    --theme-transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme - Improved Contrast */
[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);

    /* Higher contrast text colors */
    /* Higher contrast text colors for Light Mode */
    --text-primary: #000000;
    --text-secondary: #18181b;
    --text-tertiary: #3f3f46;

    /* Better visible borders */
    --border-color: rgba(0, 0, 0, 0.12);
    --border-glow: rgba(99, 102, 241, 0.4);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);

    /* Darker accent for better contrast on light bg */
    --accent-primary: #5b21b6;
    --accent-secondary: #7c3aed;
    --accent-tertiary: #a855f7;

    /* Code colors for light mode */
    --code-bg: #f1f5f9;
    --code-keyword: #7c3aed;
    --code-class: #b45309;
    --code-function: #1d4ed8;
    --code-param: #be123c;
    --code-string: #15803d;
}

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

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--theme-transition), color var(--theme-transition);
    cursor: none !important;
    max-width: 100vw;
}

/* Force hide cursor on EVERYTHING */
html,
body,
* {
    cursor: none !important;
}

/* Noise Texture Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.05;
    /* Slightly increased grain for texture */
    mix-blend-mode: overlay;
}

/* Selection Style */
::selection {
    background: var(--accent-primary);
    color: white;
}

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

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: orbFloat 25s ease-in-out infinite;
    will-change: transform, opacity;
    contain: layout style paint;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.orb-1 {
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(46, 49, 146, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    top: -400px;
    right: -200px;
    animation-duration: 40s;
}

.orb-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(27, 255, 255, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -300px;
    left: -300px;
    animation-duration: 45s;
    animation-delay: -5s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: var(--gradient-orange);
    top: 40%;
    left: 30%;
    animation-delay: -16s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(80px, -80px) scale(1.1);
    }

    50% {
        transform: translate(-50px, 50px) scale(0.9);
    }

    75% {
        transform: translate(30px, 30px) scale(1.05);
    }
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* ===================
   NAVIGATION
   =================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(250, 250, 250, 0.85);
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-medium);
    color: var(--text-secondary);
    margin-right: 8px;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: rotate(15deg);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

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

.nav-logo {
    text-decoration: none;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 100px;
    transition: var(--transition-fast);
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
    background: var(--gradient-main);
    color: white !important;
    font-weight: 600;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

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

/* ===================
   HERO SECTION
   =================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 32px 100px;
    position: relative;
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Profile Photo */
.hero-photo {
    margin-bottom: 32px;
}

.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
        var(--gradient-main) border-box;
    box-shadow: 0 0 60px rgba(216, 180, 254, 0.3);
    transition: var(--transition-medium);
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 80px rgba(216, 180, 254, 0.5);
}

.hero-greeting {
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-name {
    font-size: clamp(4rem, 9vw, 8rem);
    /* Massive editorial size */
    font-weight: 800;
    line-height: 0.95;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    /* Helps with gradient rendering */
}

/* Custom Cursor */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}

#cursor-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: background 0.5s;
}

/* Hide cursor on touch devices */
@media (hover: none) and (pointer: coarse) {

    #cursor,
    #cursor-blur {
        display: none;
    }
}

/* Typography Refinements */
.hero-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.hero-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 400;
    /* Lighter weight for elegance */
    color: var(--text-secondary);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

/* Glassmorphism Refinements */
:root {
    /* More subtle border and card bg */
    --border-color: rgba(255, 255, 255, 0.08);
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] {
    --border-color: rgba(0, 0, 0, 0.06);
    --bg-card: rgba(0, 0, 0, 0.02);
    --bg-card-hover: rgba(0, 0, 0, 0.04);
}

.glass-card,
.skill-category,
.experience-card,
.education-card,
.interest-card,
.contact-card,
.code-window,
.bento-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-medium);
}

/* Removed duplicate .hero-title */
.hero-description {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-medium);
    cursor: pointer;
    border: none;
    letter-spacing: -0.01em;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Code Window */
.hero-visual {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.code-window {
    width: 100%;
    max-width: 480px;
    background: rgba(17, 17, 17, 0.8);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-glow), 0 25px 80px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    animation: codeFloat 8s ease-in-out infinite;
}

@keyframes codeFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}

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

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #febc2e;
}

.dot.green {
    background: #28c840;
}

.file-name {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.code-body {
    padding: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.code-body pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
}

.code-body code {
    color: var(--text-secondary);
}

.keyword {
    color: #c678dd;
}

.class-name {
    color: #e5c07b;
}

.function {
    color: #61afef;
}

.param {
    color: #e06c75;
}

.string {
    color: #98c379;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2.5s ease-in-out infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-tertiary);
    border-bottom: 2px solid var(--text-tertiary);
    transform: rotate(45deg);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(12px);
    }
}

/* ===================
   SECTIONS
   =================== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    background: rgba(216, 180, 254, 0.1);
    padding: 10px 20px;
    border-radius: 100px;
    margin-bottom: 20px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid rgba(216, 180, 254, 0.2);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

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

/* Bento Grid Layout - Typography & Abstract */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(280px, auto));
    gap: 24px;
    margin-top: 60px;
}

.bento-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

/* Hover Effect - Lift & Glow */
.bento-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .bento-card:hover {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.08);
}

/* Updated Card Styles for High-End Look */
.bento-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px);
}

.bento-number-large,
.bento-number-jumbo {
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(to bottom, #fff, #666);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Card Styles & Gradients */
[data-style="gradient-1"] {
    background: radial-gradient(circle at top right, rgba(216, 180, 254, 0.15), transparent 60%),
        var(--bg-card);
}

[data-style="gradient-2"] {
    background: radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.15), transparent 60%),
        var(--bg-card);
}

[data-style="minimal"] {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(255, 255, 255, 0.02) 100%);
}

/* Typography Hierarchy */
.bento-content-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    position: relative;
}

.bento-number-large {
    font-size: clamp(4rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.bento-number-medium {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.bento-number-jumbo {
    font-size: clamp(3.5rem, 5vw, 5rem);
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.bento-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.bento-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.text-accent {
    color: var(--accent-primary);
    font-weight: 500;
    display: inline;
    /* margin-top removed to prevent spacing issues */
}

.bento-label-top {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    font-weight: 600;
}

.bento-label-bottom {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 600;
}

/* Flex layouts */
.bento-header-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 32px;
}

.languages-list-clean {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    align-items: center;
}

.languages-list-clean span:not(.separator) {
    color: var(--text-primary);
}

.separator {
    color: var(--text-tertiary);
    opacity: 0.5;
    font-size: 0.8em;
}

/* Abstract Decorations via ::before/after */
.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* Card Sizing */
.bento-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-card.medium {
    grid-column: span 2;
}

.bento-card.small {
    grid-column: span 1;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
    }

    .bento-number-large {
        font-size: 4rem;
    }

    .languages-list-clean {
        font-size: 1.1rem;
    }
}

/* ===================
   ABOUT SECTION
   =================== */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-intro {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    /* Significantly larger, responsive */
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.4;
    /* Tighter leading for larger text */
    letter-spacing: -0.02em;
    font-weight: 500;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.highlight-item {
    display: flex;
    flex-direction: column;
}

.highlight-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 8px;
}

.highlight-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    letter-spacing: -0.01em;
}

.about-languages h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.languages-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.language-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition-medium);
}

.language-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(8px);
}

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

.lang-name {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    font-size: 0.9375rem;
}

.lang-level {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* ===================
   SKILLS SECTION
   =================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 36px;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    opacity: 0;
    transition: var(--transition-medium);
}

.skill-category:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.skill-category:hover::before {
    opacity: 1;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.category-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: white;
}

.backend-icon {
    background: var(--gradient-purple);
}

.frontend-icon {
    background: var(--gradient-orange);
}

.database-icon {
    background: var(--gradient-green);
}

.category-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: var(--transition-fast);
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(6px);
}

.skill-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed font-size adjustments for emojis */
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px;
    /* Adjust icon size */
    transition: transform 0.3s ease;
}

.skill-icon::before {
    display: none;
    /* Hide any remaining emojis */
}

/* --- Backend Icons --- */
.skill-icon.django {
    background-image: url("icons/django-community.svg");
}

.skill-icon.flask {
    background-image: url("icons/flask.svg");
}

.skill-icon.php {
    /* PHP Logo (Keep existing or add file if available) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12.9 13.9h-1.6l-2.9-5.3h2.6l1.3 2.9 1.4-2.9h2.5zm-5.6-2.6c0-.8.2-1.4.6-1.8.4-.4 1-.6 1.8-.6h3v1.8h-2.4c-.4 0-.6.2-.6.7v3.5h-2.4zm10.7-2.3h-1.9v3.4h1.9c.5 0 .7-.2.7-.6v-2.2c0-.4-.2-.6-.7-.6m2.5 2.8c0 1.5-1.1 2.5-3 2.5h-4.3v-7.1h4.4c1.9 0 3 1.1 3 2.6v2z'/%3E%3C/svg%3E");
    background-size: 26px;
}

.skill-icon.rest {
    /* REST API (Keep existing) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
}

/* --- Frontend Icons --- */
.skill-icon.react {
    background-image: url("icons/react.svg");
    background-size: 26px;
}

.skill-icon.nextjs {
    background-image: url("icons/next-js.svg");
    /* Invert filter might be needed if the SVG is black, checking... 
       Assuming SVGs in folder are correct color or we filter them */
}

.skill-icon.vuejs {
    /* Vue (Keep existing) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M2 3h3.2l6.8 11.6L18.8 3H22L12 20 2 3z'/%3E%3Cpath fill='%2341B883' d='M5.8 3h2.7l3.5 6 3.5-6h2.7L12 14.6 5.8 3z'/%3E%3C/svg%3E");
}

/* --- Database & Tools Icons --- */
.skill-icon.mysql {
    background-image: url("icons/mysql-logo-pure.svg");
}

.skill-icon.postgresql {
    background-image: url("icons/postgresql.svg");
}

.skill-icon.git {
    /* Git (Keep existing, folder has github-icon-1 but git != github) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='6' y1='3' x2='6' y2='15'/%3E%3Ccircle cx='18' cy='6' r='3'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Cpath d='M18 9a9 9 0 0 1-9 9'/%3E%3C/svg%3E");
}

.skill-icon.linux {
    background-image: url("icons/linux-tux.svg");
}

/* Clean up old remaining icons just in case */

.skill-item span {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ===================
   EXPERIENCE SECTION
   =================== */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-tertiary));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 72px;
    padding-bottom: 56px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 15px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-main);
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 24px rgba(102, 126, 234, 0.5);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: var(--transition-medium);
}

.timeline-content:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(8px);
    box-shadow: var(--shadow-glow);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.timeline-info h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.company {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9375rem;
}

.timeline-date {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 500;
}

.timeline-description {
    list-style: none;
    margin-bottom: 24px;
}

.timeline-description li {
    color: var(--text-secondary);
    margin-bottom: 14px;
    padding-left: 28px;
    position: relative;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.timeline-description li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 600;
}

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

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    font-size: 0.75rem;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent-primary);
    border-radius: 100px;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
    letter-spacing: 0.02em;
}

/* ===================
   EDUCATION SECTION
   =================== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.education-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    transition: var(--transition-medium);
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-green);
    opacity: 0;
    transition: var(--transition-medium);
}

.education-card:hover {
    border-color: rgba(17, 153, 142, 0.3);
    transform: translateY(-8px);
}

.education-card:hover::before {
    opacity: 1;
}

.education-year {
    font-size: 0.8125rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.05em;
}

.education-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.school {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 0.9375rem;
}

.location {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.education-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 0.6875rem;
    padding: 6px 14px;
    border-radius: 100px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.education-badge.current {
    background: var(--gradient-main);
    color: white;
}

/* ===================
   INTERESTS SECTION
   =================== */
.interests-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.interest-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition-medium);
    min-width: 130px;
}

.interest-card:hover {
    border-color: rgba(240, 147, 251, 0.3);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 60px rgba(240, 147, 251, 0.15);
}

.interest-emoji {
    font-size: 2.75rem;
}

.interest-name {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ===================
   CONTACT SECTION
   =================== */
.contact {
    background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.03) 100%);
}

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

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition-medium);
}

.contact-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    border-radius: 16px;
    color: white;
    flex-shrink: 0;
}

.contact-icon.linkedin {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-bottom: 6px;
    font-weight: 500;
}

.contact-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
}

/* ===================
   FOOTER
   =================== */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border-color);
}

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

.footer-content p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.footer-tagline {
    margin-top: 10px;
}

/* ===================
   RESPONSIVE DESIGN
   =================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
    }

    .hero-description {
        margin: 0 auto 40px;
        max-width: 600px;
    }

    .hero-cta {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

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

    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.25rem;
        padding: 16px 32px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

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

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

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

    .hero {
        padding: 120px 20px 80px;
        min-height: auto;
    }

    .hero-name {
        font-size: clamp(2.5rem, 12vw, 4rem);
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-title {
        font-size: clamp(1.25rem, 5vw, 1.8rem);
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-photo {
        margin-bottom: 24px;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .hero-visual {
        width: 100%;
        padding: 0;
    }

    .code-window {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .code-body {
        overflow-x: auto;
    }

    .code-body pre {
        font-size: 0.75rem;
        white-space: pre;
        word-wrap: normal;
    }

    .about-highlights {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .timeline::before {
        left: 14px;
    }

    .timeline-item {
        padding-left: 48px;
    }

    .timeline-marker {
        left: 5px;
        width: 18px;
        height: 18px;
    }

    .timeline-content {
        padding: 24px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }

    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 16px 60px;
    }

    .hero-text {
        width: 100%;
        max-width: 100%;
    }

    .hero-name {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: 16px;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-title {
        font-size: clamp(1.1rem, 4.5vw, 1.5rem);
        margin-bottom: 24px;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-description {
        font-size: 1rem;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-photo {
        margin-bottom: 20px;
    }

    .profile-img {
        width: 100px;
        height: 100px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
    }

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

    .hero-visual {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .code-window {
        max-width: 100%;
        width: 100%;
    }

    .code-body {
        padding: 16px;
        overflow-x: auto;
    }

    .code-body pre {
        font-size: 0.7rem;
        line-height: 1.6;
        white-space: pre;
        word-wrap: normal;
    }

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

    .section-tag {
        font-size: 0.7rem;
        padding: 8px 16px;
    }

    .section-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        margin-bottom: 16px;
    }

    .about-intro {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    .bento-card {
        padding: 28px;
    }

    .bento-number-large {
        font-size: 3.5rem;
    }

    .bento-number-jumbo {
        font-size: 3rem;
    }

    .bento-title {
        font-size: 1.25rem;
    }

    .bento-text {
        font-size: 1rem;
    }

    .languages-list-clean {
        font-size: 1rem;
        gap: 8px;
    }

    .skill-category {
        padding: 24px;
    }

    .category-header h3 {
        font-size: 1.1rem;
    }

    .skill-item {
        padding: 12px 14px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-info h3 {
        font-size: 1.2rem;
    }

    .timeline-description li {
        font-size: 0.875rem;
        padding-left: 24px;
    }

    .timeline-tags {
        gap: 8px;
    }

    .tag {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    .education-card {
        padding: 24px;
    }

    .education-content h3 {
        font-size: 1rem;
    }

    .interests-grid {
        gap: 12px;
    }

    .interest-card {
        padding: 20px 28px;
        min-width: 110px;
    }

    .interest-emoji {
        font-size: 2.25rem;
    }

    .contact-card {
        padding: 20px;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
    }

    .contact-label {
        font-size: 0.75rem;
    }

    .contact-value {
        font-size: 0.875rem;
    }

    .scroll-indicator {
        font-size: 0.7rem;
    }
}

/* ===================
   CRITIAL / LOADER STYLES
   (Moved from inline HTML)
   =================== */

/* Skeleton loading state */
.skeleton {
    background: linear-gradient(90deg, transparent 25%, rgba(255, 255, 255, 0.1) 50%, transparent 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Prevent FOUC */
.no-js .hero-content,
.no-js .section {
    opacity: 1 !important;
    transform: none !important;
}