/* ==========================================
   PREMIUM PORTFOLIO THEME SYSTEM
   Supports: Dark Mode (Default) & Light Mode
   ========================================== */

:root {
    /* Dark Theme Default Tokens */
    --deep-navy: #0B1120;       /* Main page background */
    --navy-blue: #14213D;       /* Navbar & selected structural sections */
    --slate-card: #1E293B;      /* Cards and content containers */
    --primary-blue: #2563EB;    /* Primary buttons and important actions */
    --primary-blue-hover: #1d4ed8;
    --muted-blue: #3B82F6;      /* Links, icons, and active states */
    --soft-cyan: #38BDF8;       /* Subtle accent & highlights */
    --primary-text: #F8FAFC;    /* Main headings */
    --secondary-text: #CBD5E1;  /* Descriptions and supporting content */
    --muted-text: #94A3B8;      /* Smaller secondary information */
    --border-color: #334155;    /* Subtle borders */
    --soft-blue-bg: #172554;    /* Selected tags & highlight fills */
    
    /* Functional Theme Mapping */
    --bg-primary: var(--deep-navy);
    --bg-secondary: var(--navy-blue);
    --bg-card: var(--slate-card);
    --bg-card-hover: #24334a;
    --bg-glass: rgba(20, 33, 61, 0.92);
    --bg-tag: var(--soft-blue-bg);
    
    --text-primary: var(--primary-text);
    --text-secondary: var(--secondary-text);
    --text-muted: var(--muted-text);
    --text-active: var(--muted-blue);
    --text-accent: var(--soft-cyan);
    --heading-color: var(--primary-text);
    
    --border-hover: #475569;
    
    /* Typography */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transitions & Subtle Shadows */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.45);
    --shadow-subtle: 0 4px 16px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* Light Theme Overrides */
body.light-theme {
    --deep-navy: #F8FAFC;       /* White / Off-white main page background */
    --navy-blue: #F1F5F9;       /* Very light blue-gray section background */
    --slate-card: #FFFFFF;      /* Pure white cards */
    --primary-blue: #2563EB;    /* Primary buttons */
    --primary-blue-hover: #1d4ed8;
    --muted-blue: #2563EB;      /* Links, active state, icons */
    --soft-cyan: #0284C7;       /* Subtle accent */
    --primary-text: #0F172A;    /* Dark Navy headings */
    --secondary-text: #475569;  /* Medium slate gray descriptions */
    --muted-text: #64748B;      /* Secondary muted info */
    --border-color: #E2E8F0;    /* Light gray borders */
    --soft-blue-bg: #EFF6FF;    /* Light blue tint tag backgrounds */
    
    --bg-primary: var(--deep-navy);
    --bg-secondary: var(--navy-blue);
    --bg-card: var(--slate-card);
    --bg-card-hover: #F8FAFC;
    --bg-glass: rgba(255, 255, 255, 0.94);
    --bg-tag: var(--soft-blue-bg);
    
    --text-primary: var(--primary-text);
    --text-secondary: var(--secondary-text);
    --text-muted: var(--muted-text);
    --text-active: var(--muted-blue);
    --text-accent: var(--soft-cyan);
    --heading-color: var(--primary-text);
    
    --border-hover: #CBD5E1;
    
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
    --shadow-subtle: 0 4px 16px rgba(15, 23, 42, 0.06);
}

/* Base Resets & Global Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Global Transition on Theme Switch */
.header, .section, .project-card, .skill-category-card, .timeline-card, 
.languages-block, .cert-card, .reference-card, .contact-card, .about-card-main,
.highlight-card, .soft-skills-container, .btn, .social-icon-btn, .theme-toggle,
.skill-badge, .about-tag, .edu-tag, .soft-badge, .project-tech-stack span, .nav-menu {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

ul {
    list-style: none;
}

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

/* Layout Container */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Text Gradients & Highlights */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary-text) 55%, var(--muted-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .text-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-highlight {
    color: var(--muted-blue);
    font-weight: 600;
}

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

/* Section Shared Layout */
.section {
    padding: 4.75rem 0;
    position: relative;
}

/* Selected Structural Sections with Navy Blue background */
.about-section,
.projects-section,
.cert-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: 2.75rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted-blue);
    margin-bottom: 0.4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-text);
}

.section-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--soft-cyan));
    margin: 0.85rem auto 0;
    border-radius: var(--radius-full);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.65rem 1.35rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--primary-blue);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--slate-card);
    color: var(--primary-text);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--muted-blue);
    color: var(--muted-blue);
    transform: translateY(-2px);
}

.btn-project {
    width: 100%;
    background: var(--slate-card);
    color: var(--primary-text);
    border: 1px solid var(--border-color);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-project:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #FFFFFF;
    box-shadow: var(--shadow-subtle);
}

/* ==========================================
   HEADER & STICKY NAVIGATION
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

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

.logo-brand {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-text);
    letter-spacing: -0.3px;
    display: inline-flex;
    align-items: center;
}

.logo-brand:hover {
    color: var(--muted-blue);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary-text);
    position: relative;
    padding: 0.4rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--muted-blue);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

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

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

/* Navigation Controls (Theme Toggle + Hamburger) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--soft-blue-bg);
    border: 1px solid var(--border-color);
    color: var(--primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.theme-toggle:hover {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

/* Hamburger Icon */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.hamburger .bar {
    width: 24px;
    height: 2.5px;
    background-color: var(--primary-text);
    border-radius: 3px;
    transition: var(--transition-normal);
}

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

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

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

/* ==========================================
   HERO / HOME SECTION
   ========================================== */
.hero-section {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding-top: 95px;
    padding-bottom: 3.5rem;
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(20, 33, 61, 0.4) 0%, transparent 50%);
}

body.light-theme .hero-section {
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(226, 232, 240, 0.6) 0%, transparent 50%);
}

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

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.9rem;
    background: var(--soft-blue-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted-blue);
    margin-bottom: 1.25rem;
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    color: var(--primary-text);
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

.hero-passion {
    font-size: 1.05rem;
    color: var(--secondary-text);
    margin-bottom: 1.75rem;
    max-width: 580px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 2.25rem;
    flex-wrap: wrap;
}

.hero-socials {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--slate-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-text);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.social-icon-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Hero Visual / Profile Image Frame */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-card-frame {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.glow-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105%;
    height: 105%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    filter: blur(25px);
    border-radius: 50%;
    z-index: 1;
}

.profile-img-container {
    position: relative;
    z-index: 2;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    background: var(--slate-card);
}

.profile-img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    object-position: top center;
    transition: var(--transition-slow);
}

.profile-card-frame:hover .profile-img {
    transform: scale(1.02);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-card-main {
    background: var(--slate-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    margin-bottom: 1.75rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.about-card-main:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--muted-blue);
}

.about-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.about-icon-decor {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--soft-blue-bg);
    color: var(--muted-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.about-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--soft-blue-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--muted-blue);
}

.about-paragraphs {
    margin-bottom: 1.75rem;
}

.about-text-p {
    font-size: 0.975rem;
    line-height: 1.7;
    color: var(--secondary-text);
    margin-bottom: 0.85rem;
}

.about-text-p:last-child {
    margin-bottom: 0;
}

.about-focus-block {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.focus-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted-text);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.focus-title i {
    color: var(--muted-blue);
}

.about-focus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.about-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    background: var(--soft-blue-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-text);
    transition: var(--transition-fast);
}

.about-tag:hover {
    background: rgba(37, 99, 235, 0.25);
    border-color: var(--muted-blue);
    color: var(--primary-text);
    transform: translateY(-2px);
}

.about-tag i {
    color: var(--muted-blue);
}

.about-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.highlight-card {
    background: var(--slate-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.25rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.highlight-card:hover {
    transform: translateY(-3px);
    border-color: var(--muted-blue);
    box-shadow: var(--shadow-md);
}

.highlight-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--soft-blue-bg);
    color: var(--muted-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.highlight-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: var(--primary-text);
}

.highlight-card p {
    font-size: 0.9rem;
    color: var(--secondary-text);
    line-height: 1.55;
}

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.skill-category-card {
    background: var(--slate-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.skill-category-card:hover {
    transform: translateY(-3px);
    border-color: var(--muted-blue);
    box-shadow: var(--shadow-md);
}

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

.cat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--soft-blue-bg);
    color: var(--muted-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.category-header h3 {
    font-size: 1.05rem;
    color: var(--primary-text);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    background: var(--soft-blue-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--primary-text);
    transition: var(--transition-fast);
}

.skill-badge:hover {
    background: rgba(37, 99, 235, 0.25);
    border-color: var(--muted-blue);
    color: var(--primary-text);
    transform: translateY(-2px);
}

/* Icon Colors */
.text-java { color: #f89820; }
.text-js { color: #eab308; }
.text-ts { color: #3b82f6; }
.text-csharp { color: #a855f7; }
.text-html { color: #f97316; }
.text-css { color: #0284c7; }
.text-react { color: #0284c7; }
.text-next { color: var(--primary-text); }
.text-tailwind { color: #0284c7; }
.text-node { color: #16a34a; }
.text-express { color: var(--secondary-text); }
.text-mysql { color: #0284c7; }
.text-mongo { color: #16a34a; }
.text-git { color: #ea580c; }
.text-postman { color: #ff6c37; }
.text-vscode { color: #0284c7; }
.text-office { color: #ea580c; }

/* Soft Skills Sub Section */
.soft-skills-container {
    background: var(--slate-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.soft-skills-title {
    font-size: 1.1rem;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--muted-blue);
}

.soft-skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.soft-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    background: var(--soft-blue-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--primary-text);
    font-weight: 600;
}

.soft-badge i {
    font-size: 0.7rem;
    color: var(--muted-blue);
}

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

.project-card {
    background: var(--slate-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--soft-cyan));
    opacity: 0;
    transition: var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: var(--muted-blue);
    box-shadow: var(--shadow-md);
}

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

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.project-type-tag {
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted-blue);
    background: var(--soft-blue-bg);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

.project-icon-box {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.project-theme-1 { background: rgba(37, 99, 235, 0.18); color: var(--muted-blue); }
.project-theme-2 { background: rgba(16, 185, 129, 0.18); color: #10b981; }
.project-theme-3 { background: rgba(245, 158, 11, 0.18); color: #f59e0b; }
.project-theme-4 { background: rgba(236, 72, 153, 0.18); color: #ec4899; }
.project-theme-5 { background: rgba(168, 85, 247, 0.18); color: #a855f7; }

.project-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--primary-text);
    font-weight: 700;
}

.project-desc {
    font-size: 0.85rem;
    color: var(--secondary-text);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.project-tech-stack span {
    font-size: 0.725rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    background: var(--soft-blue-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--primary-text);
}

.project-features {
    margin-bottom: 0.85rem;
    background: var(--soft-blue-bg);
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.project-features h4 {
    font-size: 0.725rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted-text);
    margin-bottom: 0.35rem;
}

.project-features ul {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.project-features li {
    font-size: 0.8125rem;
    color: var(--secondary-text);
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    line-height: 1.35;
}

.project-features li i {
    color: var(--muted-blue);
    font-size: 0.7rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.project-footer {
    margin-top: auto;
    padding-top: 0.25rem;
}

/* ==========================================
   EDUCATION & LANGUAGES SECTION
   ========================================== */
.timeline-card {
    background: var(--slate-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2.25rem;
}

.timeline-badge {
    position: absolute;
    top: -22px;
    left: 2.25rem;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--primary-blue);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.timeline-header {
    margin-top: 0.4rem;
    margin-bottom: 1.25rem;
}

.timeline-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 0.65rem;
}

.timeline-year {
    font-size: 0.9rem;
    color: var(--secondary-text);
    font-weight: 500;
}

.gpa-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
}

.gpa-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #10b981;
}

.gpa-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-text);
}

.edu-degree {
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
    color: var(--primary-text);
}

.edu-institution {
    font-size: 1.05rem;
    color: var(--muted-blue);
    font-weight: 600;
}

.edu-intro {
    font-size: 0.9rem;
    color: var(--muted-text);
    margin-bottom: 0.85rem;
    font-weight: 500;
}

.edu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.edu-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    background: var(--soft-blue-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-text);
    transition: var(--transition-fast);
}

.edu-tag:hover {
    background: rgba(37, 99, 235, 0.25);
    border-color: var(--muted-blue);
    color: var(--primary-text);
    transform: translateY(-2px);
}

.edu-tag i {
    color: var(--muted-blue);
}

/* Languages Block */
.languages-block {
    background: var(--slate-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.languages-title {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--primary-text);
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.language-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem;
    background: var(--soft-blue-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.lang-flag {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(59, 130, 246, 0.2);
    color: var(--muted-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.lang-info h4 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
    color: var(--primary-text);
}

.lang-level {
    font-size: 0.825rem;
    color: var(--secondary-text);
}

/* ==========================================
   CERTIFICATIONS SECTION
   ========================================== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.cert-card {
    background: var(--slate-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.cert-card:hover {
    transform: translateY(-3px);
    border-color: var(--muted-blue);
    box-shadow: var(--shadow-md);
}

.cert-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--soft-blue-bg);
    color: var(--muted-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.cert-year {
    font-size: 0.775rem;
    font-weight: 700;
    color: var(--muted-blue);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.cert-title {
    font-size: 1.1rem;
    margin: 0.2rem 0 0.35rem;
    color: var(--primary-text);
}

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

/* ==========================================
   REFERENCES SECTION
   ========================================== */
.references-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.reference-card {
    background: var(--slate-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.reference-card:hover {
    transform: translateY(-3px);
    border-color: var(--muted-blue);
    box-shadow: var(--shadow-md);
}

.ref-avatar {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: var(--soft-blue-bg);
    border: 1px solid var(--border-color);
    color: var(--muted-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.ref-name {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--primary-text);
}

.ref-title {
    font-size: 0.85rem;
    color: var(--secondary-text);
    margin-bottom: 0.65rem;
}

.ref-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted-blue);
    padding: 0.3rem 0.75rem;
    background: var(--soft-blue-bg);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.ref-phone:hover {
    background: var(--primary-blue);
    color: #FFFFFF;
    border-color: var(--primary-blue);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-intro {
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 1.25rem;
    color: var(--secondary-text);
    line-height: 1.65;
}

.contact-location-bar {
    margin-bottom: 2.25rem;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    background: var(--soft-blue-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted-blue);
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
    max-width: 920px;
    margin: 0 auto;
}

/* Centered odd last card with identical column width */
.contact-cards-grid > .contact-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

.contact-card {
    background: var(--slate-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.35rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s ease,
                box-shadow 0.25s ease,
                background-color 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--muted-blue);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    border-color: var(--muted-blue);
    box-shadow: var(--shadow-md);
}

.contact-card:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: var(--shadow-sm);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.contact-theme-phone { background: rgba(37, 99, 235, 0.16); color: var(--muted-blue); }
.contact-theme-email { background: rgba(56, 189, 248, 0.16); color: var(--soft-cyan); }
.contact-theme-whatsapp { background: rgba(16, 185, 129, 0.16); color: #10b981; }
.contact-theme-linkedin { background: rgba(59, 130, 246, 0.16); color: var(--muted-blue); }
.contact-theme-github { background: rgba(37, 99, 235, 0.16); color: var(--muted-blue); }

.contact-card:hover .contact-card-icon {
    transform: scale(1.05);
}

.contact-card:hover .contact-theme-phone { background: #2563eb; color: #ffffff; }
.contact-card:hover .contact-theme-email { background: #0ea5e9; color: #ffffff; }
.contact-card:hover .contact-theme-whatsapp { background: #10b981; color: #ffffff; }
.contact-card:hover .contact-theme-linkedin { background: #0a66c2; color: #ffffff; }
.contact-card:hover .contact-theme-github { background: #2563eb; color: #ffffff; }

.contact-card-content {
    flex-grow: 1;
    min-width: 0;
}

.contact-card-label {
    display: block;
    font-size: 0.725rem;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.contact-card-value {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-card-arrow {
    color: var(--muted-text);
    font-size: 0.825rem;
    transition: transform 0.25s ease, color 0.25s ease, opacity 0.25s ease;
    opacity: 0.5;
    flex-shrink: 0;
}

.contact-card:hover .contact-card-arrow {
    color: var(--muted-blue);
    transform: translate(3px, -3px);
    opacity: 1;
}

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

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    text-align: center;
}

.footer-name {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
    color: var(--primary-text);
}

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

.footer-socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--slate-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-text);
    font-size: 0.95rem;
}

.footer-socials a:hover {
    background: var(--primary-blue);
    color: #FFFFFF;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

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

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--primary-blue);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-3px);
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */

/* Laptop & Tablet Large (<= 1024px) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.3rem;
    }

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

/* Tablet (<= 850px) */
@media (max-width: 850px) {
    /* Mobile Menu Drawer */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 270px;
        height: calc(100vh - 70px);
        background: var(--navy-blue);
        border-left: 1px solid var(--border-color);
        padding: 2.25rem 1.75rem;
        transition: var(--transition-normal);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

    body.light-theme .nav-menu {
        background: #FFFFFF;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    }

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

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.35rem;
    }

    .nav-link {
        font-size: 1rem;
    }

    /* Layout Adaptations */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

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

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

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

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

    .contact-card-full-span {
        grid-column: span 1;
    }

    .references-grid,
    .cert-grid,
    .languages-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Small (<= 480px) */
@media (max-width: 480px) {
    .section {
        padding: 3.75rem 0;
    }

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

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

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

    .profile-card-frame {
        max-width: 280px;
    }

    .profile-img {
        height: 340px;
    }

    .timeline-card {
        padding: 1.75rem 1.25rem;
    }

    .timeline-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
