/* ==========================================================================
   DESIGN SYSTEM VARIABLES & GLOBAL STYLES
   ========================================================================== */
:root {
    /* Font Families */
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Colors (Default) */
[data-theme="dark"] {
    --bg-main: #0B132B;
    --bg-surface: rgba(28, 37, 65, 0.6);
    --bg-surface-solid: #1C2541;
    --bg-surface-hover: rgba(43, 58, 96, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-focus: rgba(0, 180, 216, 0.5);
    
    --color-primary: #00B4D8;
    --color-primary-rgb: 0, 180, 216;
    --color-secondary: #90E0EF;
    --color-accent: #FF7096;
    --color-success: #4AD66D;
    
    --text-primary: #F1FAEE;
    --text-secondary: #A8DADC;
    --text-muted: #708090;
    --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 15px 40px rgba(0, 180, 216, 0.15);
    --glass-blur: blur(16px);
}

/* Light Theme Colors */
[data-theme="light"] {
    --bg-main: #F4F6F9;
    --bg-surface: rgba(255, 255, 255, 0.7);
    --bg-surface-solid: #FFFFFF;
    --bg-surface-hover: rgba(240, 244, 248, 0.9);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-focus: rgba(0, 119, 182, 0.5);
    
    --color-primary: #0077B6;
    --color-primary-rgb: 0, 119, 182;
    --color-secondary: #0096C7;
    --color-accent: #E63946;
    --color-success: #2A9D8F;
    
    --text-primary: #1D3557;
    --text-secondary: #457B9D;
    --text-muted: #6C757D;
    --shadow-main: 0 10px 30px rgba(29, 53, 87, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 119, 182, 0.12);
    --glass-blur: blur(12px);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

a:hover {
    color: var(--color-secondary);
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ==========================================================================
   BUTTONS AND BADGES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

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

.btn-primary {
    background-color: var(--color-primary);
    color: #FFF;
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--bg-surface-hover);
    transform: translateY(-2px);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background-color: rgba(0, 180, 216, 0.15);
    color: var(--color-primary);
}

.badge-secondary {
    background-color: rgba(144, 224, 239, 0.15);
    color: var(--color-secondary);
}

.badge-accent {
    background-color: rgba(255, 112, 150, 0.15);
    color: var(--color-accent);
}

.badge-success {
    background-color: rgba(74, 214, 109, 0.15);
    color: var(--color-success);
}

.badge-warning {
    background-color: rgba(243, 156, 18, 0.15);
    color: #F39C12;
}

/* ==========================================================================
   GLASSMORPHISM BASE CLASS
   ========================================================================== */
.glass {
    background-color: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-main);
    transition: border-color var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.glass:hover {
    border-color: var(--border-color-focus);
    box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   FLOATING CONTROLS
   ========================================================================== */
.floating-controls {
    position: fixed;
    bottom: var(--space-md);
    right: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface-solid);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-main);
    transition: all var(--transition-fast);
}

.control-btn:hover {
    background-color: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

/* ==========================================================================
   NAVIGATION NAVBAR
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 900;
    background-color: rgba(11, 19, 43, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-normal);
}

[data-theme="light"] .navbar {
    background-color: rgba(244, 246, 249, 0.85);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.logo-img {
    height: 38px;
    width: 38px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

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

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

/* Language Selector in Navbar */
.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    border-color: var(--color-primary);
    background: var(--bg-surface-hover);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.2);
}

.lang-btn .lang-arrow {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.lang-selector.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 110px;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-main);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    list-style: none;
    padding: 0.4rem 0;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.lang-selector.open .lang-dropdown {
    display: flex;
}

.lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition-fast);
}

.lang-dropdown li a:hover {
    background: var(--bg-surface-hover);
    color: var(--color-primary);
}


/* ==========================================================================
   HERO / ABOUT SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding: var(--space-xl) 0;
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: var(--space-lg);
    align-items: start;
}

.profile-card-wrapper {
    position: sticky;
    top: 90px;
}

.profile-card {
    padding: var(--space-md);
    text-align: center;
}

.profile-img-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-full);
    padding: 6px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
    border: 4px solid var(--bg-main);
    display: none;
}

.profile-img.active-img {
    display: block;
    animation: fadeIn var(--transition-normal);
}

.profile-img-picker {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: var(--radius-full);
    display: flex;
    gap: 8px;
    box-shadow: var(--shadow-main);
}

.picker-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    border: none;
    background-color: var(--text-muted);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.picker-dot.active {
    background-color: var(--color-primary);
}

.profile-info h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.profile-info .subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    text-align: left;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.contact-item i {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
}

.contact-item:hover {
    color: var(--color-primary);
}

.contact-item.linkedin-badge i {
    color: #0077B5;
}

/* Hero Intro Section */
.hero-intro-wrapper .badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.body-text {
    font-size: 1.02rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

/* Quick Infographic Stats */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.stat-card {
    padding: var(--space-md) var(--space-sm);
    text-align: center;
    border-radius: var(--radius-md);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-val {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   VIEW FILTER MODE
   ========================================================================== */
.portfolio-filter-section {
    padding: var(--space-md) 0;
    background-color: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.portfolio-filter-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.portfolio-filter-section p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.filter-toggle-container {
    display: inline-flex;
    background-color: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: var(--radius-full);
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    border: none;
    background-color: transparent;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: var(--text-primary);
}

.filter-btn.active {
    background-color: var(--color-primary);
    color: white;
}

.filterable-item {
    transition: opacity var(--transition-normal), transform var(--transition-normal), height var(--transition-normal);
}

.filterable-item.hidden {
    display: none !important;
    opacity: 0;
    transform: scale(0.95);
}

/* ==========================================================================
   SECTION COMMON LAYOUTS
   ========================================================================== */
.section {
    padding: var(--space-xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title.text-left {
    text-align: left;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background: none;
    color: var(--text-primary);
}

.section-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   APPS GRID SECTION
   ========================================================================== */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
}

.app-card {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: 1rem;
}

.app-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.app-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.app-tech {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
}

.app-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.app-features {
    list-style: none;
    margin-bottom: 1.25rem;
}

.app-features li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.app-features li i {
    color: var(--color-primary);
    font-size: 0.85rem;
}

.app-status {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
}

.app-card-coming-soon {
    border-style: dashed;
    background-color: rgba(28, 37, 65, 0.3);
}

/* ==========================================================================
   TIMELINE EXPERIENCE SECTION
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-md) 0;
}

.timeline-bar {
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-secondary) 50%, var(--border-color) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 55px;
    margin-bottom: var(--space-lg);
}

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

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background-color: var(--bg-main);
    border: 3px solid var(--color-primary);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: var(--color-primary);
    transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background-color: var(--color-primary);
    color: white;
}

.timeline-content {
    padding: var(--space-md);
}

.timeline-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
}

.time-period {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

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

.company {
    font-size: 0.92rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-body {
    font-size: 0.95rem;
}

.timeline-summary {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.timeline-bullet-list {
    list-style: none;
    margin-bottom: 0.75rem;
}

.timeline-bullet-list li {
    position: relative;
    padding-left: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.timeline-bullet-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Companies worked tags */
.companies-worked {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
}

.companies-worked strong {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.4rem;
}

.client-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.client-tag {
    font-size: 0.75rem;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.client-tag i {
    color: var(--color-primary);
    font-size: 0.7rem;
}

/* Awards badges */
.awards-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.award-pill {
    font-size: 0.75rem;
    font-weight: 600;
    color: #F39C12;
    background-color: rgba(243, 156, 18, 0.08);
    border: 1px solid rgba(243, 156, 18, 0.2);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ==========================================================================
   SKILLS & COMPETENCIES SECTION
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

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

.skills-card {
    padding: var(--space-md);
}

.skills-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.skills-card h3 i {
    color: var(--color-primary);
}

/* Certifications blocks */
.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-item {
    display: flex;
    gap: var(--space-sm);
}

.cert-logo-wrap {
    width: 64px;
    height: 48px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cert-logo {
    display: block;
    width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cert-logo-ibm {
    transform: scale(1.8);
}

.cert-logo-python {
    width: auto;
}

.cert-logo-microsoft {
    width: 100%;
}

.cert-text h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

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

/* Skills progress bar */
.skills-bar-group {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.skill-progress {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.skill-name-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
}

[data-theme="light"] .progress-bar {
    background-color: rgba(0, 0, 0, 0.05);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-full);
}

/* Platform Badges */
.platform-badges-wrapper {
    margin-top: var(--space-lg);
    text-align: center;
}

.platform-badges-wrapper h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.platform-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.p-badge {
    font-size: 0.8rem;
    font-weight: 500;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ==========================================================================
   EDUCATION & LANGUAGES SECTION
   ========================================================================== */
.edu-grid {
    display: grid;
    grid-template-columns: 1.6fr 1.4fr;
    gap: var(--space-lg);
}

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

.edu-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edu-item {
    padding: var(--space-md);
    display: flex;
    gap: var(--space-sm);
}

.edu-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background-color: rgba(0, 180, 216, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.edu-details h3 {
    font-size: 1.1rem;
}

.edu-details .specialty {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.edu-details .inst {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Languages */
.lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.lang-card {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lang-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-flag {
    font-size: 1.25rem;
    line-height: 1;
}

.lang-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.lang-level {
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lang-gauge {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
}

[data-theme="light"] .lang-gauge {
    background-color: rgba(0, 0, 0, 0.05);
}

.gauge-fill {
    height: 100%;
    background-color: var(--color-secondary);
    border-radius: var(--radius-full);
}

/* ==========================================================================
   REFERENCES SECTION
   ========================================================================== */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.ref-card {
    padding: var(--space-md);
    text-align: center;
}

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

.ref-title {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.ref-note {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
    background-color: var(--bg-surface-solid);
    border-top: 1px solid var(--border-color);
    padding: var(--space-xl) 0;
}

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

.footer-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.footer-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-md);
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   MEDIA QUERIES FOR RESPONSIVE WEB DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 2.5rem;
        --space-lg: 1.5rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .profile-card-wrapper {
        position: relative;
        top: 0;
    }
    
    .navbar {
        position: relative;
    }
    
    .nav-links {
        display: none; /* Hide standard links on mobile */
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .quick-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .lang-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==========================================================================
   PRINT MEDIA STYLESHEET (PDF EXPORTS)
   ========================================================================== */
.print-only {
    display: none;
}

@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    :root, body, [data-theme] {
        --space-xs: 0.25rem !important;
        --space-sm: 0.5rem !important;
        --space-md: 0.75rem !important;
        --space-lg: 1rem !important;
        --space-xl: 1.5rem !important;
    }

    /* Hide non-printable items */
    .no-print, 
    .floating-controls, 
    .navbar,
    .portfolio-filter-section,
    .profile-img-picker,
    .footer-buttons {
        display: none !important;
    }

    /* DARK THEME PRINT STYLES */
    [data-theme="dark"], [data-theme="dark"] body {
        background-color: #0B132B !important;
        color: #F1FAEE !important;
    }

    [data-theme="dark"] h1, 
    [data-theme="dark"] h2, 
    [data-theme="dark"] h3, 
    [data-theme="dark"] h4 {
        color: #F1FAEE !important;
        -webkit-text-fill-color: #F1FAEE !important;
        border-bottom-color: rgba(255, 255, 255, 0.2) !important;
    }

    [data-theme="dark"] .glass, 
    [data-theme="dark"] .stat-card, 
    [data-theme="dark"] .app-card, 
    [data-theme="dark"] .timeline-content, 
    [data-theme="dark"] .edu-item, 
    [data-theme="dark"] .lang-card, 
    [data-theme="dark"] .ref-card, 
    [data-theme="dark"] .skills-card {
        background-color: #1C2541 !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        color: #F1FAEE !important;
        box-shadow: none !important;
    }

    [data-theme="dark"] .lead-text,
    [data-theme="dark"] .body-text,
    [data-theme="dark"] p,
    [data-theme="dark"] span,
    [data-theme="dark"] li {
        color: #A8DADC !important;
    }

    [data-theme="dark"] .stat-val {
        color: #00B4D8 !important;
        -webkit-text-fill-color: #00B4D8 !important;
    }

    [data-theme="dark"] .app-name,
    [data-theme="dark"] .ref-name,
    [data-theme="dark"] .timeline-header h3 {
        color: #F1FAEE !important;
    }

    [data-theme="dark"] .app-tech,
    [data-theme="dark"] .ref-title,
    [data-theme="dark"] .company {
        color: #90E0EF !important;
    }

    [data-theme="dark"] .award-pill,
    [data-theme="dark"] .client-tag,
    [data-theme="dark"] .p-badge {
        background-color: rgba(28, 37, 65, 0.9) !important;
        color: #90E0EF !important;
        border: 1px solid rgba(0, 180, 216, 0.4) !important;
    }

    /* LIGHT THEME PRINT STYLES */
    [data-theme="light"], [data-theme="light"] body {
        background-color: #F4F6F9 !important;
        color: #1D3557 !important;
    }

    [data-theme="light"] h1, 
    [data-theme="light"] h2, 
    [data-theme="light"] h3, 
    [data-theme="light"] h4 {
        color: #1D3557 !important;
        -webkit-text-fill-color: #1D3557 !important;
        border-bottom-color: rgba(29, 53, 87, 0.2) !important;
    }

    [data-theme="light"] .glass, 
    [data-theme="light"] .stat-card, 
    [data-theme="light"] .app-card, 
    [data-theme="light"] .timeline-content, 
    [data-theme="light"] .edu-item, 
    [data-theme="light"] .lang-card, 
    [data-theme="light"] .ref-card, 
    [data-theme="light"] .skills-card {
        background-color: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        color: #1D3557 !important;
        box-shadow: none !important;
    }

    [data-theme="light"] .lead-text,
    [data-theme="light"] .body-text,
    [data-theme="light"] p,
    [data-theme="light"] span,
    [data-theme="light"] li {
        color: #457B9D !important;
    }

    [data-theme="light"] .stat-val {
        color: #0077B6 !important;
        -webkit-text-fill-color: #0077B6 !important;
    }

    [data-theme="light"] .app-name,
    [data-theme="light"] .ref-name,
    [data-theme="light"] .timeline-header h3 {
        color: #1D3557 !important;
    }

    [data-theme="light"] .app-tech,
    [data-theme="light"] .ref-title,
    [data-theme="light"] .company {
        color: #0096C7 !important;
    }

    [data-theme="light"] .award-pill,
    [data-theme="light"] .client-tag,
    [data-theme="light"] .p-badge {
        background-color: #F0F4F8 !important;
        color: #0077B6 !important;
        border: 1px solid rgba(0, 119, 182, 0.3) !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Sections padding */
    .section {
        padding: 0.5rem 0 !important;
        page-break-inside: auto !important;
    }

    .hero-section {
        padding: 0 0 0.5rem 0 !important;
    }

    /* Hero layout */
    .hero-grid {
        grid-template-columns: 1.25fr 3.75fr !important;
        gap: 1.25rem !important;
    }

    .profile-card-wrapper {
        position: relative !important;
        top: 0 !important;
    }

    .profile-img-container {
        width: 100px !important;
        height: 100px !important;
        padding: 0 !important;
        background: none !important;
        margin-bottom: 0.5rem !important;
    }

    .profile-img {
        border: 2px solid var(--color-primary) !important;
    }
    .profile-img:not(.active-img) {
        display: none !important;
    }

    h1 { font-size: 16pt !important; margin-bottom: 0.2rem !important; }
    h2 { 
        font-size: 12pt !important; 
        border-bottom: 1.5px solid var(--color-primary) !important; 
        padding-bottom: 1px !important; 
        margin-top: 0.8rem !important;
        margin-bottom: 0.4rem !important; 
    }
    h3 { font-size: 10.5pt !important; margin-bottom: 0.2rem !important; }

    .lead-text {
        font-size: 9.5pt !important;
        margin-bottom: 0.4rem !important;
    }
    
    .body-text {
        font-size: 9pt !important;
        margin-bottom: 0.4rem !important;
    }

    p {
        margin-bottom: 0.3rem !important;
    }

    ul, ol {
        margin-bottom: 0.3rem !important;
        margin-top: 0.15rem !important;
    }

    li {
        margin-bottom: 0.15rem !important;
    }

    /* Grid alignments */
    .quick-stats-grid, .apps-grid, .skills-grid, .edu-grid, .references-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .app-card {
        padding: 8px !important;
        border-radius: 4px !important;
        page-break-inside: avoid !important;
    }

    .app-card-header {
        margin-bottom: 0.3rem !important;
        gap: 6px !important;
    }

    .app-logo {
        width: 32px !important;
        height: 32px !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
    }

    .app-name {
        font-size: 10pt !important;
    }

    .app-tech {
        font-size: 8pt !important;
    }

    .app-desc {
        font-size: 8.5pt !important;
        margin-bottom: 0.3rem !important;
    }

    .app-features {
        font-size: 8pt !important;
        gap: 2px !important;
    }

    .app-status {
        margin-top: 0.3rem !important;
    }

    /* Timeline print adjustments */
    .timeline-bar {
        display: none !important;
    }

    .timeline-item {
        padding-left: 0 !important;
        margin-bottom: 8px !important;
        page-break-inside: avoid !important;
    }

    .timeline-dot {
        display: none !important;
    }

    .timeline-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: baseline !important;
        margin-bottom: 0.2rem !important;
    }

    .timeline-summary {
        font-size: 9pt !important;
        margin-bottom: 0.3rem !important;
    }

    .time-period {
        order: 2;
        font-size: 8pt !important;
        font-weight: bold !important;
    }

    .companies-worked {
        margin-top: 0.3rem !important;
    }

    .client-tags {
        gap: 4px !important;
        margin-top: 0.2rem !important;
    }

    .client-tag {
        font-size: 7.5pt !important;
        padding: 1px 4px !important;
    }

    .timeline-bullet-list li {
        font-size: 8.5pt !important;
        margin-bottom: 0.15rem !important;
    }

    .awards-badge-group {
        margin-top: 0.3rem !important;
        gap: 4px !important;
    }

    .award-pill {
        font-size: 7.5pt !important;
        padding: 1px 4px !important;
    }

    /* Skills cards */
    .skills-card {
        padding: 8px !important;
        border-radius: 4px !important;
        page-break-inside: avoid !important;
    }

    .skills-card h3 {
        padding-bottom: 2px !important;
        margin-bottom: 6px !important;
    }

    .certifications-list {
        gap: 6px !important;
    }

    .cert-item {
        gap: 8px !important;
    }

    .cert-logo-wrap {
        width: 34px !important;
        height: 24px !important;
        padding: 3px !important;
    }

    .cert-text h4 {
        font-size: 9pt !important;
    }

    .cert-text p {
        font-size: 8pt !important;
    }

    .skill-progress {
        margin-bottom: 6px !important;
    }

    .skill-name-row {
        font-size: 8.5pt !important;
        margin-bottom: 2px !important;
    }

    .progress-bar {
        height: 6px !important;
    }

    .platform-badges {
        gap: 4px !important;
    }

    .p-badge {
        font-size: 7.5pt !important;
        padding: 2px 5px !important;
    }

    /* Education & Languages */
    .edu-timeline {
        gap: 6px !important;
    }

    .edu-item {
        padding: 6px !important;
        border-radius: 4px !important;
        page-break-inside: avoid !important;
        display: flex !important;
        gap: 8px !important;
    }

    .edu-icon {
        font-size: 1rem !important;
    }

    .edu-details h3 {
        font-size: 9.5pt !important;
    }

    .edu-details .specialty {
        font-size: 8.5pt !important;
    }

    .edu-details .inst {
        font-size: 8pt !important;
    }

    .lang-grid {
        gap: 6px !important;
    }

    .lang-card {
        padding: 6px !important;
        border-radius: 4px !important;
        page-break-inside: avoid !important;
    }

    .lang-name {
        font-size: 9pt !important;
    }

    .lang-level {
        font-size: 8pt !important;
    }

    .lang-gauge {
        height: 4px !important;
    }

    /* References */
    .references-grid {
        gap: 6px !important;
    }

    .ref-card {
        padding: 6px !important;
        border-radius: 4px !important;
        page-break-inside: avoid !important;
    }

    .ref-name {
        font-size: 9pt !important;
    }

    .ref-title {
        font-size: 8pt !important;
    }

    /* Footer print view */
    .footer {
        background: transparent !important;
        border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
        padding: 0.5rem 0 !important;
        margin-top: 10px !important;
        page-break-inside: avoid !important;
    }

    .footer h2 {
        font-size: 11pt !important;
        margin-bottom: 4px !important;
    }

    .footer p {
        font-size: 8.5pt !important;
    }

    .print-only {
        display: block !important;
        margin-top: 5px !important;
        font-weight: bold !important;
        font-size: 8.5pt !important;
    }

    .footer-copyright {
        margin-top: 5px !important;
        font-size: 7.5pt !important;
    }
}


/* ==========================================================================
   PASSWORD LOCK SCREEN (GATEWAY OVERLAY)
   ========================================================================== */
.gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.5s ease;
}

.gate-card {
    padding: var(--space-lg);
    text-align: center;
    max-width: 420px;
    width: 90%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-main);
}

.gate-icon {
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 180, 216, 0.4));
    animation: gatePulse 2s infinite ease-in-out;
}

@keyframes gatePulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(0, 180, 216, 0.4)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(0, 180, 216, 0.6)); }
}

.gate-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

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

.gate-input-group {
    margin: 1.5rem 0 1rem;
}

.gate-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    text-align: center;
    font-size: 1.15rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: all var(--transition-fast);
}

[data-theme="light"] .gate-input {
    background-color: rgba(255, 255, 255, 0.8);
}

.gate-input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.2);
}

.gate-btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.05rem;
}

.gate-error {
    color: var(--color-accent);
    font-size: 0.88rem;
    margin-top: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* Direct links to each app's store listing. */
.app-store-links { flex-wrap: wrap; gap: .75rem; }
.app-store-link { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .6rem .9rem; border: 1px solid #697386; border-radius: 10px; background: #111827; color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s; }
.app-store-link .store-logo { width: 28px; height: 28px; flex-shrink: 0; object-fit: contain; }
.app-store-link:hover { background: #1e293b; border-color: var(--color-primary); color: #fff; }
.app-store-link:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
