/* ============================================
   Prince Kumar — Dark Portfolio
   Premium dark-themed responsive portfolio
   ============================================ */

/* === CSS Custom Properties === */
:root {
    /* Core Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-tertiary: #141425;
    --bg-card: #12121f;
    --bg-card-hover: #1a1a2e;
    
    /* Accent Colors */
    --accent-primary: #6c63ff;
    --accent-secondary: #a78bfa;
    --accent-tertiary: #818cf8;
    --accent-glow: rgba(108, 99, 255, 0.15);
    --accent-glow-strong: rgba(108, 99, 255, 0.3);
    
    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #6c63ff 0%, #a78bfa 50%, #818cf8 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
    --gradient-border: linear-gradient(135deg, #6c63ff, #a78bfa, #818cf8, #6c63ff);
    
    /* Text Colors */
    --text-primary: #e8e6f0;
    --text-secondary: #9b97b0;
    --text-muted: #6b6880;
    --text-accent: #a78bfa;
    
    /* Borders */
    --border-subtle: rgba(108, 99, 255, 0.1);
    --border-medium: rgba(108, 99, 255, 0.2);
    --border-strong: rgba(108, 99, 255, 0.4);
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.15);

    /* Nav height */
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s var(--ease-smooth);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

::selection {
    background: var(--accent-primary);
    color: #fff;
}

/* === Cursor Glow === */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    will-change: left, top;
}

/* === Grid Background === */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(108, 99, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 99, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

/* === Container === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s var(--ease-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    z-index: 1001;
}

.logo-bracket {
    color: var(--accent-primary);
    transition: color 0.3s;
}

.logo-text {
    color: var(--text-primary);
    transition: color 0.3s;
}

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

.nav-logo:hover .logo-text {
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s var(--ease-smooth);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--accent-glow);
}

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

.btn-resume {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--gradient-primary);
    border-radius: 8px;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: 0 2px 12px rgba(108, 99, 255, 0.3);
}

.btn-resume:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.5);
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-smooth);
}

.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 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: calc(var(--nav-height) + 40px) 0 60px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.hero-greeting {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.greeting-line {
    width: 40px;
    height: 2px;
    background: var(--accent-primary);
}

.greeting-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-secondary);
    letter-spacing: 0.05em;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.name-line {
    display: block;
    color: var(--text-primary);
}

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

.hero-role {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-secondary);
}

.role-prefix {
    color: var(--accent-primary);
    font-weight: 700;
}

.typewriter {
    color: var(--accent-secondary);
}

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

@keyframes blink {
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    border-radius: 10px;
}

.btn-primary {
    padding: 14px 28px;
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
}

.btn-ghost {
    padding: 14px 28px;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-medium);
}

.btn-ghost:hover {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
    transform: translateY(-3px);
}

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

/* Social Links */
.hero-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-smooth);
    background: rgba(255, 255, 255, 0.02);
}

.social-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-glow);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    width: 380px;
    height: 380px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    position: relative;
    z-index: 2;
    filter: brightness(0.95);
}

.image-border {
    position: absolute;
    inset: -3px;
    border-radius: 27px;
    background: var(--gradient-border);
    z-index: 1;
    animation: borderRotate 6s linear infinite;
    background-size: 300% 300%;
}

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

.image-glow {
    position: absolute;
    inset: -20px;
    border-radius: 40px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
    z-index: 0;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(18, 18, 31, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 3;
    animation: float 4s ease-in-out infinite;
    box-shadow: var(--shadow-md);
}

.badge-icon {
    font-size: 1.1rem;
}

.badge-1 {
    top: 40px;
    right: -20px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 60px;
    left: -30px;
    animation-delay: 1.3s;
}

.badge-3 {
    bottom: 30px;
    right: -10px;
    animation-delay: 2.6s;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; height: 40px; }
    50% { opacity: 0.3; height: 24px; }
}

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

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

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-secondary);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

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

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

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

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

.about-text strong {
    color: var(--accent-secondary);
    font-weight: 600;
}

.about-intro {
    font-size: 1.1rem !important;
    color: var(--text-primary) !important;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--border-subtle);
}

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

.highlight-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.highlight-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Terminal Card */
.about-terminal {
    background: var(--bg-tertiary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-subtle);
}

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

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

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca42; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.terminal-line {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.prompt {
    color: var(--accent-primary);
    font-weight: 700;
}

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

.terminal-output pre {
    background: transparent;
    padding: 0;
}

.terminal-output code {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.8;
}

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

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.4s var(--ease-smooth);
}

.skill-category:hover {
    border-color: var(--border-medium);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

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

.category-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-glow);
    color: var(--accent-primary);
}

.category-header h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-level {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.learning-badge {
    color: var(--accent-secondary) !important;
    background: rgba(167, 139, 250, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    font-size: 0.7rem !important;
    animation: learningPulse 2s ease-in-out infinite;
}

@keyframes learningPulse {
    0%, 100% { border-color: rgba(167, 139, 250, 0.2); }
    50% { border-color: rgba(167, 139, 250, 0.5); }
}

.skill-bar {
    height: 6px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s var(--ease-smooth);
}

.learning-bar {
    background: rgba(167, 139, 250, 0.08);
}

.learning-fill {
    background: linear-gradient(90deg, var(--accent-secondary), rgba(167, 139, 250, 0.3));
    animation: learningBarPulse 2.5s ease-in-out infinite;
}

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

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    background: var(--bg-secondary);
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.4s var(--ease-smooth);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow), var(--shadow-md);
}

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

.project-icon {
    color: var(--accent-primary);
    opacity: 0.8;
}

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

.project-link-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.3s var(--ease-smooth);
}

.project-link-icon:hover {
    color: var(--accent-primary);
    background: var(--accent-glow);
}

.project-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--accent-secondary);
    font-family: var(--font-mono);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-secondary);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(167, 139, 250, 0); }
}

.project-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    transition: color 0.3s;
}

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

.project-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.15);
    border-radius: 6px;
    transition: all 0.3s;
}

.project-card:hover .tech-tag {
    border-color: rgba(167, 139, 250, 0.3);
    background: rgba(167, 139, 250, 0.12);
}

.project-progress {
    margin-top: auto;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.progress-bar {
    height: 4px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

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

/* ============================================
   EDUCATION SECTION
   ============================================ */
.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--border-subtle));
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

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

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent-primary);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.4s var(--ease-smooth);
}

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

.timeline-badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    background: var(--accent-glow);
    border: 1px solid var(--border-medium);
    border-radius: 20px;
    margin-bottom: 12px;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.timeline-content h4 {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

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

.detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.8rem;
    color: var(--accent-secondary);
    background: rgba(167, 139, 250, 0.08);
    border-radius: 8px;
    font-weight: 500;
}

.detail-tag svg {
    color: #fbbf24;
}

.ongoing-tag {
    color: #34d399 !important;
    background: rgba(52, 211, 153, 0.08);
}

.ongoing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    animation: statusPulse 2s ease-in-out infinite;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--bg-secondary);
}

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

.contact-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.3s var(--ease-smooth);
}

.contact-method:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    transform: translateX(8px);
    box-shadow: var(--shadow-glow);
}

.method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-glow);
    color: var(--accent-primary);
    flex-shrink: 0;
}

.method-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.method-value {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-smooth);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
}

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

.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

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

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    transition: all 0.3s var(--ease-smooth);
}

.footer-social a:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: var(--accent-glow);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 12px;
}

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

.footer-team a {
    color: var(--accent-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0);
}

/* Hero animations */
.hero-text {
    animation: fadeInUp 1s var(--ease-smooth) 0.2s both;
}

.hero-image {
    animation: fadeInUp 1s var(--ease-smooth) 0.5s both;
}

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

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }

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

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

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

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .image-container {
        width: 300px;
        height: 300px;
    }

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

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

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

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --nav-height: 64px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 100px 32px 40px;
        gap: 4px;
        transition: right 0.4s var(--ease-smooth);
        border-left: 1px solid var(--border-subtle);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1rem;
        padding: 14px 20px;
        width: 100%;
        border-radius: 10px;
    }

    .btn-resume {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: calc(var(--nav-height) + 20px) 0 80px;
        min-height: auto;
    }

    .hero-name {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .hero-role {
        justify-content: center;
        font-size: 0.85rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .image-container {
        width: 240px;
        height: 240px;
    }

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

    .badge-1 { right: -10px; top: 20px; }
    .badge-2 { left: -10px; bottom: 40px; }
    .badge-3 { right: 0; bottom: 10px; }

    .scroll-indicator {
        display: none;
    }

    .about-highlights {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .highlight-number {
        font-size: 1.5rem;
    }

    .highlight-label {
        font-size: 0.7rem;
    }

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

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

    .section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .timeline {
        padding-left: 32px;
    }

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

    .timeline-dot {
        left: -32px;
        width: 18px;
        height: 18px;
    }

    .timeline-content {
        padding: 20px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content {
        padding: 0 16px;
    }

    .image-container {
        width: 200px;
        height: 200px;
    }

    .about-highlights {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .highlight-number {
        font-size: 1.8rem;
    }

    .highlight-label {
        text-align: left;
    }

    .timeline-details {
        flex-direction: column;
    }

    .footer-nav {
        flex-direction: column;
        gap: 12px;
    }
}

/* === Mobile Navigation Overlay === */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-smooth);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === Print Styles === */
@media print {
    .navbar,
    .cursor-glow,
    .grid-bg,
    .scroll-indicator,
    .floating-badge {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
