/* ==========================================================================
   Variables & Theme Tokens (Bright, Premium Light Theme)
   ========================================================================== */
:root {
    --bg-color: #f8fafc; /* Slate 50 (Off-white) */
    --bg-surface: #ffffff; /* Pure White */
    --bg-card: rgba(255, 255, 255, 0.75); /* Frosted Glass Card */
    --border-color: rgba(15, 23, 42, 0.08); /* Fine slate border */
    
    --accent-violet: #7c3aed; /* Vibrant Violet */
    --accent-emerald: #10b981; /* Vibrant Emerald */
    --accent-mint: #34d399; /* Vibrant Mint */
    --accent-amber: #d97706; /* Industrial Amber */
    
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #475569; /* Slate 600 */
    --text-light: #64748b; /* Slate 500 */
    
    --primary-gradient: linear-gradient(135deg, var(--accent-violet), var(--accent-emerald));
    --secondary-gradient: linear-gradient(135deg, var(--accent-emerald), var(--accent-mint));
    --amber-gradient: linear-gradient(135deg, #f59e0b, var(--accent-amber));
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
    --shadow-glow: 0 10px 30px -10px rgba(124, 58, 237, 0.25);
}

/* ==========================================================================
   Global Resets & Setup
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(52, 211, 153, 0.03) 0%, transparent 50%);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-left: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-violet), var(--accent-mint));
    border-radius: 5px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--accent-mint), var(--accent-violet));
}

/* ==========================================================================
   Typography & Global Utilities
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* Color adapters for legacy neon classes */
.neon-text-blue {
    color: var(--accent-violet);
}

.neon-text-purple {
    color: var(--accent-rose);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover::before {
    left: 150%;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: var(--shadow-glow), 0 15px 30px -10px rgba(15, 23, 42, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    outline: none;
}

/* Primary Button Adaption */
.neon-btn-blue {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.neon-btn-blue:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* Secondary Button Adaption */
.neon-btn-purple {
    background: var(--bg-surface);
    color: var(--accent-violet);
    border: 1px solid rgba(124, 58, 237, 0.25);
    box-shadow: var(--shadow-sm);
}

.neon-btn-purple:hover {
    background: rgba(124, 58, 237, 0.03);
    border-color: var(--accent-violet);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Section Header Styling */
.section-header {
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.section-title {
    font-size: 2.25rem;
    color: var(--text-main);
    font-weight: 800;
}

.section-title span {
    font-family: var(--font-code);
    font-weight: 500;
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.section-line {
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.08), transparent);
}

section {
    padding: 120px 10%;
    position: relative;
    z-index: 10;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==========================================================================
   Loader
   ========================================================================== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.neon-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(124, 58, 237, 0.1);
    border-top-color: var(--accent-violet);
    border-bottom-color: var(--accent-mint);
    animation: spin 1.2s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 1px;
    text-align: center;
    font-size: 1.1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Background Particles
   ========================================================================== */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.75;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 10%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

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

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
}

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

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

.hamburger {
    display: none;
    font-size: 1.25rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 80px;
    gap: 4rem;
}

.hero-content {
    max-width: 55%;
}

.hero-subtitle {
    font-family: var(--font-code);
    color: var(--accent-violet);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4.25rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

/* Glitch Effect Sanitized for Professional look */
.glitch {
    position: relative;
    display: inline-block;
}

.typewriter-container {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.typed-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.hero-tagline {
    font-size: 1.15rem;
    margin-bottom: 3rem;
    max-width: 540px;
    color: var(--text-light);
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1.25rem;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--text-light);
    animation: bounce 2s infinite;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
}

.scroll-down:hover {
    color: var(--accent-violet);
}

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

/* Glassmorphic 3D Floating Graphic */
.hero-graphics {
    perspective: 1000px;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-cube {
    width: 180px;
    height: 180px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 18s infinite linear;
}

.face {
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.05), inset 0 0 15px rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.front  { transform: translateZ(90px); }
.back   { transform: rotateY(180deg) translateZ(90px); border-color: rgba(16, 185, 129, 0.2); }
.right  { transform: rotateY(90deg) translateZ(90px); }
.left   { transform: rotateY(-90deg) translateZ(90px); border-color: rgba(16, 185, 129, 0.2); }
.top    { transform: rotateX(90deg) translateZ(90px); }
.bottom { transform: rotateX(-90deg) translateZ(90px); border-color: rgba(16, 185, 129, 0.2); }

@keyframes rotate {
    0% { transform: rotateX(0) rotateY(0) rotateZ(0); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.about-text p {
    margin-bottom: 1.5rem;
}

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

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-violet);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item:hover {
    transform: translateX(6px);
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.stat-item i {
    font-size: 2rem;
    color: var(--accent-violet);
}

.stat-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
    color: var(--text-main);
}

.stat-info p {
    color: var(--text-light);
    font-size: 0.88rem;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
}

.skill-category h3 i {
    color: var(--accent-violet);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-content: flex-start;
}

.skill-tag {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.skill-tag:hover {
    border-color: var(--accent-violet);
    color: var(--accent-violet);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.project-card {
    padding: 2.5rem;
    background: var(--bg-card);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.project-header i.fa-plane-departure,
.project-header i.fa-laptop-file {
    font-size: 2.25rem;
    color: var(--accent-violet);
}

.project-links a {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-left: 0.75rem;
}

.project-links a:hover {
    color: var(--accent-violet);
    transform: scale(1.1);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.project-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-family: var(--font-code);
    font-size: 0.8rem;
}

.project-tech span {
    color: var(--accent-violet);
    background: rgba(124, 58, 237, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* ==========================================================================
   Electrical Line Fatigue custom project card
   ========================================================================== */
.electric-card {
    border-color: rgba(217, 119, 6, 0.15);
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.8), rgba(255, 251, 235, 0.5));
}

.electric-card:hover {
    border-color: var(--accent-amber);
    box-shadow: 0 15px 30px -10px rgba(217, 119, 6, 0.15);
}

.electric-pulse-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.05), transparent);
    z-index: 0;
    animation: electric-sweep 4s infinite linear;
    pointer-events: none;
}

.electric-icon {
    font-size: 2.25rem;
    color: var(--accent-amber);
}

.electric-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.electric-github {
    font-size: 1.25rem;
    color: var(--text-light);
    transition: color 0.2s;
}

.electric-github:hover {
    color: var(--accent-amber);
}

.status-badge {
    font-family: var(--font-code);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent-amber);
    border: 1px solid rgba(217, 119, 6, 0.25);
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(217, 119, 6, 0.06);
}

.status-badge .blink {
    font-size: 0.5rem;
    color: #ef4444;
    animation: blink-anim 1.2s infinite;
}

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

.electric-title {
    color: var(--text-main);
}

.electric-tech span {
    color: var(--accent-amber) !important;
    background: rgba(217, 119, 6, 0.06) !important;
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-violet), var(--accent-mint));
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 3.5rem;
}

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

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 22px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border: 3px solid var(--accent-violet);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px #ffffff;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-violet);
    transform: scale(1.25);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.timeline-content {
    padding: 1.75rem;
    background: var(--bg-card);
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(124, 58, 237, 0.08);
    color: var(--accent-violet);
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-code);
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(124, 58, 237, 0.12);
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.timeline-content h4 {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.timeline-list {
    margin-top: 0.75rem;
    padding-left: 0;
}

.timeline-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

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

.timeline-list li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--accent-violet);
    font-size: 0.75rem;
    top: 0;
}

/* ==========================================================================
   Achievements
   ========================================================================== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.achievement-card {
    padding: 2.25rem 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.counter-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.05rem;
    margin-bottom: 0.5rem;
    height: 3.5rem;
}

.achievement-card h2 {
    font-size: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1;
    margin: 0;
    display: flex;
    align-items: center;
}

.achievement-card h2.counter {
    min-width: 3ch;
    text-align: right;
    justify-content: flex-end;
}

.achievement-card:nth-child(1) h2.counter,
.achievement-card:nth-child(2) h2.counter {
    min-width: unset;
    text-align: center;
    justify-content: center;
    width: 100%;
}

.achievement-card .plus {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 0.05rem;
}

.achievement-card p {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

/* ==========================================================================
   Contact Section Form Inputs & Layout
   ========================================================================== */
.contact-container {
    max-width: 580px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

.form-group {
    position: relative;
    margin-bottom: 1.75rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-violet);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group label {
    position: absolute;
    top: 16px;
    left: 16px;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 500;
    transition: all 0.2s ease;
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 10px;
    font-size: 0.78rem;
    padding: 2px 6px;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    color: var(--accent-violet);
}

.submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    background: var(--primary-gradient);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-btn span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-btn:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* Form Sending state */
.submit-btn.sending {
    background: var(--primary-gradient) !important;
    opacity: 0.8;
    pointer-events: none;
}

.submit-btn.sending i {
    animation: fly-away 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Form Success state */
.submit-btn.success {
    background: linear-gradient(135deg, #10b981, #34d399) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25) !important;
    pointer-events: none;
}

@keyframes fly-away {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    30% { transform: translate(-10px, 3px) scale(0.95); opacity: 0.9; }
    100% { transform: translate(140px, -70px) scale(0.2); opacity: 0; }
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
    position: static;
    flex-direction: column;
    padding: 60px 10%;
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.social-icon:hover {
    color: var(--accent-violet);
    transform: translateY(-3px);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    border-color: rgba(124, 58, 237, 0.2);
}

.copyright {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 500;
}

/* ==========================================================================
   AI Assistant Widget (Jarvis UI Redesign)
   ========================================================================== */
.ai-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.ai-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.ai-button:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: var(--shadow-glow), 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: rgba(124, 58, 237, 0.2);
}

.ai-core {
    width: 22px;
    height: 22px;
    background: var(--primary-gradient);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
    animation: ai-pulse 2s infinite alternate;
}

@keyframes ai-pulse {
    0% { transform: scale(0.85); filter: brightness(0.9); }
    100% { transform: scale(1.15); filter: brightness(1.1); }
}

.ai-chat-window {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 320px;
    height: 420px;
    padding: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(124, 58, 237, 0.15);
    box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.15), var(--shadow-glow);
    border-radius: 16px;
    overflow: hidden;
}

.ai-chat-window.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.ai-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    background: #ffffff;
    color: var(--text-main);
}

.ai-header i.neon-text-blue {
    color: var(--accent-violet);
    margin-right: 4px;
}

.ai-header .close-ai {
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
    transition: color 0.2s;
}

.ai-header .close-ai:hover {
    color: var(--text-main);
}

.ai-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(248, 250, 252, 0.5);
}

/* Custom Scrollbar for AI Messages */
.ai-messages::-webkit-scrollbar {
    width: 5px;
}
.ai-messages::-webkit-scrollbar-track {
    background: transparent;
}
.ai-messages::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.15);
    border-radius: 10px;
}
.ai-messages:hover::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.35);
}

.msg {
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    max-width: 85%;
    line-height: 1.5;
}

.ai-msg {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: var(--shadow-sm);
}

.user-msg {
    background: var(--primary-gradient);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.15);
}

.ai-input {
    display: flex;
    padding: 12px;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
    align-items: center;
    gap: 8px;
}

.ai-input input {
    flex-grow: 1;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 10px 18px;
    color: var(--text-main);
    outline: none;
    font-family: var(--font-body);
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.ai-input input:focus {
    background: #ffffff;
    border-color: var(--accent-violet);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}

.ai-input button {
    background: transparent;
    border: none;
    color: var(--accent-violet);
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s;
}

.ai-input button:hover {
    background: rgba(124, 58, 237, 0.06);
    transform: scale(1.05);
}

/* AI Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    border-bottom-left-radius: 2px;
    align-self: flex-start;
    box-shadow: var(--shadow-sm);
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-violet);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.3); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .hero-content { max-width: 100%; }
    .hero-graphics { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .achievements-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
    section { padding: 80px 6%; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hamburger { display: block; }
    
    .hero-section {
        height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-title { font-size: 2.75rem; }
    .typewriter-container { font-size: 1.35rem; }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 2.5rem;
    }

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

    .section-title span {
        display: block;
        margin-bottom: 0.2rem;
    }

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

    .projects-grid,
    .skills-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .project-card {
        padding: 2rem;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem;
    }

    .achievement-card {
        padding: 1.5rem 1rem;
    }

    .achievement-card h2 {
        font-size: 2.25rem;
    }

    .achievement-card h2.counter {
        min-width: unset;
        justify-content: center;
        text-align: center;
    }

    .achievement-card p {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-title { font-size: 2.25rem; }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.5rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .timeline::before { left: 10px; }
    .timeline-dot { left: 1px; top: 22px; }
    .timeline-item { padding-left: 36px; }

    .ai-widget {
        bottom: 20px;
        right: 20px;
    }

    .ai-chat-window {
        bottom: 68px;
        width: calc(100vw - 40px);
        max-width: 310px;
        height: 380px;
    }
}
