@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   CSS CUSTOM VARIABLES & COLOR SYSTEM
   ========================================== */
:root {
    /* Fonts */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transition Rules */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout Constants */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
}

/* Theme 1: Obsidian Dark Mode (Default) */
[data-theme="dark"] {
    --bg-primary: #080c14;
    --bg-secondary: #0d1321;
    --bg-tertiary: #131c31;
    --bg-glass: rgba(13, 19, 33, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.15);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --accent-primary: #6366f1; /* Indigo */
    --accent-primary-rgb: 99, 102, 241;
    --accent-secondary: #06b6d4; /* Cyan */
    --accent-secondary-rgb: 6, 182, 212;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --accent-glow: 0 0 25px rgba(99, 102, 241, 0.3);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    
    --scroll-bar: #1e293b;
    --scroll-bar-hover: #334155;
}

/* Theme 2: Premium Snow Light Mode */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0, 0, 0, 0.06);
    --border-glow: rgba(59, 130, 246, 0.1);
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-primary: #3b82f6; /* Premium Blue */
    --accent-primary-rgb: 59, 130, 246;
    --accent-secondary: #0d9488; /* Teal */
    --accent-secondary-rgb: 13, 148, 136;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #0d9488 100%);
    --accent-glow: 0 0 25px rgba(59, 130, 246, 0.2);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --scroll-bar: #cbd5e1;
    --scroll-bar-hover: #94a3b8;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

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-normal), color var(--transition-normal);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--scroll-bar);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--scroll-bar-hover);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

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

ul {
    list-style: none;
}

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

/* ==========================================
   BACKGROUND & MESH GRADIENTS (WOW DESIGN)
   ========================================== */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.mesh-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.12) 0%, rgba(var(--accent-secondary-rgb), 0.05) 50%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

.mesh-glow-1 {
    top: -10%;
    right: -10%;
    animation: floatingBlob 25s infinite alternate ease-in-out;
}

.mesh-glow-2 {
    bottom: -10%;
    left: -10%;
    animation: floatingBlob 30s infinite alternate-reverse ease-in-out;
}

@keyframes floatingBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, -50px) scale(1.1); }
    100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* ==========================================
   REUSABLE UTILITIES & REVEAL CLASSES
   ========================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0 60px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title h2 {
    font-size: 2.75rem;
    font-weight: 800;
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
}

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

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: var(--accent-gradient);
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 16px auto 0 auto;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--border-radius-md);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), var(--border-glow);
}

/* Glowing Accent Border */
.glow-card {
    position: relative;
    overflow: hidden;
}
.glow-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--accent-primary), transparent, var(--accent-secondary), transparent);
    animation: rotateGlow 8s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.glow-card:hover::before {
    opacity: 0.5;
}
.glow-card-content {
    background: var(--bg-secondary);
    margin: 1px;
    height: calc(100% - 2px);
    width: calc(100% - 2px);
    border-radius: inherit;
}

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

/* Scroll reveals */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    gap: 8px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--accent-primary-rgb), 0.45);
    background: linear-gradient(135deg, #7477f8 0%, #0cc6e7 100%);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

/* Custom Cursor (Optional WOW element) */
.custom-cursor {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s;
    display: none;
}
.custom-cursor-glow {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--accent-secondary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, transform 0.1s ease-out;
    display: none;
}

@media (min-width: 992px) {
    .custom-cursor, .custom-cursor-glow {
        display: block;
    }
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: padding var(--transition-normal), background var(--transition-normal);
    padding: 24px 0;
}

.header.scrolled {
    padding: 14px 0;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    font-weight: 300;
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
}

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

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

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

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

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: all var(--transition-normal);
}

.theme-toggle-btn:hover {
    border-color: var(--accent-primary);
    background-color: var(--bg-tertiary);
    transform: rotate(15deg);
}

.theme-toggle-btn .fa-sun {
    display: none;
}
[data-theme="light"] .theme-toggle-btn .fa-moon {
    display: none;
}
[data-theme="light"] .theme-toggle-btn .fa-sun {
    display: block;
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: left var(--transition-normal);
        z-index: 999;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        font-size: 1.25rem;
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: inline-block;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-content h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    white-space: nowrap;
}

.hero-content .typing-text-wrapper {
    font-size: 1.75rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 500;
    height: 40px;
}

.hero-content .typing-cursor {
    display: inline-block;
    width: 2px;
    background-color: var(--accent-secondary);
    margin-left: 4px;
    animation: blinkCursor 0.8s infinite;
}

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

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Hero Portrait Frame (WOW styling) */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
}

@keyframes imageFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 15px 35px rgba(var(--accent-primary-rgb), 0.2);
    }
    50% {
        transform: translateY(-15px);
        box-shadow: 0 25px 45px rgba(var(--accent-primary-rgb), 0.4);
    }
}

@keyframes borderGlowPulse {
    0%, 100% {
        filter: blur(12px) brightness(1);
        opacity: 0.7;
    }
    50% {
        filter: blur(18px) brightness(1.35);
        opacity: 0.95;
    }
}

.hero-image-box {
    position: relative;
    width: 320px;
    height: 380px;
    border-radius: var(--border-radius-xl);
    z-index: 10;
    cursor: pointer;
    perspective: 1000px;
    animation: imageFloat 6s ease-in-out infinite;
}

.hero-image-box::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: var(--accent-gradient);
    border-radius: calc(var(--border-radius-xl) + 4px);
    z-index: -1;
    filter: blur(12px);
    opacity: 0.7;
    transition: opacity var(--transition-normal);
    animation: borderGlowPulse 4s ease-in-out infinite;
}

.hero-image-box:hover::before {
    opacity: 1;
}

.hero-image-inner {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    position: relative;
    border: none;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-secondary);
    transition: transform var(--transition-fast) ease-out;
    transform-style: preserve-3d;
}

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

.hero-image-box:hover .hero-image-inner img {
    transform: scale(1.05);
}

/* Floating tech badges near hero image */
.badge-floating {
    position: absolute;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 12;
    animation: floatBadge 6s infinite ease-in-out;
}

.badge-floating i {
    font-size: 1.1rem;
}

.badge-1 {
    top: 15%;
    left: -40px;
    color: #f05340; /* Laravel Orange */
}

.badge-2 {
    bottom: 20%;
    right: -30px;
    color: #61dafb; /* React Cyan */
    animation-delay: 2s;
}

.badge-3 {
    bottom: -15px;
    left: 20px;
    color: #3178c6; /* TS Blue */
    animation-delay: 4s;
}

.badge-4 {
    top: -15px;
    right: 20px;
    color: #68a063; /* Node Green */
    animation-delay: 1s;
}

.badge-5 {
    bottom: 18%;
    left: -50px;
    color: #47a248; /* MongoDB Green */
    animation-delay: 3s;
}

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

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
        padding-bottom: 40px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-content h1 span {
        white-space: nowrap;
    }
    
    .hero-content p {
        margin: 0 auto 32px auto;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        margin-top: 20px;
        justify-content: center;
    }

    .hero-image-box {
        width: min(100%, 320px);
        max-width: 320px;
        height: auto;
        margin: 0 auto;
    }

    .hero-image-inner {
        min-height: 320px;
    }

    .badge-floating {
        display: none;
    }

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

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

    .about-text {
        padding: 32px 24px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .timeline-wrapper::before {
        left: 16px;
    }

    .timeline-item {
        padding-left: 48px;
    }

    .timeline-dot {
        left: 0;
    }

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

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem !important;
    }

    .hero-content .typing-text-wrapper {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .hero-btns {
        gap: 12px;
    }

    .hero-image-box {
        width: min(100%, 280px);
    }

    .hero-image-inner {
        min-height: 280px;
    }

    .skills-grid {
        gap: 24px;
    }

    .skill-category {
        padding: 30px 22px;
    }

    .projects-grid {
        gap: 24px;
    }

    .timeline-wrapper {
        padding-left: 0;
    }

    .timeline-item {
        padding-left: 28px;
        margin-bottom: 40px;
    }

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

    .timeline-dot {
        width: 18px;
        height: 18px;
        left: 4px;
    }

    .timeline-content {
        padding: 20px;
    }

    .contact-grid {
        gap: 32px;
    }

    .contact-info-cards {
        gap: 18px;
    }

    .contact-form {
        padding: 32px 20px;
    }

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

    .footer {
        padding: 30px 0;
    }

    .modal-content {
        padding: 24px 18px;
    }

    .modal-close-btn {
        top: 16px;
        right: 16px;
    }
}

@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.8rem !important;
    }
}

/* ==========================================
   ABOUT / PROFILE & STATS
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: center;
}

.about-text {
    min-width: 0;
    padding: 40px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
    min-width: 0;
}

.info-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.info-item span:first-child {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.info-item span:last-child {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

/* Counter boxes */
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat-card {
    padding: 32px 24px;
    text-align: center;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-card p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   SKILLS & EXPERTISE
   ========================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    min-width: 0;
}

.skill-category {
    padding: 40px 32px;
    height: 100%;
    min-width: 0;
}

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

.skill-header i {
    font-size: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-category-backend .skill-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    min-width: 0;
}

.skill-badge {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-wrap: anywhere;
    transition: all var(--transition-fast);
}

.skill-badge:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.15);
    background-color: var(--bg-secondary);
}

@media (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

/* ==========================================
   PROJECTS GRID WITH FILTERS
   ========================================== */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 50px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    perspective: 1200px;
}

.project-card {
    min-width: 0;
    min-height: 420px;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border-radius: var(--border-radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    transform-style: preserve-3d;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

/* Animation for filter switching */
.project-card.hide {
    display: none;
}

.project-card.fade-in {
    animation: scaleCardIn 0.4s forwards ease-out;
}

@keyframes scaleCardIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.project-card:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.4);
    box-shadow: 0 30px 60px rgba(var(--accent-primary-rgb), 0.18), var(--border-glow);
    /* Clean dynamic zoom & elevate effect (no rotation) */
    transform: translateY(-12px) scale(1.04);
}

.project-header-decor {
    height: 8px;
    background: var(--accent-gradient);
    width: 100%;
}

.project-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.project-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 1px;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.project-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    max-width: 100%;
    overflow-wrap: anywhere;
}

.project-link-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-secondary);
    cursor: pointer;
    align-self: flex-start;
    margin-top: auto;
    transition: color var(--transition-fast);
}

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

.project-link-btn i {
    transition: transform var(--transition-fast);
}

.project-link-btn:hover i {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

@media (max-width: 576px) {
    .project-card {
        min-height: 360px;
    }

    .project-body {
        padding: 24px;
    }

    .project-desc {
        -webkit-line-clamp: 4;
    }

    .project-tags {
        gap: 6px;
    }

    .project-tag {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* ==========================================
   EXPERIENCE TIMELINE
   ========================================== */
.timeline-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 31px;
    width: 3px;
    height: 100%;
    background: var(--border-color);
    z-index: 1;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 60px;
    z-index: 2;
}

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

.timeline-dot {
    position: absolute;
    left: 20px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 4px solid var(--accent-primary);
    z-index: 3;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.timeline-content {
    padding: 32px;
}

.timeline-date {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(var(--accent-primary-rgb), 0.1);
    color: var(--accent-primary);
    margin-bottom: 16px;
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.timeline-content ul {
    list-style-type: none;
}

.timeline-content li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-weight: bold;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    grid-column: 1 / -1;
}

.contact-info-card {
    min-height: 160px;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(var(--accent-primary-rgb), 0.08);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-details p,
.contact-details a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

/* Social link bar */
.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    grid-column: 1 / -1;
}

.social-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--border-radius-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.social-icon:hover {
    color: #ffffff;
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.3);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-info-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 22px 18px;
    }

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

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    background-color: var(--bg-primary);
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    display: inline-block;
}

/* ==========================================
   WOW INTERACTIVE MODAL DIALOGS
   ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(4, 6, 12, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 100%;
    max-width: 820px;
    max-height: 88vh;
    max-height: 88dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 20px;
    position: relative;
    min-width: 0;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
    z-index: 2001;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close-btn:hover {
    background-color: var(--bg-primary);
    border-color: var(--accent-primary);
    transform: rotate(90deg);
}

.modal-banner {
    height: 12px;
    background: var(--accent-gradient);
    width: 100%;
}

.modal-content {
    padding: 38px 48px 44px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.modal-category {
    display: inline-flex;
    max-width: calc(100% - 52px);
    padding: 7px 11px;
    border: 1px solid rgba(var(--accent-primary-rgb), 0.25);
    border-radius: 6px;
    background: rgba(var(--accent-primary-rgb), 0.1);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 1px;
    line-height: 1.45;
    margin-bottom: 16px;
    overflow-wrap: anywhere;
}

.modal-content h3 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 30px;
    padding-right: 30px;
    overflow-wrap: anywhere;
}

.modal-section {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-bottom: 22px;
}

.modal-section h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-secondary);
}

.modal-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.architecture-stack {
    margin-top: 12px;
    gap: 8px;
}

.architecture-tech {
    margin: 0;
    background: rgba(var(--accent-primary-rgb), 0.1);
    border-color: rgba(var(--accent-primary-rgb), 0.25);
    color: var(--accent-primary);
    font-size: 0.8rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.modal-bullets {
    list-style-type: none;
    margin-bottom: 16px;
}

.modal-bullets li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.modal-bullets li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

@media (max-width: 576px) {
    .modal-overlay {
        padding: 14px;
    }

    .modal-container {
        max-height: 90vh;
        max-height: 90dvh;
        border-radius: 18px;
    }

    .modal-content {
        padding: 28px 22px 30px;
    }

    .modal-category {
        max-width: calc(100% - 48px);
        font-size: 0.72rem;
    }

    .modal-content h3 {
        font-size: 1.5rem;
        padding-right: 12px;
        margin-bottom: 24px;
    }

    .modal-close-btn {
        width: 38px;
        height: 38px;
        top: 12px;
        right: 12px;
    }
}

/* ==========================================
   11. PREMIUM COHESIVE CARD HOVER ELEVATIONS & ZOOMS
   ========================================== */
.about-stats, .skills-grid, .timeline-wrapper, .contact-grid {
    perspective: 1000px;
}

.stat-card, .skill-category, .contact-info-card, .timeline-content {
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
}

.stat-card:hover, .skill-category:hover, .contact-info-card:hover, .timeline-content:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.35);
    box-shadow: 0 20px 40px rgba(var(--accent-primary-rgb), 0.15), var(--border-glow);
    /* Clean dynamic zoom & elevate effect (no rotation) */
    transform: translateY(-8px) scale(1.02);
}
