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

/* ===== RESET & ROOT ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

/* Fix for Boxicons font override */
.bx,
.bx::before,
.bx::after {
    font-family: 'boxicons' !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #0b1120;
    --second-bg-color: #111827;
    --card-bg: rgba(17, 24, 39, 0.85);
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --main-color: #10b981;
    --main-glow: rgba(16, 185, 129, 0.3);
    --accent2: #34d399;
    --border-glass: rgba(16, 185, 129, 0.18);
    --gradient-hero: linear-gradient(135deg, #0b1120 0%, #0f2027 40%, #0b1120 100%);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 5rem;
}

/* ===== PAGE FADE-IN ===== */
body {
    animation: pageFadeIn 0.5s ease forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== HEADINGS ===== */
.heading {
    font-size: 4.8rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.heading span {
    color: var(--main-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.6rem;
    color: var(--text-muted);
    margin-bottom: 5rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(11, 17, 32, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.header.sticky {
    border-bottom-color: var(--border-glass);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 2.6rem;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: 1px;
}

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

.navbar a {
    font-size: 1.6rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 3.5rem;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    border-bottom-color: var(--main-color);
}


/* ===== HAMBURGER MENU BUTTON ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--border-glass);
    border-radius: 10px;
    cursor: pointer;
    padding: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hamburger:hover {
    border-color: var(--main-color);
    box-shadow: 0 0 12px var(--main-glow);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    border-radius: 4px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Active / Open state: 3 bars → ✕ */
.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--main-color);
}

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

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--main-color);
}

/* ===== FLOATING BACK-TO-TOP ===== */
#back-to-top {
    position: fixed;
    bottom: 2.8rem;
    right: 2.8rem;
    z-index: 999;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--main-color);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--main-glow), 0 0 0 0 var(--main-glow);
    opacity: 0;
    transform: translateY(20px) scale(0.85);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#back-to-top:hover {
    background: var(--text-color);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.2), 0 6px 30px var(--main-glow);
    transform: translateY(-4px) scale(1.1);
}

/* ===== SHARE TOAST NOTIFICATION ===== */
#share-toast {
    position: fixed;
    bottom: 8rem;
    right: 2.4rem;
    left: auto;
    z-index: 1001;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid var(--main-color);
    color: var(--text-color);
    padding: 1.2rem 2.4rem;
    border-radius: 4rem;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(16, 185, 129, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    max-width: 90vw;
}

#share-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 15px var(--main-glow);
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: 0.4s ease;
}

.btn:hover {
    box-shadow: 0 0 30px var(--main-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--main-glow);
}

.btn-sm {
    padding: 0.8rem 2rem;
    font-size: 1.4rem;
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 1.6rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 8px 40px rgba(16, 185, 129, 0.15);
}

/* ===== SOCIAL ICONS ===== */
.social-media {
    display: flex;
    gap: 1.2rem;
    margin: 2.5rem 0;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.2rem;
    height: 4.2rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    transition: 0.4s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--main-glow);
    transform: scale(1.1);
}

/* Ensure icons are centered and visible */
.social-media a i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================
   HOME PAGE
   =========================== */
/* Hero */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 12rem 9% 5rem;
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 60rem;
    height: 60rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    top: -10rem;
    right: -10rem;
    pointer-events: none;
}

.hero-content {
    max-width: 58rem;
}

.hero-content h3 {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.hero-content h3:nth-of-type(2) {
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 5.6rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #e2e8f0 40%, var(--main-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.7rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.typing-text {
    color: var(--main-color);
    -webkit-text-fill-color: var(--main-color);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Robot Container & Animation */
.robot-container {
    position: relative;
    width: 340px;
    height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: floatRobot 4s ease-in-out infinite;
    perspective: 1200px;
}

@keyframes floatRobot {

    0%,
    100% {
        transform: translateY(0) rotate(0) scale(1);
    }

    50% {
        transform: translateY(-30px) rotate(1.5deg) scale(1.02);
    }
}

/* Antenna with Pulsing Glow */
.robot-antenna {
    width: 6px;
    height: 40px;
    background: linear-gradient(to bottom, #d1d5db, #9ca3af);
    margin-bottom: -5px;
    position: relative;
    z-index: 1;
    border-radius: 4px;
}

.antenna-tip {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--main-color), 0 0 30px var(--main-glow);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        filter: brightness(1) scale(1);
        box-shadow: 0 0 15px var(--main-color);
    }

    50% {
        filter: brightness(1.5) scale(1.2);
        box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-glow);
    }
}

/* Robot Head Wrapper */
.robot-head {
    position: relative;
    width: 220px;
    height: 240px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 50%, #d1d5db 100%);
    border-radius: 90px 90px 70px 70px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 -15px 30px rgba(0, 0, 0, 0.15),
        inset 0 15px 30px rgba(255, 255, 255, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: transform 0.1s ease-out;
}

/* Panel Lines */
.robot-head::before {
    content: '';
    position: absolute;
    top: 50px;
    left: -12px;
    width: 35px;
    height: 70px;
    background: linear-gradient(135deg, var(--main-color), var(--accent2));
    border-radius: 12px;
    box-shadow: 0 0 25px var(--main-glow), inset 0 0 10px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.robot-head::after {
    content: '';
    position: absolute;
    top: 50px;
    right: -12px;
    width: 35px;
    height: 70px;
    background: linear-gradient(135deg, var(--main-color), var(--accent2));
    border-radius: 12px;
    box-shadow: 0 0 25px var(--main-glow), inset 0 0 10px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

/* Glass Visor / Face Area */
.robot-face {
    position: relative;
    width: 180px;
    height: 110px;
    background: radial-gradient(circle at 50% 30%, #1e293b 0%, #0f172a 100%);
    border-radius: 45px;
    box-shadow:
        inset 0 0 30px rgba(16, 185, 129, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid rgba(16, 185, 129, 0.5);
    z-index: 4;
}

/* Visor Reflection */
.robot-face::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 10%;
    width: 80%;
    height: 20%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), transparent);
    border-radius: 50% / 100% 100% 0 0;
    pointer-events: none;
}

/* Interactive Eyes */
.eyes {
    display: flex;
    gap: 40px;
}

.eye {
    position: relative;
    width: 42px;
    height: 42px;
    background: #000;
    border-radius: 50%;
    border: 3px solid var(--main-color);
    box-shadow: 0 0 20px var(--main-glow), inset 0 0 10px rgba(16, 185, 129, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pupil {
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--main-color), 0 0 5px #fff inset;
    filter: drop-shadow(0 0 2px #fff);
    transition: transform 0.08s ease-out;
}

/* Robot Neck Ring */
.robot-neck {
    width: 140px;
    height: 25px;
    background: linear-gradient(to right, #9ca3af, #f3f4f6, #9ca3af);
    margin-top: -15px;
    border-radius: 10px;
    z-index: 2;
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Robot Base / Shoulders */
.robot-base {
    width: 260px;
    height: 60px;
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    border-radius: 40px 40px 20px 20px;
    margin-top: -10px;
    z-index: 1;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 10px 20px rgba(255, 255, 255, 0.6);
    position: relative;
}

/* Stats Bar */
.stats-bar {
    padding: 3rem 9%;
    background: var(--second-bg-color);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
}

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

.stat-item h3 {
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--main-color);
}

.stat-item p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Skills Teaser (Home) */
.skills {
    background: var(--bg-color);
    padding: 10rem 9% 5rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 2.5rem;
}

.skill-card {
    padding: 3.5rem 2.5rem;
    border-radius: 1.6rem;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: 0.4s ease;
}

.skill-card:hover {
    border-color: var(--main-color);
    transform: translateY(-6px);
    box-shadow: 0 8px 30px var(--main-glow);
}

.skill-card i {
    font-size: 6rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    display: block;
}

.skill-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.skill-card p {
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* Experience Teaser (Home) */
.experience {
    background: var(--second-bg-color);
}

.experience-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 2.5rem;
}

.experience-box {
    padding: 3rem 2.5rem;
    border-radius: 1.6rem;
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: 0.4s ease;
}

.experience-box:hover {
    border-color: var(--main-color);
    transform: translateY(-6px);
    box-shadow: 0 8px 30px var(--main-glow);
}

.experience-box .exp-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.experience-box .exp-icon i {
    font-size: 2.4rem;
    color: var(--main-color);
}

.experience-box h3 {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 0.8rem;
}

.experience-box p {
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===========================
   ABOUT PAGE
   =========================== */
.about-hero {
    display: flex;
    align-items: center;
    gap: 6rem;
    min-height: 100vh;
    padding: 12rem 9% 5rem;
    background: var(--gradient-hero);
}

.about-img-wrapper {
    position: relative;
    flex-shrink: 0;
    text-align: center;
}

.about-img-wrapper img {
    width: 36rem;
    height: 36rem;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--main-color);
    box-shadow: 0 0 50px var(--main-glow);
    animation: floatImage 4s ease-in-out infinite;
}

.about-img-wrapper .badge {
    position: absolute;
    bottom: 2rem;
    right: -1rem;
    background: var(--main-color);
    color: var(--bg-color);
    font-size: 1.4rem;
    font-weight: 700;
    padding: 0.8rem 1.6rem;
    border-radius: 3rem;
    box-shadow: 0 4px 20px var(--main-glow);
}

.about-hero-content h2 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #e2e8f0 40%, var(--main-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.about-hero-content h3 {
    font-size: 2.2rem;
    color: var(--main-color);
    margin-bottom: 2rem;
}

.about-hero-content p {
    font-size: 1.65rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Timeline */
.timeline {
    padding: 8rem 9%;
    background: var(--second-bg-color);
}

.timeline-list {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--main-color), transparent);
}

.timeline-item {
    display: flex;
    gap: 3rem;
    padding: 0 0 4rem 6rem;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: 0.65rem;
    top: 0.4rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--main-color);
    box-shadow: 0 0 12px var(--main-glow);
    flex-shrink: 0;
}

.timeline-content {
    padding: 2.5rem;
    border-radius: 1.4rem;
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    width: 100%;
    transition: 0.4s ease;
}

.timeline-content:hover {
    border-color: var(--main-color);
    box-shadow: 0 4px 24px var(--main-glow);
}

.timeline-date {
    font-size: 1.3rem;
    color: var(--main-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
}

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

/* Skill Bars */
.skills-detailed {
    padding: 8rem 9%;
    background: var(--bg-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(38rem, 1fr));
    gap: 4rem;
}

.skill-group h3 {
    font-size: 2.2rem;
    color: var(--main-color);
    margin-bottom: 2.5rem;
}

.skill-bar-item {
    margin-bottom: 2.2rem;
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
    font-weight: 500;
}

.skill-bar-track {
    width: 100%;
    height: 0.8rem;
    background: #1e293b;
    border-radius: 1rem;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 1rem;
    background: linear-gradient(90deg, var(--main-color), var(--accent2));
    box-shadow: 0 0 10px var(--main-glow);
    width: 0;
    transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Certifications */
.certs {
    padding: 8rem 9%;
    background: var(--second-bg-color);
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
    gap: 2.5rem;
}

.cert-card {
    padding: 2.8rem 2.5rem;
    border-radius: 1.4rem;
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    text-align: center;
    transition: 0.4s ease;
}

.cert-card:hover {
    border-color: var(--main-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--main-glow);
}

.cert-card i {
    font-size: 4rem;
    color: var(--main-color);
    margin-bottom: 1.2rem;
    display: block;
}

.cert-card h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.cert-card p {
    font-size: 1.4rem;
    color: var(--text-muted);
}

/* ===========================
   PROJECTS PAGE
   =========================== */
.projects-page {
    background: var(--bg-color);
    padding: 12rem 9% 8rem;
    min-height: 100vh;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 5rem;
}

.filter-btn {
    padding: 0.9rem 2.2rem;
    border-radius: 3rem;
    font-size: 1.5rem;
    font-weight: 500;
    background: var(--card-bg);
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--main-color);
    color: var(--bg-color);
    border-color: var(--main-color);
    box-shadow: 0 0 20px var(--main-glow);
}

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

.project-card {
    border-radius: 1.6rem;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.15);
}

.project-card.hidden {
    display: none;
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 20rem;
}

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

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

.project-img .project-tag {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    background: var(--main-color);
    color: var(--bg-color);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
}

.project-info {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-info h4 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-info p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    line-height: 1.6;
    flex: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.8rem;
}

.tech-tag {
    font-size: 1.2rem;
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--main-color);
}

.project-links {
    display: flex;
    gap: 1rem;
}

/* ===========================
   BLOG PAGE
   =========================== */
.blog-page {
    background: var(--bg-color);
    padding: 12rem 9% 8rem;
    min-height: 100vh;
}

.blog-search-wrap {
    max-width: 60rem;
    margin: 0 auto 5rem;
    position: relative;
}

.blog-search-wrap i {
    position: absolute;
    left: 1.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--text-muted);
}

#blog-search {
    width: 100%;
    padding: 1.4rem 1.8rem 1.4rem 5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--text-color);
    transition: 0.3s;
}

#blog-search:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 20px var(--main-glow);
}

#blog-search::placeholder {
    color: var(--text-muted);
}

.featured-post {
    border-radius: 2rem;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    display: flex;
    gap: 0;
    margin-bottom: 5rem;
    transition: 0.4s ease;
}

.featured-post:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.12);
}

.featured-img {
    width: 45%;
    flex-shrink: 0;
    overflow: hidden;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.featured-post:hover .featured-img img {
    transform: scale(1.05);
}

.featured-info {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-tag {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--main-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
    margin-bottom: 1.5rem;
    width: fit-content;
}

.featured-info h2 {
    font-size: 3rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.featured-info p {
    font-size: 1.6rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    flex: 1;
}

.blog-meta {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.blog-meta span {
    margin-right: 1.5rem;
}

.blog-meta i {
    margin-right: 0.4rem;
    color: var(--main-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(32rem, 1fr));
    gap: 3rem;
}

.blog-card {
    border-radius: 1.6rem;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.12);
}

.blog-card.hidden {
    display: none;
}

.blog-card-img {
    height: 18rem;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

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

.blog-card-info {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-info h3 {
    font-size: 1.9rem;
    margin: 1rem 0;
    line-height: 1.4;
}

.blog-card-info p {
    font-size: 1.4rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 2rem;
}

.read-more {
    font-size: 1.4rem;
    color: var(--main-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.read-more:hover {
    letter-spacing: 0.5px;
}

/* ===========================
   CONTACT PAGE
   =========================== */
.contact-page {
    padding: 12rem 9% 8rem;
    background: var(--bg-color);
    min-height: 100vh;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.6rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 3rem;
}

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

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.5rem;
    border-radius: 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    transition: 0.4s ease;
    text-decoration: none;
}

.contact-info-card:hover {
    border-color: var(--main-color);
    box-shadow: 0 4px 24px var(--main-glow);
}

.contact-info-card .icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-card .icon i {
    font-size: 2.2rem;
    color: var(--main-color);
}



.contact-info-card .details span {
    display: block;
    font-size: 1.3rem;
    color: var(--text-muted);
}

.contact-info-card .details a,
.contact-info-card .details p {
    font-size: 1.6rem;
    color: var(--text-color);
    font-weight: 500;
}

.contact-info-card .details a:hover {
    color: var(--main-color);
}

.contact-form-card {
    padding: 4rem;
    border-radius: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
}

.contact-form-card h3 {
    font-size: 2.6rem;
    margin-bottom: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
}

.form-group label {
    font-size: 1.4rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1.4rem 1.8rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 14rem;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ff6b6b;
}

.error-msg {
    font-size: 1.3rem;
    color: #ff6b6b;
    display: none;
}

.error-msg.show {
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--second-bg-color);
    border-top: 1px solid var(--border-glass);
    padding: 4rem 9% 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-bottom: 1.8rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col ul li a {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--main-color);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.footer-bottom a {
    color: var(--main-color);
}

.footer-back-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: 0.3s;
}

.footer-back-top:hover {
    color: var(--main-color);
}

.footer-back-top i {
    font-size: 2rem;
}

/* ===========================
   BLOG CATEGORY FILTER
   =========================== */
.blog-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.blog-filter-btn {
    padding: 0.7rem 1.8rem;
    border-radius: 3rem;
    font-size: 1.4rem;
    font-weight: 500;
    background: var(--card-bg);
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: 0.3s ease;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
    background: var(--main-color);
    color: var(--bg-color);
    border-color: var(--main-color);
    box-shadow: 0 0 16px var(--main-glow);
}

/* ===========================
   ARTICLE PAGE
   =========================== */
.article-page {
    padding: 11rem 9% 8rem;
    min-height: 100vh;
    background: var(--bg-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
}

.breadcrumb a {
    color: var(--main-color);
    transition: 0.3s;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

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

.article-layout {
    display: grid;
    grid-template-columns: 1fr 30rem;
    gap: 5rem;
    align-items: start;
}

.article-main {
    min-width: 0;
}

.article-header {
    margin-bottom: 3.5rem;
}

.article-category-tag {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    background: rgba(16, 185, 129, 0.12);
    color: var(--main-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
    margin-bottom: 1.5rem;
}

.article-header h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.8rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #e2e8f0 40%, var(--main-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 1.4rem;
    color: var(--text-muted);
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.article-meta-bar span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta-bar i {
    color: var(--main-color);
}

.article-cover {
    width: 100%;
    height: 38rem;
    object-fit: cover;
    border-radius: 1.6rem;
    margin-bottom: 4rem;
    border: 1px solid var(--border-glass);
}

.article-body {
    font-size: 1.7rem;
    color: #94a3b8;
    line-height: 1.95;
    letter-spacing: 0.01em;
}

.article-body h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 4.5rem 0 1.8rem;
    padding: 0.6rem 0 0.6rem 1.6rem;
    border-left: 4px solid var(--main-color);
    border-radius: 0 0.4rem 0.4rem 0;
    background: rgba(16, 185, 129, 0.03);
    letter-spacing: -0.01em;
}

.article-body h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 3rem 0 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.article-body h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--main-color);
    flex-shrink: 0;
}

.article-body p {
    margin-bottom: 2rem;
}

.article-body ul,
.article-body ol {
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.article-body li {
    margin-bottom: 0.8rem;
}

.article-body strong {
    color: var(--text-color);
    font-weight: 600;
}

.article-body code {
    display: inline-block;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.5rem;
    padding: 0.2rem 0.8rem;
    font-size: 1.45rem;
    font-family: 'Courier New', monospace;
    color: var(--main-color);
}

.article-body pre {
    background: rgba(5, 18, 28, 0.98);
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 1.4rem;
    padding: 2.8rem;
    overflow-x: auto;
    margin: 2.8rem 0;
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    -webkit-overflow-scrolling: touch;
}

.article-body pre::before {
    content: '';
    display: block;
    height: 2rem;
    margin-bottom: 1.2rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='14'%3E%3Ccircle cx='7' cy='7' r='6' fill='%23ff5f57'/%3E%3Ccircle cx='27' cy='7' r='6' fill='%23febc2e'/%3E%3Ccircle cx='47' cy='7' r='6' fill='%2328c840'/%3E%3C/svg%3E") no-repeat left center;
    background-size: auto 10px;
}

.article-body pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 1.45rem;
    color: #93c5fd;
    display: block;
    white-space: pre;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
}

.article-body blockquote {
    margin: 3rem 0;
    padding: 2rem 2.5rem;
    background: rgba(16, 185, 129, 0.05);
    border-left: 4px solid var(--main-color);
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.75rem;
}

.article-body .callout {
    padding: 2rem 2.5rem;
    border-radius: 1.2rem;
    margin: 2.5rem 0;
    font-size: 1.55rem;
}

.article-body .callout-tip {
    background: rgba(16, 185, 129, 0.07);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.article-body .callout-warn {
    background: rgba(255, 170, 0, 0.07);
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: #e6c060;
}

.article-body .callout i {
    margin-right: 0.8rem;
}

.article-body .callout-tip i {
    color: var(--main-color);
}

.article-body .callout-warn i {
    color: #e6c060;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 4rem 0;
}

.article-tags span {
    font-size: 1.3rem;
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--main-color);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.article-share p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin: 0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    border-radius: 3rem;
    font-size: 1.35rem;
    font-weight: 500;
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    letter-spacing: 0.01em;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.share-btn i {
    font-size: 1.7rem;
    transition: transform 0.25s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.share-btn:hover i {
    transform: scale(1.15);
}

/* Platform-specific hover colors */
.share-btn:has(.bxl-linkedin):hover {
    border-color: #0077b5;
    color: #0077b5;
    background: rgba(0, 119, 181, 0.08);
}

.share-btn:has(.bxl-twitter):hover {
    border-color: #1da1f2;
    color: #1da1f2;
    background: rgba(29, 161, 242, 0.08);
}

.share-btn:has(.bxl-whatsapp):hover {
    border-color: #25d366;
    color: #25d366;
    background: rgba(37, 211, 102, 0.08);
}

.share-btn:has(.bx-link):hover {
    border-color: var(--main-color);
    color: var(--main-color);
    background: rgba(16, 185, 129, 0.08);
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.sidebar-card {
    padding: 2.5rem;
    border-radius: 1.4rem;
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
}

.sidebar-card h4 {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.toc-list li a {
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.toc-list li a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--main-color);
    flex-shrink: 0;
    opacity: 0.5;
}

.toc-list li a:hover {
    color: var(--main-color);
}

.toc-list li a:hover::before {
    opacity: 1;
}

.author-card {
    text-align: center;
}

.author-avatar {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    border: 3px solid var(--main-color);
    margin-bottom: 1.2rem;
}

.author-name {
    font-size: 1.8rem;
    font-weight: 600;
}

.author-bio {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.related-post-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-glass);
}

.related-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-post-item img {
    width: 6rem;
    height: 5rem;
    object-fit: cover;
    border-radius: 0.8rem;
    flex-shrink: 0;
}

.related-post-item a {
    font-size: 1.4rem;
    color: var(--text-color);
    line-height: 1.4;
    transition: 0.3s;
    display: block;
}

.related-post-item a:hover {
    color: var(--main-color);
}

.related-post-item .rp-date {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* ===========================
   RESPONSIVE — 1200px
   =========================== */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }

    .hero-text h1 {
        font-size: 5.5rem;
    }

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

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

    .article-layout {
        grid-template-columns: 1fr 26rem;
        gap: 3.5rem;
    }
}

/* ===========================
   RESPONSIVE — 991px (Tablets)
   =========================== */
@media (max-width: 991px) {
    .header {
        padding: 2rem 4%;
    }

    section,
    .hero,
    .skills,
    .experience-teaser,
    .projects-page,
    .blog-page,
    .contact-page,
    .about-hero,
    .timeline,
    .skills-detailed,
    .certs,
    .article-page {
        padding: 10rem 5% 6rem;
    }

    .footer {
        padding: 5rem 5% 3rem;
    }

    /* Hero */
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 4rem;
    }

    .hero-text h1 {
        font-size: 5rem;
    }

    .hero-text h3 {
        font-size: 2.4rem;
    }

    .hero-text p {
        max-width: 100%;
    }

    .hero-img img {
        width: 55vw;
        max-width: 32rem;
    }

    .cta-buttons,
    .social-media {
        justify-content: center;
    }

    /* Stats Bar */
    .stats-bar {
        flex-wrap: wrap;
        gap: 3rem 4rem;
        padding: 3rem 4%;
    }

    .stat-item h3 {
        font-size: 3.5rem;
    }

    /* Skills (Home) */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Experience Teaser */
    .experience-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Featured Projects */
    .featured-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* About */
    .about-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-img-wrapper img {
        width: 26rem;
        height: 26rem;
    }

    .about-text h2 {
        font-size: 4rem;
    }

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

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

    /* Timeline */
    .timeline-item {
        flex-direction: column;
        gap: 1.5rem;
    }

    .timeline-date {
        text-align: left;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-bar {
        gap: 0.8rem;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-filter-bar {
        gap: 0.8rem;
    }

    .featured-post {
        flex-direction: column;
    }

    .featured-img {
        width: 100%;
        height: 24rem;
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

    /* Article */
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 3.4rem;
    }

    .article-sidebar {
        order: -1;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* ===========================
   RESPONSIVE — 768px (Mobile Menu)
   =========================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }


    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 0.5rem 4%;
        background: rgba(11, 17, 32, 0.98);
        border-top: 1px solid var(--border-glass);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
        display: none;
        flex-direction: column;
        backdrop-filter: blur(20px);
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        font-size: 1.8rem;
        margin: 0;
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--border-glass);
    }

    .navbar a:last-child {
        border-bottom: none;
    }

    /* Typography */
    .hero-text h1 {
        font-size: 4.2rem;
    }

    .hero-text h3 {
        font-size: 2rem;
    }

    .hero-img img {
        width: 70vw;
    }

    .heading {
        font-size: 3.6rem;
    }

    .section-subtitle {
        font-size: 1.5rem;
    }

    /* Stats */
    .stats-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        text-align: center;
        padding: 2.5rem;
        border-right: 1px solid var(--border-glass);
        border-bottom: 1px solid var(--border-glass);
    }

    .stat-item:nth-child(4),
    .stat-item:nth-child(8) {
        border-right: none;
    }

    .stat-item h3 {
        font-size: 3.2rem;
    }

    /* Skills (Home) */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        flex-direction: row;
        gap: 2rem;
        text-align: left;
        padding: 2rem;
    }

    .skill-card .skill-icon {
        flex-shrink: 0;
    }

    /* Experience */
    .experience-cards {
        grid-template-columns: 1fr;
    }

    /* Featured Projects */
    .featured-projects-grid {
        grid-template-columns: 1fr;
    }

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

    .filter-bar {
        justify-content: center;
    }

    .filter-btn {
        padding: 0.6rem 1.4rem;
        font-size: 1.4rem;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-filter-bar {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
        scrollbar-width: none;
    }

    .blog-filter-bar::-webkit-scrollbar {
        display: none;
    }

    .blog-filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 1.3rem;
    }

    .featured-img {
        height: 20rem;
    }

    /* About */
    .about-img-wrapper img {
        width: 22rem;
        height: 22rem;
    }

    .about-text h2 {
        font-size: 3.4rem;
    }

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

    /* Contact */
    .contact-info-cards {
        grid-template-columns: 1fr;
    }

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

    .contact-form-card {
        padding: 2.5rem;
    }

    /* Article */
    .article-header h1 {
        font-size: 2.8rem;
    }

    .article-cover {
        height: 22rem;
    }

    .article-body h2 {
        font-size: 2.2rem;
    }

    .article-body {
        font-size: 1.6rem;
    }

    .article-meta-bar {
        gap: 1.2rem;
        font-size: 1.3rem;
    }

    .article-body pre {
        padding: 1.8rem;
    }

    .article-body pre code {
        font-size: 1.3rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
    }

    .footer-back-top {
        margin: 0 auto;
    }
}

/* ===========================
   RESPONSIVE — 576px (Small Mobile)
   =========================== */
@media (max-width: 576px) {
    html {
        font-size: 52%;
    }

    .hero-text h1 {
        font-size: 3.8rem;
    }

    .hero-text h3 {
        font-size: 1.8rem;
    }

    .heading {
        font-size: 3rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1.4rem;
    }

    .btn.btn-sm {
        padding: 0.6rem 1.2rem;
        font-size: 1.3rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 28rem;
        text-align: center;
        justify-content: center;
    }

    /* Stats */
    .stats-bar {
        grid-template-columns: 1fr 1fr;
        padding: 2rem;
    }

    .stat-item h3 {
        font-size: 2.8rem;
    }

    .stat-item p {
        font-size: 1.2rem;
    }

    /* Projects */
    .project-img {
        height: 18rem;
    }

    .tech-tags {
        gap: 0.5rem;
    }

    /* Blog */
    .blog-card-img {
        height: 18rem;
    }

    .blog-filter-btn {
        padding: 0.6rem 1.2rem;
    }

    /* About */
    .skill-bar-label {
        font-size: 1.4rem;
    }

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

    .cert-card {
        flex-direction: row;
        gap: 1.5rem;
        text-align: left;
    }

    /* Contact */
    .contact-info-card {
        padding: 1.5rem;
    }

    /* Article */
    .article-header h1 {
        font-size: 2.4rem;
    }

    .article-cover {
        height: 18rem;
        border-radius: 1rem;
    }

    .breadcrumb {
        font-size: 1.3rem;
        flex-wrap: wrap;
    }

    .share-btn {
        font-size: 1.3rem;
        padding: 0.6rem 1.2rem;
    }

    .sidebar-card {
        padding: 2rem;
    }

    .article-body h2 {
        font-size: 2rem;
    }

    .article-body blockquote {
        font-size: 1.6rem;
    }
}

/* ===========================
   RESPONSIVE — 480px (XS)
   =========================== */
@media (max-width: 480px) {
    html {
        font-size: 50%;
    }

    .hero-img img {
        width: 82vw;
    }

    .hero-text h1 {
        font-size: 3.4rem;
    }

    .heading {
        font-size: 2.8rem;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .about-img-wrapper img {
        width: 18rem;
        height: 18rem;
    }

    .article-header h1 {
        font-size: 2.2rem;
    }

    .article-meta-bar {
        gap: 0.8rem;
    }

    .blog-filter-btn,
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 1.2rem;
    }
}