/* ============================================
   Pooja Nethraa - AI Engineer Portfolio
   Interactive & Fun Dark Theme
   ============================================ */

/* CSS Variables */
:root {
    --primary: #e91e8c;
    --primary-dark: #c2185b;
    --primary-light: #f472b6;
    --secondary: #a855f7;
    --accent: #06d6a0;
    --accent-2: #ec4899;
    --bg-dark: #120318;
    --bg-darker: #0a0110;
    --bg-card: #1e0a2e;
    --bg-card-hover: #2a1040;
    --text-primary: #fdf2f8;
    --text-secondary: #d4a5c4;
    --text-muted: #8b5a7a;
    --border: #3d1550;
    --border-light: #5a2070;
    --gradient-primary: linear-gradient(135deg, #e91e8c 0%, #a855f7 50%, #6366f1 100%);
    --gradient-accent: linear-gradient(135deg, #f472b6 0%, #e91e8c 30%, #a855f7 60%, #6366f1 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #e91e8c 100%);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(233, 30, 140, 0.2);
    --shadow-glow-strong: 0 0 60px rgba(233, 30, 140, 0.35);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s ease, border-color 0.3s ease;
}

.custom-cursor-trail {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.custom-cursor.hover {
    transform: scale(2);
    border-color: var(--secondary);
}

@media (max-width: 768px) {
    .custom-cursor, .custom-cursor-trail {
        display: none;
    }
    body {
        cursor: auto;
    }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

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

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

.title-decorator {
    color: var(--secondary);
    font-family: 'JetBrains Mono', monospace;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 50px;
}

.highlight {
    color: var(--secondary);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: none;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(233, 30, 140, 0.5);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(233, 30, 140, 0.4);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(233, 30, 140, 0.4);
}

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

.btn-icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(18, 3, 24, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

#navbar.scrolled {
    border-bottom-color: var(--border);
    background: rgba(18, 3, 24, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    gap: 2px;
}

.logo-bracket {
    color: var(--secondary);
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    border-radius: 1px;
}

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

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

.lang-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
}

.lang-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
}

.lang-toggle .lang-text {
    pointer-events: none;
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(180deg);
}

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

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

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

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

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

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--secondary);
    animation: pulse-badge 2s ease-in-out infinite;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: blink-dot 1.5s ease-in-out infinite;
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(168, 85, 247, 0); }
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.hero-name {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

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

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch:hover::before,
.glitch:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

.glitch:hover::before {
    animation: glitch-1 0.3s linear infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    -webkit-text-fill-color: var(--accent);
}

.glitch:hover::after {
    animation: glitch-2 0.3s linear infinite;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    -webkit-text-fill-color: var(--accent-2);
}

@keyframes glitch-1 {
    0% { transform: translateX(0); }
    20% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
    100% { transform: translateX(0); }
}

@keyframes glitch-2 {
    0% { transform: translateX(0); }
    20% { transform: translateX(3px); }
    40% { transform: translateX(-3px); }
    60% { transform: translateX(1px); }
    80% { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 2.2em;
    font-family: 'JetBrains Mono', monospace;
}

.title-prefix {
    color: var(--secondary);
    margin-right: 8px;
}

.typing-text {
    color: var(--text-primary);
    font-weight: 600;
}

.cursor-blink {
    color: var(--primary);
    animation: blink 1s step-end infinite;
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--primary-light);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    animation: float-scroll 2s ease-in-out infinite;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

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

/* ============================================
   About Section
   ============================================ */
.about-section {
    padding: 120px 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.interactive-card {
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(233, 30, 140, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    transition: var(--transition);
}

.about-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.about-avatar {
    text-align: center;
    margin-bottom: 24px;
}

.avatar-ring {
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient-primary);
    animation: rotate-ring 8s linear infinite;
}

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

.avatar-inner {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-light);
    animation: rotate-ring 8s linear infinite reverse;
}

.avatar-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
}

.about-text h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.about-quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.fact-chip {
    padding: 8px 16px;
    background: rgba(233, 30, 140, 0.1);
    border: 1px solid rgba(233, 30, 140, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.fact-chip:hover {
    background: rgba(233, 30, 140, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Terminal Card */
.terminal-card {
    background: #1a0525;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.terminal-header {
    background: #12031c;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

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

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    max-height: 450px;
    overflow-y: auto;
}

.terminal-line {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
    align-items: center;
}

.prompt {
    color: var(--secondary);
    font-weight: 600;
}

.command {
    color: var(--accent-2);
}

.terminal-output {
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 20px;
}

.input-line {
    margin-top: 8px;
}

.terminal-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    width: calc(100% - 20px);
    outline: none;
    caret-color: var(--secondary);
}

/* ============================================
   Skills Section
   ============================================ */
.skills-section {
    padding: 120px 0;
    background: var(--bg-darker);
    position: relative;
}

.skills-showcase {
    position: relative;
}

.skill-orbit-container {
    display: none; /* Hidden on smaller screens, optional feature */
}

.orbit-center {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 40px;
    box-shadow: var(--shadow-glow-strong);
    animation: pulse-center 2s ease-in-out infinite;
}

.orbit-center span {
    font-size: 0.6rem;
    font-weight: 600;
    margin-top: 2px;
}

@keyframes pulse-center {
    0%, 100% { box-shadow: 0 0 20px rgba(233, 30, 140, 0.3); }
    50% { box-shadow: 0 0 40px rgba(233, 30, 140, 0.6); }
}

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

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

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(233, 30, 140, 0.1), transparent 30%);
    animation: rotate-bg 6s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

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

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

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.skill-icon-wrapper {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.skill-card-header h3 {
    font-size: 1rem;
    flex: 1;
}

.skill-level-badge {
    padding: 4px 10px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--secondary);
    font-weight: 600;
}

.skill-bars {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.skill-bar-item {
    margin-bottom: 12px;
}

.skill-bar-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.skill-bar-track {
    height: 6px;
    background: rgba(233, 30, 140, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: white;
    border-radius: 3px;
    opacity: 0.6;
    animation: shimmer 2s ease-in-out infinite;
}

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

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.tag {
    padding: 5px 12px;
    background: rgba(233, 30, 140, 0.08);
    border: 1px solid rgba(233, 30, 140, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary-light);
    transition: var(--transition);
    cursor: default;
}

.tag:hover {
    background: rgba(233, 30, 140, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ============================================
   Experience Section
   ============================================ */
.experience-section {
    padding: 120px 0;
}

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

.timeline-track {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border);
    border-radius: 2px;
}

.timeline-progress {
    width: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    height: 0;
    transition: height 0.5s ease;
}

.timeline-card {
    position: relative;
    padding-left: 70px;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-card:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 10px;
    top: 24px;
    width: 32px;
    height: 32px;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.8rem;
    z-index: 2;
}

.marker-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: marker-pulse 2s ease-out infinite;
}

@keyframes marker-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

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

.timeline-content:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateX(5px);
}

.timeline-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.timeline-content h4 {
    font-size: 0.95rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-achievements {
    list-style: none;
    margin-bottom: 16px;
}

.timeline-achievements li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    align-items: flex-start;
}

.achievement-icon {
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: 2px;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-tech span {
    padding: 4px 12px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent-2);
}

/* ============================================
   Projects Section
   ============================================ */
.projects-section {
    padding: 120px 0;
    background: var(--bg-darker);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card-3d {
    perspective: 1000px;
}

.project-card-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.project-card-inner:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.project-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(233, 30, 140, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: -50px;
    right: -50px;
    pointer-events: none;
}

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

.project-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.project-links {
    display: flex;
    gap: 8px;
}

.project-link-btn {
    width: 36px;
    height: 36px;
    background: rgba(233, 30, 140, 0.1);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.project-link-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.project-card-inner h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.project-card-inner p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.mini-stat {
    display: flex;
    flex-direction: column;
}

.mini-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
}

.mini-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tech span {
    padding: 4px 10px;
    background: rgba(6, 214, 160, 0.08);
    border: 1px solid rgba(6, 214, 160, 0.2);
    border-radius: 20px;
    font-size: 0.72rem;
    color: var(--accent);
}

/* ============================================
   Education Section
   ============================================ */
.education-section {
    padding: 120px 0;
}

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

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

.education-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.edu-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 16px;
}

.edu-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 12px;
}

.education-card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.education-card h4 {
    font-size: 0.95rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 8px;
}

.edu-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.edu-courses {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.edu-courses span {
    padding: 4px 10px;
    background: rgba(233, 30, 140, 0.08);
    border: 1px solid rgba(233, 30, 140, 0.2);
    border-radius: 20px;
    font-size: 0.72rem;
    color: var(--primary-light);
}

/* ============================================
   Certificates & Languages Section
   ============================================ */
.certificates-section {
    padding: 120px 0;
    background: var(--bg-darker);
}

.cert-lang-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.cert-panel,
.lang-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.cert-panel h3,
.lang-panel h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-light);
}

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

.cert-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.cert-list li:last-child {
    border-bottom: none;
}

.cert-list li:hover {
    padding-left: 8px;
}

.cert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.cert-list li div strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.cert-list li div span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lang-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lang-item {
    width: 100%;
}

.lang-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.lang-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.lang-level {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 500;
}

.lang-bar-track {
    height: 8px;
    background: rgba(233, 30, 140, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.lang-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Fun Zone Section
   ============================================ */
.fun-section {
    padding: 120px 0;
}

.fun-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.fun-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    transition: var(--transition);
}

.fun-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.fun-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--primary-light);
}

.fun-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.fun-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.ai-quote {
    font-style: italic;
    min-height: 80px;
}

.quote-author {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.easter-egg-hint {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.key {
    width: 30px;
    height: 30px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 0 var(--border);
}

.roulette-display {
    padding: 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 16px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: 120px 0;
    background: var(--bg-darker);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.contact-info-centered {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.contact-info-centered .social-links-row {
    grid-column: 1 / -1;
    justify-content: center;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

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

.contact-card-icon {
    width: 44px;
    height: 44px;
    background: rgba(233, 30, 140, 0.1);
    border: 1px solid rgba(233, 30, 140, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-card-info h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 500;
}

.contact-card-info a,
.contact-card-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-card-info a:hover {
    color: var(--primary);
}

.social-links-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-btn {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition-bounce);
}

.social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(233, 30, 140, 0.4);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
}

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

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}

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

/* ============================================
   Footer
   ============================================ */
#footer {
    padding: 50px 0 30px;
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================
   Celebration Overlay (Easter Egg)
   ============================================ */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 3, 24, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(10px);
}

.celebration-overlay.active {
    display: flex;
}

.celebration-content {
    text-align: center;
    padding: 60px;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-glow-strong);
    animation: pop-in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes pop-in {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.celebration-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.celebration-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .skills-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fun-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px 20px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-categories {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-centered {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .fun-grid {
        grid-template-columns: 1fr;
    }

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

    .cert-lang-grid {
        grid-template-columns: 1fr;
    }

    .experience-timeline {
        padding-left: 0;
    }
    
    .timeline-track {
        left: 16px;
    }
    
    .timeline-card {
        padding-left: 54px;
    }
    
    .timeline-marker {
        left: 2px;
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-card {
        width: 100%;
    }
}
