/* ===== CSS Variables ===== */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #64748b;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --text: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
    --dark: #f1f5f9;
    --dark-light: #e2e8f0;
    --light: #0f172a;
    --text: #cbd5e1;
    --text-light: #94a3b8;
    --white: #1e293b;
    --border: #334155;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}

[data-theme="dark"] body {
    background: #0f172a;
    color: var(--text);
}

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

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

.preloader-logo {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 30px;
    animation: pulse-logo 2s ease-in-out infinite;
}

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

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

.preloader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 20px;
}

.preloader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.preloader-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Preloader always dark - independent of theme */
[data-theme="dark"] .preloader {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .preloader-logo {
    color: white;
}

[data-theme="dark"] .preloader-bar {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .preloader-text {
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Custom Cursor & Follower ===== */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.1s ease, border-color 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cursor-hover {
    transform: scale(1.5);
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.follower-hover {
    transform: scale(1.8);
    background: rgba(14, 165, 233, 0.2);
}

/* Hide default cursor on desktop */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }
    a, button, [role="button"] {
        cursor: none;
    }
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 99996;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 280px;
}

.toast-show {
    transform: translateX(0);
}

.toast-success { border-left-color: #22c55e; }
.toast-error { border-left-color: #ef4444; }
.toast-warning { border-left-color: #f59e0b; }
.toast-info { border-left-color: var(--primary); }

.toast i {
    font-size: 1.2rem;
}

.toast-success i { color: #22c55e; }
.toast-error i { color: #ef4444; }
.toast-warning i { color: #f59e0b; }
.toast-info i { color: var(--primary); }

.toast span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    flex: 1;
}

/* Toast Close Button */
.toast-close {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 8px;
    padding: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text);
    transform: rotate(90deg);
}

.toast-close i {
    font-size: 0.9rem;
}

[data-theme="dark"] .toast {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left-width: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .toast span {
    color: #f1f5f9;
}

[data-theme="dark"] .toast-close {
    color: #94a3b8;
}

[data-theme="dark"] .toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

[data-theme="dark"] .toast-success { 
    border-left-color: #22c55e; 
    background: rgba(34, 197, 94, 0.1);
}

[data-theme="dark"] .toast-error { 
    border-left-color: #ef4444; 
    background: rgba(239, 68, 68, 0.1);
}

[data-theme="dark"] .toast-warning { 
    border-left-color: #f59e0b; 
    background: rgba(245, 158, 11, 0.1);
}

[data-theme="dark"] .toast-info { 
    border-left-color: #0ea5e9; 
    background: rgba(14, 165, 233, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), #7c3aed);
}

/* ===== Selection Styling ===== */
::selection {
    background: rgba(14, 165, 233, 0.3);
    color: var(--dark);
}

::-moz-selection {
    background: rgba(14, 165, 233, 0.3);
    color: var(--dark);
}

/* ===== Smooth Scrolling ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Page Load Animation ===== */
body.loaded .hero-text {
    animation: slideInUp 0.8s ease 0.2s both;
}

body.loaded .hero-image {
    animation: slideInUp 0.8s ease 0.4s both;
}

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

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

[data-theme="dark"] .nav-logo,
[data-theme="dark"] .navbar.scrolled .nav-logo {
    color: var(--dark);
}

[data-theme="dark"] .nav-link,
[data-theme="dark"] .navbar.scrolled .nav-link {
    color: rgba(241, 245, 249, 0.85);
}

[data-theme="dark"] .navbar.scrolled .nav-link {
    color: var(--text);
}

[data-theme="dark"] .section-title {
    color: var(--dark);
}

[data-theme="dark"] .about,
[data-theme="dark"] .projects,
[data-theme="dark"] .contact {
    background: #0f172a;
}

[data-theme="dark"] .skills,
[data-theme="dark"] .experience {
    background: #1e293b;
}

[data-theme="dark"] .skill-category,
[data-theme="dark"] .info-box,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .project-card,
[data-theme="dark"] .timeline-content {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .skill-tag {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .skill-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
}

[data-theme="dark"] .project-tech span {
    background: rgba(14, 165, 233, 0.12);
}

[data-theme="dark"] .timeline-dot {
    border-color: #0f172a;
}

[data-theme="dark"] .timeline-company {
    background: rgba(14, 165, 233, 0.15);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: #1e293b;
    border-color: #334155;
    color: var(--text);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    background: #0f172a;
}

[data-theme="dark"] .btn-submit {
    color: #ffffff;
}

[data-theme="dark"] .form-status.success {
    background: #14532d;
    color: #86efac;
    border-color: #22c55e;
}

[data-theme="dark"] .form-status.error {
    color: #f87171;
}

/* ===== PRO Contact Form Styles ===== */

/* Floating Label Groups */
.floating-group {
    position: relative;
    margin-bottom: 24px;
}

.floating-group input,
.floating-group textarea {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 1.5px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-group textarea {
    min-height: 150px;
    resize: vertical;
    padding-bottom: 40px;
}

.floating-group label {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    padding: 0 4px;
}

.floating-group.textarea-group label {
    top: 24px;
    transform: none;
}

/* Floating Label Animation */
.floating-group input:focus,
.floating-group textarea:focus,
.floating-group input:not(:placeholder-shown),
.floating-group textarea:not(:placeholder-shown) {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.floating-group input:focus + label,
.floating-group textarea:focus + label,
.floating-group input:not(:placeholder-shown) + label,
.floating-group textarea:not(:placeholder-shown) + label {
    top: 0;
    left: 16px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.floating-group.textarea-group textarea:focus + label,
.floating-group.textarea-group textarea:not(:placeholder-shown) + label {
    top: 0;
}

/* Form Icons */
.form-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.floating-group.textarea-group .form-icon {
    top: 24px;
    transform: none;
}

.floating-group input:focus ~ .form-icon,
.floating-group textarea:focus ~ .form-icon {
    color: var(--primary);
}

/* Validation Icons */
.validation-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.floating-group.valid .validation-icon {
    opacity: 1;
    color: #22c55e;
    content: '\f00c';
}

.floating-group.invalid .validation-icon {
    opacity: 1;
    color: #ef4444;
    content: '\f00d';
}

.floating-group.valid input,
.floating-group.valid textarea {
    border-color: #22c55e;
}

.floating-group.invalid input,
.floating-group.invalid textarea {
    border-color: #ef4444;
}

/* Character Counter */
.char-counter {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 0.8rem;
    color: var(--text-light);
    background: var(--white);
    padding: 4px 8px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.char-counter.warning {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.char-counter.danger {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Pro Submit Button */
.pro-submit {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 1.1rem;
}

.pro-submit .btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.pro-submit.loading .btn-text,
.pro-submit.loading i {
    opacity: 0;
}

.pro-submit.loading .btn-loader {
    display: block;
    position: absolute;
}

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

/* Auto-save Status */
.autosave-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #22c55e;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.autosave-status.show {
    opacity: 1;
    transform: translateY(0);
}

.autosave-status i {
    font-size: 0.9rem;
}

/* Dark Mode Pro Form */
[data-theme="dark"] .floating-group input,
[data-theme="dark"] .floating-group textarea {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

[data-theme="dark"] .floating-group label {
    background: #1e293b;
    color: #94a3b8;
}

[data-theme="dark"] .floating-group input:focus + label,
[data-theme="dark"] .floating-group textarea:focus + label,
[data-theme="dark"] .floating-group input:not(:placeholder-shown) + label,
[data-theme="dark"] .floating-group textarea:not(:placeholder-shown) + label {
    color: #0ea5e9;
}

[data-theme="dark"] .char-counter {
    background: #1e293b;
    color: #94a3b8;
}

/* Mobile Pro Form */
@media (max-width: 768px) {
    .floating-group {
        margin-bottom: 20px;
    }
    
    .floating-group input,
    .floating-group textarea {
        padding: 14px 14px 14px 44px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .char-counter {
        font-size: 0.75rem;
    }
}

/* Mobile Contact Form */

[data-theme="dark"] .hero-title {
    color: #f8fafc;
}

[data-theme="dark"] .hero-subtitle {
    color: rgba(241, 245, 249, 0.6);
}

[data-theme="dark"] .hero-desc {
    color: rgba(241, 245, 249, 0.5);
}

[data-theme="dark"] .hero-greeting {
    color: #38bdf8;
}

[data-theme="dark"] .hero-badge {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

[data-theme="dark"] .tech-badge {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.25);
    color: #38bdf8;
}

[data-theme="dark"] .hero-stats {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .stat-count {
    color: #f1f5f9;
}

[data-theme="dark"] .stat-text {
    color: #94a3b8;
}

[data-theme="dark"] .stat-divider {
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .floating-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .scroll-indicator a {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .btn-primary {
    color: #ffffff;
}

[data-theme="dark"] .btn-secondary {
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .btn-secondary:hover {
    border-color: #f1f5f9;
}

[data-theme="dark"] .hero-socials a {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .about-text p {
    color: var(--text);
}

[data-theme="dark"] .timeline-content > p {
    color: var(--text-light);
}

[data-theme="dark"] .timeline-content ul li {
    color: var(--text);
}

[data-theme="dark"] .project-body p {
    color: var(--text-light);
}

[data-theme="dark"] .contact-card p {
    color: var(--text-light);
}

[data-theme="dark"] .hero-image-wrapper {
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 0 60px rgba(14, 165, 233, 0.25);
}

/* Smooth theme transition */
body, .navbar, .hero, .about, .skills, .projects, .experience, .contact, .footer,
.skill-category, .info-box, .contact-card, .contact-form, .project-card,
.timeline-content, .form-group input, .form-group textarea, .skill-tag, .footer canvas {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

/* ===== Custom Cursor ===== */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    border-color: #38bdf8;
    background: rgba(14, 165, 233, 0.1);
}

.custom-cursor.click {
    transform: translate(-50%, -50%) scale(0.8);
}

/* ===== Floating Animation ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-animation-slow {
    animation: float-slow 8s ease-in-out infinite;
}

/* ===== Glowing Border Effect ===== */
.glow-border {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    z-index: 1;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius) + 2px);
    background: linear-gradient(45deg, var(--primary), #38bdf8, #818cf8, var(--primary));
    background-size: 300% 300%;
    z-index: -1;
    animation: gradient-rotate 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-border:hover::before {
    opacity: 1;
}

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

/* ===== Magnetic Button Effect ===== */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Text Reveal Animation ===== */
.text-reveal {
    position: relative;
    overflow: hidden;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.text-reveal:hover::after {
    transform: translateX(100%);
}

/* ===== Navbar Link Animation ===== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
    left: 20%;
}

.nav-link.active {
    color: var(--primary) !important;
    background: rgba(14, 165, 233, 0.1);
}

/* Active section indicator dot */
.nav-link::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.nav-link.active::before {
    opacity: 1;
    transform: scale(1);
}

/* ===== Section Parallax ===== */
.parallax-element {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* ===== Shine Border Animation ===== */
@keyframes border-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(14, 165, 233, 0.3), 0 0 10px rgba(14, 165, 233, 0.2); }
    50% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.6), 0 0 30px rgba(14, 165, 233, 0.4); }
}

.border-glow {
    animation: border-glow 2s ease-in-out infinite;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

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

/* ===== Scroll Animations ===== */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hidden.show {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.hidden.show:nth-child(1) { transition-delay: 0.05s; }
.hidden.show:nth-child(2) { transition-delay: 0.1s; }
.hidden.show:nth-child(3) { transition-delay: 0.15s; }
.hidden.show:nth-child(4) { transition-delay: 0.2s; }
.hidden.show:nth-child(5) { transition-delay: 0.25s; }
.hidden.show:nth-child(6) { transition-delay: 0.3s; }

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #38bdf8, #8b5cf6);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
}

[data-theme="dark"] .scroll-progress {
    background: linear-gradient(90deg, #0ea5e9, #22d3ee, #a855f7);
    box-shadow: 0 0 10px #0ea5e9, 0 0 20px #0ea5e9;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    transform: translateY(0);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar.visible {
    transform: translateY(0);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    padding: 12px 0;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.nav-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: logo-shine 3s infinite;
}

@keyframes logo-shine {
    0%, 100% { left: -100%; }
    50% { left: 200%; }
}

.nav-logo span {
    color: var(--primary);
    position: relative;
}

.nav-logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #38bdf8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-logo:hover::after {
    transform: scaleX(1);
}

.navbar.scrolled .nav-logo {
    color: var(--dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 6px;
    transition: var(--transition);
}

.navbar.scrolled .nav-link {
    color: var(--text);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
}

.nav-link.admin-link {
    background: var(--primary);
    color: var(--white) !important;
}

.nav-link.admin-link:hover {
    background: var(--primary-dark);
}

.btn-resume {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-resume:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-right: 8px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(15deg) scale(1.1);
}

/* Keyboard shortcut hint */
.keyboard-shortcut {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-light);
    z-index: 998;
    box-shadow: var(--shadow-lg);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.keyboard-shortcut:hover {
    opacity: 1;
}

.keyboard-shortcut kbd {
    background: var(--light);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 600;
    color: var(--text);
    border: 1px solid var(--border);
}

.navbar.scrolled .theme-toggle {
    background: rgba(15, 23, 42, 0.08);
    color: var(--dark);
}

.navbar.scrolled .theme-toggle:hover {
    background: rgba(14, 165, 233, 0.15);
    color: var(--primary);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    color: var(--dark);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(14, 165, 233, 0.2);
    color: var(--primary);
}

[data-theme="dark"] .navbar.scrolled .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dark);
}

/* Mobile nav menu dark mode support */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-header {
    display: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .hamburger span {
    background: var(--dark);
}

/* Dark mode hamburger - ensure white color on dark backgrounds */
[data-theme="dark"] .hamburger span {
    background: #f1f5f9;
}

[data-theme="dark"] .navbar.scrolled .hamburger span {
    background: #f1f5f9;
}

/* Mobile: Ensure navbar and hamburger are always visible on all sections */
@media (max-width: 768px) {
    /* Hide custom cursor on mobile */
    .custom-cursor,
    .cursor-follower {
        display: none !important;
    }
    
    .navbar,
    .navbar.hidden,
    .navbar.visible {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .hamburger {
        display: flex !important;
        z-index: 1001;
    }
    
    .navbar.scrolled .hamburger span {
        background: var(--dark);
    }
    
    [data-theme="dark"] .navbar.scrolled .hamburger span {
        background: #f1f5f9;
    }
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    width: 26px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 26px;
}

/* ===== Search Modal ===== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 90%;
    max-width: 700px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.search-modal.active .search-container {
    transform: translateY(0);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid var(--border);
}

.search-input-wrapper i {
    font-size: 20px;
    color: var(--text-light);
    margin-right: 15px;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    font-size: 18px;
    font-weight: 500;
    outline: none;
    color: var(--text);
}

.search-input-wrapper input::placeholder {
    color: var(--text-light);
}

.search-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s ease;
}

.search-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 15px 25px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-result-item:hover {
    background: var(--light);
    padding-left: 30px;
}

.search-result-item i {
    color: var(--primary);
    font-size: 16px;
}

.search-result-item span {
    font-weight: 500;
    color: var(--text);
}

.search-shortcut {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-light);
    background: var(--light);
    padding: 4px 8px;
    border-radius: 4px;
}

/* ===== Page Transition ===== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-transition.active {
    transform: translateY(0);
}

.page-transition.exit {
    transform: translateY(-100%);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    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 rgba(14, 165, 233, 0.5);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

/* Animated gradient orbs */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: orb-float 20s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: orb-float 25s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.1); }
}

/* Grid pattern overlay */
.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Floating code snippets decoration */
.hero-code-float {
    position: absolute;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: rgba(14, 165, 233, 0.3);
    pointer-events: none;
    user-select: none;
}

.hero-code-float:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: code-float-1 15s ease-in-out infinite;
}

.hero-code-float:nth-child(2) {
    top: 60%;
    left: 5%;
    animation: code-float-2 18s ease-in-out infinite;
}

.hero-code-float:nth-child(3) {
    top: 30%;
    right: 8%;
    animation: code-float-3 20s ease-in-out infinite;
}

@keyframes code-float-1 {
    0%, 100% { transform: translateY(0) rotate(-5deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(5deg); opacity: 0.5; }
}

@keyframes code-float-2 {
    0%, 100% { transform: translateY(0) rotate(5deg); opacity: 0.2; }
    50% { transform: translateY(-30px) rotate(-5deg); opacity: 0.4; }
}

@keyframes code-float-3 {
    0%, 100% { transform: translateY(0) rotate(-3deg); opacity: 0.25; }
    50% { transform: translateY(-25px) rotate(3deg); opacity: 0.45; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 50%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

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

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.typing-container {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.typing-text {
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    min-width: 2ch;
}

.typing-cursor {
    color: var(--primary);
    font-weight: 300;
    animation: blink 1s infinite;
    margin-left: 2px;
}

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

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-desc strong {
    color: white;
    font-weight: 600;
}

/* Magnetic Button Effect */
.magnetic-btn {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.magnetic-btn:hover {
    transform: scale(1.02);
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: var(--transition);
    border: 2px solid var(--primary);
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: transparent;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.btn-secondary {
    position: relative;
    overflow: hidden;
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover::after {
    left: 100%;
}

.hero-socials {
    display: flex;
    gap: 16px;
}

.hero-socials a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
}

/* Hero Badge - Available for Hire */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #22c55e;
    margin-bottom: 20px;
    animation: pulse-badge 2s ease-in-out infinite;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: blink-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

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

/* Hero Tech Stack */
.hero-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.tech-badge i {
    font-size: 0.9rem;
}

/* Subtitle Tag */
.subtitle-tag {
    display: inline-block;
    margin-left: 12px;
    padding: 4px 12px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary);
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-count {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Image Container */
.hero-image-wrapper-container {
    position: relative;
}

.image-glow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 40px;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.4) 0%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

/* Floating Cards around image */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: float-card 4s ease-in-out infinite;
}

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

.card-1 { top: 10%; left: -30px; animation-delay: 0s; }
.card-2 { top: 50%; right: -40px; animation-delay: 1.5s; }
.card-3 { bottom: 15%; left: -20px; animation-delay: 3s; }

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

/* Scroll Indicator Enhanced */
.scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator a span {
    font-weight: 500;
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-image-wrapper {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(14, 165, 233, 0.3);
    box-shadow: 0 0 60px rgba(14, 165, 233, 0.2);
    position: relative;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.hero-image-wrapper:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(-5deg) scale(1.02);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(14, 165, 233, 0.2);
    animation: pulse-ring 2s ease-out infinite;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px dashed rgba(14, 165, 233, 0.15);
    animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.1); opacity: 0; }
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
}

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

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

/* Section Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger delay for cards */
.project-card.reveal-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.project-card.reveal-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.project-card.reveal-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.project-card.reveal-on-scroll:nth-child(4) { transition-delay: 0.4s; }

.tech-item.reveal-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.tech-item.reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.tech-item.reveal-on-scroll:nth-child(3) { transition-delay: 0.15s; }
.tech-item.reveal-on-scroll:nth-child(4) { transition-delay: 0.2s; }
.tech-item.reveal-on-scroll:nth-child(5) { transition-delay: 0.25s; }
.tech-item.reveal-on-scroll:nth-child(6) { transition-delay: 0.3s; }

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #38bdf8);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.section-header:hover .section-title::after {
    width: 100px;
}

/* ===== Services Section Special Title ===== */
.services .section-title {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #8b5cf6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3.5s ease infinite;
}

.services .section-title::before {
    content: '🛠️';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    animation: wrench-spin 2.5s ease-in-out infinite;
    -webkit-text-fill-color: initial;
}

@keyframes wrench-spin {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(-50%) rotate(15deg); }
}

.services .section-title::after {
    width: 90px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.services .section-header:hover .section-title::after {
    width: 130px;
}

.services .section-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 80px;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: pulse-glow-yellow 4s ease-in-out infinite;
}

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

/* ===== Tech Stack Section Special Title ===== */
.techstack .section-title {
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 25%, #8b5cf6 50%, #ec4899 75%, #06b6d4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

.techstack .section-title::before {
    content: '🧰';
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
    -webkit-text-fill-color: initial;
}
    background: rgba(255, 255, 255, 0.96);
    padding: 0 6px;
    width: 110px;
    background: linear-gradient(90deg, #06b6d4, #0ea5e9, #8b5cf6);
    background-size: 200% auto;
    animation: line-gradient 2s ease infinite;
}

.techstack .section-header:hover .section-title::after {
    width: 150px;
}

.techstack .section-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 80px;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: pulse-glow-cyan 4s ease-in-out infinite;
}

/* ===== GitHub Stats Section Special Title ===== */
.github-stats .section-title {
    background: linear-gradient(135deg, #fff 0%, #38bdf8 50%, #818cf8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

.github-stats .section-title::before {
    content: '🐙';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    animation: octo-bounce 2s ease-in-out infinite;
    -webkit-text-fill-color: initial;
}

@keyframes octo-bounce {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-60%) scale(1.15); }
}

.github-stats .section-title::after {
    width: 100px;
    background: linear-gradient(90deg, #fff, #38bdf8);
}

.github-stats .section-header:hover .section-title::after {
    width: 140px;
}

/* ===== Skills Section Special Title ===== */
.skills .section-title {
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 25%, #8b5cf6 50%, #ec4899 75%, #06b6d4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

.skills .section-title::before {
    content: '⚡';
    position: absolute;
    right: -45px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    animation: zap-flash 1.5s ease-in-out infinite;
    -webkit-text-fill-color: initial;
}

@keyframes zap-flash {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 1; }
    50% { transform: translateY(-50%) scale(1.3); opacity: 0.7; }
}

.skills .section-title::after {
    width: 100px;
    background: linear-gradient(90deg, #06b6d4, #0ea5e9, #8b5cf6);
    background-size: 200% auto;
    animation: line-gradient 2s ease infinite;
}

.skills .section-header:hover .section-title::after {
    width: 140px;
}

.skills .section-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 80px;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: pulse-glow-cyan 4s ease-in-out infinite;
}

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

/* ===== About Section Special Title ===== */
.about .section-title {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, #8b5cf6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

.about .section-title::before {
    content: '🎯';
    position: absolute;
    right: -45px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
    -webkit-text-fill-color: initial;
}

@keyframes bounce {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-60%) scale(1.1); }
}

.about .section-title::after {
    width: 80px;
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
}

.about .section-header:hover .section-title::after {
    width: 120px;
}

/* ===== Projects Section Special Title ===== */
.projects .section-title {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 25%, #8b5cf6 50%, #ec4899 75%, #f59e0b 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

.projects .section-title::before {
    content: '🚀';
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    animation: rocket-float 3s ease-in-out infinite;
    -webkit-text-fill-color: initial;
}

@keyframes rocket-float {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    25% { transform: translateY(-60%) translateX(5px); }
    50% { transform: translateY(-50%) translateX(0); }
    75% { transform: translateY(-40%) translateX(-5px); }
}

.projects .section-title::after {
    width: 100px;
    background: linear-gradient(90deg, #f59e0b, #ef4444, #8b5cf6);
    background-size: 200% auto;
    animation: line-gradient 2s ease infinite;
}

.projects .section-header:hover .section-title::after {
    width: 140px;
}

.projects .section-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 80px;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: pulse-glow-orange 4s ease-in-out infinite;
}

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

/* ===== Experience Section Special Title ===== */
.experience .section-title {
    background: linear-gradient(135deg, #10b981 0%, #0ea5e9 50%, #8b5cf6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3.5s ease infinite;
}

.experience .section-title::before {
    content: '💼';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    animation: briefcase-shake 2.5s ease-in-out infinite;
    -webkit-text-fill-color: initial;
}

@keyframes briefcase-shake {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    25% { transform: translateY(-50%) rotate(-10deg); }
    75% { transform: translateY(-50%) rotate(10deg); }
}

.experience .section-title::after {
    width: 90px;
    background: linear-gradient(90deg, #10b981, #0ea5e9);
    background-size: 200% auto;
    animation: line-gradient 2.5s ease infinite;
}

.experience .section-header:hover .section-title::after {
    width: 130px;
}

.experience .section-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 90px;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: pulse-glow-green 5s ease-in-out infinite;
}

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

/* ===== Contact Section Special Title ===== */
.contact .section-title {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 25%, #ec4899 50%, #8b5cf6 75%, var(--primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    text-shadow: none;
    position: relative;
}

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

.contact .section-title::before {
    content: '👋';
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    animation: wave 2s ease-in-out infinite;
    -webkit-text-fill-color: initial;
}

@keyframes wave {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    25% { transform: translateY(-50%) rotate(-20deg); }
    75% { transform: translateY(-50%) rotate(10deg); }
}

.contact .section-title::after {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #8b5cf6, #ec4899);
    background-size: 200% auto;
    animation: line-gradient 2s ease infinite;
}

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

.contact .section-header:hover .section-title::after {
    width: 150px;
}

/* Glow effect behind title */
.contact .section-header {
    position: relative;
}

.contact .section-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 100px;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: pulse-glow 4s ease-in-out infinite;
}

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

/* Floating particles around contact section */
.contact-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.contact-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 8s ease-in-out infinite;
}

.contact-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.contact-particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 1s; }
.contact-particle:nth-child(3) { left: 80%; top: 30%; animation-delay: 2s; }
.contact-particle:nth-child(4) { left: 70%; top: 70%; animation-delay: 3s; }
.contact-particle:nth-child(5) { left: 40%; top: 80%; animation-delay: 4s; }

@keyframes float-particle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 0.6; }
}

/* ===== About ===== */
.about {
    padding: 100px 0;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.about .container {
    position: relative;
    z-index: 1;
}

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

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: all 0.3s ease;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(14, 165, 233, 0.2), rgba(56, 189, 248, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.about-image:hover::before {
    opacity: 1;
}

.about-image:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(14, 165, 233, 0.2);
}

.about-image img {
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.08);
}

.about-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.about-text p {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.info-box {
    padding: 16px;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.1);
    border-color: var(--primary);
}

.info-box:hover::before {
    transform: scaleY(1);
}

.info-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.info-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
}

/* ===== Education ===== */
.education {
    padding: 100px 0;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.education .container {
    position: relative;
    z-index: 1;
}

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

.education-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.education-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 35px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), #8b5cf6, transparent);
    opacity: 0.3;
}

.education-item {
    display: flex;
    gap: 30px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), #8b5cf6);
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
    border-color: var(--primary);
}

.education-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.education-details {
    flex: 1;
}

.education-details h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.education-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.education-institution {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.education-institution i {
    color: var(--primary);
}

.education-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.education-year,
.education-cgpa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 20px;
    background: var(--light);
    color: var(--text);
}

.education-year i {
    color: #f59e0b;
}

.education-cgpa i {
    color: #fbbf24;
}

.education-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.education-courses {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.course-tag {
    font-size: 0.85rem;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 20px;
    color: var(--primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.course-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Education Section Special Title */
.education .section-title {
    background: linear-gradient(135deg, #10b981 0%, #0ea5e9 50%, #8b5cf6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3.5s ease infinite;
}

.education .section-title::before {
    content: '🎓';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    animation: cap-float 3s ease-in-out infinite;
    -webkit-text-fill-color: initial;
}

@keyframes cap-float {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    25% { transform: translateY(-55%) rotate(-5deg); }
    75% { transform: translateY(-45%) rotate(5deg); }
}

.education .section-title::after {
    width: 90px;
    background: linear-gradient(90deg, #10b981, #0ea5e9);
}

.education .section-header:hover .section-title::after {
    width: 130px;
}

.education .section-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 80px;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: pulse-glow-green 4s ease-in-out infinite;
}

/* Dark Mode Styles */
[data-theme="dark"] .education {
    background: #0f172a;
}

[data-theme="dark"] .education-item {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .education-details h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .education-details h4 {
    color: #38bdf8;
}

[data-theme="dark"] .education-institution {
    color: #cbd5e1;
}

[data-theme="dark"] .education-year,
[data-theme="dark"] .education-cgpa {
    background: rgba(15, 23, 42, 0.6);
    color: #cbd5e1;
}

[data-theme="dark"] .education-description {
    color: #94a3b8;
}

[data-theme="dark"] .course-tag {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
    color: #38bdf8;
}

/* Responsive */
@media (max-width: 768px) {
    .education-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }
    
    .education-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .education-meta {
        justify-content: center;
    }
    
    .education-courses {
        justify-content: center;
    }
}

/* ===== Services ===== */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--light) 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 10% 90%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.services .container {
    position: relative;
    z-index: 1;
}

.services-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Glassmorphism effect for service cards */
.service-card.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .service-card.glass-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
    border-color: var(--primary);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    font-size: 0.85rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li i {
    color: var(--success);
    font-size: 0.8rem;
}

/* ===== Tech Stack Visual ===== */
.techstack {
    padding: 100px 0;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.techstack .container {
    position: relative;
    z-index: 1;
}

/* Floating background particles */
.techstack-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.techstack-particle {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    animation: float-particle-tech 12s ease-in-out infinite;
}

.techstack-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.techstack-particle:nth-child(2) { left: 80%; top: 60%; animation-delay: 3s; }
.techstack-particle:nth-child(3) { left: 30%; top: 80%; animation-delay: 6s; }
.techstack-particle:nth-child(4) { left: 70%; top: 30%; animation-delay: 9s; }

@keyframes float-particle-tech {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-40px) scale(1.2); opacity: 0.8; }
}

.techstack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    perspective: 1000px;
}

.tech-item {
    background: var(--white);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

/* Shine sweep effect */
.tech-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.8s ease;
}

.tech-item:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* Glow background */
.tech-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    z-index: 0;
}

.tech-item:hover::before {
    width: 150%;
    height: 150%;
}

/* Floating animation on hover */
.tech-item:hover {
    transform: translateY(-12px) rotateX(5deg);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2),
                0 0 60px rgba(14, 165, 233, 0.1);
}

/* Icon container */
.tech-icon-wrap {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.tech-item i {
    font-size: 3rem;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.tech-item:hover i {
    transform: scale(1.25) rotate(-5deg);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
}

/* Tech name with badge style */
.tech-item span {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    display: inline-block;
    padding: 6px 14px;
    background: var(--light);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tech-item:hover span {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Proficiency bar */
.tech-level {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--border);
    overflow: hidden;
}

.tech-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--level, 85%);
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
    transition: width 0.8s ease;
}

.tech-item:hover .tech-level::after {
    width: 100%;
}

/* Tech icon colors with enhanced glow */
.tech-item[data-name="HTML5"] i { color: #e34c26; }
.tech-item[data-name="CSS3"] i { color: #264de4; }
.tech-item[data-name="JavaScript"] i { color: #f0db4f; }
.tech-item[data-name="React"] i { color: #61dafb; }
.tech-item[data-name="Node.js"] i { color: #339933; }
.tech-item[data-name="MongoDB"] i { color: #47a248; }
.tech-item[data-name="Git"] i { color: #f05032; }
.tech-item[data-name="GitHub"] i { color: #181717; }
[data-theme="dark"] .tech-item[data-name="GitHub"] i { color: #ffffff; }
.tech-item[data-name="Bootstrap"] i { color: #7952b3; }
.tech-item[data-name="Tailwind"] i { color: #06b6d4; }
.tech-item[data-name="Express"] i { color: #404040; }
[data-theme="dark"] .tech-item[data-name="Express"] i { color: #ffffff; }
.tech-item[data-name="VS Code"] i { color: #007acc; }
.tech-item[data-name="Next.js"] i { color: #000000; }
[data-theme="dark"] .tech-item[data-name="Next.js"] i { color: #ffffff; }
.tech-item[data-name="PostgreSQL"] i { color: #336791; }
.tech-item[data-name="Prisma"] i { color: #2d3748; }
[data-theme="dark"] .tech-item[data-name="Prisma"] i { color: #ffffff; }

/* Staggered entrance animation */
.tech-item {
    opacity: 0;
    animation: tech-fade-in 0.6s ease forwards;
}

.tech-item:nth-child(1) { animation-delay: 0.05s; }
.tech-item:nth-child(2) { animation-delay: 0.1s; }
.tech-item:nth-child(3) { animation-delay: 0.15s; }
.tech-item:nth-child(4) { animation-delay: 0.2s; }
.tech-item:nth-child(5) { animation-delay: 0.25s; }
.tech-item:nth-child(6) { animation-delay: 0.3s; }
.tech-item:nth-child(7) { animation-delay: 0.35s; }
.tech-item:nth-child(8) { animation-delay: 0.4s; }
.tech-item:nth-child(9) { animation-delay: 0.45s; }
.tech-item:nth-child(10) { animation-delay: 0.5s; }
.tech-item:nth-child(11) { animation-delay: 0.55s; }
.tech-item:nth-child(12) { animation-delay: 0.6s; }
.tech-item:nth-child(13) { animation-delay: 0.65s; }
.tech-item:nth-child(14) { animation-delay: 0.7s; }
.tech-item:nth-child(15) { animation-delay: 0.75s; }
.tech-item:nth-child(16) { animation-delay: 0.8s; }

@keyframes tech-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== GitHub Stats ===== */
.github-stats {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.github-stats .section-title {
    color: var(--dark);
}

.github-stats .section-tag {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
}

.github-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.github-stats .container {
    position: relative;
    z-index: 1;
}

.github-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.github-profile {
    background: var(--white);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
}

.github-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--primary);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
}

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

.github-info h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.github-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--dark);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-github:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.github-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: var(--white);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.stat-box > i {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.2rem;
    color: var(--primary);
    opacity: 0.5;
}

.github-graph {
    background: var(--white);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.github-graph h4 {
    color: var(--dark);
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.contribution-graph {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contribution-row {
    display: flex;
    gap: 4px;
}

.contribution-cell {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.contribution-cell:hover {
    transform: scale(1.3);
}

.contribution-cell.level-0 { background: var(--light); border: 1px solid var(--border); }
.contribution-cell.level-1 { background: rgba(14, 165, 233, 0.3); }
.contribution-cell.level-2 { background: rgba(14, 165, 233, 0.5); }
.contribution-cell.level-3 { background: rgba(14, 165, 233, 0.7); }
.contribution-cell.level-4 { background: rgba(14, 165, 233, 1); }

.contribution-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    justify-content: flex-end;
    font-size: 0.8rem;
    color: var(--text-light);
}

.legend-cell {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-cell.level-0 { background: var(--light); border: 1px solid var(--border); }
.legend-cell.level-1 { background: rgba(14, 165, 233, 0.3); }
.legend-cell.level-2 { background: rgba(14, 165, 233, 0.5); }
.legend-cell.level-3 { background: rgba(14, 165, 233, 0.7); }
.legend-cell.level-4 { background: rgba(14, 165, 233, 1); }

/* ===== Skills ===== */
.skills {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.skills .container {
    position: relative;
    z-index: 1;
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.skill-category {
    padding: 32px;
    background: var(--light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
    border-color: var(--primary);
}

.skill-category {
    position: relative;
    overflow: hidden;
}

.skill-category::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.skill-category:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.skill-category h3 i {
    transition: transform 0.3s ease;
}

.skill-category:hover h3 i {
    transform: rotate(360deg) scale(1.2);
}

.skill-category h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    color: var(--primary);
    font-size: 1.2rem;
}

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

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}

.skill-tag i {
    font-size: 0.9rem;
}

/* ===== Projects ===== */
.projects {
    padding: 100px 0;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.projects .container {
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.project-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 25px 50px rgba(14, 165, 233, 0.15);
    border-color: var(--primary);
}

.project-card {
    position: relative;
}

.project-card .project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(14, 165, 233, 0.1) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.project-card:hover::before {
    left: 100%;
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 2;
    transition: var(--transition);
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    z-index: 3;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

.project-tech span {
    transition: all 0.3s ease;
}

/* Project Filter Buttons */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--text);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
    border-color: var(--primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

[data-theme="dark"] .filter-btn {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

[data-theme="dark"] .filter-btn:hover {
    border-color: #0ea5e9;
    background: #1e293b;
}

[data-theme="dark"] .filter-btn.active {
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    color: white;
}

.project-card:hover .project-tech span {
    background: rgba(14, 165, 233, 0.15);
    transform: translateY(-2px);
}

.project-body {
    padding: 28px;
}

.project-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.project-body p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.project-tech span {
    padding: 4px 12px;
    background: rgba(14, 165, 233, 0.08);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 4px;
}

/* ===== Experience ===== */
.experience {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.experience .container {
    position: relative;
    z-index: 1;
}

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

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary) 0%, var(--primary) var(--timeline-progress, 0%), var(--border) var(--timeline-progress, 0%), var(--border) 100%);
    transition: background 0.3s ease;
}

.timeline-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.5s ease;
}

.timeline-item.show {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    padding-bottom: 48px;
}

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

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 4px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary);
    animation: pulse-dot 2s ease-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 2px var(--primary), 0 0 0 0 rgba(14, 165, 233, 0.4); }
    50% { box-shadow: 0 0 0 2px var(--primary), 0 0 0 8px rgba(14, 165, 233, 0); }
}

.timeline-content {
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.1);
}

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

.timeline-content:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

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

.timeline-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
}

.timeline-company {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: auto;
}

.timeline-content > p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.timeline-content ul {
    padding-left: 18px;
    list-style: disc;
}

.timeline-content ul li {
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.6;
}

/* ===== Contact ===== */
.contact {
    padding: 100px 0;
    background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 26%),
                radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.12), transparent 24%),
                var(--light);
    position: relative;
    overflow: hidden;
}

.contact .container {
    position: relative;
    z-index: 1;
}

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

/* Make both columns match height and ensure form fills its column */
.contact-content {
    align-items: stretch;
}

.contact-info,
.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form {
    height: 100%;
    box-sizing: border-box;
    padding-bottom: 18px;
}

/* Keep submit button near the fields, not stuck at bottom */
.contact-form .btn-submit {
    margin-top: 14px;
    align-self: stretch;
}

/* Decorative accent stripe on the left edge of form */
.contact-form::after {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #7c3aed, #06b6d4);
    border-top-left-radius: calc(var(--radius) + 6px);
    border-bottom-left-radius: calc(var(--radius) + 6px);
    opacity: 0.16;
    pointer-events: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.92);
    padding: 32px 26px;
    border-radius: calc(var(--radius) + 4px);
    border: 1px solid rgba(59, 130, 246, 0.14);
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.22);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #38bdf8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: var(--radius) var(--radius) 0 0;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-card:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary-dark);
}

.contact-card a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.contact-card a {
    position: relative;
}

.contact-card a:hover::after {
    width: 100%;
}

.contact-card i {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.12);
    margin: 0 auto 18px;
}

.contact-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.contact-card a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.contact-form {
    background: rgba(255, 255, 255, 0.96);
    padding: 42px 42px 20px 42px;
    border-radius: calc(var(--radius) + 6px);
    border: 1px solid rgba(59, 130, 246, 0.14);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
    align-self: start;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #8b5cf6, #ec4899);
    background-size: 200% auto;
    animation: line-gradient 3s ease infinite;
}

.contact-form:hover {
    box-shadow: 0 30px 80px rgba(14, 165, 233, 0.18);
    border-color: rgba(14, 165, 233, 0.3);
}

/* Enhanced form inputs */
.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2), 0 0 20px rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
}

/* Submit button enhanced */
.btn-submit {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    background-size: 200% auto;
    transition: all 0.4s ease;
}

.btn-submit:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1.5px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    font-size: 0.98rem;
    font-family: inherit;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.92);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18);
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    transition: all 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    transform: translateX(10px);
    opacity: 0.5;
}

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

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit {
    position: relative;
    overflow: hidden;
}

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

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.4);
}

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

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-status.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ===== Premium Footer ===== */
.footer {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 0 0 0;
    position: relative;
    overflow: hidden;
    margin-top: 100px;
}

/* Wave Separator */
.footer-wave {
    position: absolute;
    top: -119px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

/* Particle Canvas */
.footer canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.footer .container {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

/* CTA Section */
.footer-cta {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    animation: rotate-glow 20s linear infinite;
}

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

.footer-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.footer-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

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

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

.footer-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.4);
}

.footer-cta-btn i {
    transition: transform 0.3s ease;
}

.footer-cta-btn:hover i {
    transform: translateX(5px);
}

/* Footer Content Grid */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand Section */
.footer-brand {
    max-width: 320px;
}

.footer-logo {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-brand h3 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    position: relative;
    z-index: 1;
}

.footer-brand h3 span {
    color: var(--primary);
}

.logo-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: logo-shine 3s infinite;
}

@keyframes logo-shine {
    0% { left: -100%; }
    50%, 100% { left: 200%; }
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-location i {
    color: var(--primary);
    font-size: 1rem;
}

/* Footer Sections */
.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.footer-links a:hover i {
    transform: translateX(4px);
}

/* Connect Section */
.footer-connect .footer-socials {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.social-glow {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.social-glow i {
    position: relative;
    z-index: 1;
}

.social-glow:hover::before {
    width: 100%;
    height: 100%;
}

.social-glow:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
}

.footer-email a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
}

.footer-email a:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: var(--primary);
    color: white;
}

.footer-email i {
    color: var(--primary);
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-bottom p span {
    color: white;
    font-weight: 600;
}

.footer-bottom p i.fa-heart {
    color: #ef4444;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-bottom p i.fa-coffee {
    color: #f59e0b;
}

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

/* Back to Top Button */
.back-to-top {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

.back-to-top i {
    animation: bounce-up 2s ease-in-out infinite;
}

@keyframes bounce-up {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Dark mode footer adjustments */
[data-theme="dark"] .footer {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

[data-theme="dark"] .footer-wave svg {
    fill: #020617;
}

[data-theme="dark"] .footer-cta {
    background: rgba(30, 41, 59, 0.4);
}

[data-theme="dark"] .footer-canvas {
    opacity: 0.4;
}

/* ===== GitHub Stats Dark Mode ===== */
[data-theme="dark"] .github-stats {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .github-stats .section-title {
    color: #ffffff;
}

[data-theme="dark"] .github-stats .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #38bdf8;
}

[data-theme="dark"] .github-profile {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .github-info h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .github-info p {
    color: #94a3b8;
}

[data-theme="dark"] .btn-github {
    background: #f1f5f9;
    color: #0f172a;
}

[data-theme="dark"] .btn-github:hover {
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .stat-box {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .stat-box:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
}

[data-theme="dark"] .stat-number {
    background: linear-gradient(135deg, #f1f5f9, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .stat-label {
    color: #94a3b8;
}

[data-theme="dark"] .github-graph {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .github-graph h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .contribution-cell.level-0 { background: rgba(255, 255, 255, 0.05); border: none; }
[data-theme="dark"] .contribution-cell.level-1 { background: rgba(14, 165, 233, 0.3); }
[data-theme="dark"] .contribution-cell.level-2 { background: rgba(14, 165, 233, 0.5); }
[data-theme="dark"] .contribution-cell.level-3 { background: rgba(14, 165, 233, 0.7); }
[data-theme="dark"] .contribution-cell.level-4 { background: rgba(14, 165, 233, 0.95); }

[data-theme="dark"] .legend-cell.level-0 { background: rgba(255, 255, 255, 0.05); border: none; }
[data-theme="dark"] .legend-cell.level-1 { background: rgba(14, 165, 233, 0.3); }
[data-theme="dark"] .legend-cell.level-2 { background: rgba(14, 165, 233, 0.5); }
[data-theme="dark"] .legend-cell.level-3 { background: rgba(14, 165, 233, 0.7); }
[data-theme="dark"] .legend-cell.level-4 { background: rgba(14, 165, 233, 0.95); }

[data-theme="dark"] .contribution-legend span {
    color: #94a3b8;
}

/* ===== Services & Tech Stack Dark Mode ===== */
[data-theme="dark"] .services {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .services-intro {
    color: #94a3b8;
}

[data-theme="dark"] .service-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .service-card h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .service-card p {
    color: #94a3b8;
}

[data-theme="dark"] .service-icon {
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
}

[data-theme="dark"] .techstack {
    background: #0f172a;
}

[data-theme="dark"] .tech-item {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tech-item span {
    color: #f1f5f9;
    background: rgba(15, 23, 42, 0.5);
}

[data-theme="dark"] .tech-item:hover span {
    background: var(--primary);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 300px 1fr;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 82%;
        max-width: 340px;
        height: 100vh;
        height: 100dvh;
        background: rgba(255, 255, 255, 0.96);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 90px 22px 30px;
        gap: 14px;
        transition: right 0.32s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.32s ease;
        z-index: 1002;
        box-shadow: -24px 0 70px rgba(15, 23, 42, 0.16);
        border-left: 1px solid rgba(15, 23, 42, 0.08);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        backdrop-filter: blur(16px);
        border-top-left-radius: 24px;
        border-bottom-left-radius: 24px;
        min-height: 100dvh;
    }

    /* Dark mode mobile panel */
    [data-theme="dark"] .nav-links {
        background: rgba(15, 23, 42, 0.96);
        box-shadow: -24px 0 80px rgba(0, 0, 0, 0.5);
        border-left-color: rgba(255, 255, 255, 0.08);
    }

    /* Hide scroll indicator on mobile to prevent overlap with stats */
    .scroll-indicator {
        display: none;
    }

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

    .nav-links::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.22);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        z-index: 0;
    }

    .nav-links.active::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links > * {
        position: relative;
        z-index: 2;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 10px;
    }

    .nav-links li:last-child {
        margin-bottom: 0;
    }

    /* Dark mode backdrop */
    [data-theme="dark"] .nav-links::before {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .nav-link {
        display: block;
        font-size: 1.04rem;
        font-weight: 650;
        color: #0f172a !important;
        padding: 16px 18px;
        width: 100%;
        border-radius: 16px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        position: relative;
        overflow: hidden;
        transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
        opacity: 0;
        transform: translateX(18px);
        letter-spacing: 0.01em;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
        text-decoration: none;
    }

    /* Dark mode link text */
    [data-theme="dark"] .nav-link {
        color: #e2e8f0 !important;
        background: rgba(15, 23, 42, 0.12);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
    }

    .nav-links.active .nav-link {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active .nav-link:nth-of-type(1) { transition-delay: 0.08s; }
    .nav-links.active .nav-link:nth-of-type(2) { transition-delay: 0.12s; }
    .nav-links.active .nav-link:nth-of-type(3) { transition-delay: 0.16s; }
    .nav-links.active .nav-link:nth-of-type(4) { transition-delay: 0.20s; }
    .nav-links.active .nav-link:nth-of-type(5) { transition-delay: 0.24s; }
    .nav-links.active .nav-link:nth-of-type(6) { transition-delay: 0.28s; }
    .nav-links.active .nav-link:nth-of-type(7) { transition-delay: 0.32s; }
    .nav-links.active .nav-link:nth-of-type(8) { transition-delay: 0.36s; }
    .nav-links.active .nav-link:nth-of-type(9) { transition-delay: 0.40s; }

    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 4px;
        background: linear-gradient(180deg, var(--primary), #38bdf8);
        transform: scaleY(0);
        transition: transform 0.25s ease;
    }

    .nav-link:hover {
        background: rgba(14, 165, 233, 0.08);
        transform: translateX(0) scale(1.01);
        color: var(--primary) !important;
    }

    [data-theme="dark"] .nav-link:hover {
        background: rgba(56, 189, 248, 0.12);
        color: #38bdf8 !important;
    }

    .nav-link:hover::before,
    .nav-link.active::before {
        transform: scaleY(1);
    }

    .nav-link.active {
        background: rgba(14, 165, 233, 0.12);
        color: var(--primary) !important;
        border-color: rgba(14, 165, 233, 0.24);
    }

    [data-theme="dark"] .nav-link.active {
        background: rgba(56, 189, 248, 0.18);
        color: #38bdf8 !important;
        border-color: rgba(56, 189, 248, 0.24);
    }

    .nav-link:last-of-type {
        border-bottom: none;
    }

    .mobile-menu-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 24px;
        padding: 0 4px 16px;
        border-bottom: 1px solid #e2e8f0;
    }

    .mobile-menu-title {
        font-size: 1.3rem;
        font-weight: 700;
        color: #1f2937;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .mobile-menu-close {
        background: rgba(15, 23, 42, 0.08);
        border: none;
        color: #1f2937;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1.15rem;
        transition: all 0.25s ease;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    }

    .mobile-menu-close:hover {
        background: rgba(14, 165, 233, 0.12);
        color: #0284c7;
        transform: rotate(90deg) scale(1.02);
    }

    /* Dark mode header & close */
    [data-theme="dark"] .mobile-menu-title {
        color: #cbd5e1;
    }

    [data-theme="dark"] .mobile-menu-close {
        background: rgba(255, 255, 255, 0.08);
        color: #e2e8f0;
    }

    [data-theme="dark"] .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.12);
    }

    [data-theme="dark"] .mobile-menu-header {
        border-bottom-color: rgba(255, 255, 255, 0.06);
    }

    .btn-resume {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

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

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .hero-tech-stack {
        justify-content: center;
    }

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

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

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

    .hero-image-wrapper {
        width: 220px;
        height: 220px;
    }

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

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

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

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

    /* New sections responsive */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .techstack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .tech-item {
        padding: 20px 16px;
    }

    .tech-item i {
        font-size: 2.5rem;
    }

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

    .github-profile {
        display: flex;
        align-items: center;
        gap: 24px;
        text-align: left;
    }

    .github-avatar {
        margin: 0;
        flex-shrink: 0;
    }

    /* Premium Footer Responsive */
    .footer-wave {
        top: -60px;
    }
    
    .footer-wave svg {
        height: 60px;
    }
    
    .footer-cta h2 {
        font-size: 1.8rem;
    }
    
    .footer-cta p {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
    
    .footer-brand p {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .footer-location {
        justify-content: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-connect {
        grid-column: 1 / -1;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .footer-email a {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

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

    .contact .section-title::before {
        left: -40px;
        font-size: 1.8rem;
    }

    .about .section-title::before,
    .projects .section-title::before,
    .experience .section-title::before,
    .skills .section-title::before,
    .education .section-title::before,
    .services .section-title::before,
    .techstack .section-title::before,
    .github-stats .section-title::before {
        right: -40px;
        font-size: 1.8rem;
    }

    .projects .section-title::before,
    .education .section-title::before,
    .techstack .section-title::before,
    .contact .section-title::before {
        left: -40px;
    }

    /* Hide section title emojis on mobile to prevent display issues */
    .section-title::before {
        display: none;
    }

    /* Services 480px */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-intro {
        font-size: 1rem;
    }

    /* Tech Stack 480px */
    .techstack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tech-item {
        padding: 16px 12px;
    }

    .tech-item i {
        font-size: 2rem;
    }

    .tech-item span {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    /* Disable 3D effects on mobile for better performance */
    .tech-item:hover {
        transform: translateY(-8px);
    }

    .techstack-particles {
        display: none;
    }

    /* GitHub Stats 480px */
    .github-profile {
        flex-direction: column;
        text-align: center;
    }

    .github-avatar {
        margin: 0 auto 16px;
    }

    .github-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2.2rem;
    }

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

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

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

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

    .project-image {
        height: 180px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .timeline-date {
        margin-left: 0;
    }

    /* Footer 480px */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-cta {
        padding: 40px 20px;
    }
    
    .footer-cta h2 {
        font-size: 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-image-wrapper {
        width: 180px;
        height: 180px;
    }

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

    /* All section title emojis for mobile */
    .contact .section-title::before {
        left: -35px;
        font-size: 1.5rem;
    }

    .contact .section-header::before {
        width: 300px;
        height: 80px;
    }

    .about .section-title::before,
    .projects .section-title::before,
    .experience .section-title::before,
    .skills .section-title::before,
    .education .section-title::before,
    .services .section-title::before,
    .techstack .section-title::before,
    .github-stats .section-title::before {
        right: -35px;
        font-size: 1.5rem;
    }

    .projects .section-title::before,
    .education .section-title::before,
    .techstack .section-title::before,
    .contact .section-title::before {
        left: -35px;
    }

    .skill-category {
        padding: 20px;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .project-body {
        padding: 20px;
    }

    .project-body h3 {
        font-size: 1.1rem;
    }

    .timeline-content {
        padding: 20px;
    }

    .contact-card {
        padding: 20px;
    }

    .contact-form {
        padding: 24px 24px 16px 24px;
    }

    /* Tech Stack extra small */
    .techstack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tech-item {
        padding: 12px 8px;
    }

    .tech-item i {
        font-size: 1.5rem;
    }

    .tech-item span {
        font-size: 0.75rem;
    }

    /* GitHub Stats extra small */
    .github-stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .github-profile {
        padding: 20px;
    }

    .github-avatar {
        width: 80px;
        height: 80px;
    }

    .contribution-cell {
        width: 8px;
        height: 8px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover {
        background: transparent;
    }

    .skill-tag:hover {
        transform: none;
    }

    .project-card:hover {
        transform: none;
    }

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }

    .hero-socials a:hover,
    .footer-socials a:hover {
        transform: none;
    }

    .contact-card:hover,
    .timeline-content:hover,
    .skill-category:hover {
        transform: none;
    }

    .theme-toggle:hover {
        transform: scale(1.05);
    }
}

/* Mobile theme toggle */
@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
        padding: 0 16px;
    }
    
    .nav-logo {
        margin-right: auto;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        margin-right: 8px;
        order: 1;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    .hamburger {
        order: 2;
        flex-shrink: 0;
    }
}

/* Prevent horizontal scroll */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Better touch targets on mobile */
@media (max-width: 768px) {
    .nav-link {
        min-height: 44px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-submit,
    .btn-resume {
        min-height: 48px;
    }

    .hero-socials a,
    .footer-socials a {
        width: 48px;
        height: 48px;
    }

    .skill-tag {
        min-height: 36px;
    }

    .project-tech span {
        min-height: 28px;
        display: inline-flex;
        align-items: center;
    }
    
    .footer-links a {
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===== Utility Classes ===== */

/* Hover glow effect */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.3),
                0 0 60px rgba(14, 165, 233, 0.15);
}

/* Floating animations */
.float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.float-medium {
    animation: float-medium 4s ease-in-out infinite;
}

.float-fast {
    animation: float-fast 3s ease-in-out infinite;
}

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

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

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

/* Glassmorphism utility */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .glass-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Text gradient animation */
.text-gradient-animated {
    background: linear-gradient(90deg, var(--primary), #8b5cf6, #ec4899, var(--primary));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-gradient-flow 3s ease infinite;
}

@keyframes text-gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Shimmer effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 200%; }
}

/* Hover glow effect */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.3),
                0 0 60px rgba(14, 165, 233, 0.15);
}

/* Floating animations */
.float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.float-medium {
    animation: float-medium 4s ease-in-out infinite;
}

.float-fast {
    animation: float-fast 3s ease-in-out infinite;
}

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

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

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

/* Glassmorphism utility */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .glass-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Text gradient animation */
.text-gradient-animated {
    background: linear-gradient(90deg, var(--primary), #8b5cf6, #ec4899, var(--primary));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-gradient-flow 3s ease infinite;
}

@keyframes text-gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Print Styles ===== */
@media print {
    .preloader,
    .custom-cursor,
    .cursor-follower,
    .scroll-progress,
    .toast-container,
    .search-modal,
    .scroll-indicator,
    .back-to-top,
    .navbar,
    .footer-wave,
    #footerParticles {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        cursor: auto !important;
    }
    
    .hero {
        background: white !important;
        min-height: auto !important;
        padding: 40px 0 !important;
    }
    
    .hero-title,
    .hero-subtitle,
    .section-title {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }
    
    .section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: none !important;
        color: black !important;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        opacity: 0.7;
    }
    
    .project-card,
    .service-card,
    .education-item,
    .timeline-content {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
}

/* ===== Focus Visible for Accessibility ===== */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: high) {
    :root {
        --primary: #0066cc;
        --text: #000000;
        --text-light: #333333;
    }
    
    .btn-primary,
    .btn-secondary {
        border-width: 2px;
    }
}