/* ==========================================================================
   DESIGN TOKENS & CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transition Speeds */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Theme Variables - Dark Mode (Default) */
    --bg-primary: #030712;
    --bg-primary-rgb: 3, 7, 18;
    --bg-secondary: #0b1329;
    --bg-alt: #0d1b2a;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --accent-blue: #3b82f6;
    --accent-blue-rgb: 59, 130, 246;
    --accent-purple: #8b5cf6;
    --accent-purple-rgb: 139, 92, 246;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    
    --glass-bg: rgba(15, 23, 42, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(139, 92, 246, 0.15);
    --card-hover-border: rgba(139, 92, 246, 0.3);
    
    --shadow-color: rgba(0, 0, 0, 0.5);
    --input-bg: rgba(3, 7, 18, 0.6);
    --input-border: rgba(255, 255, 255, 0.1);
    
    --scrollbar-track: #0b1329;
    --scrollbar-thumb: #3b82f6;
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-primary-rgb: 248, 250, 252;
    --bg-secondary: #ffffff;
    --bg-alt: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --accent-blue: #2563eb;
    --accent-blue-rgb: 37, 99, 235;
    --accent-purple: #7c3aed;
    --accent-purple-rgb: 124, 58, 237;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-glow: rgba(37, 99, 235, 0.08);
    --card-hover-border: rgba(37, 99, 235, 0.25);
    
    --shadow-color: rgba(15, 23, 42, 0.08);
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-border: rgba(15, 23, 42, 0.12);
    
    --scrollbar-track: #f1f5f9;
    --scrollbar-thumb: #2563eb;
}

/* ==========================================================================
   GLOBAL STYLE RESETS & DECORATIONS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

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

button, input, textarea {
    font-family: inherit;
}

ul {
    list-style: none;
}

/* Backdrop Floating Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    transition: background-color var(--transition-slow);
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--accent-blue);
    animation: spinBlob1 25s infinite alternate linear;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--accent-purple);
    animation: spinBlob2 30s infinite alternate linear;
}

.blob-3 {
    top: 40%;
    left: 50%;
    width: 35vw;
    height: 35vw;
    background: #06b6d4; /* teal */
    opacity: 0.15;
    animation: spinBlob3 20s infinite alternate linear;
}

@keyframes spinBlob1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(100px, 80px) rotate(360deg); }
}

@keyframes spinBlob2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-120px, -50px) rotate(-360deg); }
}

@keyframes spinBlob3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 50px) scale(1.2); }
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 7rem 0;
}

.section-bg-alt {
    background-color: var(--bg-alt);
    transition: background-color var(--transition-slow);
}

/* Scroll Reveal Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.subtitle-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-blue);
    background: rgba(var(--accent-blue-rgb), 0.12);
    border: 1px solid rgba(var(--accent-blue-rgb), 0.25);
    border-radius: 30px;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.font-bold {
    font-weight: 700;
}

/* ==========================================================================
   GLASSMORPHISM DESIGN CARD SYSTEM
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-normal), 
                transform var(--transition-normal), 
                box-shadow var(--transition-normal);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--glass-glow) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

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

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-normal);
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--text-muted);
}

.btn:active {
    transform: translateY(0);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.hover-link {
    position: relative;
}

.hover-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: var(--accent-blue);
    transition: width var(--transition-normal);
}

.hover-link:hover::after {
    width: 100%;
}

/* ==========================================================================
   PREMIUM PRELOADER
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    position: relative;
}

.spinner {
    width: 70px;
    height: 70px;
    position: relative;
    margin: 0 auto 1.5rem auto;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--accent-blue);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    background-color: var(--accent-purple);
    animation-delay: -1.0s;
}

@keyframes sk-bounce {
    0%, 100% { transform: scale(0.0); }
    50% { transform: scale(1.0); }
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.loader-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   STICKY GLASS NAVIGATION BAR
   ========================================================================== */
.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(var(--bg-primary-rgb), 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: padding var(--transition-normal), background-color var(--transition-slow);
    padding: 1.25rem 0;
}

.navbar-header.scrolled {
    padding: 0.85rem 0;
    background: var(--glass-bg);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.logo-accent {
    color: var(--accent-blue);
    font-weight: 900;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.theme-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.theme-btn svg {
    width: 18px;
    height: 18px;
}

/* Light / Dark Toggles */
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }

.resume-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 10px;
    color: var(--accent-blue);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.resume-download-btn:hover {
    background: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.resume-download-btn svg {
    width: 16px;
    height: 16px;
}

/* Mobile Hamburg menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 4px;
    transition: all var(--transition-normal);
}

/* Mobile navigation drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--glass-border);
    z-index: 999;
    padding: 7rem 2rem 2rem 2rem;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    transition: right var(--transition-slow) cubic-bezier(0.77, 0, 0.175, 1);
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-link {
    font-size: 1.15rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-secondary);
    display: block;
    padding: 0.5rem 0;
}

.mobile-link:hover, .mobile-link.active {
    color: var(--accent-blue);
    padding-left: 5px;
}

.mobile-resume-btn {
    width: 100%;
    margin-top: 1.5rem;
    justify-content: center;
}

/* Hamburger menu active animation */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Desktop Only navigation elements */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .hamburger {
        display: flex;
    }
    .nav-links {
        display: none;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
}

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

.badge-container {
    margin-bottom: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(16, 185, 129, 0.08); /* emerald green */
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
    font-family: var(--font-heading);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.typing-text {
    color: var(--accent-purple);
    font-weight: 700;
}

.cursor {
    font-weight: 300;
    animation: blink 0.7s infinite;
    color: var(--accent-purple);
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

/* Hero Right Side Graphic */
.illustration-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.dev-illustration {
    width: 100%;
    height: auto;
}

.floating-phone {
    animation: floatPhone 6s ease-in-out infinite;
}

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

/* Hover / Float Animations for SVG elements */
.floating-tag-1 { animation: floatTag 5s ease-in-out infinite alternate; }
.floating-tag-2 { animation: floatTag 6s ease-in-out infinite alternate 0.5s; }
.floating-tag-3 { animation: floatTag 7s ease-in-out infinite alternate 1s; }
.floating-tag-4 { animation: floatTag 5.5s ease-in-out infinite alternate 0.2s; }

@keyframes floatTag {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-8px) translateX(4px); }
}

/* Mouse Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse {
    width: 26px;
    height: 44px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-blue);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ==========================================================================
   ABOUT ME SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
}

.about-card {
    padding: 2.5rem;
}

.about-intro-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

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

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

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

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Info card side layout */
.info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
}

.avatar-container {
    margin-bottom: 2rem;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
}

.avatar-icon {
    width: 48px;
    height: 48px;
    color: #ffffff;
}

.personal-info-list {
    width: 100%;
    text-align: left;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.personal-info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.personal-info-list li > div:not(.info-icon-box) {
    min-width: 0;
    flex: 1;
}

.info-icon-box {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    flex: 0 0 40px;
    flex-shrink: 0;
    align-self: center;
    border-radius: 8px;
    background: rgba(var(--accent-purple-rgb), 0.1);
    border: 1px solid rgba(var(--accent-purple-rgb), 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-purple);
    box-sizing: border-box;
}

.info-icon-box svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.info-title {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-word;
    overflow-wrap: break-word;
}

.card-actions {
    width: 100%;
}

/* ==========================================================================
   SKILLS & PROGRESS BARS
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skills-category-card {
    padding: 2.5rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.category-icon {
    width: 28px;
    height: 28px;
}

.category-icon.text-blue { color: var(--accent-blue); }
.category-icon.text-purple { color: var(--accent-purple); }

.category-header h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

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

.skill-percentage {
    color: var(--text-secondary);
}

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

[data-theme="light"] .skill-bar-bg {
    background: rgba(15, 23, 42, 0.06);
}

.skill-bar-fill {
    height: 100%;
    width: 0%; /* Animated via JavaScript */
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.fill-blue {
    background: var(--accent-blue);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.fill-purple {
    background: var(--accent-purple);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

/* ==========================================================================
   FEATURED PROJECTS SECTION
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-img-container {
    position: relative;
    height: 200px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.project-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.85;
    z-index: 1;
}

.bg-gradient-1 { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
.bg-gradient-2 { background: linear-gradient(135deg, #4c1d95 0%, #8b5cf6 100%); }
.bg-gradient-3 { background: linear-gradient(135deg, #064e3b 0%, #10b981 100%); }

.project-card-main-icon {
    width: 56px;
    height: 56px;
    color: #ffffff;
    z-index: 2;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    transition: transform var(--transition-slow);
}

.project-card:hover .project-card-main-icon {
    transform: scale(1.15) rotate(5deg);
}

.project-tags {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    z-index: 2;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 4px;
}

.project-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    flex-grow: 1;
    line-height: 1.5;
}

.project-actions {
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.25rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.project-link:hover {
    color: var(--accent-blue);
}

.project-link svg {
    width: 16px;
    height: 16px;
}

/* Future Project placeholder card styling */
.future-card {
    border: 2px dashed var(--glass-border);
    background: rgba(255, 255, 255, 0.01);
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    text-align: center;
}

.future-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-5px);
    background: rgba(139, 92, 246, 0.02);
}

.future-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 320px;
}

.future-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-purple);
    margin-bottom: 1.5rem;
    transition: transform var(--transition-normal);
}

.future-card:hover .future-icon-box {
    transform: rotate(90deg) scale(1.1);
}

.future-icon-box svg {
    width: 26px;
    height: 26px;
}

.future-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.future-card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   EXPERIENCE TIMELINE
   ========================================================================== */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Timeline Vertical Line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--glass-border);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Timeline item block */
.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 3.5rem;
}

.timeline-item.left {
    left: 0;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    padding-left: 3rem;
    text-align: left;
}

/* Connecting Point dot */
.timeline-dot {
    position: absolute;
    top: 25px;
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 4px solid var(--accent-blue);
    border-radius: 50%;
    z-index: 5;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.timeline-item.left .timeline-dot {
    right: -8px;
}

.timeline-item.right .timeline-dot {
    left: -8px;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    border-color: var(--accent-purple);
}

/* Timeline card content */
.timeline-card {
    padding: 2rem;
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border-radius: 6px;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.timeline-job-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.timeline-company-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-purple);
    margin-bottom: 1rem;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.timeline-achievements {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: left;
}

.timeline-achievements li {
    position: relative;
    padding-left: 1.25rem;
}

.timeline-achievements li::before {
    content: '▹';
    position: absolute;
    left: 0;
    top: -1px;
    color: var(--accent-blue);
}

.timeline-item.left .timeline-achievements {
    align-items: flex-end;
}
.timeline-item.left .timeline-achievements li {
    padding-left: 0;
    padding-right: 1.25rem;
}
.timeline-item.left .timeline-achievements li::before {
    content: '';
}
.timeline-item.left .timeline-achievements li::after {
    content: '◃';
    position: absolute;
    right: 0;
    top: -1px;
    color: var(--accent-blue);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    padding: 1.75rem 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon-wrapper {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform var(--transition-normal), background-color var(--transition-normal);
}

.contact-info-card:hover .contact-icon-wrapper {
    transform: scale(1.08);
}

.contact-icon-wrapper.text-blue {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.15);
}

.contact-icon-wrapper.text-purple {
    color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.15);
}

.contact-icon-wrapper svg {
    width: 22px;
    height: 22px;
}

.contact-meta {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Contact Form Card styling */
.contact-form-card {
    padding: 3rem;
}

.form-card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 2.85rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    font-size: 0.95rem;
    border-radius: 10px;
    outline: none;
    transition: border var(--transition-normal), box-shadow var(--transition-normal);
}

.text-area-wrapper .text-area-icon {
    top: 1.35rem;
    transform: none;
}

.form-group textarea {
    padding-top: 0.95rem;
    resize: none;
}

/* Form interactions & validations */
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.25);
}

.form-group input:focus + .input-icon, .form-group textarea:focus + .input-icon {
    color: var(--accent-blue);
}

/* Error States */
.form-group.invalid input, .form-group.invalid textarea {
    border-color: #ef4444;
}

.form-group.invalid .input-icon {
    color: #ef4444;
}

.error-message {
    display: block;
    font-size: 0.8rem;
    color: #ef4444;
    font-weight: 500;
    margin-top: 0.4rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

.form-group.invalid .error-message {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    margin-top: 0.4rem;
}

/* Submit indicator spinner */
.submit-btn {
    position: relative;
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

.hidden {
    display: none !important;
}

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

/* Contact success message toast notification */
.toast-message {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    max-width: 420px;
    width: calc(100% - 4rem);
    background: var(--bg-secondary);
    border: 1px solid var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    animation: slideUpToast 0.4s ease-out;
}

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

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
    text-align: left;
}

.toast-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    color: #10b981;
    margin-bottom: 0;
}

.toast-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.toast-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 0 0;
    transition: background-color var(--transition-slow);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.footer-tagline {
    font-size: 1rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-subtext {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 420px;
}

.footer-section-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-contacts ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-contacts li svg {
    width: 18px;
    height: 18px;
    color: var(--accent-purple);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.credits {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   FLOATING ELEMENTS (BACK TO TOP)
   ========================================================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal);
}

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

.back-to-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.6);
}

.back-to-top-btn svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-normal);
}

.back-to-top-btn:hover svg {
    transform: translateY(-2px);
}

/* ==========================================================================
   CV VIEW MODAL SYSTEM
   ========================================================================== */
.resume-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.resume-modal.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 5;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    animation: modalSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideUp {
    from { transform: translateY(50px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex-grow: 1;
}

.resume-preview-card {
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.2);
}

.resume-header-preview {
    text-align: center;
    margin-bottom: 1rem;
}

.resume-header-preview h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.resume-loc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.resume-preview-card hr {
    border: 0;
    height: 1px;
    background: var(--glass-border);
    margin: 1.25rem 0;
}

.resume-section-preview {
    margin-bottom: 1.25rem;
}

.resume-section-preview h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--accent-blue);
    padding-left: 0.5rem;
}

.resume-section-preview p {
    line-height: 1.5;
}

.modal-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    .hero-container {
        gap: 2rem;
    }
    .hero-title {
        font-size: 3.2rem;
    }
    .about-grid {
        grid-template-columns: 1.20fr 0.80fr;
        gap: 2rem;
    }
    .projects-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 2rem;
    }
    .hero-content {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-graphic {
        order: 1;
        margin: 0 auto 1rem auto;
        max-width: 320px;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        justify-content: center;
        font-size: 1.6rem;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    /* Responsive timeline adjust */
    .timeline-line {
        left: 2rem;
    }
    .timeline-item {
        width: 100%;
        padding-left: 4rem !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    .timeline-item.right {
        left: 0%;
    }
    .timeline-dot {
        left: 2rem !important;
        transform: translateX(-50%);
    }
    
    .timeline-item.left .timeline-achievements {
        align-items: flex-start;
    }
    .timeline-item.left .timeline-achievements li {
        padding-left: 1.25rem;
        padding-right: 0;
    }
    .timeline-item.left .timeline-achievements li::before {
        content: '▹';
    }
    .timeline-item.left .timeline-achievements li::after {
        content: '';
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.35rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    .quick-stats {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-form-card {
        padding: 1.75rem;
    }
    .modal-content {
        width: 95%;
    }
    .modal-body {
        padding: 1.25rem;
    }
    .resume-preview-card {
        padding: 1.25rem;
    }
    .back-to-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 42px;
        height: 42px;
    }
}

/* ==========================================================================
   WEB3FORMS CONTACT FORM EXTRA STYLES
   ========================================================================== */
.required-star {
    color: #ef4444;
    font-weight: bold;
    margin-left: 2px;
}

.optional-tag {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: normal;
    margin-left: 4px;
}

.toast-message.toast-error {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.toast-message.toast-error .toast-icon {
    color: #ef4444;
}

.hidden {
    display: none !important;
}

