/* ================================================
   SHIVANSH DARJI - AI/ML PORTFOLIO
   Futuristic Dark Theme with Neural Network Aesthetics
   ================================================ */

/* ========== CSS Variables ========== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1a1a25;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    
    --text-primary: #e8e8f0;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    
    --accent-primary: #6c5ce7;
    --accent-secondary: #a855f7;
    --accent-tertiary: #00d2ff;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --accent-cyan: #00d2ff;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    
    --gradient-primary: linear-gradient(135deg, #6c5ce7, #a855f7, #00d2ff);
    --gradient-card: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(168, 85, 247, 0.05));
    --gradient-glow: radial-gradient(circle at center, rgba(108, 92, 231, 0.15), transparent 70%);
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(108, 92, 231, 0.3);
    
    --font-primary: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.2);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-primary);
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

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

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

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

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

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

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

.loader-container {
    text-align: center;
}

.neural-loader {
    width: 100px;
    height: 100px;
    position: relative;
    margin: 0 auto 30px;
}

.neural-loader .node {
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 20px var(--accent-primary), 0 0 40px rgba(108, 92, 231, 0.3);
    animation: nodePulse 1.5s ease-in-out infinite;
}

.node.n1 { top: 10%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.node.n2 { top: 45%; left: 10%; animation-delay: 0.2s; }
.node.n3 { top: 45%; right: 10%; animation-delay: 0.4s; }
.node.n4 { top: 80%; left: 30%; animation-delay: 0.6s; }
.node.n5 { top: 80%; right: 30%; animation-delay: 0.8s; }

.neural-loader .connections {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.neural-loader .conn {
    stroke: var(--accent-primary);
    stroke-width: 0.5;
    opacity: 0.4;
    animation: connPulse 2s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.4); opacity: 1; }
}

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

.loader-text {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-primary);
    letter-spacing: 1px;
}

.blink {
    animation: blink 0.8s infinite;
}

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

/* ========== Neural Background Canvas ========== */
#neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

/* ========== Custom Cursor ========== */
.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
    box-shadow: 0 0 10px var(--accent-primary);
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(108, 92, 231, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.15s ease-out;
}

.cursor-ring.hover {
    transform: scale(1.5);
    border-color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.05);
}

/* ========== Navigation ========== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-normal);
    background: transparent;
}

#navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
}

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

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition-fast);
}

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

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 20px;
}

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

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(18, 18, 26, 0.98);
    backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-slow);
    border-left: 1px solid var(--border-color);
}

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

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu ul li {
    margin: 20px 0;
}

.mobile-menu ul li a {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.mobile-menu ul li a:hover {
    color: var(--accent-primary);
}

/* ========== Hero Section ========== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 120px 24px 60px;
}

.hero-content {
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-green);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

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

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.hero-greeting {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
    letter-spacing: 1px;
}

.hero-name {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.hero-name .line-reveal {
    display: block;
    overflow: hidden;
}

.hero-name .line-reveal span {
    display: inline-block;
    transform: translateY(110%);
    animation: revealLine 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.hero-name .line-reveal:nth-child(1) span {
    animation-delay: 0.8s;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--text-secondary);
    letter-spacing: -0.5px;
}

.hero-subtitle .line-reveal {
    display: block;
    overflow: hidden;
}

.hero-subtitle .line-reveal span {
    display: inline-block;
    transform: translateY(110%);
    animation: revealLine 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    animation-delay: 1s;
}

.hero-subtitle em.gradient-text {
    font-style: normal;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.hero-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto 28px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.1s;
}

.hero-socials {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 2s;
}

.hero-social-link {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition-normal);
    background: rgba(255, 255, 255, 0.02);
}

.hero-social-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.25);
}

@keyframes revealLine {
    to { transform: translateY(0); }
}

/* Terminal */
.hero-terminal {
    max-width: 600px;
    margin: 0 auto 32px;
    background: rgba(22, 22, 31, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: left;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.3s;
    box-shadow: var(--shadow-md);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}

.terminal-header.mini {
    padding: 10px 14px;
}

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

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

.terminal-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.terminal-body {
    padding: 16px 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    min-height: 50px;
}

.terminal-prompt {
    color: var(--accent-green);
    margin-right: 8px;
}

.typewriter-text {
    color: var(--text-primary);
}

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

/* Hero Tags */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.6s;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.08);
}

.tag i {
    font-size: 12px;
    color: var(--accent-primary);
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.8s;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    transition: var(--transition-normal);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}

.btn-primary i {
    transition: var(--transition-fast);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.08);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 2s;
}

.stat {
    text-align: center;
}

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

.stat-plus {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 2.5s;
}

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

.wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

.scroll-indicator p {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

/* ========== Sections General ========== */
.section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

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

.section-tag {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-primary);
    opacity: 0.5;
    display: block;
    margin-bottom: 12px;
}

.section-tag.closing {
    text-align: center;
    margin-top: 64px;
    margin-bottom: 0;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* ========== About Section ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-terminal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-code {
    padding: 20px;
    overflow-x: auto;
}

.about-code pre {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
}

.code-keyword { color: #c678dd; }
.code-class { color: #e5c07b; }
.code-func { color: #61afef; }
.code-param { color: #e06c75; }
.code-string { color: #98c379; }
.code-number { color: #d19a66; }

.about-description {
    padding-top: 8px;
}

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

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

.about-links {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

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

.social-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.2);
}

/* ========== Skills Section ========== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

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

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

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

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

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

.skill-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
    font-size: 20px;
}

.skill-category h3 {
    font-size: 18px;
    font-weight: 700;
}

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

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

.skill-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.skill-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 2px;
    background: var(--gradient-primary);
    width: 0;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan), 0 0 20px rgba(0, 210, 255, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease 1s;
}

.skill-progress.animated::after {
    opacity: 1;
}

/* ========== Experience / Timeline ========== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), rgba(108, 92, 231, 0.1));
}

.timeline-item {
    display: flex;
    gap: 28px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-dot {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 18px;
    z-index: 2;
    transition: var(--transition-normal);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.15);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.4);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    flex: 1;
    transition: var(--transition-normal);
}

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

.timeline-header {
    margin-bottom: 8px;
}

.timeline-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 14px;
    color: var(--accent-primary);
    font-weight: 600;
}

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

.timeline-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.timeline-tags span {
    padding: 4px 12px;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-primary);
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

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

.project-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-glow);
    opacity: 0;
    transition: var(--transition-slow);
    pointer-events: none;
}

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

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

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

.project-card.featured {
    grid-column: span 1;
    background: var(--gradient-card);
    border-color: rgba(108, 92, 231, 0.2);
}

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

.project-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
    font-size: 20px;
}

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

.badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge.winner {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-yellow);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge.ibm {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 210, 255, 0.2);
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

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

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

.project-tech span {
    padding: 4px 12px;
    background: var(--surface);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.project-stats {
    display: flex;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.project-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.project-stat i {
    color: var(--accent-yellow);
}

/* ========== Achievements Section ========== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

.achievement-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.achievement-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.achievement-card:hover::after {
    transform: scaleX(1);
}

.achievement-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 50%;
    color: var(--accent-primary);
    font-size: 22px;
    margin: 0 auto 16px;
    transition: var(--transition-normal);
}

.achievement-card:hover .achievement-icon {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 25px rgba(108, 92, 231, 0.4);
    transform: scale(1.1);
}

.achievement-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.achievement-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== Education Section ========== */
.education-grid {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.education-card {
    display: flex;
    gap: 28px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    transition: var(--transition-normal);
}

.education-card:hover {
    border-color: var(--border-glow);
    transform: translateX(8px);
    box-shadow: var(--shadow-glow);
}

.education-year {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
    min-width: 120px;
    text-align: center;
    padding: 8px 16px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-sm);
}

.education-info h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.education-school {
    font-size: 14px;
    color: var(--text-secondary);
}

.education-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 4px 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-yellow);
}

/* ========== Contact Section ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.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-color);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

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

.contact-method-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    font-size: 18px;
}

.contact-method-label {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

.contact-method-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

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

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

.form-group {
    position: relative;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-primary);
    transition: var(--transition-fast);
    outline: none;
}

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

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

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

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: var(--font-primary);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}

/* ========== Footer ========== */
#footer {
    position: relative;
    z-index: 1;
    padding: 48px 0;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 10, 15, 0.8);
}

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

.footer-logo {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

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

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

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 16px;
    transition: var(--transition-normal);
}

.footer-socials a:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
}

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

/* ========== Scroll Reveal Animations ========== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-menu {
        width: 100%;
        border-left: none;
    }
    
    #hero {
        padding: 100px 20px 40px;
    }
    
    .hero-name {
        font-size: clamp(36px, 10vw, 48px);
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .about-code pre {
        white-space: pre-wrap; /* Forces the long code to wrap instead of horizontal scroll */
        word-break: break-word;
        font-size: 13px;
    }
    
    .about-terminal {
        max-width: 100%;
        width: 100%;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        gap: 16px;
        margin-bottom: 32px;
    }
    
    .timeline-dot {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 14px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .education-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-name {
        letter-spacing: -1px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 40px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-tags {
        gap: 8px;
    }
    
    .tag {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .hero-social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .terminal-body {
        font-size: 12px;
        padding: 12px 16px;
    }
    
    .about-code {
        padding: 16px;
    }
}

/* ========== Particle animation for section backgrounds ========== */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glow);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.section:nth-child(even)::before {
    opacity: 0.3;
}

/* ========== Glassmorphism effect for some cards ========== */
.project-card.featured::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-normal);
}

.project-card.featured:hover::after {
    opacity: 0.1;
}
