/* ==========================================================================
   SHREYANSH YADAV - DEVELOPER PORTFOLIO DESIGN SYSTEM
   Theme: Cyber Slate & Aurora Glow (Deep Slate, Cyan, Violet & Emerald)
   ========================================================================== */

/* --- Custom Properties & Design Tokens --- */
:root {
    /* Color Palette */
    --bg-dark: #070913;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Accents & Gradients */
    --accent-violet: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-text: linear-gradient(135deg, #a855f7 0%, #38bdf8 50%, #34d399 100%);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(139, 92, 246, 0.35);
    
    --glow-violet: rgba(139, 92, 246, 0.25);
    --glow-cyan: rgba(6, 182, 212, 0.25);
    --glow-emerald: rgba(16, 185, 129, 0.25);
    
    /* Typography */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;
    
    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

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

/* Ambient Radial Mesh Backgrounds */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;
    animation: floatGlow 18s infinite alternate ease-in-out;
}
.glow-1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--accent-violet) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}
.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -6s;
}
.glow-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-emerald) 0%, transparent 70%);
    top: 45%;
    left: 35%;
    animation-delay: -12s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.15); }
    100% { transform: translate(-40px, 80px) scale(0.9); }
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    transition: opacity 0.3s ease;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}
.cursor-outline {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(6, 182, 212, 0.5);
    transition: width 0.2s ease, height 0.2s ease, transform 0.15s ease-out;
}
@media (max-width: 992px) {
    .cursor-dot, .cursor-outline { display: none; }
}

/* --- Core Layout Utilities --- */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.75rem;
}

.section-spacing {
    padding: 90px 0;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: var(--accent-violet);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.section-tag i { font-size: 0.8rem; }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.section-title span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

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

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    transition: left 0.7s ease;
}
.glass-card:hover::before {
    left: 100%;
}
.glass-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(139, 92, 246, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 8px 25px var(--glow-violet);
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gradient-secondary);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}
.btn-primary:hover::before {
    opacity: 1;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px var(--glow-cyan);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    color: #ffffff;
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
}
.btn-icon:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-3px) rotate(8deg);
    box-shadow: 0 8px 20px var(--glow-violet);
}

/* --- Header & Navbar --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
}
#navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(7, 9, 19, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.logo span {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    list-style: none;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-nav-action { display: none; }

.hamburger {
    display: none;
    font-size: 1.4rem;
    color: var(--text-primary);
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(7, 9, 19, 0.8);
    backdrop-filter: blur(10px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    padding-top: 130px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
}
.hero-title .highlight-name {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.typed-text {
    color: var(--accent-cyan);
    position: relative;
}
.typed-cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-cyan);
    margin-left: 3px;
    animation: blink 0.8s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.2rem;
}
.hero-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.quick-stats-row {
    display: flex;
    gap: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.quick-stat-item {
    display: flex;
    flex-direction: column;
}
.quick-stat-num {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}
.quick-stat-num span { color: var(--accent-cyan); }
.quick-stat-lbl {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Right Side Stack: Card + Floating Badges */
.hero-card-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}
.hero-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}
.hero-profile-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
}

.hero-img-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
}
.hero-img-container img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}
.hero-profile-card:hover img {
    transform: scale(1.03);
}

.profile-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.profile-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}
.profile-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.profile-location {
    font-size: 0.8rem;
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Floating Tech Badges */
.float-tech-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    z-index: 3;
    animation: floatBadge 6s infinite ease-in-out;
}
.float-tech-badge i { font-size: 1.2rem; }
.badge-react { top: 10%; left: -8%; animation-delay: 0s; color: #61dafb; }
.badge-node { bottom: 25%; left: -10%; animation-delay: -2s; color: #689f38; }
.badge-python { top: 18%; right: -8%; animation-delay: -4s; color: #3776ab; }
.badge-mongo { bottom: 15%; right: -8%; animation-delay: -1s; color: #4db33d; }

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

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.scroll-indicator:hover { opacity: 1; }
.mouse-icon {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}
@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* --- About & Interactive CLI Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

.about-text-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.4rem;
}
.about-text-content strong {
    color: var(--text-primary);
}

.about-highlights-list {
    list-style: none;
    margin: 1.8rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.about-highlights-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}
.about-highlights-list i {
    color: var(--accent-emerald);
    font-size: 1.1rem;
}

/* Interactive Developer Terminal */
.terminal-window {
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    font-family: var(--font-mono);
}
.terminal-header {
    background: #111726;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.terminal-buttons {
    display: flex;
    gap: 8px;
}
.t-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.t-close { background: #ff5f56; }
.t-min { background: #ffbd2e; }
.t-max { background: #27c93f; }

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

.terminal-body {
    padding: 1.5rem;
    min-height: 300px;
    max-height: 380px;
    overflow-y: auto;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.terminal-line {
    margin-bottom: 10px;
}
.t-prompt {
    color: var(--accent-cyan);
    font-weight: 600;
}
.t-cmd {
    color: var(--accent-amber);
}
.t-output {
    color: #cbd5e1;
    margin-top: 4px;
}
.t-accent { color: var(--accent-violet); }
.t-green { color: var(--accent-emerald); }

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    flex: 1;
}

.terminal-quick-actions {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: #0d1322;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}
.t-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition);
}
.t-chip:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #ffffff;
    border-color: var(--accent-violet);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.service-card {
    text-align: left;
    display: flex;
    flex-direction: column;
}
.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-violet);
    margin-bottom: 1.4rem;
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 25px var(--glow-violet);
}
.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}
.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Education Timeline --- */
.timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-violet) 0%, var(--accent-cyan) 50%, var(--accent-emerald) 100%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2.5rem;
}
.timeline-dot {
    position: absolute;
    left: 10px;
    top: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--accent-cyan);
    box-shadow: 0 0 12px var(--glow-cyan);
    z-index: 2;
    transform: translateX(-50%);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    backdrop-filter: blur(16px);
    transition: var(--transition);
}
.timeline-content:hover {
    border-color: var(--border-hover);
    transform: translateX(8px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
    gap: 8px;
}
.timeline-date {
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
}
.timeline-status {
    padding: 2px 10px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    font-size: 0.75rem;
    font-weight: 600;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}
.timeline-school {
    color: var(--accent-violet);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}
.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.timeline-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.timeline-tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- Skills Section --- */
.skills-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px var(--glow-violet);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.skill-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1rem;
}
.skill-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.05);
}
.skill-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.skill-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
    flex: 1;
}

.skill-progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.progress-bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    width: 0%;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-pct {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    min-width: 40px;
    text-align: right;
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.project-banner {
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.project-banner i {
    font-size: 4.5rem;
    color: rgba(255, 255, 255, 0.85);
    transition: transform 0.5s ease;
}
.project-card:hover .project-banner i {
    transform: scale(1.15) rotate(5deg);
}

.project-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}
.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.4rem;
    flex: 1;
}

.tags-cloud {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.tags-cloud span {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: var(--accent-violet);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
}

.project-actions {
    display: flex;
    gap: 10px;
}
.project-actions .btn {
    flex: 1;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.c-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.c-details h4 {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.c-details p, .c-details a {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}
.c-details a:hover {
    color: var(--accent-cyan);
}

.social-bar {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}
.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
}
.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--glow-violet);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.input-group {
    position: relative;
}
.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.98rem;
    outline: none;
    transition: var(--transition);
}
.input-field:focus {
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px var(--glow-cyan);
}

.input-label {
    position: absolute;
    left: 1.2rem;
    top: 1.1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition);
}
.input-field:focus ~ .input-label,
.input-field:not(:placeholder-shown) ~ .input-label {
    top: -10px;
    left: 0.9rem;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: #090d16;
    color: var(--accent-cyan);
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    background: rgba(7, 9, 19, 0.95);
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.88rem;
}
.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Back to top circular button */
.scroll-progress-wrap {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.scroll-progress-wrap.active {
    opacity: 1;
    pointer-events: auto;
}
.scroll-progress-wrap:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 30px var(--glow-cyan);
}

/* --- Project Modal Dialog --- */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.project-modal.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(7, 9, 19, 0.85);
    backdrop-filter: blur(12px);
}
.modal-dialog {
    position: relative;
    max-width: 650px;
    width: 100%;
    background: #0d1322;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    z-index: 2;
    transform: scale(0.92);
    transition: transform 0.3s ease;
}
.project-modal.active .modal-dialog {
    transform: scale(1);
}
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.modal-close-btn:hover {
    background: var(--accent-rose);
    border-color: transparent;
    color: #ffffff;
}

.modal-header { margin-bottom: 1.2rem; }
.modal-badge {
    font-size: 0.78rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.modal-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 4px;
}
.modal-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.modal-section { margin-bottom: 1.2rem; }
.modal-section h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.modal-highlights li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-highlights li::before {
    content: '▹';
    color: var(--accent-emerald);
}

.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 1.8rem;
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--accent-cyan);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s ease forwards;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .hero-grid, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-card-wrapper {
        order: -1;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: #090d16;
        flex-direction: column;
        justify-content: center;
        padding: 3rem;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border-left: 1px solid var(--border-color);
    }
    .nav-links.active {
        right: 0;
    }
    .hamburger {
        display: flex;
    }
    .mobile-nav-action {
        display: block;
        margin-top: 1rem;
    }
    .float-tech-badge { display: none; }
}

@media (max-width: 600px) {
    .section-spacing { padding: 60px 0; }
    .hero-title { font-size: 2.5rem; }
    .quick-stats-row { flex-wrap: wrap; gap: 1.2rem; }
    .about-highlights-list { grid-template-columns: 1fr; }
    .timeline::before { left: 10px; }
    .timeline-item { padding-left: 35px; }
    .timeline-dot { left: 10px; }
}

/* --- FAQ Accordion Styling --- */
.faq-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover, .faq-item.active {
    border-color: var(--border-hover);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}
.faq-question {
    width: 100%;
    padding: 1.4rem 1.8rem;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 1rem;
    transition: var(--transition);
}
.faq-question:hover {
    color: var(--accent-cyan);
}
.faq-icon {
    font-size: 0.95rem;
    color: var(--accent-violet);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 1.8rem;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.8rem 1.4rem 1.8rem;
}
.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
}
.text-accent {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition);
}
.text-accent:hover {
    color: var(--accent-violet);
    text-decoration: underline;
}

