/* ============================================
   ML ENGINEER PORTFOLIO - PROFESSIONAL STYLES
   Dark theme with neon accents & glassmorphism
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Colors */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-tertiary: #1a1f35;
    --bg-card: rgba(17, 24, 39, 0.8);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-cyan: #00f0ff;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;

    --gradient-main: linear-gradient(135deg, #00f0ff 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(139, 92, 246, 0.1));
    --gradient-card: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(139, 92, 246, 0.05));

    --glass-bg: rgba(17, 24, 39, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    --border-color: rgba(255, 255, 255, 0.06);

    /* Typography */
    --font-primary: 'Space Grotesk', 'Inter', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

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

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* --- 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-secondary);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(0, 240, 255, 0.3);
    color: #fff;
}

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

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

ul {
    list-style: none;
}

/* --- Particle Canvas --- */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

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

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: preloaderSpin 1.5s linear infinite;
}

.preloader-ring:nth-child(1) {
    width: 80px; height: 80px;
    border-top-color: var(--accent-cyan);
    animation-duration: 1.5s;
}

.preloader-ring:nth-child(2) {
    width: 60px; height: 60px;
    border-right-color: var(--accent-purple);
    animation-duration: 1.2s;
    animation-direction: reverse;
}

.preloader-ring:nth-child(3) {
    width: 40px; height: 40px;
    border-bottom-color: var(--accent-pink);
    animation-duration: 0.9s;
}

.preloader-text {
    position: absolute;
    bottom: -40px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.dots::after {
    content: '';
    animation: dots 1.5s steps(4) infinite;
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

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

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* --- Glass Card --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

/* --- Gradient Text --- */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
}

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

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

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-cyan);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.theme-toggle:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* Nav Toggle (Mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.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);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: #0a0e1a;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    color: var(--accent-purple);
    border-color: rgba(139, 92, 246, 0.3);
}

.btn-nav {
    background: var(--gradient-main);
    color: #0a0e1a;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
}

.btn-nav:hover {
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

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

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

.btn-primary:hover .btn-glow {
    width: 300px;
    height: 300px;
}

.btn-content {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    z-index: 1;
}

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

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    width: fit-content;
}

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

@keyframes badgePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 540px;
    line-height: 1.8;
}

.typed-text {
    color: var(--accent-cyan);
    font-weight: 500;
}

.cursor-blink {
    color: var(--accent-cyan);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

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

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

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

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

.stat-suffix {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neural-network-3d {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
}

#neuralCanvas {
    width: 100%;
    height: 100%;
}

/* Floating Cards */
.floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.float-card i {
    font-size: 1rem;
}

.card-1 { top: 5%; left: 5%; animation-delay: 0s; }
.card-1 i { color: var(--accent-cyan); }
.card-2 { top: 15%; right: 0; animation-delay: 1.5s; }
.card-2 i { color: var(--accent-purple); }
.card-3 { bottom: 20%; left: 0; animation-delay: 3s; }
.card-3 i { color: var(--accent-pink); }
.card-4 { bottom: 5%; right: 10%; animation-delay: 4.5s; }
.card-4 i { color: var(--accent-green); }

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    animation: fadeInUp 1s ease 2s both;
}

.scroll-indicator span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 3px;
    animation: scrollWheel 2s ease infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background:
        radial-gradient(ellipse at 0% 50%, rgba(0, 240, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
}

/* About Bio */
.about-bio {
    padding: 2rem;
    margin-bottom: 2rem;
}

.lead-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-bio p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-card {
    padding: 1.5rem;
    transition: all var(--transition-base);
    animation-delay: var(--delay, 0s);
}

.feature-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 240, 255, 0.05);
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 240, 255, 0.15);
}

.feature-card h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Tech Stack */
.tech-stack {
    padding: 2rem;
}

.tech-stack h3 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-stack h3 i {
    color: var(--accent-cyan);
}

.tech-categories {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tech-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

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

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    transition: all var(--transition-fast);
}

.tech-tag:hover {
    color: var(--accent-cyan);
    border-color: rgba(0, 240, 255, 0.3);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.tech-tag i {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Timeline */
.timeline {
    padding: 2rem;
}

.timeline h3, .education h3, .certifications h3 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline h3 i { color: var(--accent-purple); }
.education h3 i { color: var(--accent-green); }
.certifications h3 i { color: var(--accent-orange); }

.timeline-track {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

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

.timeline-marker {
    position: absolute;
    left: -1.75rem;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-purple);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.timeline-item:first-child .timeline-marker {
    background: var(--accent-purple);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-purple);
    letter-spacing: 1px;
}

.timeline-content h4 {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.25rem 0;
}

.timeline-company {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.4rem;
}

.timeline-company i {
    font-size: 0.7rem;
}

.timeline-content p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Education */
.education {
    padding: 2rem;
    margin-top: 1rem;
}

.edu-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.edu-item:last-child {
    border-bottom: none;
}

.edu-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.edu-content h4 {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.edu-school {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
}

.edu-year {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Certifications */
.certifications {
    padding: 2rem;
    margin-top: 1rem;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.1);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.cert-item:hover {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.08);
}

.cert-item i {
    color: var(--accent-orange);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
}

/* Filter Buttons */
.portfolio-controls, .blog-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.filter-btn {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-btn:hover {
    color: var(--accent-cyan);
    border-color: rgba(0, 240, 255, 0.3);
}

.filter-btn.active {
    background: var(--gradient-main);
    color: #0a0e1a;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.filter-btn i {
    font-size: 0.8rem;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Project Card */
.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
    animation-delay: var(--delay, 0s);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 240, 255, 0.05);
}

.project-card.hidden {
    display: none;
}

/* Project Image */
.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-subtle);
    opacity: 0.5;
}

.project-placeholder i {
    font-size: 3rem;
    color: var(--accent-cyan);
    opacity: 0.4;
    z-index: 1;
    transition: all var(--transition-base);
}

.project-card:hover .project-placeholder i {
    opacity: 0.7;
    transform: scale(1.1);
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 26, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.overlay-actions {
    display: flex;
    gap: 1rem;
}

.overlay-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
    transform: translateY(20px);
}

.project-card:hover .overlay-btn {
    transform: translateY(0);
}

.overlay-btn:hover {
    background: var(--accent-cyan);
    color: #0a0e1a;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* Project Badge */
.project-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background: var(--gradient-main);
    color: #0a0e1a;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

/* Project Info */
.project-info {
    padding: 1.5rem;
}

.project-category {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.5rem 0;
    line-height: 1.3;
}

.project-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.project-tech span {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    background: rgba(0, 240, 255, 0.08);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 240, 255, 0.12);
    font-family: var(--font-mono);
}

.project-metrics {
    display: flex;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.metric {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.metric i {
    color: var(--accent-purple);
    font-size: 0.7rem;
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog {
    background:
        radial-gradient(ellipse at 80% 50%, rgba(236, 72, 153, 0.03) 0%, transparent 50%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* Blog Card */
.blog-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
    animation-delay: var(--delay, 0s);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(236, 72, 153, 0.2);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3), 0 0 25px rgba(236, 72, 153, 0.05);
}

.blog-card.hidden {
    display: none;
}

.blog-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
}

.blog-placeholder i {
    font-size: 2.5rem;
    color: var(--accent-purple);
    opacity: 0.3;
}

.blog-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.6rem;
    text-align: center;
    line-height: 1.2;
}

.blog-date-badge .day {
    display: block;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.blog-date-badge .month {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-pink);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Blog Content */
.blog-content {
    padding: 1.5rem;
}

.blog-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.blog-category {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-pink);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.blog-read-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    transition: color var(--transition-fast);
}

.blog-card:hover .blog-title {
    color: var(--accent-cyan);
}

.blog-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.blog-tags {
    display: flex;
    gap: 0.3rem;
}

.blog-tags span {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    background: rgba(236, 72, 153, 0.08);
    color: var(--accent-pink);
    border: 1px solid rgba(236, 72, 153, 0.12);
    font-family: var(--font-mono);
}

.read-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap var(--transition-fast);
}

.read-more:hover {
    gap: 0.6rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background:
        radial-gradient(ellipse at 20% 80%, rgba(0, 240, 255, 0.03) 0%, transparent 50%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

/* Contact Sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-base);
    animation-delay: var(--delay, 0s);
}

.contact-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateY(-3px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.1rem;
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 240, 255, 0.15);
}

.contact-card h4 {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-card a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.contact-card span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
}

.sub-text {
    font-size: 0.75rem !important;
    color: var(--accent-green) !important;
    margin-top: 0.25rem;
}

/* Social Links */
.social-links {
    padding: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.social-link:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrap {
    padding: 2.5rem;
}

.contact-form-wrap h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.form-group {
    margin-bottom: 1.25rem;
}

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

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color var(--transition-fast);
    z-index: 1;
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    outline: none;
}

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

.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
    background: rgba(0, 240, 255, 0.02);
}

.input-wrap input:focus ~ i,
.input-wrap select:focus ~ i,
.input-wrap textarea:focus ~ i,
.input-wrap:focus-within i {
    color: var(--accent-cyan);
}

.input-wrap select {
    cursor: pointer;
    appearance: none;
}

.textarea-wrap {
    align-items: flex-start;
}

.textarea-wrap i {
    top: 0.85rem;
}

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

.form-error {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.3rem;
    display: block;
    min-height: 1rem;
}

/* Submit Button States */
#submitBtn {
    position: relative;
    overflow: hidden;
}

.btn-loading, .btn-success {
    display: none;
}

#submitBtn.loading .btn-text,
#submitBtn.loading .btn-icon { display: none; }
#submitBtn.loading .btn-loading { display: inline-flex; align-items: center; gap: 0.5rem; }

#submitBtn.success .btn-text,
#submitBtn.success .btn-icon { display: none; }
#submitBtn.success .btn-loading { display: none; }
#submitBtn.success .btn-success { display: inline-flex; align-items: center; gap: 0.5rem; }
#submitBtn.success { background: var(--accent-green); }

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-about p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-links h4, .footer-newsletter h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.footer-newsletter p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0;
}

.newsletter-form input {
    flex: 1;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter-form input:focus {
    border-color: var(--accent-cyan);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form button {
    padding: 0.65rem 1rem;
    background: var(--gradient-main);
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #0a0e1a;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.newsletter-form button:hover {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--accent-cyan);
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

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

.scroll-to-top:hover {
    background: var(--accent-cyan);
    color: #0a0e1a;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
    pointer-events: none;
}

.progress-ring-circle {
    stroke-dasharray: 125.6;
    stroke-dashoffset: 125.6;
    transition: stroke-dashoffset 0.1s;
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Reveal on scroll */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero animations */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: animateIn 0.8s ease forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.2s; }
.animate-in:nth-child(2) { animation-delay: 0.4s; }
.animate-in:nth-child(3) { animation-delay: 0.6s; }
.animate-in:nth-child(4) { animation-delay: 0.8s; }
.animate-in:nth-child(5) { animation-delay: 1s; }
.animate-in:nth-child(6) { animation-delay: 1.2s; }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        align-items: center;
    }

    .hero-subtitle {
        margin: 0 auto;
    }

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

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

    .hero-visual {
        max-width: 400px;
        margin: 0 auto;
    }

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

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

    .contact-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .social-links {
        grid-column: span 2;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

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

    /* Mobile Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right var(--transition-base);
        z-index: 1000;
        gap: 2rem;
    }

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

    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        padding: 1rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
    }

    .nav-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-nav {
        text-align: center;
    }

    /* Hero */
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }

    /* Grids */
    .feature-grid {
        grid-template-columns: 1fr;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        grid-template-columns: 1fr;
    }

    .social-links {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    /* Scroll Indicator */
    .scroll-indicator {
        display: none;
    }

    /* Cursor glow off on mobile */
    .cursor-glow {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

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

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

    .portfolio-controls,
    .blog-filters {
        gap: 0.3rem;
    }

    .filter-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .contact-form-wrap {
        padding: 1.5rem;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
    }
}

/* Print styles */
@media print {
    .navbar, #particleCanvas, .cursor-glow, .scroll-to-top, #preloader, .scroll-indicator {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .section {
        padding: 2rem 0;
    }
}
