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

/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #0d0d2b;
    --bg-tertiary: #111133;
    --bg-card: rgba(20, 20, 50, 0.7);
    --bg-card-hover: rgba(30, 30, 70, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --text-muted: #6b6b8d;
    --accent-purple: #7c3aed;
    --accent-purple-light: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    --gradient-primary: linear-gradient(135deg, #7c3aed, #3b82f6);
    --gradient-primary-hover: linear-gradient(135deg, #6d28d9, #2563eb);
    --gradient-bg: linear-gradient(135deg, #0a0a1a 0%, #0d0d2b 50%, #111133 100%);
    --gradient-radial: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
    --border-color: rgba(124, 58, 237, 0.2);
    --border-glow: rgba(124, 58, 237, 0.5);
    --glass-bg: rgba(15, 15, 40, 0.6);
    --glass-bg-light: rgba(20, 20, 55, 0.5);
    --glass-border: rgba(124, 58, 237, 0.15);
    --shadow-purple: 0 0 20px rgba(124, 58, 237, 0.3);
    --shadow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 50px;
}

/* ===== LIGHT THEME VARIABLES ===== */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent-purple: #7c3aed;
    --accent-purple-light: #7c3aed;
    --accent-blue: #2563eb;
    --accent-indigo: #4f46e5;
    --gradient-primary: linear-gradient(135deg, #7c3aed, #2563eb);
    --gradient-primary-hover: linear-gradient(135deg, #6d28d9, #1d4ed8);
    --gradient-bg: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    --gradient-radial: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
    --border-color: rgba(124, 58, 237, 0.16);
    --border-glow: rgba(124, 58, 237, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-light: rgba(248, 250, 252, 0.9);
    --glass-border: rgba(124, 58, 237, 0.14);
    --shadow-purple: 0 4px 20px rgba(124, 58, 237, 0.15);
    --shadow-blue: 0 4px 20px rgba(37, 99, 235, 0.15);
    --shadow-card: 0 8px 30px rgba(15, 23, 42, 0.07);
}

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

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

body {
    font-family: var(--font-primary);
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(124, 58, 237, 0.4);
    color: #fff;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

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

.preloader-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

.preloader-bar {
    width: 120px;
    height: 3px;
    background: rgba(124, 58, 237, 0.2);
    border-radius: 3px;
    margin: 20px auto 0;
    overflow: hidden;
}

.preloader-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    animation: preloader-slide 1s ease-in-out infinite;
}

@keyframes preloader-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== UTILITY ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 42px 0;
    position: relative;
}

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

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-purple-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.25;
}

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

.section-description {
    color: var(--text-secondary);
    font-size: 0.98rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-purple-light);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.25);
    margin-top: 12px;
}

.view-all-link:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--accent-purple-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
    gap: 12px;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ===== GLASSMORPHISM CARD ===== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color);
    box-shadow: var(--shadow-purple);
    transform: translateY(-4px);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    background: var(--gradient-primary-hover);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.6);
    transform: translateY(-2px);
}

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

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

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ===== SUBPAGE BACK BUTTON ===== */
.subpage-back-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.25);
    color: var(--accent-purple-light);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-back:hover {
    background: rgba(124, 58, 237, 0.25);
    border-color: var(--accent-purple);
    color: #ffffff;
    transform: translateX(-4px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

[data-theme="light"] .btn-back {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.25);
    color: var(--accent-purple);
}

[data-theme="light"] .btn-back:hover {
    background: var(--accent-purple);
    color: #ffffff;
}

/* ===== BACKGROUND EFFECTS ===== */
.bg-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}

.bg-glow-purple {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
}

.bg-glow-blue {
    width: 350px;
    height: 350px;
    background: var(--accent-blue);
}

/* ===== PARTICLE CANVAS ===== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    max-width: 1400px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 1001;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo-badge {
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    flex-shrink: 0;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.nav-logo-custom-img {
    height: var(--logo-height-desktop, 38px);
    max-width: var(--logo-max-width, 200px);
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 6px 10px;
    position: relative;
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
    border-radius: var(--radius-sm);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.08);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 10px);
}

.nav-resume-btn {
    background: var(--gradient-primary);
    color: #fff;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.84rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    margin-left: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-resume-btn:hover {
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

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

.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--accent-purple-light);
    transform: rotate(15deg) scale(1.08);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

html[data-theme="light"] .theme-icon-moon {
    display: none;
}
html[data-theme="light"] .theme-icon-sun {
    display: inline-block;
    color: #f59e0b;
}
html:not([data-theme="light"]) .theme-icon-moon {
    display: inline-block;
    color: #c4b5fd;
}
html:not([data-theme="light"]) .theme-icon-sun {
    display: none;
}

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

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

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

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* ===== HERO SECTION ===== */
.hero {
    min-height: auto;
    padding-top: 140px;
    padding-bottom: 25px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@media (min-height: 850px) and (min-width: 992px) {
    .hero {
        min-height: calc(100vh - 130px);
        padding-top: 155px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-greeting {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: 6px;
    margin-bottom: 16px;
}

.hero-greeting .wave {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
    transform-origin: 70% 70%;
    font-size: 1.4rem;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(14deg); }
    30% { transform: rotate(-8deg); }
    40% { transform: rotate(14deg); }
    50% { transform: rotate(-4deg); }
    60% { transform: rotate(10deg); }
    70% { transform: rotate(0deg); }
}

.hero-name {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 10px;
}

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

.hero-role {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-purple-light);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-role .typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.3em;
    background: var(--accent-purple);
    animation: blink 1s step-end infinite;
}

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

.hero-tagline {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 520px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.hero-badge:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.1);
}

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

.hero-socials {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
    position: relative;
    z-index: 5;
}

.hero-socials a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.hero-socials a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-purple);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 0.8s ease;
}

.hero-image-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    border: 3px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-purple);
    border-radius: 30px;
    opacity: 0.3;
    z-index: 1;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 30px;
    opacity: 0.1;
    z-index: 0;
}

/* Floating elements */
.hero-float {
    position: absolute;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.hero-float-code {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--accent-purple-light);
}

.hero-float-1 {
    top: 20px;
    right: -30px;
    animation-delay: 0s;
}

.hero-float-2 {
    bottom: 60px;
    left: -40px;
    animation-delay: 2s;
}

.hero-float-3 {
    top: 50%;
    right: -50px;
    animation-delay: 4s;
}

.hero-float-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
}

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

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== STATS BAR ===== */
.stats-bar {
    padding: 10px 0 25px;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.stat-item {
    padding: 35px 20px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border-color);
}

.stat-item:hover {
    background: rgba(124, 58, 237, 0.05);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-purple-light);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 6px;
}

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

/* ===== ABOUT SECTION ===== */
.about {
    position: relative;
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

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

.about-text {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

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

.about-signature {
    font-family: 'Segoe Script', 'Dancing Script', cursive;
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 20px;
    display: inline-block;
}

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

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

.about-info-item:hover {
    border-color: var(--border-color);
    background: rgba(124, 58, 237, 0.05);
}

.about-info-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple-light);
    font-size: 1rem;
}

.about-info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.about-info-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image-wrapper {
    position: relative;
    width: 360px;
    height: 420px;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-color);
}

.about-image-decor {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 15px;
    left: 15px;
    border: 2px solid var(--accent-purple);
    border-radius: var(--radius-xl);
    opacity: 0.2;
    z-index: -1;
}

/* ===== SKILLS SECTION ===== */
.skills {
    position: relative;
}

.skills-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.skills-filter-btn {
    padding: 8px 22px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    background: var(--glass-bg);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.skills-filter-btn:hover,
.skills-filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    cursor: default;
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-purple);
    transform: translateY(-5px);
    box-shadow: var(--shadow-purple);
}

.skill-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.skill-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.skill-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== PROJECTS SECTION ===== */
.projects {
    position: relative;
}

.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.projects-filter-btn {
    padding: 8px 22px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    background: var(--glass-bg);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.projects-filter-btn:hover,
.projects-filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-6px);
    box-shadow: var(--shadow-purple);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(10, 10, 26, 0.8));
    opacity: 0;
    transition: var(--transition);
}

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

.project-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    color: var(--accent-purple-light);
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.project-tag {
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    color: var(--accent-blue);
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
}

.project-link-demo {
    background: var(--gradient-primary);
    color: #fff;
}

.project-link-demo:hover {
    box-shadow: var(--shadow-purple);
    transform: translateY(-2px);
}

.project-link-github {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.project-link-github:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.1);
}

/* ===== EXPERIENCE & EDUCATION ===== */
.experience,
.education,
.journey {
    position: relative;
}

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

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

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

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

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3);
    z-index: 1;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.timeline-card:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-purple);
    transform: translateX(5px);
}

.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    color: var(--accent-purple-light);
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-subtitle {
    font-size: 0.95rem;
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.timeline-grade {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    color: var(--accent-blue);
    font-weight: 500;
}

/* ===== CERTIFICATIONS ===== */
.certifications {
    position: relative;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cert-card:hover {
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-purple);
    transform: translateY(-4px);
}

.cert-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple-light);
    font-size: 1.3rem;
}

.cert-content {
    flex: 1;
}

.cert-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cert-issuer {
    font-size: 0.88rem;
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 4px;
}

.cert-date {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--accent-purple-light);
    font-weight: 500;
    transition: var(--transition);
}

.cert-link:hover {
    color: var(--accent-blue);
    gap: 8px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    position: relative;
}

.contact .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

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

.contact-info-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-info-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

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

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

.contact-detail-item:hover {
    border-color: var(--border-color);
    background: rgba(124, 58, 237, 0.05);
}

.contact-detail-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple-light);
    font-size: 1rem;
}

.contact-detail-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-detail-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

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

.contact-socials a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-socials a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-purple);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 36px;
    backdrop-filter: blur(20px);
}

.contact-form-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control,
.form-input,
.form-textarea {
    width: 100%;
    padding: 13px 18px;
    background: rgba(15, 15, 42, 0.7);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    box-sizing: border-box;
    display: block;
}

.form-control:focus,
.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent-purple-light);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
    background: rgba(22, 22, 58, 0.9);
}

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

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

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.form-submit:hover {
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.6);
    transform: translateY(-2px);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 16px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(59, 130, 246, 0.08));
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
}

.cta-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

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

/* ===== FOOTER ===== */
.footer {
    padding: 40px 0 20px;
    border-top: 1px solid var(--glass-border);
    background: rgba(5, 5, 15, 0.5);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-socials {
    display: flex;
    gap: 14px;
}

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

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

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-purple-light);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.footer-copyright a {
    color: var(--accent-purple-light);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-purple);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.6);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== PAGE HEADER (for sub-pages) ===== */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    background: var(--gradient-radial);
}

.page-header-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.page-header .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.page-header .breadcrumb a {
    color: var(--accent-purple-light);
    transition: var(--transition);
}

.page-header .breadcrumb a:hover {
    color: var(--text-primary);
}

/* ===== SEARCH BAR ===== */
.search-bar {
    max-width: 500px;
    margin: 0 auto 40px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
    .nav-menu { gap: 2px; }
    .nav-link { font-size: 0.82rem; padding: 5px 7px; }
    .nav-resume-btn { padding: 7px 14px; font-size: 0.8rem; }
    .nav-logo-text { font-size: 1.05rem; }
}

@media (max-width: 1200px) {
    .hero-name { font-size: 3.2rem; }
    .hero-image-wrapper { width: 340px; height: 340px; }
}

@media (max-width: 1024px) {
    /* Navigation off-canvas drawer for tablets, iPads, and smaller laptops */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 95px 28px 30px;
        gap: 16px;
        transition: var(--transition-slow);
        border-left: 1px solid var(--glass-border);
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
        z-index: 1000;
        overflow-y: auto;
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-link {
        font-size: 1rem;
        padding: 10px 16px;
        width: 100%;
        display: block;
        border-radius: var(--radius-md);
        border: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(124, 58, 237, 0.18);
        color: #fff;
    }

    .nav-resume-btn {
        margin-top: 12px;
        width: 100%;
        justify-content: center;
    }

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

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 0;
    }

    .hero-name { font-size: 2.8rem; }
    .hero-tagline { margin: 0 auto 24px; }
    .hero-badges { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .hero-socials { justify-content: center; }
    .hero-role { justify-content: center; }
    .hero-image-wrapper { width: 280px; height: 280px; }
    .hero-float { display: none; }

    /* About */
    .about .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual { order: -1; }
    .about-image-wrapper { width: 300px; height: 360px; }

    /* Stats */
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2)::after { display: none; }

    /* Contact */
    .contact .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title { font-size: 2rem; }
    .cta-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    .section { padding: 50px 0; }
    .section-header { margin-bottom: 26px; }

    /* Responsive Logo for Tablets and Mobile */
    .nav-logo-custom-img {
        height: var(--logo-height-mobile, 32px);
        max-width: 150px;
    }
    .nav-logo-text { font-size: 1.05rem; }
    .nav-logo-badge { width: 34px; height: 34px; font-size: 0.88rem; }

    .hero { min-height: auto; padding: 110px 0 50px; }
    .hero-name { font-size: 2.2rem; }
    .hero-role { font-size: 1.2rem; }

    .stats-bar { margin-top: 15px; }
    .stat-item { padding: 22px 14px; }
    .stat-number { font-size: 1.5rem; }

    .projects-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
    .certs-grid { grid-template-columns: 1fr; }

    .skills-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
    .skill-card { padding: 18px 12px; }

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

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

@media (max-width: 480px) {
    .section { padding: 40px 0; }
    .section-header { margin-bottom: 22px; }

    .nav-logo-custom-img {
        max-width: 125px;
    }
    .nav-logo-text { font-size: 0.95rem; }
    .nav-logo-badge { width: 30px; height: 30px; font-size: 0.8rem; }
}

@media (max-width: 576px) {
    html { font-size: 15px; }

    .container { padding: 0 16px; }

    .hero-name { font-size: 1.9rem; }
    .hero-badges { gap: 8px; }
    .hero-badge { padding: 4px 12px; font-size: 0.8rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-image-wrapper { width: 220px; height: 220px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); border-radius: var(--radius-lg); }
    .stat-item:nth-child(odd)::after { display: block; }
    .stat-item:nth-child(even)::after { display: none; }

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

    .timeline { padding-left: 30px; }
    .timeline-dot { left: -23px; }
    .timeline-card { padding: 18px; }

    .btn { padding: 10px 22px; font-size: 0.9rem; }

    .footer-links { gap: 16px; }

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

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* No results message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: block;
}

/* ===== LIGHT THEME COMPONENT STYLES ===== */
[data-theme="light"] body {
    color: #1e293b;
    background: #f8fafc;
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .nav-link {
    color: #475569;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .nav-toggle span {
    background: #0f172a;
}

[data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .hero-badge {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(124, 58, 237, 0.18);
    color: #475569;
}

[data-theme="light"] .hero-badge:hover {
    color: #7c3aed;
    background: #fff;
    border-color: #7c3aed;
}

[data-theme="light"] .hero-socials a {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(124, 58, 237, 0.18);
    color: #475569;
}

[data-theme="light"] .hero-socials a:hover {
    background: var(--gradient-primary);
    color: #ffffff;
}

[data-theme="light"] .hero-float-code {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(124, 58, 237, 0.2);
    color: #7c3aed;
}

[data-theme="light"] .stats-grid {
    background: #ffffff;
    border: 1px solid rgba(124, 58, 237, 0.15);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .glass-card,
[data-theme="light"] .project-card,
[data-theme="light"] .timeline-card,
[data-theme="light"] .education-card,
[data-theme="light"] .certification-card,
[data-theme="light"] .blog-card,
[data-theme="light"] .contact-info-card,
[data-theme="light"] .contact-form-wrapper,
[data-theme="light"] .about-info-item,
[data-theme="light"] .skill-card,
[data-theme="light"] .article-author-card,
[data-theme="light"] .comment-card {
    background: #ffffff;
    border: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .glass-card:hover,
[data-theme="light"] .project-card:hover,
[data-theme="light"] .blog-card:hover {
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.12);
}

[data-theme="light"] .form-control,
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
    border-color: #7c3aed;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

[data-theme="light"] .footer {
    background: #f1f5f9;
    border-top: 1px solid rgba(124, 58, 237, 0.12);
}

[data-theme="light"] .cta-banner {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(37, 99, 235, 0.08));
    border: 1px solid rgba(124, 58, 237, 0.2);
}

/* Light mode typography & high contrast rules */
[data-theme="light"] #particle-canvas {
    opacity: 0.25;
}

[data-theme="light"] .article-title,
[data-theme="light"] .page-header-title,
[data-theme="light"] .section-title,
[data-theme="light"] .hero-name {
    color: #0f172a !important;
}

[data-theme="light"] .article-body {
    color: #334155 !important;
}

[data-theme="light"] .article-body h1,
[data-theme="light"] .article-body h2,
[data-theme="light"] .article-body h3,
[data-theme="light"] .article-body h4 {
    color: #0f172a !important;
    border-bottom-color: rgba(124, 58, 237, 0.15);
}

[data-theme="light"] .article-body p,
[data-theme="light"] .article-body ul,
[data-theme="light"] .article-body ol,
[data-theme="light"] .article-body li {
    color: #334155 !important;
}

[data-theme="light"] .article-meta,
[data-theme="light"] .article-meta span {
    color: #64748b;
}

[data-theme="light"] .breadcrumb-nav {
    color: #64748b;
}

[data-theme="light"] .breadcrumb-nav a {
    color: #475569;
}

[data-theme="light"] .breadcrumb-nav a:hover {
    color: #7c3aed;
}

[data-theme="light"] .article-author-card {
    background: #ffffff;
    border: 1px solid rgba(124, 58, 237, 0.15);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .author-info h4 {
    color: #0f172a !important;
}

[data-theme="light"] .author-info p {
    color: #475569 !important;
}

[data-theme="light"] .share-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #1e293b !important;
}

[data-theme="light"] .share-btn:hover {
    background: #7c3aed;
    color: #ffffff !important;
    border-color: #7c3aed;
}

[data-theme="light"] .code-block-wrapper {
    background: #0f172a;
    border: 1px solid #334155;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .code-block-header {
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .inline-code {
    background: rgba(124, 58, 237, 0.1);
    color: #6d28d9;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .article-tag {
    background: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .article-badge {
    background: rgba(124, 58, 237, 0.1);
    color: #6d28d9;
    border: 1px solid rgba(124, 58, 237, 0.25);
}

[data-theme="light"] .comments-title,
[data-theme="light"] .comment-form-title,
[data-theme="light"] .comment-author-name {
    color: #0f172a !important;
}

[data-theme="light"] .comment-text {
    color: #334155 !important;
}

[data-theme="light"] .comment-date,
[data-theme="light"] .comment-form-subtitle {
    color: #64748b !important;
}

/* ===== BLOG COMMENTS SECTION ===== */
.article-comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.comments-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-badge {
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid var(--border-color);
    color: var(--accent-purple-light);
    font-size: 0.85rem;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 45px;
}

.comment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    gap: 18px;
    transition: var(--transition);
}

.comment-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.comment-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.3);
}

.comment-content {
    flex: 1;
}

.comment-author-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    word-break: break-word;
}

.comment-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.comment-form-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.comment-form-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

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

.comment-form-wrapper .form-control {
    width: 100%;
    padding: 13px 18px;
    background: rgba(10, 10, 30, 0.6);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: var(--transition);
    outline: none;
    box-sizing: border-box;
    display: block;
}

.comment-form-wrapper .form-control:focus {
    border-color: var(--accent-purple-light);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
    background: rgba(18, 18, 48, 0.85);
}

.comment-form-wrapper textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

[data-theme="light"] .comment-form-wrapper .form-control {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .comment-form-wrapper .form-control:focus {
    border-color: #7c3aed;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18);
}

@media (max-width: 640px) {
    .comment-form-grid {
        grid-template-columns: 1fr;
    }
    .comment-card {
        padding: 16px;
        gap: 12px;
    }
    .comment-form-wrapper {
        padding: 22px 16px;
    }
}
