/* ==========================================
   SILU POUDEL - AI ENGINEER PORTFOLIO
   Modern, Attractive & Responsive Design
   ========================================== */

/* ========== CSS VARIABLES ========== */
:root {
    /* Primary Colors - Royal Purple */
    --primary: #a855f7;
    --primary-light: #c084fc;
    --primary-dark: #9333ea;
    --primary-glow: rgba(168, 85, 247, 0.3);

    /* Accent Colors - Warm Gold */
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-glow: rgba(245, 158, 11, 0.3);

    /* Gradient */
    --gradient: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #f59e0b 100%);
    --gradient-reverse: linear-gradient(135deg, #f59e0b 0%, #7c3aed 50%, #a855f7 100%);
    --gradient-text: linear-gradient(135deg, #a855f7 0%, #c084fc 33%, #f59e0b 66%, #a855f7 100%);

    /* Background - Deep Dark Purple */
    --bg-primary: #0c0a15;
    --bg-secondary: #110e1e;
    --bg-card: rgba(17, 14, 30, 0.88);
    --bg-glass: rgba(17, 14, 30, 0.6);

    /* Text */
    --text-primary: #f0e6ff;
    --text-secondary: #b8a5d4;
    --text-muted: #7a6899;

    /* Border */
    --border: rgba(168, 85, 247, 0.12);
    --border-hover: rgba(168, 85, 247, 0.35);

    /* Shadows */
    --shadow-sm: 0 2px 10px 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(168, 85, 247, 0.2);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;

    /* Sizes */
    --nav-height: 80px;
    --container-width: 1200px;

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

/* Light Theme - Soft Lavender & White with Gold touches */
[data-theme="light"] {
    --primary: #7c3aed;
    --primary-light: #a855f7;
    --primary-dark: #6d28d9;
    --primary-glow: rgba(124, 58, 237, 0.18);
    --accent: #d97706;
    --accent-light: #f59e0b;
    --accent-glow: rgba(217, 119, 6, 0.18);
    --gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #d97706 100%);
    --gradient-reverse: linear-gradient(135deg, #d97706 0%, #a855f7 50%, #7c3aed 100%);
    --gradient-text: linear-gradient(135deg, #7c3aed 0%, #a855f7 33%, #d97706 66%, #7c3aed 100%);
    --bg-primary: #faf5ff;
    --bg-secondary: #fdf8ff;
    --bg-card: rgba(255, 255, 255, 0.97);
    --bg-glass: rgba(255, 255, 255, 0.88);
    --text-primary: #1a0a2e;
    --text-secondary: #44365a;
    --text-muted: #7e6b99;
    --border: rgba(124, 58, 237, 0.13);
    --border-hover: rgba(124, 58, 237, 0.3);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.1);
}

/* Light mode overrides */
[data-theme="light"] .hero-avatar {
    border-color: rgba(124, 58, 237, 0.2);
    background: #f3e8ff;
}

[data-theme="light"] .hero-avatar-icon i {
    opacity: 0.5;
}

[data-theme="light"] .skill-category,
[data-theme="light"] .project-card-new,
[data-theme="light"] .timeline-content,
[data-theme="light"] .detail-item {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
    border-color: rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .floating-card {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-color: rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(250, 245, 255, 0.93);
    border-bottom-color: rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .skill-tag {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(124, 58, 237, 0.12);
    color: #44365a;
}

[data-theme="light"] .skill-tag:hover {
    background: rgba(124, 58, 237, 0.07);
    border-color: rgba(124, 58, 237, 0.25);
    color: #7c3aed;
}

[data-theme="light"] .skill-category-icon {
    background: rgba(124, 58, 237, 0.08);
}

[data-theme="light"] #particles-canvas {
    opacity: 0.15;
}

[data-theme="light"] .social-link,
[data-theme="light"] .contact-social a,
[data-theme="light"] .footer-social a {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .input-wrapper {
    background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .project-impact {
    background: rgba(217, 119, 6, 0.04);
    border-color: rgba(217, 119, 6, 0.1);
}

[data-theme="light"] .project-tech span,
[data-theme="light"] .timeline-tags span {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .btn-outline {
    border-color: rgba(124, 58, 237, 0.25);
}

[data-theme="light"] .hero-image-glow {
    opacity: 0.12;
}

[data-theme="light"] .contact-icon {
    background: rgba(124, 58, 237, 0.07);
}

[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] ::selection {
    background: #7c3aed;
    color: #fff;
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #faf5ff;
}

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

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

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

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

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}

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

/* ========== PRELOADER ========== */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.loader {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-inner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--border);
    border-bottom-color: var(--accent);
    animation: spin 0.6s linear infinite reverse;
    position: absolute;
}

.loader-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1;
}

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

/* ========== CUSTOM CURSOR ========== */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-outline {
    width: 35px;
    height: 35px;
    border: 2px solid var(--primary-glow);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-dot.active {
    width: 12px;
    height: 12px;
    background: var(--accent);
}

.cursor-outline.active {
    width: 50px;
    height: 50px;
    border-color: var(--accent-glow);
}

/* ========== PARTICLES CANVAS ========== */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

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

.logo-dot {
    color: var(--primary);
    font-size: 32px;
}

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

.nav-link {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(168, 85, 247, 0.1);
}


.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: rotate(30deg);
}

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

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

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

/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
}

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

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

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.gradient-text {
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle-wrapper {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 36px;
}

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

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

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

.hero-description {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.btn-primary:hover::before {
    opacity: 1;
}

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

.btn-outline:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}

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

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

.social-link:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* Hero Image / AI Brain Icon */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: var(--gradient);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.1); }
}

.hero-avatar {
    width: 320px;
    height: 320px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    border: 3px solid var(--border-hover);
    position: relative;
    z-index: 2;
    animation: morph 8s ease-in-out infinite;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-avatar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-avatar-icon i {
    font-size: 100px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.7;
    animation: icon-pulse 3s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

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

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 3;
    box-shadow: var(--shadow-md);
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 20px;
    color: var(--primary);
}

.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 15%;
    left: -5%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 5%;
    right: 0%;
    animation-delay: 4s;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 12px;
    animation: bounce 2s ease infinite;
}

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

.mouse-wheel {
    width: 3px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll-wheel 1.5s ease infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

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

/* ========== SECTION STYLES ========== */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

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

.section-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
}

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

/* ========== ABOUT SECTION (Centered, No Photo) ========== */
.about-section {
    background: var(--bg-secondary);
}

.about-content-centered {
    max-width: 800px;
    margin: 0 auto;
}

.about-text-block h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--primary-light);
    text-align: center;
}

.about-text-block p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
}

.about-text-block p strong {
    color: var(--text-primary);
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 36px 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
}

.detail-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.detail-item i {
    font-size: 18px;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.detail-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.about-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== SKILLS SECTION (Tag-Based) ========== */
.skill-category {
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    margin-bottom: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
}

.skill-category:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateX(5px);
}

.skill-category-secondary {
    opacity: 0.7;
}

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

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

.skill-category-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.15);
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.skill-category:hover .skill-category-icon {
    background: var(--gradient);
    color: #fff;
}

.skill-category-icon.secondary {
    background: rgba(168, 85, 247, 0.08);
    font-size: 18px;
}

.skill-category-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.secondary-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-tag:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-2px);
}

.skill-tag.secondary {
    background: rgba(168, 85, 247, 0.05);
    color: var(--text-muted);
}

.skill-tag.secondary:hover {
    background: rgba(168, 85, 247, 0.1);
    color: var(--text-secondary);
}

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

.projects-grid-new {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.project-card-new {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

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

.project-card-accent {
    height: 4px;
    background: var(--gradient);
}

.project-card-content {
    padding: 32px;
}

.project-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.12);
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.project-card-new:hover .project-icon-wrapper {
    background: var(--gradient);
    color: #fff;
    transform: scale(1.05);
}

.project-card-content h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.project-card-content > p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-impact {
    padding: 16px 20px;
    background: rgba(0, 212, 170, 0.05);
    border: 1px solid rgba(0, 212, 170, 0.15);
    border-radius: 12px;
    margin-bottom: 20px;
}

.project-impact h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-impact ul {
    list-style: none;
    padding: 0;
}

.project-impact li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.project-impact li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

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

.project-tech span {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary-light);
    border: 1px solid var(--border);
}

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

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.project-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.project-btn-private {
    cursor: default;
    opacity: 0.6;
    font-style: italic;
}

.project-btn-private:hover {
    background: transparent;
    border-color: var(--border);
    color: var(--text-muted);
    transform: none;
}

/* ========== EXPERIENCE SECTION (Timeline) ========== */
.experience-section {
    background: var(--bg-primary);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

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

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

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

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient);
    border: 3px solid var(--bg-primary);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.timeline-content {
    padding: 28px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: var(--transition);
}

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

.timeline-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.12);
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

.timeline-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

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

.timeline-details {
    list-style: none;
    margin-bottom: 20px;
}

.timeline-details li {
    font-size: 15px;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.timeline-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 16px;
}

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

.timeline-tags span {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary-light);
    border: 1px solid var(--border);
}

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

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

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-info > p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--border);
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

.contact-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.contact-item a,
.contact-item span {
    font-size: 14px;
    color: var(--text-secondary);
}

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

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

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

.contact-social a:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

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

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-wrapper i {
    color: var(--text-muted);
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.input-wrapper:focus-within i {
    color: var(--primary);
}

.input-wrapper input,
.input-wrapper textarea {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 15px;
}

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

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

.textarea-wrapper i {
    margin-top: 4px;
}

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

.btn-submit {
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

.form-status {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
}

.form-status.error {
    display: block;
    background: rgba(255, 76, 76, 0.1);
    border: 1px solid #ff4c4c;
    color: #ff4c4c;
}

/* ========== FOOTER ========== */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
}

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

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

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

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

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

.footer-social a:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin-bottom: 20px;
}

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

.footer-heart i {
    color: #ff4c4c;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: #fff;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

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

    .hero-description {
        max-width: 100%;
    }

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

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

    .hero-image {
        order: -1;
    }

    .hero-avatar {
        width: 250px;
        height: 250px;
    }

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

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

    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 4px;
        transition: var(--transition-slow);
        border-left: 1px solid var(--border);
        z-index: 999;
    }

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

    .nav-link {
        font-size: 16px;
        padding: 12px 20px;
        border-radius: 12px;
    }

    section {
        padding: 70px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .skill-category {
        padding: 20px;
    }

    .skill-category-header h3 {
        font-size: 17px;
    }

    .project-card-content {
        padding: 24px;
    }

    .timeline {
        padding-left: 30px;
    }

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

    .timeline-dot {
        left: -27px;
        width: 14px;
        height: 14px;
    }

    .timeline-content {
        padding: 20px 24px;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }
}

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

    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle-wrapper {
        font-size: 16px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-avatar {
        width: 200px;
        height: 200px;
    }

    .hero-avatar-icon i {
        font-size: 70px;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 14px;
    }

    .about-text-block h3 {
        font-size: 20px;
    }

    .about-text-block p {
        font-size: 14px;
    }

    .about-cta {
        flex-direction: column;
        align-items: center;
    }

    .skill-category {
        padding: 18px;
        margin-bottom: 16px;
        border-radius: 14px;
    }

    .skill-category-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 10px;
    }

    .skill-category-header h3 {
        font-size: 15px;
    }

    .skill-tags {
        gap: 8px;
    }

    .skill-tag {
        padding: 6px 14px;
        font-size: 12px;
    }

    .project-card-content {
        padding: 20px;
    }

    .project-card-content h3 {
        font-size: 18px;
    }

    .project-card-content > p {
        font-size: 14px;
    }

    .project-icon-wrapper {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .project-tech {
        gap: 6px;
    }

    .project-tech span {
        font-size: 11px;
        padding: 4px 12px;
    }

    .project-btn {
        padding: 8px 18px;
        font-size: 12px;
    }

    .timeline {
        padding-left: 24px;
    }

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

    .timeline-dot {
        left: -22px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 18px;
        border-radius: 14px;
    }

    .timeline-header h3 {
        font-size: 16px;
    }

    .timeline-company {
        font-size: 13px;
    }

    .timeline-details li {
        font-size: 13px;
        padding-left: 18px;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .contact-info h3 {
        font-size: 22px;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-logo {
        font-size: 26px;
    }

    .footer-text {
        font-size: 13px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 14px;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-avatar {
        width: 170px;
        height: 170px;
    }

    .nav-menu {
        width: 85%;
    }
}

/* ========== MOUSE TRAIL ========== */
.trail-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    border-radius: 50%;
    animation: trail-fade 0.8s ease-out forwards;
}

@keyframes trail-fade {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
}

.trail-star {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    font-size: 12px;
    animation: trail-star-fade 1s ease-out forwards;
}

@keyframes trail-star-fade {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(0) rotate(180deg);
        opacity: 0;
    }
}

/* ========== SELECTION ========== */
::selection {
    background: var(--primary);
    color: #fff;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

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