:root {
    /* Monochrome Jey Austen style */
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f0f0;
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-tertiary: #888888;
    --accent: #111111;
    --accent-light: #444444;
    --accent-hover: #333333;
    --accent-gradient: linear-gradient(135deg, #111111, #444444);
    --border: #d0d0d0;
    --border-light: #e0e0e0;
    --shadow-sm: 3px 3px 0 1px rgba(0, 0, 0, 0.12);
    --shadow-md: 4px 4px 0 2px rgba(0, 0, 0, 0.18);
    --shadow-lg: 6px 6px 0 2px #111111;
    --shadow-accent: 6px 6px 0 2px #111111;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 8px;
    --radius-full: 4px;
}

.dark-theme {
    --bg-primary: #111111;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #222222;
    --text-primary: #f0f0f0;
    --text-secondary: #bbbbbb;
    --text-tertiary: #888888;
    --accent: #f0f0f0;
    --accent-light: #cccccc;
    --accent-hover: #dddddd;
    --accent-gradient: linear-gradient(135deg, #f0f0f0, #aaaaaa);
    --border: #333333;
    --border-light: #444444;
    --shadow-sm: 3px 3px 0 1px rgba(255, 255, 255, 0.1);
    --shadow-md: 4px 4px 0 2px rgba(255, 255, 255, 0.15);
    --shadow-lg: 6px 6px 0 2px rgba(255, 255, 255, 0.25);
    --shadow-accent: 6px 6px 0 2px rgba(255, 255, 255, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    background-image: none;
    opacity: 0;
    animation: fadeInBody 0.9s ease-out forwards;
}

@keyframes fadeInBody {
    to { 
        opacity: 1; 
    }
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.75rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(1.875rem, 3vw, 2.75rem);
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
}

/* Pirata One for section titles in English */
html[lang="en"] .section-title {
    font-family: 'Pirata One', sans-serif;
    font-weight: 400;
}

p {
    margin-bottom: 1.25rem;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

/* Header & Navigation */
header {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    background-color: var(--bg-primary);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 0.8rem 0;
    box-shadow: var(--shadow-md);
    background-color: var(--bg-primary);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Pirata One', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    background-clip: text;
    color: transparent;
    text-decoration: none;
    letter-spacing: -1px;
    display: inline-block;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0.7;
    border-radius: 2px;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

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

.controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 1px var(--accent);
    border-color: var(--accent);
}

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

.theme-toggle svg {
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
}

.moon-icon {
    opacity: 1;
}

.sun-icon {
    opacity: 0;
    transform: scale(0.8);
}

.dark-theme .moon-icon {
    opacity: 0;
    transform: scale(0.8);
}

.dark-theme .sun-icon {
    opacity: 1;
    transform: scale(1);
}

/* Mobile Menu Toggle Button - Minimalist SVG Icon */
.mobile-menu-toggle {
    display: none;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 1px var(--accent);
    border-color: var(--accent);
}

.mobile-menu-toggle:active {
    transform: scale(0.98);
}

/* Hamburger icon SVG */
.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
    stroke-width: 2;
    stroke-linecap: round;
    fill: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Transform hamburger to X when open */
.mobile-menu-open .mobile-menu-toggle {
    border-color: var(--accent);
    box-shadow: 4px 4px 0 1px var(--accent);
}

.mobile-menu-open .mobile-menu-toggle svg {
    stroke: var(--accent);
}

/* Mobile Menu - Full-width dropdown from top */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 0;
    background: var(--bg-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(-20px);
}

.mobile-menu-open .mobile-menu {
    max-height: 100vh;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-open .mobile-menu-backdrop {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.mobile-menu-logo {
    font-family: 'Pirata One', sans-serif;
    font-size: 2rem;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.mobile-nav-links {
    flex: 1;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: calc(100vh - 250px);
}

.mobile-nav-links > a {
    padding: 1rem 2rem;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 2px solid transparent;
}

.mobile-nav-links > a:hover,
.mobile-nav-links > a:active {
    border-left-color: var(--accent);
    background: var(--bg-secondary);
}

/* Mobile Resume Dropdown */
.mobile-resume-dropdown {
    margin: 0.5rem 0;
    border-top: 1px solid var(--border-light);
    padding-top: 0.5rem;
}

.mobile-resume-toggle {
    width: 100%;
    padding: 1rem 2rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-resume-toggle::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
    transform: rotate(45deg);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 0.75rem;
}

.mobile-resume-dropdown.open .mobile-resume-toggle::after {
    transform: rotate(-135deg);
}

.mobile-resume-toggle:hover,
.mobile-resume-toggle:active {
    background: var(--bg-secondary);
}

.mobile-resume-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--bg-secondary);
}

.mobile-resume-dropdown.open .mobile-resume-menu {
    max-height: 180px;
}

.mobile-resume-menu a {
    display: block;
    padding: 0.875rem 2rem 0.875rem 2.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-resume-menu a:hover,
.mobile-resume-menu a:active {
    color: var(--accent);
    background: var(--bg-tertiary);
}

/* Mobile Controls */
.mobile-controls {
    padding: 1.25rem 2rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-theme-toggle,
.mobile-lang-toggle {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    position: relative;
}

.mobile-theme-toggle:hover,
.mobile-lang-toggle:hover {
    transform: translate(-2px, -2px);
    border-color: var(--accent);
    box-shadow: 4px 4px 0 1px var(--accent);
}

.mobile-theme-toggle:active,
.mobile-lang-toggle:active {
    transform: scale(0.98);
}

.mobile-theme-toggle svg {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: none;
    z-index: -1;
    animation: none;
    will-change: auto;
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--text-primary), var(--accent), var(--text-primary));
    background-size: 200% 200%;
    background-clip: text;
    color: transparent;
    animation: gradientShift 12s ease infinite;
    line-height: 1.1;
}

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

.hero-content h2 {
    font-size: 1.875rem;
    color: var(--accent);
    margin-bottom: 2rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.hero-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInText 0.8s ease-out 0.3s forwards;
}

@keyframes fadeInText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    background: var(--accent-gradient);
    color: var(--bg-primary);
    padding: 1.25rem 2.75rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition-slow);
    border: none;
    cursor: pointer;
    letter-spacing: -0.5px;
    box-shadow: var(--shadow-accent);
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: gentlePulse 4s ease-in-out infinite;
}

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

.cta-button:hover {
    transform: translate(-4px, -4px);
    box-shadow: 6px 6px 0 2px var(--accent);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    animation-play-state: paused;
}

.cta-button:active {
    transform: translate(2px, 2px);
    box-shadow: -4px -4px 0 2px var(--accent);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.cta-button:hover::after {
    opacity: 1;
}

/* Section Styling */
section {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 2.75rem;
    margin-bottom: 5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    opacity: 0;
    transform: translateX(-50%) translateY(25px);
    animation: slideUpTitle 0.8s ease-out 0.2s forwards;
}

@keyframes slideUpTitle {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: glowLine 3s ease-in-out infinite;
}

@keyframes glowLine {
    0%, 100% { 
        opacity: 0.7; 
        width: 70px; 
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    }
    50% { 
        opacity: 1; 
        width: 90px; 
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    }
}

/* About Section */
.about-content {
    display: flex;
    gap: 5rem;
    align-items: center;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 1.75rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.17, 0.88, 0.32, 1.28);
}

.about-text p.appear {
    opacity: 1;
    transform: translateX(0);
}

.about-image {
    flex: 1;
    min-width: 300px;
    height: 580px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid var(--border);
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.17, 0.88, 0.32, 1.28), box-shadow 0.4s ease;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.about-image:hover {
    transform: translate(-4px, -4px);
    box-shadow: 6px 6px 0 2px var(--accent);
    border-color: var(--accent);
}

.about-image:hover::before {
    opacity: 1;
}

.profile-photo-wrapper {
    width: 90%;
    height: 90%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border);
    transition: all 0.6s cubic-bezier(0.17, 0.88, 0.32, 1.28);
    background: var(--bg-tertiary);
}

.about-image:hover .profile-photo-wrapper {
    transform: scale(1.02);
    border-color: var(--accent);
    box-shadow: 4px 4px 0 2px var(--accent);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.17, 0.88, 0.32, 1.28);
    position: relative;
    z-index: 2;
}

.about-image:hover .profile-photo {
    transform: scale(1.08);
}

.profile-photo-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 255, 255, 0.15), 
        rgba(0, 0, 0, 0.25), 
        rgba(255, 255, 255, 0.15), 
        transparent);
    transform: rotate(45deg) translateX(-100%);
    animation: photoShine 4s infinite ease-in-out;
    opacity: 0.7;
    z-index: 3;
    pointer-events: none;
}

@keyframes photoShine {
    0% { transform: rotate(45deg) translateX(-100%); }
    50% { transform: rotate(45deg) translateX(100%); opacity: 0.9; }
    100% { transform: rotate(45deg) translateX(300%); opacity: 0.7; }
}

.dark-theme .profile-photo-wrapper {
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.dark-theme .about-image:hover .profile-photo-wrapper {
    box-shadow: 4px 4px 0 2px rgba(0, 0, 0, 0.4);
}

/* Unified Skills Block */
.skills-unified {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 3rem;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    margin-top: 3.5rem;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}

.education-unified::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.education-unified:hover {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0 2px var(--accent);
  border-color: var(--accent);
}

.skills-unified::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: none;
    z-index: 0;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.skills-unified:hover::before {
    opacity: 1;
}

.skills-unified:hover {
    transform: translate(-4px, -4px);
    box-shadow: 6px 6px 0 2px var(--accent);
    border-color: var(--accent);
}

.skills-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.skills-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: block;
    animation: float 3s ease-in-out infinite;
    color: var(--accent);
}

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

.skills-header h3 {
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
    position: relative;
    z-index: 2;
}

.skill-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.skill-tag::before,
.skill-tag::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent-gradient);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.skill-tag::before {
    left: 0;
}

.skill-tag::after {
    right: 0;
}

.skill-tag:hover::before,
.skill-tag:hover::after {
    transform: scaleY(1);
}

.skill-tag:hover {
    transform: translate(-4px, -4px);
    border-color: var(--accent);
    box-shadow: 6px 6px 0 2px var(--accent);
    background: rgba(0, 0, 0, 0.06);
}

.tag-text {
    font-weight: 500;
    font-size: 1.125rem;
    color: var(--text-primary);
    white-space: nowrap;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.skill-tag:hover .tag-text {
    color: var(--accent);
    font-weight: 600;
}

.skills-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px dashed var(--border);
    position: relative;
    z-index: 2;
}

.skills-footer p {
    color: var(--text-tertiary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    font-style: italic;
}

@media (max-width: 768px) {
    .skills-unified {
        padding: 2.25rem 1.75rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.25rem;
    }
    
    .skill-tag {
        padding: 1rem 1.25rem;
        min-width: 160px;
    }
    
    .tag-text {
        font-size: 1rem;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .skills-unified {
        padding: 2rem;
        border-radius: var(--radius-lg);
    }
    
    .skills-header h3 {
        font-size: 1.75rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skill-tag {
        padding: 1.25rem;
        justify-content: center;
        text-align: center;
    }
    
    .skills-footer p {
        font-size: 1rem;
        padding: 0 10px;
    }
}

/* Timeline Sections - consolidated styles below */

.timeline-item:hover::before {
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 4px 4px 0 0 var(--bg-primary), 4px 4px 0 2px var(--accent);
}

.timeline-item h3 {
    font-family: 'Space Mono', monospace;
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.timeline-item:hover h3 {
    color: var(--accent);
}

.timeline-item h4 {
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.375rem;
    letter-spacing: -0.5px;
}

.timeline-item .date {
    color: var(--text-tertiary);
    margin-bottom: 1.25rem;
    display: block;
    font-weight: 500;
    letter-spacing: -0.5px;
    font-size: 1.05rem;
}

.timeline-item p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

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

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3.5rem;
    margin-top: 4rem;
}

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

.contact-item {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    transition: transform 0.35s cubic-bezier(0.17, 0.88, 0.32, 1.28);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translate(-4px, -4px);
    background: var(--bg-primary);
    box-shadow: 6px 6px 0 2px var(--accent);
    border-color: var(--accent);
}

.contact-icon {
    min-width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.contact-item:hover .contact-icon {
    background: var(--accent-gradient);
    transform: rotate(10deg) scale(1.1);
    box-shadow: var(--shadow-accent);
    border-color: transparent;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--text-primary);
    stroke-width: 1.75;
    transition: var(--transition-fast);
    fill: none;
}

.contact-item:hover .contact-icon svg {
    stroke: var(--bg-primary);
    transform: scale(1.15);
}

.contact-text h3 {
    margin-bottom: 0.4rem;
    font-family: 'Space Mono', monospace;
    font-weight: 600;
    font-size: 1.375rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.contact-item:hover .contact-text h3 {
    color: var(--accent);
}

.contact-text p, 
.contact-text a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 1.125rem;
    line-height: 1.7;
    display: block;
}

.contact-text a:hover {
    color: var(--accent);
    padding-left: 4px;
    transform: translateX(2px);
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.contact-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.contact-social a:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translate(-3px, -3px);
    border-color: var(--accent);
    box-shadow: 4px 4px 0 1px var(--accent);
}

.contact-message {
    text-align: center;
    font-size: 1.375rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 550px;
    margin: -2rem auto 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInMessage 0.9s ease-out 0.4s forwards;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
		transition: var(--transition); 
}

.contact-message:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

@keyframes fadeInMessage {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    margin-top: 3rem;
    border-top: 2px solid var(--border);
    transition: background-color 0.4s ease;
}

.footer-content {
    max-width: 650px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2.25rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-family: 'Space Mono', monospace;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    transform: scale(1);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translate(-4px, -4px);
    border-color: var(--accent);
    box-shadow: 6px 6px 0 2px var(--accent);
}

.copyright {
    margin-top: 2.25rem;
    color: var(--text-tertiary);
    font-size: 1.05rem;
    letter-spacing: -0.5px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.copyright:hover {
    opacity: 1;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    height: auto;
    width: auto;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: var(--bg-primary);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translate(-4px, -4px);
    box-shadow: 6px 6px 0 2px var(--accent);
}

.scroll-to-top:active {
    transform: translate(2px, 2px);
    box-shadow: -4px -4px 0 2px var(--accent);
}

.scroll-to-top svg {
    stroke-width: 2.5;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.scroll-to-top:hover svg {
    transform: translateY(-2px);
}


/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .fade-in,
    .timeline-item,
    .about-text p,
    .section-title,
    .hero-content p,
    .contact-message {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .scroll-to-top {
        transition: none !important;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
    }
    
    .about-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content h1 {
        font-size: 3.75rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .timeline {
        padding-left: 40px;
    }
}

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

    .mobile-menu-toggle {
        display: flex;
    }
    
    .controls {
        gap: 12px;
    }
    
    .theme-toggle,
    .lang-toggle {
        width: 44px;
        height: 44px;
    }
    
    .hero-content h1 {
        font-size: 3.25rem;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 1.1875rem;
        margin-bottom: 2.75rem;
    }
    
    section {
        padding: 6rem 0;
    }
    
    .section-title {
        font-size: 2.25rem;
        margin-bottom: 4rem;
    }
    
    .timeline {
        padding-left: 35px;
    }
    
    .timeline::before {
        left: 8px;
        width: 2px;
    }
    
    .timeline-item::before {
        left: -12px;
        width: 14px;
        height: 14px;
    }
    
    .timeline-item .date {
        font-size: 1rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .scroll-to-top {
        bottom: 24px;
        right: 24px;
        padding: 0.6rem 1.25rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem 0;
    }
    
    header.scrolled {
        padding: 0.7rem 0;
    }
    
    .logo {
        font-size: 1.75rem;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
        letter-spacing: -1px;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 1.1rem 2.25rem;
        font-size: 1.05rem;
        width: 90%;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-image {
        height: 380px;
        border-radius: var(--radius-lg);
    }
    
    .profile-photo-wrapper {
        width: 95%;
        height: 95%;
        border-radius: var(--radius-md);
    }
    
    .timeline-item h3 {
        font-size: 1.625rem;
    }
    
    .timeline-item h4 {
        font-size: 1.25rem;
    }
    
    footer {
        padding: 2.5rem 0 2rem;
    }
    
    .social-links a {
        width: 48px;
        height: 48px;
        font-size: 1.35rem;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
    }
    
    .contact-icon {
        min-width: 56px;
        height: 56px;
    }
}

/* Resume Dropdown */
.resume-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.resume-toggle {
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
    position: relative;
    display: inline-block;
    outline: none;
    line-height: 1.5;
    margin: 0;
    text-align: left;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.resume-toggle:hover,
.resume-toggle:focus {
    color: var(--accent);
}

.resume-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.resume-toggle:hover::after,
.resume-dropdown.open .resume-toggle::after {
    width: 100%;
}

.resume-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin: 0;
    padding: 0.75rem 0;
    list-style: none;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
}

.resume-dropdown:hover .resume-menu,
.resume-dropdown:focus-within .resume-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.resume-menu li {
    margin: 0;
}

.resume-menu a {
    display: block;
    padding: 0.625rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    white-space: nowrap;
    position: relative;
    border-radius: var(--radius-md);
    margin: 0 0.5rem;
}

.resume-menu a:hover {
    background: var(--bg-secondary);
    color: var(--accent);
    padding-left: 1.5rem;
}

.dark-theme .resume-menu {
    background: var(--bg-secondary);
    border-color: var(--border-light);
}

@media (max-width: 320px) {
  :root {
    --radius-lg: 16px;
    --radius-xl: 20px;
  }

  .container {
    width: 95%;
    padding: 0 8px;
  }

  #hero {
    padding: 4rem 0 3rem;
  }
  
  .hero-content h1 {
    font-size: 2.375rem !important;
    line-height: 1.15;
  }
  
  .hero-content h2 {
    font-size: 1.375rem !important;
    margin-bottom: 1.5rem;
  }
  
  .hero-content p {
    font-size: 1.05rem !important;
    margin-bottom: 2rem;
    padding: 0 5px;
  }
  
  .cta-button {
    padding: 1rem 1.75rem !important;
    font-size: 1rem !important;
    width: 92%;
    margin: 0 auto;
  }

  section {
    padding: 4.5rem 0 !important;
  }
  
  .section-title {
    font-size: 1.875rem !important;
    margin-bottom: 3rem !important;
  }

  .about-image {
    height: 300px !important;
    border-radius: var(--radius-lg) !important;
  }
  
  .profile-photo-wrapper {
    width: 96% !important;
    height: 96% !important;
    border-radius: var(--radius-md) !important;
  }
  
  .about-text p {
    font-size: 1rem !important;
    margin-bottom: 1.25rem !important;
  }

  .timeline {
    padding-left: 28px !important;
  }
  
  .timeline::before {
    left: 6px !important;
    width: 2px !important;
  }
  
  .timeline-item::before {
    left: -10px !important;
    width: 12px !important;
    height: 12px !important;
  }
  
  .timeline-item h3 {
    font-size: 1.45rem !important;
  }
  
  .timeline-item h4 {
    font-size: 1.15rem !important;
  }
  
  .timeline-item .date {
    font-size: 0.925rem !important;
  }

  .skills-unified {
    padding: 1.75rem !important;
    border-radius: var(--radius-lg) !important;
  }
  
  .skills-header h3 {
    font-size: 1.625rem !important;
  }
  
  .skill-tag {
    padding: 0.875rem !important;
    font-size: 0.95rem !important;
  }

  .contact-item {
    padding: 1rem !important;
    gap: 1rem !important;
  }
  
  .contact-icon {
    min-width: 48px !important;
    height: 48px !important;
  }
  
  .contact-icon svg {
    width: 22px !important;
    height: 22px !important;
  }
  
  .contact-text h3 {
    font-size: 1.2rem !important;
  }
  
  .contact-text p,
  .contact-text a {
    font-size: 0.975rem !important;
  }
  
  .contact-social a {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.85rem !important;
  }
  
  .contact-message {
    font-size: 1.15rem !important;
    padding: 1.5rem !important;
    margin-top: 1rem !important;
  }

  footer {
    padding: 2rem 0 1.5rem !important;
  }
  
  .social-links a {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.2rem !important;
  }
  
  .copyright {
    font-size: 0.925rem !important;
    padding: 0 8px;
  }
  
  .scroll-to-top {
    bottom: 16px !important;
    right: 16px !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.7rem !important;
  }

  .nav-links a,
  .resume-toggle,
  .theme-toggle,
  .cta-button,
  .contact-social a,
  .social-links a {
    min-height: 44px;
    min-width: 44px;
  }
  
  .contact-item:hover {
    transform: none !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .nav-links a:hover::after,
  .skill-tag:hover::before,
  .skill-tag:hover::after,
  .timeline-item:hover::before,
  .contact-item:hover,
  .contact-item:hover .contact-icon {
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--border) !important;
  }
  
  .theme-toggle,
  .scroll-to-top,
  .resume-toggle {
    min-width: 44px;
    min-height: 44px;
  }
  
  .cta-button {
    animation: none !important;
  }
}

@media (max-width: 480px) {
  body, html {
    overflow-x: hidden !important;
  }
  
  input, textarea, select, button {
    font-size: 16px !important;
  }
  
  .dark-theme .hero-content h1,
  .dark-theme .section-title {
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  }
}

.particles-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='30' y1='25' x2='30' y2='35' stroke='%23111111' stroke-width='1'/%3E%3Cline x1='25' y1='30' x2='35' y2='30' stroke='%23111111' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  opacity: 0.12;
}

.dark-theme .particles-background {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='30' y1='25' x2='30' y2='35' stroke='%23f0f0f0' stroke-width='1'/%3E%3Cline x1='25' y1='30' x2='35' y2='30' stroke='%23f0f0f0' stroke-width='1'/%3E%3C/svg%3E");
  opacity: 0.1;
}

.particle {
  display: none;
}

@media (max-width: 768px) {
  .particles-background {
    background-size: 48px 48px;
    background-position: 0 0, 24px 24px;
    opacity: 0.05;
  }
}

@media (prefers-reduced-motion: reduce) {
  .particles-background {
    opacity: 0.05;
  }
}

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

.skills-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
  animation: float-icon 3s ease-in-out infinite;
  color: var(--accent);
}

.projects-unified,
.education-unified {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 3rem;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
  margin-top: 3.5rem;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
}

.projects-unified::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.projects-unified:hover::before {
  opacity: 1;
}

.projects-unified:hover {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0 2px var(--accent);
  border-color: var(--accent);
}

.projects-unified .timeline {
  padding-left: 0;
  max-width: none;
  margin: 0;
  position: relative;
}

.projects-unified .timeline-item {
  padding-left: 64px;
  margin-bottom: 3.5rem;
}

.projects-unified .timeline-item:last-child {
  margin-bottom: 0;
}

.project-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.project-link:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  box-shadow: 4px 4px 0 1px var(--accent);
  transform: translate(-3px, -3px);
}

.project-link svg {
  flex-shrink: 0;
}

.timeline {
  max-width: 900px;
  margin: 4rem auto 0;
  position: relative;
  padding-left: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 0;
  left: 24px;
  width: 3px;
  background: var(--accent-gradient);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 4.5rem;
  padding-left: 64px;
  opacity: 0;
  transform: translateX(-25px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.17, 0.88, 0.32, 1.28);
}

.timeline-item.appear {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 24px;
  width: 16px;
  height: 16px;
  border-radius: 0;
  background-color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 3px 3px 0 0 var(--bg-primary), 3px 3px 0 2px var(--accent);
  z-index: 1;
  transform: translateX(-50%) rotate(0deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover::before {
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 4px 4px 0 0 var(--bg-primary), 4px 4px 0 2px var(--accent);
}

@media (max-width: 768px) {
  .projects-unified .timeline,
  .education-unified .timeline {
    padding-left: 20px;
  }

  .projects-unified .timeline-item,
  .education-unified .timeline-item {
    padding-left: 52px;
  }

  .projects-unified .timeline::before,
  .education-unified .timeline::before {
    left: 16px;
  }

  .projects-unified .timeline-item::before,
  .education-unified .timeline-item::before {
    left: 16px;
  }
}

@media (max-width: 480px) {
  .projects-unified .timeline,
  .education-unified .timeline {
    padding-left: 16px;
  }

  .projects-unified .timeline-item,
  .education-unified .timeline-item {
    padding-left: 44px;
  }

  .projects-unified .timeline::before,
  .education-unified .timeline::before {
    left: 12px;
  }

  .projects-unified .timeline-item::before,
  .education-unified .timeline-item::before {
    left: 12px;
  }
}

.contact-message h2 {
  font-family: 'Space Mono', monospace;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -1px;
  text-align: left;
}

.contact-message p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  text-align: left;
  font-size: 1.125rem;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#contact-form input,
#contact-form textarea {
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 4px 4px 0 1px rgba(0, 0, 0, 0.25);
}

#contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

#contact-form button {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  border: none;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}

#contact-form button:hover {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0 2px var(--accent);
  background: var(--accent);
}

#contact-form button:active {
  transform: translate(2px, 2px);
  box-shadow: -4px -4px 0 2px var(--accent);
}

#contact-form button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

#contact-form button:hover::after {
  opacity: 1;
}

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

#contact-form button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: var(--accent-gradient);
  color: var(--bg-primary);
  border: none;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
  width: 100%;
}

#contact-form button svg {
  transition: transform 0.3s ease;
}

#contact-form button:hover svg {
  transform: translateX(3px);
}

.form-success-wrapper {
  margin-top: 1.25rem;
}

.form-success-container {
  margin-top: 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-secondary) 90%);
  border: 2px solid var(--accent);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  width: 100%;
  font-weight: 500;
  text-align: center;
  box-shadow: var(--shadow-sm);

  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) 0.1s,
    transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) 0.1s;
}

.form-success-container.open .form-success {
  opacity: 1;
  transform: translateY(0);
}

.form-success svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2.5;
}

.form-success span {
  line-height: 1.4;
}

.form-error-container {
  margin-top: 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: color-mix(in srgb, #cc0000 10%, var(--bg-secondary) 90%);
  border: 2px solid #cc0000;
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  width: 100%;
  font-weight: 500;
  text-align: center;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) 0.1s,
    transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) 0.1s;
}

.form-error-container.open .form-error {
  opacity: 1;
  transform: translateY(0);
}

.form-error span {
  line-height: 1.4;
}

.projects-unified .timeline,
.education-unified .timeline {
    list-style: none;
}

.projects-unified .timeline-item,
.education-unified .timeline-item {
    list-style-type: none;
}

/* Loading Screen - Minimalist */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-container {
    text-align: center;
    animation: fadeInLoader 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Minimalist Logo - Letter M */
.loader-logo-minimal {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.75rem;
    animation: logoAppear 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.15));
}

.dark-theme .loader-logo-minimal {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.1));
}

@keyframes logoAppear {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.loader-logo-minimal svg {
    width: 100%;
    height: 100%;
}

.loader-logo-minimal text {
    opacity: 0;
    animation: textReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

@keyframes textReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Text Line with Blinking Cursor */
.loader-text-line {
    font-family: 'Space Mono', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    opacity: 0;
    animation: fadeInText 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
}

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

.loader-name {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}

.loader-dots {
    display: inline-block;
    animation: blinkDots 1.4s steps(4) infinite;
}

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

/* Sharp Progress Bar */
.loader-progress-container {
    width: 260px;
    height: 3px;
    background: var(--border);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    opacity: 0;
    animation: fadeInProgress 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
}

@keyframes fadeInProgress {
    from { opacity: 0; transform: scaleY(0); }
    to { opacity: 1; transform: scaleY(1); }
}

.loader-progress-bar-minimal {
    height: 100%;
    background: var(--accent-gradient);
    width: 0;
    border-radius: 0;
    position: relative;
    transition: width 0.1s linear;
}

.loader-progress-bar-minimal::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: var(--text-primary);
    opacity: 0.3;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .loader-logo-minimal {
        width: 80px;
        height: 80px;
    }

    .loader-text-line {
        font-size: 1.125rem;
    }

    .loader-progress-container {
        width: 200px;
        height: 3px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .loader-logo-minimal {
        width: 60px;
        height: 60px;
    }

    .loader-text-line {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .loader-progress-container {
        width: 160px;
        height: 2px;
    }
}

/* Language Toggle */
.lang-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 48px;
    height: 48px;
    padding: 0 0.75rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    user-select: none;
    letter-spacing: 0.5px;
}

.lang-toggle:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 1px var(--accent);
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 0, 0, 0.05);
}

.lang-toggle:active {
    transform: scale(0.98);
}

.lang-text {
    display: inline-block;
}

@media (max-width: 768px) {
    .lang-toggle {
        width: 44px;
        height: 44px;
        font-size: 0.8125rem;
        min-width: 44px;
        padding: 0 0.5rem;
    }
}

/* ============================================
   GLASSMORPHISM EFFECTS
   ============================================ */

/* Glassmorphism for unified blocks */
.skills-unified,
.projects-unified,
.education-unified,
.contact-message {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dark-theme .skills-unified,
.dark-theme .projects-unified,
.dark-theme .education-unified,
.dark-theme .contact-message {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Glassmorphism for contact items */
.contact-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dark-theme .contact-item {
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.dark-theme .contact-item:hover {
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Glassmorphism for skill tags */
.skill-tag {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 2px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.dark-theme .skill-tag {
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 2px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.skill-tag:hover {
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.4);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dark-theme .skill-tag:hover {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.4);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Glassmorphism for header on scroll */
header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.06),
        inset 0 -1px 0 rgba(255, 255, 255, 0.9);
}

.dark-theme header.scrolled {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

/* Glassmorphism for contact icon */
.contact-icon {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dark-theme .contact-icon {
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Glassmorphism for mobile menu - SOLID background, no transparency */
.mobile-menu {
    background: var(--bg-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.dark-theme .mobile-menu {
    background: var(--bg-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Glassmorphism for resume dropdown */
.resume-menu {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.dark-theme .resume-menu {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Glassmorphism for project links */
/* project-link glassmorphism removed — using flat style from main block */

/* Enhanced glassmorphism on hover for main blocks */
.skills-unified:hover,
.projects-unified:hover,
.education-unified:hover {
    backdrop-filter: blur(16px) saturate(200%);
    -webkit-backdrop-filter: blur(16px) saturate(200%);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.dark-theme .skills-unified:hover,
.dark-theme .projects-unified:hover,
.dark-theme .education-unified:hover {
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {
    .skills-unified,
    .projects-unified,
    .education-unified,
    .contact-message,
    .contact-item,
    .skill-tag,
    header.scrolled,
    .mobile-menu,
    .resume-menu,
    .project-link {
        background: var(--bg-secondary);
    }
    
    .dark-theme .skills-unified,
    .dark-theme .projects-unified,
    .dark-theme .education-unified,
    .dark-theme .contact-message,
    .dark-theme .contact-item,
    .dark-theme .skill-tag,
    .dark-theme header.scrolled,
    .dark-theme .mobile-menu,
    .dark-theme .resume-menu,
    .dark-theme .project-link {
        background: var(--bg-secondary);
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

/* Animated background */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: none;
    animation: none;
}

.dark-theme .hero-gradient {
    background: none;
}

@keyframes heroGradientShift {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.05) translate(-1%, 2%);
    }
}

/* Subtle grid pattern */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 70%);
}

.dark-theme .hero-grid {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
}

/* Floating glow orbs - disabled for flat style */
.hero-glow {
    display: none;
}

.hero-glow-1 {
    display: none;
}

.hero-glow-2 {
    display: none;
}

.dark-theme .hero-glow-1 {
    display: none;
}

.dark-theme .hero-glow-2 {
    display: none;
}

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

/* Hero content */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

/* Availability badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.dark-theme .hero-badge {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.25);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes badgePulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
}

/* Hero heading */
#hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-greeting {
    display: block;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-typing-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-iam {
    color: var(--text-secondary);
    white-space: pre;
}

.typing-text {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    min-width: 4px;
    min-height: 1em;
}

.typing-cursor {
    color: var(--accent);
    font-weight: 300;
    animation: cursorBlink 1s steps(1) infinite;
    margin-left: 2px;
}

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

/* Hero description */
.hero-description {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: var(--accent-gradient);
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: var(--shadow-accent);
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out 1s both;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--bg-primary);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Stagger animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #hero {
        min-height: 85vh;
        padding: 5rem 0 3rem;
    }

    #hero h1 {
        font-size: clamp(2rem, 7vw, 2.75rem);
    }

    .hero-glow-1 {
        width: 250px;
        height: 250px;
    }

    .hero-glow-2 {
        width: 200px;
        height: 200px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* ============================================
   SKILLS — INTERACTIVE CARDS
   ============================================ */

.skills-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

/* Category block */
.skill-category {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,1);
    border-color: rgba(0, 0, 0, 0.2);
}

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

.dark-theme .skill-category {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}

.dark-theme .skill-category:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255,255,255,0.12);
    border-color: rgba(0, 0, 0, 0.25);
}

/* Category header */
.skill-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.skill-category-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.skill-category:hover .skill-category-icon {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    border-color: transparent;
    box-shadow: var(--shadow-accent);
}

.skill-category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    font-family: 'Space Mono', monospace;
}

/* Cards grid */
.skill-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Individual skill card */
.skill-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.4);
    transition: var(--transition-fast);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.skill-card:hover {
    transform: translateX(4px);
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.dark-theme .skill-card {
    background: rgba(26, 26, 26, 0.5);
    border-color: rgba(255,255,255,0.07);
}

.dark-theme .skill-card:hover {
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Skill icon */
.skill-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
    position: relative;
    z-index: 1;
}

.skill-card-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-card-icon svg {
    transform: scale(1.15) rotate(-5deg);
}

/* Icon colors per technology */
.skill-icon-python  { background: rgba(55,118,171,0.12); color: #3776AB; }
.skill-icon-cpp     { background: rgba(0,89,157,0.12); color: #00599D; }
.skill-icon-ts      { background: rgba(49,120,198,0.12); color: #3178C6; }
.skill-icon-fastapi { background: rgba(0,150,136,0.12); color: #009688; }
.skill-icon-postgres { background: rgba(51,103,145,0.12); color: #336791; }
.skill-icon-sqlalchemy { background: rgba(209,66,24,0.12); color: #D14218; }
.skill-icon-docker  { background: rgba(36,150,237,0.12); color: #2496ED; }
.skill-icon-git     { background: rgba(240,80,50,0.12); color: #F05032; }
.skill-icon-rn      { background: rgba(97,218,251,0.12); color: #61DAFB; }
.skill-icon-tf      { background: rgba(255,160,0,0.12); color: #FF6F00; }
.skill-icon-pandas  { background: rgba(19,56,156,0.12); color: #130754; }
.skill-icon-ml      { background: rgba(0,0,0,0.08); color: var(--accent); }

.dark-theme .skill-icon-pandas { color: #c8c0e8; background: rgba(160,140,255,0.12); }

/* Skill name + bar */
.skill-card-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.skill-card-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.skill-card:hover .skill-card-name {
    color: var(--accent);
}

/* Progress bar */
.skill-bar {
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animate bar when card comes into view */
.skill-card.animated .skill-bar-fill {
    width: var(--level);
}

/* Mobile */
@media (max-width: 900px) {
    .skills-categories {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .skill-category {
        padding: 1.25rem;
        border-radius: var(--radius-lg);
    }

    .skill-card {
        padding: 0.625rem 0.875rem;
    }

    .skill-card-icon {
        width: 30px;
        height: 30px;
    }

    .skill-card-icon svg {
        width: 16px;
        height: 16px;
    }
}

.projects-unified .timeline-item .date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
    background: rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-full);
    color: var(--accent);
    letter-spacing: 0.3px;
    margin-bottom: 0.85rem;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.projects-unified .timeline-item:hover .date {
    background: rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.dark-theme .projects-unified .timeline-item .date {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.education-section .timeline-item .date,
#education .timeline-item .date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
    background: rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-full);
    color: var(--accent);
    letter-spacing: 0.3px;
    margin-bottom: 0.85rem;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.education-section .timeline-item:hover .date,
#education .timeline-item:hover .date {
    background: rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.dark-theme .education-section .timeline-item .date,
.dark-theme #education .timeline-item .date {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.skill-category::before {
    display: none;
}