/* ========================================
   CSS Custom Properties (Theme)
   ======================================== */
:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #00d4ff;
    --accent-hover: #00b8e6;
    --accent-glow: rgba(0, 212, 255, 0.15);
    --border: #2a2a2a;

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #00d4ff, #0099cc);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #00d4ff 50%, #0099cc 100%);

    /* Typography */
    --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* ========================================
   Custom Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ========================================
   Background Mesh / Noise
   ======================================== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 153, 204, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   Animated Gradient Orbs for Hero
   ======================================== */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    width: 500px;
    height: 500px;
    background: rgba(0, 212, 255, 0.08);
    top: -100px;
    right: -100px;
    animation: floatOrb 8s ease-in-out infinite;
}

.hero::after {
    width: 400px;
    height: 400px;
    background: rgba(0, 153, 204, 0.06);
    bottom: -100px;
    left: -100px;
    animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

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

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
}

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

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.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);
    transition: var(--transition);
}

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

/* Floating particles */
.hero .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.hero .particle:nth-child(1) { top: 15%; left: 10%; animation: floatParticle 6s ease-in-out infinite; }
.hero .particle:nth-child(2) { top: 25%; right: 15%; animation: floatParticle 8s ease-in-out infinite reverse; width: 6px; height: 6px; }
.hero .particle:nth-child(3) { bottom: 30%; left: 5%; animation: floatParticle 7s ease-in-out infinite 1s; }
.hero .particle:nth-child(4) { bottom: 20%; right: 10%; animation: floatParticle 9s ease-in-out infinite 0.5s; width: 3px; height: 3px; }
.hero .particle:nth-child(5) { top: 50%; left: 3%; animation: floatParticle 7s ease-in-out infinite 2s; width: 5px; height: 5px; }
.hero .particle:nth-child(6) { top: 10%; right: 30%; animation: floatParticle 10s ease-in-out infinite 1.5s; }
.hero .particle:nth-child(7) { bottom: 10%; left: 25%; animation: floatParticle 8s ease-in-out infinite 0.8s; width: 3px; height: 3px; }
.hero .particle:nth-child(8) { top: 60%; right: 5%; animation: floatParticle 6s ease-in-out infinite 2.5s; }

@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    25% { transform: translate(20px, -20px) scale(1.2); opacity: 0.25; }
    50% { transform: translate(-10px, -40px) scale(0.8); opacity: 0.1; }
    75% { transform: translate(-30px, -10px) scale(1.1); opacity: 0.2; }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.75);
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: var(--container-width);
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-greeting {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-name {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s ease-in-out infinite alternate;
}

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

.hero-title {
    font-size: 2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 24px;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 40px;
}

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

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent);
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.2);
    animation: pulseGlow 3s ease-in-out infinite;
    position: relative;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 60px rgba(0, 212, 255, 0.2); }
    50% { box-shadow: 0 0 100px rgba(0, 212, 255, 0.35), 0 0 150px rgba(0, 212, 255, 0.1); }
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 7%;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
    z-index: 1;
}

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

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

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--bg-primary);
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    background: transparent;
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.25);
    transform: translateY(-2px);
}

.btn-project {
    display: block;
    width: 100%;
    padding: 12px 24px;
    text-align: center;
    font-size: 0.95rem;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-project:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-full {
    width: 100%;
}

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

.section-alt {
    background: var(--bg-secondary);
}

#experience {
    position: relative;
    overflow: hidden;
}

.experience-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.experience-orb--1 {
    width: 700px;
    height: 700px;
    background: rgba(0, 212, 255, 0.2);
    top: -200px;
    left: -200px;
    animation: expDrift1 20s linear infinite;
}

.experience-orb--2 {
    width: 600px;
    height: 600px;
    background: rgba(0, 153, 204, 0.15);
    bottom: -150px;
    right: -150px;
    animation: expDrift2 25s linear infinite;
}

#experience .container {
    position: relative;
    z-index: 1;
}

@keyframes expDrift1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(80px, 50px) rotate(90deg); }
    50% { transform: translate(40px, -60px) rotate(180deg); }
    75% { transform: translate(-60px, 30px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes expDrift2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-70px, -40px) rotate(-90deg); }
    50% { transform: translate(50px, 60px) rotate(-180deg); }
    75% { transform: translate(-30px, -50px) rotate(-270deg); }
    100% { transform: translate(0, 0) rotate(-360deg); }
}

.section + .section-alt::before,
.section-alt + .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
    z-index: 1;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.section-title.visible::after {
    animation: expandUnderline 0.8s ease forwards;
}

@keyframes expandUnderline {
    0% { width: 0; opacity: 0; }
    100% { width: 60px; opacity: 1; }
}

.section-alt .section-title::after {
    background: var(--gradient-accent);
}

/* ========================================
   About Section
   ======================================== */
#about {
    position: relative;
    overflow: hidden;
}

.about-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.about-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.8);
}

.about-content {
    position: relative;
    z-index: 1;
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
}

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

.about-skills h3 {
    font-size: 1.4rem;
    margin-bottom: 30px;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.skill-name {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.skill-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    width: var(--progress);
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease-out;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    filter: blur(4px);
}

.skill-progress.animate {
    transform: scaleX(1);
}

/* ========================================
   Tabs - Reference Style
   ======================================== */

.tabs-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.tab-arrow {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    z-index: 1;
}

.arrow-glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.tab-arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.05);
}

.tab-arrow:hover .arrow-glow {
    opacity: 1;
}

.tabs-container {
    overflow: hidden;
}

.tabs-track {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border-radius: 50px;
    border: 1px solid var(--border);
    position: relative;
}

.tabs-track::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.tabs-track:hover::before {
    opacity: 0.15;
}

.tab-pill {
    padding: 14px 32px;
    border-radius: 50px;
    background: transparent;
    border: 2px solid transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.tab-pill:hover {
    color: var(--text-primary);
}

.tab-pill.active {
    background: linear-gradient(135deg, var(--accent), #0099cc);
    color: var(--bg-primary);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.35);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-note {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 20px;
}

/* ========================================
   Skills Section in Tabs
   ======================================== */

.skills-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.skills-heading {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
}

/* ========================================
   Experience Section (Timeline)
   ======================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

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

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--accent);
    animation: dotPulse 3s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--accent), 0 0 0 0 rgba(0, 212, 255, 0.2); }
    50% { box-shadow: 0 0 0 3px var(--accent), 0 0 15px 5px rgba(0, 212, 255, 0.15); }
}

.timeline-content {
    background: var(--bg-tertiary);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.timeline-content:hover {
    border-color: var(--accent);
    transform: translateX(5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 255, 0.05);
}

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

.career-break {
    border-left: 3px solid var(--accent);
    background: rgba(0, 212, 255, 0.05);
}

.career-break .timeline-dot {
    background: var(--text-muted);
    box-shadow: 0 0 0 3px var(--text-muted);
}

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

.timeline-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.timeline-date {
    color: var(--accent);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.timeline-content h4 {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 12px;
}

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

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.timeline-tags li {
    background: var(--bg-primary);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

/* ========================================
   Education Section
   ======================================== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.education-card {
    background: var(--bg-tertiary);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

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

.education-card:hover {
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 255, 0.05);
}

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

.education-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.education-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.education-card h4 {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
}

.education-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    display: block;
    margin-bottom: 16px;
}

.education-card p {
    color: var(--text-secondary);
}

.degree-img {
    display: block;
    width: 100%;
    margin-top: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0;
    margin-left: 4px;
    font-family: var(--font-family);
    display: inline;
}

.read-more-btn:hover {
    text-decoration: underline;
}

.more-text {
    display: none;
}

.more-text.expanded {
    display: inline;
}

.read-more-btn.expanded {
    display: none;
}

/* ========================================
   Projects Section
   ======================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.project-card:hover .project-placeholder {
    transform: scale(1.05);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 115%;
    transform: scale(1.15);
    transition: var(--transition);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-content {
    padding: 24px;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

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

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

.project-tech span {
    background: var(--bg-primary);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

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

/* ========================================
   Contact Section
   ======================================== */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
    margin-bottom: 40px;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

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

.contact-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.contact-item a {
    color: var(--text-primary);
    font-size: 1.1rem;
}

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

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    color: var(--text-primary);
    font-weight: 500;
}

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

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

.form-group input,
.form-group textarea {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1), 0 0 20px rgba(0, 212, 255, 0.05);
    background: rgba(0, 212, 255, 0.02);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-secondary);
    padding: 40px 0;
    border-top: 1px solid var(--border);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.4;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    color: var(--text-secondary);
}

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

.footer-links a {
    color: var(--text-secondary);
}

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

/* ========================================
   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);
}

/* Staggered entrance delays */
.timeline-item:nth-child(1) .fade-in,
.timeline-item:nth-child(1).fade-in { transition-delay: 0s; }
.timeline-item:nth-child(2) .fade-in,
.timeline-item:nth-child(2).fade-in { transition-delay: 0.05s; }
.timeline-item:nth-child(3) .fade-in,
.timeline-item:nth-child(3).fade-in { transition-delay: 0.1s; }
.timeline-item:nth-child(4) .fade-in,
.timeline-item:nth-child(4).fade-in { transition-delay: 0.15s; }
.timeline-item:nth-child(5) .fade-in,
.timeline-item:nth-child(5).fade-in { transition-delay: 0.2s; }
.timeline-item:nth-child(6) .fade-in,
.timeline-item:nth-child(6).fade-in { transition-delay: 0.25s; }
.timeline-item:nth-child(7) .fade-in,
.timeline-item:nth-child(7).fade-in { transition-delay: 0.3s; }
.timeline-item:nth-child(8) .fade-in,
.timeline-item:nth-child(8).fade-in { transition-delay: 0.35s; }
.timeline-item:nth-child(9) .fade-in,
.timeline-item:nth-child(9).fade-in { transition-delay: 0.4s; }
.timeline-item:nth-child(10) .fade-in,
.timeline-item:nth-child(10).fade-in { transition-delay: 0.45s; }
.timeline-item:nth-child(11) .fade-in,
.timeline-item:nth-child(11).fade-in { transition-delay: 0.5s; }
.timeline-item:nth-child(12) .fade-in,
.timeline-item:nth-child(12).fade-in { transition-delay: 0.55s; }

.project-card:nth-child(1) { transition-delay: 0s; }
.project-card:nth-child(2) { transition-delay: 0.1s; }
.project-card:nth-child(3) { transition-delay: 0.2s; }

.education-card:nth-child(1) { transition-delay: 0s; }
.education-card:nth-child(2) { transition-delay: 0.15s; }

/* ========================================
   Mobile Navigation
   ======================================== */
.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);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

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

    .about-content {
        max-width: 90%;
    }
}

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

    .hero-video {
        object-position: 30% center;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

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

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-image-wrapper {
        width: 250px;
        height: 250px;
    }

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

    .tabs-wrapper {
        gap: 10px;
    }

    .tab-arrow {
        width: 40px;
        height: 40px;
    }

    .tab-pill {
        padding: 10px 24px;
        font-size: 0.85rem;
    }

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

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

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