/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (Light Tech - Navy Blue & White Theme)
   ========================================================================== */
:root {
    --bg-primary: #ffffff;           /* Clean white background */
    --bg-secondary: #f8fafc;         /* Slate 50 */
    --bg-card: rgba(255, 255, 255, 0.85); /* Glassmorphic card back */
    --border-color: rgba(15, 23, 42, 0.08);
    
    --primary-color: #0f1e36;       /* Executive Dark Navy */
    --primary-glow: rgba(15, 30, 54, 0.08);
    --secondary-color: #1e3a8a;     /* Deep Navy Blue */
    --secondary-glow: rgba(30, 58, 138, 0.08);
    --accent-gradient: linear-gradient(135deg, #0b132b 0%, #1c3d5a 100%);
    
    --text-primary: #0f172a;        /* Dark slate for main body */
    --text-secondary: #334155;      /* Slate 700 */
    --text-muted: #64748b;          /* Slate 500 */
    
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-code: 'Fira Code', 'Courier New', Courier, monospace;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
    
    --shadow-premium: 0 15px 30px -10px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.02);
    --shadow-glow: 0 0 25px rgba(0, 128, 0, 0.08);
}

/* ==========================================================================
   DARK THEME VARIABLES
   ========================================================================== */
body.dark-theme {
    --bg-primary: #070a13;           /* Dark tech space background */
    --bg-secondary: #0c1122;         /* Slightly darker secondary bg */
    --bg-card: rgba(16, 22, 42, 0.65); /* Glassmorphic dark card */
    --border-color: rgba(255, 255, 255, 0.07);
    
    --primary-color: #00e5ff;       /* Neon Cyan in Dark Mode */
    --primary-glow: rgba(0, 229, 255, 0.15);
    --secondary-color: #9d4edd;     /* Purple in Dark Mode */
    --secondary-glow: rgba(157, 78, 221, 0.15);
    --accent-gradient: linear-gradient(135deg, #00e5ff 0%, #7b2cbf 100%);
    
    --text-primary: #f8fafc;        /* High-contrast light slate */
    --text-secondary: #94a3b8;      /* Slate 300 */
    --text-muted: #64748b;          /* Slate 500 */
    
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(0, 229, 255, 0.08);
}

/* ==========================================================================
   BILINGUAL DISPLAY CONTROLS
   ========================================================================== */
body.lang-es .lang-en {
    display: none !important;
}

body.lang-en .lang-es {
    display: none !important;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Smooth theme switching */
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.4s ease;
}

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   3D CANVAS & MOUSE GLOW BACKGROUND
   ========================================================================== */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

#mouse-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 128, 255, 0.06) 0%, rgba(29, 78, 216, 0.02) 50%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    transition: width 0.3s ease, height 0.3s ease;
}

body.dark-theme #mouse-glow {
    background: radial-gradient(circle, rgba(0, 229, 255, 0.07) 0%, rgba(157, 78, 221, 0.02) 50%, rgba(0, 0, 0, 0) 70%);
}

/* ==========================================================================
   PREMIUM PAGE LOADER
   ========================================================================== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 128, 255, 0.1);
    border-top: 4px solid var(--primary-color);
    border-bottom: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    margin: 0 auto 20px;
    box-shadow: 0 0 15px var(--primary-glow);
}

.loader-content h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.loader-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

/* ==========================================================================
   NAVIGATION HEADER & CONTROLS
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth), background-color 0.4s ease;
}

header.scrolled {
    height: 65px;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-premium);
}

body.dark-theme header.scrolled {
    background-color: rgba(7, 10, 19, 0.85);
}

.header-container {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.logo-bracket {
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.logo-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 2px;
}

.logo:hover .logo-bracket {
    transform: scale(1.15);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

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

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

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

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

.btn-contact-nav {
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color) !important;
    background: rgba(30, 58, 138, 0.05);
    transition: var(--transition-smooth);
}

body.dark-theme .btn-contact-nav {
    background: rgba(0, 229, 255, 0.05);
}

.btn-contact-nav::after {
    display: none;
}

.btn-contact-nav:hover {
    background: var(--primary-color);
    color: var(--bg-primary) !important;
    box-shadow: 0 0 15px var(--primary-glow);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.control-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#lang-toggle-btn {
    width: auto;
    padding: 0 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    gap: 6px;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   BUTTONS & GLOBAL LAYOUTS (Side space optimization)
   ========================================================================== */
.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 50px;
}

.section-padding {
    padding: 85px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.15);
}

body.dark-theme .btn-primary {
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.25);
}

body.dark-theme .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.35);
}

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

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: rgba(15, 23, 42, 0.15);
    transform: translateY(-3px);
}

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

.section-subtitle {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

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

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.hero-title .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typewriter-container {
    font-size: 1.6rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 25px;
    height: 35px;
}

.typewriter-text {
    color: var(--primary-color);
    font-weight: 600;
    font-family: var(--font-heading);
}

.typewriter-cursor {
    color: var(--primary-color);
    animation: blink 0.8s steps(2, start) infinite;
}

@keyframes blink {
    to { visibility: hidden; }
}

.hero-description {
    max-width: 650px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 70px;
    width: 100%;
}

.quick-stats {
    display: flex;
    gap: 80px;
    padding: 25px 50px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-premium);
    margin-bottom: 30px;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-mouse {
    display: block;
    width: 25px;
    height: 42px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.scroll-wheel {
    display: block;
    width: 4px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel-anim 1.5s ease-out infinite;
}

@keyframes scroll-wheel-anim {
    0% { top: 8px; opacity: 1; }
    50% { top: 16px; opacity: 0.5; }
    100% { top: 8px; opacity: 0; }
}

/* ==========================================================================
   ABOUT ME SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 50px;
    align-items: start;
}

.about-card-wrapper {
    position: sticky;
    top: 110px;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 35px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 0, 128, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

body.dark-theme .profile-card::before {
    background: radial-gradient(circle, rgba(0, 229, 255, 0.04) 0%, transparent 60%);
}

.profile-image-container {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    position: relative;
    margin-bottom: 25px;
    padding: 4px;
    background: var(--accent-gradient);
    box-shadow: 0 0 25px rgba(0, 128, 0, 0.1);
}

body.dark-theme .profile-image-container {
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.15);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    transition: border-color 0.4s ease;
}

.profile-info {
    text-align: center;
    width: 100%;
}

.profile-info h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.profile-role {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.profile-contact-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    text-align: left;
}

.profile-contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.profile-contact-list i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.profile-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.profile-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: var(--transition-smooth);
}

body.dark-theme .profile-socials a {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.profile-socials a:hover {
    color: var(--primary-color);
    background: rgba(30, 58, 138, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(30, 58, 138, 0.1);
}

body.dark-theme .profile-socials a:hover {
    background: rgba(0, 229, 255, 0.08);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

.about-bio {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bio-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.bio-paragraph {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 25px 20px;
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-premium);
}

.pillar-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.pillar-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.pillar-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==========================================================================
   EXPERIENCE SECTION (TIMELINE)
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--border-color) 10%, var(--border-color) 90%, transparent);
    left: 45px;
    top: 0;
}

.timeline-item {
    position: relative;
    padding-left: 90px;
    margin-bottom: 50px;
}

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

.timeline-dot {
    position: absolute;
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    left: 22px;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    z-index: 2;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
    color: #ffffff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

.timeline-date {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.08);
}

.role-title {
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.company-name {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.timeline-bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

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

.timeline-bullets li::before {
    content: '➔';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
    top: 2px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-tags span {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

body.dark-theme .timeline-tags span {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   EDUCATION SECTION
   ========================================================================== */
.education-card-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.education-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 30px;
    align-items: start;
    transition: var(--transition-smooth);
}

.education-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.08);
    transform: translateY(-4px);
}

.edu-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: rgba(30, 58, 138, 0.06);
    border: 1px solid rgba(30, 58, 138, 0.15);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 0 15px rgba(30, 58, 138, 0.05);
    transition: var(--transition-smooth);
}

body.dark-theme .edu-icon {
    background: rgba(157, 78, 221, 0.06);
    border-color: rgba(157, 78, 221, 0.15);
}

.edu-content .edu-date {
    display: inline-block;
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.edu-content h3 {
    font-size: 1.6rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.edu-content h4 {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.edu-location {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edu-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.edu-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.edu-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.edu-feature i {
    color: var(--secondary-color);
    font-size: 1rem;
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.skill-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.skill-category-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.08);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    padding-bottom: 15px;
}

.skill-category-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

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

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.skill-info span:first-child {
    color: var(--text-primary);
}

.skill-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

body.dark-theme .skill-bar-bg {
    background: rgba(255, 255, 255, 0.04);
}

.skill-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 10px;
    box-shadow: 0 0 6px var(--primary-glow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.skills-section.animated .skill-bar {
    transform: scaleX(1);
}

/* ==========================================================================
   CERTIFICATIONS SECTION
   ========================================================================== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.cert-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px -10px var(--primary-glow);
}

.cert-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.04) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

body.dark-theme .cert-glow {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.04) 0%, transparent 100%);
}

.cert-card:hover .cert-glow {
    opacity: 1;
}

.cert-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(30, 58, 138, 0.05);
    border: 1px solid rgba(30, 58, 138, 0.15);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

body.dark-theme .cert-icon {
    background: rgba(0, 229, 255, 0.05);
    border-color: rgba(0, 229, 255, 0.15);
}

.cert-card:hover .cert-icon {
    background: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.cert-institution {
    color: var(--primary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cert-card h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cert-hours {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cert-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    padding-top: 15px;
}

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

.cert-badge {
    background: rgba(22, 163, 74, 0.06);
    border: 1px solid rgba(22, 163, 74, 0.2);
    color: #16a34a;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* ==========================================================================
   CONTACT & INTERACTIVE MOCK IDE SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 50px;
    align-items: stretch;
}

.contact-info-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-panel h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 35px;
}

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

.contact-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(30, 58, 138, 0.05);
    border: 1px solid rgba(30, 58, 138, 0.15);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: var(--transition-smooth);
}

body.dark-theme .contact-icon {
    background: rgba(0, 229, 255, 0.05);
    border-color: rgba(0, 229, 255, 0.15);
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.social-links-wrapper h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

body.dark-theme .social-btn {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.social-btn:first-child:hover {
    border-color: #0077b5;
    color: #0077b5;
}

.social-btn:last-child:hover {
    border-color: #25d366;
    color: #25d366;
}

/* --- INTERACTIVE MOCK IDE STYLING --- */
.code-editor-card {
    background-color: #1e1e1e; /* VS Code dark background (retained for premium contrast) */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: var(--font-code);
    color: #d4d4d4;
    min-height: 480px;
}

.editor-header {
    background-color: #252526;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid #1e1e1e;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-controls .control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.window-controls .close { background-color: #ff5f56; }
.window-controls .minimize { background-color: #ffbd2e; }
.window-controls .maximize { background-color: #27c93f; }

.editor-tabs {
    display: flex;
    height: 100%;
    margin-left: 20px;
    flex-grow: 1;
}

.tab {
    background-color: #1e1e1e;
    color: #969696;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    border-right: 1px solid #252526;
    border-top: 2px solid #007acc;
    font-weight: 500;
}

.tab i {
    color: #519aba; /* TypeScript blue icon */
}

.run-btn {
    background-color: #2ea043;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-primary);
    transition: var(--transition-fast);
}

.run-btn:hover {
    background-color: #3fb950;
    transform: scale(1.03);
}

.editor-body {
    display: grid;
    grid-template-columns: 45px 1fr;
    padding: 16px 0;
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.5;
    background-color: #1e1e1e;
    overflow-x: auto;
}

.line-numbers {
    display: flex;
    flex-direction: column;
    text-align: right;
    padding-right: 12px;
    color: #858585;
    user-select: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.code-area {
    padding-left: 16px;
    margin: 0;
    white-space: pre;
}

.code-area code {
    font-family: inherit;
}

/* Syntax Highlighting */
.code-area .keyword { color: #ff7b72; }      /* Class, export, async, await, private */
.code-area .string { color: #a5d6ff; }       /* String literals */
.code-area .type { color: #ffc63c; }         /* Logger, PrismaService, any */
.code-area .decorator { color: #d2a8ff; }    /* @Injectable */
.code-area .class-name { color: #79c0ff; }   /* TechyWeService */
.code-area .func-name { color: #d2a8ff; }    /* deployMicroservice */

.editor-console {
    background-color: #151515;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    height: 140px;
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
}

.console-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #858585;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 4px;
    margin-bottom: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
}

.console-logs {
    flex-grow: 1;
    overflow-y: auto;
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.4;
}

.console-logs span {
    display: block;
}

.system-log {
    color: #858585;
}

.info-log {
    color: #00e5ff;
}

.success-log {
    color: #4ade80;
    font-weight: 500;
}

.warning-log {
    color: #ffbd2e;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    padding: 50px 0 30px;
    z-index: 1;
    position: relative;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.footer-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-desc {
    color: var(--text-secondary);
    max-width: 450px;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.footer-nav {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

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

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

.footer-divider {
    width: 100%;
    height: 1px;
    background: var(--border-color);
    margin-bottom: 25px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-attribution {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   ANIMATIONS ON SCROLL (Intersection Observer)
   ========================================================================== */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

/* Large Tablets & Desktop */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .header-container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-card-wrapper {
        position: relative;
        top: 0;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* Tablets & Mobile */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .typewriter-container {
        font-size: 1.25rem;
        height: 25px;
    }
    
    .quick-stats {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        width: 100%;
        max-width: 350px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 50px auto;
        justify-content: center;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Hamburger Menu Toggle */
    .hamburger-menu {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        gap: 35px;
        padding: 40px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(15, 23, 42, 0.05);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-dot {
        width: 40px;
        height: 40px;
        left: 0;
        font-size: 0.95rem;
    }
    
    .education-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .edu-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    .edu-features {
        grid-template-columns: 1fr;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    .header-controls {
        gap: 8px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    #lang-toggle-btn {
        padding: 0 8px;
    }
}
