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

:root {
    --transition-speed: 0.5s;
    --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
    --primary-color-rgb: 255, 107, 53; /* For Analytics theme */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Cantarell, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed) var(--transition-timing),
                color var(--transition-speed) var(--transition-timing);
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Improve typography for headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    font-weight: 400;
    letter-spacing: 0;
}

/* ===== ANALYTICS THEME (Orange-White) ===== */
body.theme-analytics {
    --primary-color: #FF6B35;
    --secondary-color: #FF8C42;
    --accent-color: #FFA45B;
    --bg-primary: #FFFFFF;
    --bg-secondary: #FFF8F5;
    --bg-card: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #FFE5DB;
    --shadow-color: rgba(255, 107, 53, 0.15);
    --gradient-start: #FF6B35;
    --gradient-end: #FFA45B;
    --gradient-accent: linear-gradient(135deg, #FF8C42, #FFA45B);
    --gradient-card: linear-gradient(135deg, #FFFFFF, #FFF8F5);
    --primary-color-rgb: 255, 107, 53;
}

/* ===== ENGINEERING THEME (Green-Black) ===== */
body.theme-engineering {
    --primary-color: #00FF9F;
    --secondary-color: #00D67F;
    --accent-color: #00FFB3;
    --bg-primary: #0A0E0D;
    --bg-secondary: #111816;
    --bg-card: #1A1F1E;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8B8;
    --text-muted: #6B6B6B;
    --border-color: #2A3F35;
    --shadow-color: rgba(0, 255, 159, 0.2);
    --gradient-start: #00FF9F;
    --gradient-end: #00D67F;
    --gradient-accent: linear-gradient(135deg, #00FF9F, #00FFB3);
    --gradient-card: linear-gradient(135deg, #1A1F1E, #111816);
    --primary-color-rgb: 0, 255, 159;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== LANGUAGE TOGGLE BUTTON ===== */
.lang-toggle {
    background: transparent;
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

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

.lang-option {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.lang-toggle:hover .lang-option {
    color: white;
}

.lang-separator {
    color: var(--text-muted);
}

/* ===== THEME TOGGLE BUTTON IN NAVBAR ===== */
.theme-toggle-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.theme-toggle-navbar {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow-color);
    font-size: 1.3rem;
    flex-shrink: 0;
    animation: pulse-nav-button 3s ease-in-out infinite;
}

@keyframes pulse-nav-button {
    0%, 100% {
        box-shadow: 0 2px 10px var(--shadow-color);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 20px var(--shadow-color), 0 0 0 4px var(--shadow-color);
        transform: scale(1.05);
    }
}

.theme-toggle-navbar:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 20px var(--shadow-color);
    animation: none;
}

.theme-toggle-navbar:active {
    transform: scale(0.95);
}

.toggle-icon {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tooltip Styles - Modern & Cool Design */
.theme-tooltip {
    position: fixed;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    min-width: 280px;
    max-width: 320px;
    box-shadow: 0 15px 40px var(--shadow-color), 
                0 0 0 1px rgba(255, 255, 255, 0.05),
                0 0 30px rgba(var(--primary-color-rgb), 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    pointer-events: none;
    backdrop-filter: blur(10px);
}


.theme-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: hintPulse 2s ease-in-out infinite;
}

.theme-tooltip.show.stack-hint-active {
    animation: hintPulseStrong 1.5s ease-in-out infinite;
}

@keyframes hintPulseStrong {
    0%, 100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 15px 40px var(--shadow-color), 
                    0 0 0 1px rgba(255, 255, 255, 0.05),
                    0 0 20px rgba(var(--primary-color-rgb), 0.3);
    }
    50% {
        opacity: 0.85;
        transform: translateY(0) scale(1.02);
        box-shadow: 0 20px 50px var(--shadow-color), 
                    0 0 0 1px rgba(255, 255, 255, 0.1),
                    0 0 35px rgba(var(--primary-color-rgb), 0.5);
    }
}

.tooltip-content {
    position: relative;
}

.tooltip-text {
    display: block;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tooltip-text.analytics-text,
.tooltip-text.engineering-text {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateX(-10px);
}

/* Показываем подсказку ПРОТИВОПОЛОЖНОЙ темы (что будет после нажатия) */
.theme-analytics .tooltip-text.engineering-text {
    opacity: 1;
    max-height: 100px;
    margin-bottom: 0;
    transform: translateX(0);
}

.theme-engineering .tooltip-text.analytics-text {
    opacity: 1;
    max-height: 100px;
    margin-bottom: 0;
    transform: translateX(0);
}

/* Simple arrow pointing to button */
.tooltip-arrow {
    position: absolute;
    top: -8px;
    left: var(--arrow-offset, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--primary-color);
}

.theme-analytics .analytics-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-analytics .engineering-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

.theme-engineering .analytics-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

.theme-engineering .engineering-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--gradient-card);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all var(--transition-speed) var(--transition-timing);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transition: width 0.3s ease;
}

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

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

/* ===== HERO & ABOUT COMBINED SECTION ===== */
.hero-about-section {
    padding: 6rem 0 8rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    min-height: 95vh;
    display: flex;
    align-items: center;
    transition: background 0.4s ease;
}

/* Decorative Background Elements */
.hero-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.hero-bg-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.hero-bg-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: 5s;
}

.hero-bg-circle-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(var(--primary-color-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-color-rgb), 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
    animation: gridMove 20s linear infinite;
}

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

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.hero-about-section .container {
    position: relative;
    z-index: 1;
}

.hero-about-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.hero-about-main {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-intro {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-greeting-wrapper {
    position: relative;
    display: inline-block;
}

.hero-greeting {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.greeting-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out 0.3s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

.hero-name {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 10;
}

.name-gradient {
    position: relative;
    display: inline-block;
    line-height: 1.2;
    z-index: 10;
    font-weight: 800;
    /* Always visible - use primary color */
    color: var(--primary-color) !important;
    /* Remove any transparent fill */
    -webkit-text-fill-color: var(--primary-color) !important;
    background: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.name-part {
    display: inline-block;
    position: relative;
    color: var(--primary-color) !important;
    -webkit-text-fill-color: var(--primary-color) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.name-part::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0.3;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineExpand 1s ease-out 0.5s both;
}

.name-part:first-child::after {
    animation-delay: 0.5s;
}

.name-part:last-child::after {
    animation-delay: 0.7s;
}

@keyframes underlineExpand {
    to {
        transform: scaleX(1);
    }
}

.hero-roles {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.role-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.role-badge:hover::before {
    left: 100%;
}


.role-text {
    position: relative;
    z-index: 1;
}

.role-badge.clickable {
    cursor: pointer;
    user-select: none;
}

.role-badge.clickable:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.3);
}

.role-badge.clickable:active {
    transform: translateY(0) scale(1);
}

.theme-analytics .analytics-role {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.25);
}

.theme-analytics .engineering-role {
    background: var(--bg-card);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.theme-engineering .analytics-role {
    background: var(--bg-card);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.theme-engineering .engineering-role {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.25);
}

.hero-description {
    max-width: 90%;
}

.hero-description .description-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    display: block;
    font-weight: 400;
}

.description-analytics,
.description-engineering {
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-analytics .description-analytics {
    opacity: 1;
    max-height: 150px;
    transform: translateY(0);
}

.theme-analytics .description-engineering {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-10px);
}

.theme-engineering .description-analytics {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-10px);
}

.theme-engineering .description-engineering {
    opacity: 1;
    max-height: 150px;
    transform: translateY(0);
}

.hero-cta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-arrow {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.35);
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(var(--primary-color-rgb), 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.3);
}

/* About Cards */
.hero-about-cards {
    display: grid;
    gap: 1.5rem;
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

/* Photo Slider */
.photo-slider-container {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.photo-slider-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(var(--primary-color-rgb), 0.2);
    border-color: var(--primary-color);
}

.photo-slider {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--bg-secondary);
}

.photo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.photo-slide.prev {
    transform: translateX(-100%);
}

.photo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
}

.placeholder-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    opacity: 0.3;
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    position: relative;
}

.placeholder-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
}

.placeholder-icon::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
}

.photo-placeholder p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.photo-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
}

.photo-slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.photo-slider-dots .dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

.photo-slider-dots .dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
    border-color: var(--primary-color);
}

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

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

.about-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    backdrop-filter: blur(10px);
}

.card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--primary-color-rgb), 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.about-card:hover .card-glow {
    opacity: 1;
}

.about-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(var(--primary-color-rgb), 0.25);
    border-color: var(--primary-color);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}


.card-highlight {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.card-text {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 400;
}

.theme-analytics .engineering-card {
    opacity: 0.5;
    transform: scale(0.9);
    height: auto;
    min-height: 250px;
}

.theme-engineering .analytics-card {
    opacity: 0.5;
    transform: scale(0.9);
    height: auto;
    min-height: 250px;
}

.theme-analytics .analytics-card,
.theme-engineering .engineering-card {
    opacity: 1;
    transform: scale(1);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Stats inside hero-about-cards */
.hero-about-cards .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 100%;
}

.hero-about-cards .hero-stats .stat-item {
    padding: 1.5rem 1rem;
}

.hero-about-cards .hero-stats .stat-number {
    font-size: 2rem;
}

/* About Cards Bottom Section */
.about-cards-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats .stat-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.hero-stats .stat-item:hover .stat-accent {
    transform: scaleX(1);
}

.hero-stats .stat-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(var(--primary-color-rgb), 0.25);
    border-color: var(--primary-color);
}

.hero-stats .stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin: 0.5rem 0;
    letter-spacing: -0.02em;
}

.hero-stats .stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
}

/* OLD HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    top: -200px;
    right: -200px;
    animation: float 6s ease-in-out infinite;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.greeting {
    display: block;
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease;
}

.name {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.role-separator {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.theme-analytics .role-analytics {
    color: var(--primary-color);
}

.theme-analytics .role-engineering {
    color: var(--text-secondary);
}

.theme-engineering .role-analytics {
    color: var(--text-secondary);
}

.theme-engineering .role-engineering {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.description-analytics,
.description-engineering {
    display: block;
    transition: all var(--transition-speed) var(--transition-timing);
}

.theme-analytics .description-analytics {
    opacity: 1;
    max-height: 100px;
}

.theme-analytics .description-engineering {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.theme-engineering .description-analytics {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.theme-engineering .description-engineering {
    opacity: 1;
    max-height: 100px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 6px 20px var(--shadow-color);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px var(--shadow-color);
    animation: pulseGlow 2s ease infinite;
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(1.02);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    animation: fadeIn 1s ease 1s both;
}

.visual-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    opacity: 0.2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite, morphing 8s ease-in-out infinite;
}

.visual-circle::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite reverse;
}

.visual-data {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: 
        linear-gradient(90deg, var(--primary-color) 2px, transparent 2px),
        linear-gradient(0deg, var(--primary-color) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

.visual-data::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--primary-color) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.15;
    animation: rotate 15s linear infinite reverse;
}

.visual-data::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    transform: translate(-50%, -50%);
    background: 
        conic-gradient(from 0deg, var(--primary-color), transparent, var(--primary-color));
    border-radius: 50%;
    opacity: 0.2;
    animation: rotate 10s linear infinite;
}

/* ===== SECTIONS ===== */
.section {
    padding: 6rem 0;
    transition: background-color var(--transition-speed) var(--transition-timing);
}

.section:nth-child(even) {
    background: var(--gradient-card);
    position: relative;
}

#experience {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%) !important;
}

.section:nth-child(even)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 107, 53, 0.05));
    pointer-events: none;
}

.theme-engineering .section:nth-child(even)::before {
    background: linear-gradient(135deg, transparent, rgba(0, 255, 159, 0.1));
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

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

.analytics-highlight,
.engineering-highlight {
    color: var(--primary-color);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.05) 0%, 
        rgba(var(--primary-color-rgb), 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px var(--shadow-color);
    border-color: var(--primary-color);
}

.stat-item:hover .stat-number {
    animation: bounce 0.6s ease;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.stat-item:hover .stat-label {
    color: var(--primary-color);
}

/* ===== STACK SECTION ===== */
#stack {
    filter: none !important;
    backdrop-filter: none !important;
    will-change: auto;
}

#stack *,
#stack *::before,
#stack *::after {
    filter: none !important;
    backdrop-filter: none !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    will-change: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.stack-categories-wrapper {
    display: flex;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
    transform-style: preserve-3d;
    filter: none !important;
    backdrop-filter: none !important;
}

.stack-category-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0.5;
    filter: none !important;
    backdrop-filter: none !important;
    cursor: pointer;
    user-select: none;
}

.stack-category-card:not(.show):hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.analytics-stack {
    flex: 1;
    padding: 1.5rem;
    min-width: 250px;
    transition-delay: 0s;
}

.engineering-stack {
    flex: 1;
    padding: 1.5rem;
    min-width: 250px;
    transition-delay: 0.1s;
}
/* Show state - large window */
.stack-category-card.show {
    flex: 3;
    opacity: 1;
    transform: translateZ(20px);
    pointer-events: all;
    box-shadow: 0 15px 40px var(--shadow-color);
    border-color: var(--primary-color);
    padding: 2rem;
}

/* Hide state - small window */
.stack-category-card.hide {
    flex: 1;
    opacity: 0.4;
    transform: translateZ(0px);
    pointer-events: auto;
    padding: 1.5rem;
}

.stack-category-card.hide .stack-grid {
    display: none;
}

.stack-category-card.hide .stack-category-title {
    font-size: 1.2rem;
    margin-bottom: 0;
    text-align: center;
}

.stack-category-card.show .stack-grid {
    display: grid;
}

/* Z-index for layering */
.theme-analytics .analytics-stack.show {
    z-index: 10;
}

.theme-analytics .engineering-stack.hide {
    z-index: 5;
}

.theme-engineering .analytics-stack.hide {
    z-index: 5;
}

.theme-engineering .engineering-stack.show {
    z-index: 10;
}

.stack-category-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
    user-select: none;
    filter: none !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: all 0.3s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: auto;
}

.stack-category-title:hover {
    transform: translateZ(0) scale(1.05);
    text-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.3);
}

.stack-grid {
    display: grid;
    gap: 1rem;
    filter: none !important;
    backdrop-filter: none !important;
}

.stack-tool-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    filter: none !important;
}

.stack-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow-color);
    border-color: var(--primary-color);
}

.stack-tool-card.active {
    background: var(--bg-card);
    border-color: var(--primary-color);
    box-shadow: 0 12px 35px var(--shadow-color);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    filter: none !important;
}

.tool-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
    filter: none !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: auto;
}

.stack-tool-card.active .tool-name {
    color: var(--primary-color);
}

.tool-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: all 0.3s ease;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-primary);
}

.stack-tool-card.active .tool-toggle {
    transform: rotate(45deg);
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
}

.tool-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 1.25rem;
    filter: none !important;
}

.stack-tool-card.active .tool-description {
    max-height: 300px;
    padding: 1rem 1.25rem 1.25rem;
    filter: none !important;
}

.tool-description p {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    filter: none !important;
    font-weight: 500;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: auto;
}

.tool-level {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    filter: none !important;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: auto;
}

/* ===== SKILLS SECTION (Old - keep for backward compatibility) ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category {
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.03) 0%, 
        rgba(var(--primary-color-rgb), 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.skill-category:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px var(--shadow-color);
    border-color: var(--primary-color);
}

.skill-category:hover .category-title {
    animation: wiggle 0.5s ease;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateX(5px);
}

.skill-item:hover .skill-name {
    color: var(--primary-color);
}

.skill-name {
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.skill-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(var(--primary-color-rgb), 0.1) 0%, 
        rgba(var(--primary-color-rgb), 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-item:hover .skill-bar::before {
    opacity: 1;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ===== EXPERIENCE SECTION ===== */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}



.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -0.7rem;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    box-shadow: 0 0 0 4px var(--bg-primary);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px var(--bg-primary), 0 0 20px var(--primary-color);
}

.timeline-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.03) 0%, 
        rgba(var(--primary-color-rgb), 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-content:hover::before {
    opacity: 1;
}

.timeline-content:hover {
    transform: translateX(15px) scale(1.02);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: var(--primary-color);
}

.timeline-content:hover .timeline-title {
    color: var(--primary-color);
    transform: translateX(5px);
}

.timeline-content:hover .timeline-date {
    animation: bounce 0.5s ease;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.timeline-company {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.timeline-company a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(var(--primary-color-rgb), 0.4);
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.timeline-company a:hover,
.timeline-company a:focus-visible {
    color: var(--primary-color);
    border-bottom-color: rgba(var(--primary-color-rgb), 1);
}

.timeline-content:hover .timeline-company {
    color: var(--primary-color);
}

.timeline-content:hover .timeline-company a {
    color: var(--primary-color);
    border-bottom-color: rgba(var(--primary-color-rgb), 1);
}

body.theme-analytics .timeline-company a {
    color: #1d4ed8;
    border-bottom-color: rgba(29, 78, 216, 0.35);
}

body.theme-analytics .timeline-company a:hover,
body.theme-analytics .timeline-company a:focus-visible {
    color: #1d4ed8;
    border-bottom-color: rgba(29, 78, 216, 0.7);
}

body.theme-engineering .timeline-company a {
    color: #ff8c42;
    border-bottom-color: rgba(255, 140, 66, 0.5);
}

body.theme-engineering .timeline-company a:hover,
body.theme-engineering .timeline-company a:focus-visible {
    color: #ff8c42;
    border-bottom-color: rgba(255, 140, 66, 0.85);
}

.timeline-description {
    list-style: none;
    padding-left: 0;
}

.timeline-description li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-description li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ===== TIMELINE EXPAND HINT ===== */
.timeline-expand-hint {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.timeline-expand-hint.show {
    opacity: 1;
    transform: translateY(0);
}

.timeline-expand-hint.hidden {
    opacity: 0 !important;
    visibility: hidden;
    max-height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.hint-content {
    display: inline-block;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 8px 25px var(--shadow-color), 
                0 0 0 1px rgba(255, 255, 255, 0.05),
                0 0 20px rgba(var(--primary-color-rgb), 0.2);
    position: relative;
    backdrop-filter: blur(10px);
    animation: hintPulse 2s ease-in-out infinite;
}

.hint-text {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hint-text::before {
    content: '👇';
    font-size: 1.2rem;
    animation: hintPointDown 1.5s ease-in-out infinite;
}


@keyframes hintPointDown {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(3px) rotate(-10deg);
    }
}

/* ===== TIMELINE EXPAND INDICATOR ===== */
.timeline-expand-indicator {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
    opacity: 0.6;
    max-height: 20px;
    overflow: hidden;
    will-change: opacity, max-height, margin;
    transition: opacity 0.4s ease, 
                max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                margin 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.expanded .timeline-expand-indicator {
    opacity: 0;
    margin: 0;
    max-height: 0;
}

.timeline-item:not(.expanded) .timeline-expand-indicator {
    transition: opacity 0.3s ease 0.1s,
                max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s,
                margin 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
}

.expand-line {
    width: 40px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
    animation: linePulse 2s ease-in-out infinite;
}

@keyframes linePulse {
    0%, 100% { opacity: 0.6; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.2); }
}

/* ===== TIMELINE ACHIEVEMENTS ===== */
.timeline-achievements {
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    transform: translateY(0);
    margin-top: 1rem;
    will-change: max-height;
}

.timeline-item.expanded .timeline-achievements {
    max-height: 500px;
}

.timeline-item:not(.expanded) .timeline-achievements {
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
}

/* Hide non-default achievements by default */
.achievement-item:not(.achievement-item-default) {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    will-change: max-height, opacity;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.4s ease 0.15s,
                visibility 0s linear 0.5s,
                margin 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.expanded .achievement-item:not(.achievement-item-default) {
    max-height: 100px;
    opacity: 1;
    margin-bottom: 0.25rem;
    padding: 0.25rem 0;
    background: transparent;
    visibility: visible;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.4s ease 0.15s,
                visibility 0s linear 0s,
                margin 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item:not(.expanded) .achievement-item:not(.achievement-item-default) {
    transition: max-height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s,
                opacity 0.2s ease 0.2s,
                visibility 0s linear 0.3s,
                margin 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s,
                padding 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.25rem 0;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInAchievement 0.5s ease forwards;
    margin-bottom: 0.25rem;
}

.achievement-item-default {
    opacity: 1;
    transform: translateX(0);
    animation: none;
    background: transparent;
    padding: 0.25rem 0;
    margin-bottom: 0.25rem;
}

.achievement-item-default:nth-child(1) { animation-delay: 0s; }
.achievement-item-default:nth-child(2) { animation-delay: 0s; }
.achievement-item-default:nth-child(3) { animation-delay: 0s; }
.achievement-item:not(.achievement-item-default):nth-child(4) { animation-delay: 0.1s; }

.achievement-item:hover {
    background: transparent;
    transform: translateX(0);
    box-shadow: none;
}

.achievement-triangle {
    width: 0;
    height: 0;
    border-left: 6px solid var(--primary-color);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.achievement-item:hover .achievement-triangle {
    transform: scale(1.2);
    filter: drop-shadow(0 0 4px var(--primary-color));
}

.achievement-text {
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.achievement-item:hover .achievement-text {
    color: var(--text-primary);
}

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

/* ===== TIMELINE ACCORDION EFFECT ===== */
.timeline-item {
    will-change: transform, opacity;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item:not(.expanded) {
    transform: scale(0.96);
    opacity: 0.75;
}

.timeline-item:not(.expanded) .timeline-content {
    background: rgba(var(--primary-color-rgb), 0.05);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.1);
    padding: 0.5rem 1rem;
    min-height: auto;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    will-change: height, padding, background, border, box-shadow;
    transition: height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.3s ease,
                border 0.3s ease,
                box-shadow 0.3s ease;
}

.timeline-item:not(.expanded) .timeline-title {
    font-size: 1rem;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    will-change: font-size;
    transition: font-size 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item:not(.expanded) .timeline-company {
    display: none;
    transition: opacity 0.2s ease;
}

.timeline-item:not(.expanded) .timeline-date {
    display: none;
    transition: opacity 0.2s ease;
}

.timeline-item:not(.expanded) .timeline-expand-indicator {
    display: none;
    transition: opacity 0.2s ease;
}

.timeline-item:not(.expanded) .timeline-achievements {
    display: none;
    transition: opacity 0.2s ease;
}

/* Special handling for last timeline item */
.timeline-item:last-child {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                margin-bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item:last-child:not(.expanded) {
    transform: scale(0.96);
    opacity: 0.75;
    margin-bottom: 0.5rem;
}

.timeline-item:last-child:not(.expanded) .timeline-content {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                min-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== EDUCATION SECTION ===== */
.education-section {
    background: var(--bg-secondary);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.education-item {
    background: var(--gradient-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.education-item:hover::before {
    transform: scaleX(1);
}

.education-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--primary-color);
}

.education-degree {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.6;
}

/* New Education Styling */
.education-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: stretch;
}

.education-item-new {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.education-item-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.education-item-new:hover::before {
    transform: scaleX(1);
}

.education-item-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-color);
    border-color: var(--primary-color);
}

.education-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    min-height: 2.5rem;
}

.education-degree-badge {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.education-degree-new {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

.education-university {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    min-height: 3rem;
}

.education-period {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    min-height: 1.5rem;
}

/* New Publications Styling */
/* Diploma Preview Inline */
.diploma-preview-inline {
    position: relative;
    display: block;
    margin-top: auto;
    padding: 2rem 0 0 0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: transparent;
    box-shadow: none;
    flex-shrink: 0;
}

.diploma-preview-inline:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.15);
}

.diploma-preview-image {
    position: relative;
    width: 100%;
    padding-top: 90%; /* Вертикальная ориентация для диплома */
    overflow: hidden;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin: 0;
}

.diploma-preview-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    background: var(--bg-card);
}

.diploma-preview-conference .diploma-preview-image img {
    background: transparent;
}

.diploma-preview-inline:hover .diploma-preview-image img {
    transform: scale(1.03);
}

.diploma-preview-conference {
    padding: 0;
    margin: 0 0 1rem 2rem;
    display: inline-block;
    line-height: 0;
    border: none;
    overflow: visible;
    float: right;
    clear: right;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diploma-preview-conference:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.diploma-preview-conference .diploma-preview-image {
    padding: 0;
    height: auto;
    max-width: 200px;
    margin: 0;
    border-radius: 4px;
    background: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: auto;
    display: inline-block;
    line-height: 0;
    border: none;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.diploma-preview-conference:hover .diploma-preview-image {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.diploma-preview-conference .diploma-preview-image img {
    position: relative;
    width: auto;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: top;
    border: none;
    outline: none;
    transition: transform 0.3s ease;
}

.diploma-preview-conference:hover .diploma-preview-image img {
    transform: scale(1.02);
}

.diploma-preview-conference .diploma-overlay-inline {
    display: none;
}

.diploma-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
}

.diploma-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    opacity: 0.3;
    border: 3px dashed var(--border-color);
    border-radius: 8px;
    position: relative;
}

.diploma-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
}

.diploma-icon::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
}

.diploma-placeholder p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.diploma-overlay-inline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diploma-preview-inline:hover .diploma-overlay-inline {
    opacity: 1;
}

.diploma-view-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

/* Conferences Section */
.conferences-section {
    background: var(--bg-primary);
}

.conferences-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.conference-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 2rem;
}

.conference-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end));
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.conference-item:hover::before {
    transform: scaleY(1);
}

.conference-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 35px var(--shadow-color);
}

.conference-year {
    min-width: 80px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
    text-align: center;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1) 0%, rgba(var(--primary-color-rgb), 0.05) 100%);
    border-radius: 8px;
    height: fit-content;
}

.conference-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.conference-item:has(.diploma-preview-conference) .conference-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.conference-item:has(.diploma-preview-conference) .conference-details {
    position: relative;
}

.conference-item:has(.diploma-preview-conference) .diploma-preview-conference {
    float: right;
    margin: 0 0 1rem 2rem;
    clear: right;
}

.conference-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.conference-date {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.conference-award {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.15) 0%, rgba(var(--primary-color-rgb), 0.08) 100%);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    width: fit-content;
    margin-bottom: 0.5rem;
}

.conference-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.conference-details p {
    margin: 0;
    font-size: 0.95rem;
}

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

.conference-topic {
    font-style: italic;
    color: var(--text-primary);
    font-weight: 500;
}

.conference-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.conference-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: rgba(var(--primary-color-rgb), 0.08);
    border: 1px solid transparent;
}

.conference-links a:hover {
    background: rgba(var(--primary-color-rgb), 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.conference-diploma-btn {
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1) 0%, rgba(var(--primary-color-rgb), 0.05) 100%);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.conference-diploma-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

.publications-section-new {
    margin-top: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.publications-title-new {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    text-align: center;
}

.publication-item-list-new {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publication-card-new {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 2rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.publication-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end));
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.publication-card-new:hover::before {
    transform: scaleY(1);
}

.publication-card-new:hover {
    transform: translateX(15px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 35px var(--shadow-color);
}

.publication-year-new {
    min-width: 80px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
    text-align: center;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1) 0%, rgba(var(--primary-color-rgb), 0.05) 100%);
    border-radius: 8px;
}

.publication-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.publication-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    flex: 1;
}

.publication-link-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.publication-card-new:hover .publication-link-icon {
    transform: translateX(5px);
    color: var(--secondary-color);
}

.publication-card-new:hover .publication-title {
    color: var(--primary-color);
}

/* Education Item Enhancements */
.education-item-new:hover .education-degree-new {
    color: var(--secondary-color);
}

.education-item-new:hover .education-degree-badge {
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

/* ===== PUBLICATIONS SECTION ===== */
.publications-section {
    background: var(--bg-primary);
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.publication-item {
    background: var(--gradient-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.publication-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.publication-item:hover::before {
    transform: scaleX(1);
}

.publication-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--primary-color);
}

.publication-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.publication-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

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

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

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

.publication-separator {
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== PROJECTS SECTION ===== */
.projects-work-in-progress {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.work-stripes {
    height: 60px;
    background: repeating-linear-gradient(
        90deg,
        #FFD700 0,
        #FFD700 50px,
        #000000 50px,
        #000000 100px
    );
    animation: stripeMove 2s linear infinite;
    margin: 2rem 0;
}

@keyframes stripeMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 0;
    }
}

.work-message {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 3px solid #FFD700;
    text-align: center;
    position: relative;
}

.work-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: workPulse 2s ease-in-out infinite;
}

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

.work-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.work-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.work-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.work-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.work-link .link-icon-text {
    font-size: 1.5rem;
}

.work-link .link-text-url {
    font-family: 'Courier New', monospace;
}

.project-card {
    background: var(--gradient-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    backdrop-filter: blur(10px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.05) 0%, 
        rgba(var(--primary-color-rgb), 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px var(--shadow-color), 
                0 0 0 1px rgba(var(--primary-color-rgb), 0.1);
    border-color: var(--primary-color);
}

.project-card:hover .project-icon {
    transform: scale(1.2) rotate(10deg);
    animation: bounce 0.6s ease;
}

.project-card:hover .project-title {
    color: var(--primary-color);
    transform: translateX(5px);
}

.project-card:hover .project-tags .tag {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(var(--primary-color-rgb), 0.2);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.4rem 0.8rem;
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

/* Theme-specific project visibility */
.theme-analytics .analytics-project {
    opacity: 1;
}

.theme-analytics .engineering-project {
    opacity: 0.6;
}

.theme-engineering .analytics-project {
    opacity: 0.6;
}

.theme-engineering .engineering-project {
    opacity: 1;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-link:hover::before {
    left: 100%;
}

.contact-link:hover {
    border-color: var(--primary-color);
    transform: translateX(15px) scale(1.02);
    box-shadow: 0 8px 25px var(--shadow-color);
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.05) 0%, 
        rgba(var(--primary-color-rgb), 0.1) 100%);
}

.contact-link:hover .link-icon {
    transform: scale(1.2) rotate(10deg);
    animation: bounce 0.6s ease;
}

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

.link-icon {
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-text {
    transition: all 0.3s ease;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-card);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

/* ===== ENHANCED ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-15px) rotate(1deg);
    }
    66% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px var(--shadow-color);
    }
    50% {
        box-shadow: 0 0 40px var(--shadow-color), 0 0 60px var(--shadow-color);
    }
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-2px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(2px);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(5deg);
    }
    75% {
        transform: rotate(-5deg);
    }
}


@keyframes morphing {
    0% {
        border-radius: 50%;
        transform: scale(1);
    }
    25% {
        border-radius: 30%;
        transform: scale(1.1);
    }
    50% {
        border-radius: 20%;
        transform: scale(0.9);
    }
    75% {
        border-radius: 40%;
        transform: scale(1.05);
    }
    100% {
        border-radius: 50%;
        transform: scale(1);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes pixelScatter {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(var(--scatter-x), var(--scatter-y)) scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--scatter-x), var(--scatter-y)) scale(0);
        opacity: 0;
    }
}

@keyframes pixelReassemble {
    0% {
        transform: translate(var(--scatter-x), var(--scatter-y)) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(calc(var(--scatter-x) * 0.5), calc(var(--scatter-y) * 0.5)) scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
}

@keyframes textFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Language switch animation overlay */
.language-animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: transparent;
}


/* Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Frost animation effects */
@keyframes frostFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes frostGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(173, 216, 230, 0.5),
            0 0 20px rgba(173, 216, 230, 0.3),
            0 0 30px rgba(173, 216, 230, 0.2);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(173, 216, 230, 0.8),
            0 0 40px rgba(173, 216, 230, 0.5),
            0 0 60px rgba(173, 216, 230, 0.3);
    }
}

@keyframes snowflakeFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes iceCrystal {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
}

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

@keyframes winterGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes frostShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes frostTextAppear {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
        filter: blur(20px) brightness(0.3);
        text-shadow: 
            0 0 0px rgba(173, 216, 230, 0),
            0 0 0px rgba(173, 216, 230, 0);
    }
    30% {
        opacity: 0.3;
        transform: translateY(30px) scale(0.9);
        filter: blur(15px) brightness(0.5);
        text-shadow: 
            0 0 5px rgba(173, 216, 230, 0.3),
            0 0 10px rgba(173, 216, 230, 0.2);
    }
    60% {
        opacity: 0.7;
        transform: translateY(10px) scale(0.95);
        filter: blur(8px) brightness(0.8);
        text-shadow: 
            0 0 10px rgba(173, 216, 230, 0.6),
            0 0 20px rgba(173, 216, 230, 0.4);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0) brightness(1);
        text-shadow: 
            0 0 15px rgba(173, 216, 230, 0.8),
            0 0 30px rgba(173, 216, 230, 0.5),
            0 0 45px rgba(173, 216, 230, 0.3);
    }
}

@keyframes frostParticle {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(360deg);
    }
}

@keyframes iceCrack {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(45deg);
    }
    100% {
        opacity: 0;
        transform: scale(1.2) rotate(90deg);
    }
}

/* Minimal animation effects */
@keyframes minimalFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes minimalPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.2);
    }
}

@keyframes waveSweep {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.pixel {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
}

.text-pixel {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 1px;
    pointer-events: none;
}

/* Enhanced language toggle button */
.lang-toggle {
    position: relative;
    overflow: hidden;
}

.lang-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.lang-toggle:hover::before {
    left: 100%;
}

.lang-toggle.animating {
    animation: shake 0.5s ease;
}

.lang-option {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.lang-option.animating {
    animation: textFadeOut 0.3s ease forwards;
}

.lang-option.assembling {
    animation: textFadeIn 0.5s ease forwards;
}


/* Enhanced floating elements */
.floating-element {
    animation: floatSlow 8s ease-in-out infinite;
}

.floating-element:nth-child(2n) {
    animation-delay: -2s;
    animation-duration: 10s;
}

.floating-element:nth-child(3n) {
    animation-delay: -4s;
    animation-duration: 12s;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .hero-about-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-name {
        font-size: 3rem;
    }

    .name-gradient {
        font-size: 3rem;
        display: block;
    }

    .name-part {
        display: inline-block;
    }

    .hero-about-cards {
        margin-top: 2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-about-cards .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-stats .stat-number {
        font-size: 2.5rem;
    }

    .about-cards-bottom {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }


    .hero-bg-circle-1,
    .hero-bg-circle-2,
    .hero-bg-circle-3 {
        opacity: 0.08;
    }

    .photo-slider {
        height: 300px;
    }

    .photo-slider-container {
        min-height: 340px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .name {
        font-size: 3rem;
    }

    .theme-toggle-navbar {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .theme-tooltip {
        min-width: 260px;
        max-width: 280px;
        padding: 1rem 1.25rem;
    }

    .tooltip-text {
        font-size: 0.9rem;
    }
    
    
    .tooltip-arrow {
        left: var(--arrow-offset, 50%);
        top: -7px;
        transform: translateX(-50%);
    }

    .navbar-controls {
        gap: 1rem;
    }

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

    .stack-categories-wrapper {
        min-height: 500px;
    }

    .stack-category-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .stack-category-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .tool-header {
        padding: 0.875rem 1rem;
    }

    .tool-name {
        font-size: 0.95rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 1rem;
    }

    .conference-item {
        flex-direction: column;
        gap: 1.5rem;
    }

    .conference-item:has(.diploma-preview-conference) .conference-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .conference-item:has(.diploma-preview-conference) .diploma-preview-conference {
        grid-column: 1;
        grid-row: auto;
        justify-self: center;
    }

    .conference-year {
        width: 100%;
        min-width: auto;
    }

    .conference-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-about-section {
        padding: 3rem 0 4rem;
        min-height: auto;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .name-gradient {
        font-size: 2.5rem;
        display: block;
    }

    .name-part {
        display: inline-block;
    }

    .hero-greeting {
        font-size: 1.1rem;
    }

    .greeting-accent {
        width: 40px;
        height: 3px;
    }

    .role-badge {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }


    .about-card {
        padding: 1.75rem;
        min-height: 250px;
    }


    .hero-stats .stat-item {
        padding: 2rem 1.5rem;
    }

    .hero-stats .stat-number {
        font-size: 2.5rem;
    }


    .hero-description .description-text {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-bg-circle-1,
    .hero-bg-circle-2,
    .hero-bg-circle-3 {
        display: none;
    }

    .photo-slider {
        height: 240px;
    }

    .photo-slider-container {
        min-height: 290px;
        padding: 1rem;
    }

    .photo-slider-dots {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .photo-slider-dots .dot {
        width: 8px;
        height: 8px;
    }

    .photo-slider-dots .dot.active {
        width: 24px;
    }

    .hero-stats .stat-number {
        font-size: 2.5rem;
    }

    .hero-about-cards .hero-stats .stat-number {
        font-size: 1.75rem;
    }

    .hero-about-cards .hero-stats .stat-item {
        padding: 1.25rem 0.75rem;
    }

    .about-cards-bottom {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }


    .name {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .timeline-expand-hint {
        padding-left: 0.5rem;
    }

    .hint-content {
        padding: 0.6rem 1rem;
        border-radius: 10px;
    }

    .hint-text {
        font-size: 0.85rem;
    }

    .education-grid-new {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .education-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .stack-categories-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .stack-category-card {
        padding: 1rem;
        border-radius: 16px;
        flex: 1 !important;
        min-width: 100%;
        position: relative !important;
    }

    .stack-category-card.show {
        padding: 1.25rem !important;
    }

    .stack-category-card.hide {
        padding: 1rem !important;
        max-height: 200px;
        overflow: hidden;
    }

    .tool-header {
        padding: 0.875rem 1rem;
    }

    .tool-name {
        font-size: 0.9rem;
    }

    .tool-description p {
        font-size: 0.85rem;
    }

    .tool-level {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }

    .stack-tool-card {
        border-radius: 10px;
    }

    .publication-card-new {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .publication-year-new {
        min-width: 100%;
        text-align: left;
        padding: 0.75rem;
    }

    .publication-content {
        flex-direction: row;
        width: 100%;
    }

    .publications-title-new {
        font-size: 2rem;
    }
}

    .theme-toggle-navbar {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .theme-tooltip {
        min-width: 240px;
        max-width: 260px;
        padding: 0.9rem 1.1rem;
    }

    .tooltip-text {
        font-size: 0.85rem;
    }
    
    
    .tooltip-arrow {
        left: var(--arrow-offset, 50%);
        top: -6px;
        transform: translateX(-50%);
    }

    .navbar-controls {
        gap: 0.75rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

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

    .conference-item {
        padding: 1.5rem;
        gap: 1rem;
    }

    .conference-name {
        font-size: 1rem;
    }

    .conference-year {
        font-size: 1.1rem;
        padding: 0.4rem;
    }

    .conference-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .conference-links a {
        width: 100%;
        text-align: center;
    }

    .lang-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

