/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-primary: #030712;
    --bg-secondary: #0b0f19;
    --bg-card: rgba(17, 24, 39, 0.65);
    --bg-terminal: #090d16;
    
    --accent-indigo: #6366f1;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-indigo-glow: rgba(99, 102, 241, 0.45);
    --accent-purple-glow: rgba(139, 92, 246, 0.45);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.15);
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
    --grad-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    --grad-dark: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    
    /* Fonts */
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    
    /* Shadows & Glassmorphism */
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --card-radius: 16px;
    --button-radius: 8px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

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

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

li {
    list-style: none;
}

input, textarea, button {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

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

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

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

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

::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

/* ==========================================================================
   DECORATIVE BACKGROUNDS & GLOBALS
   ========================================================================== */
.bg-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(99, 102, 241, 0.035) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 2;
    animation: pulse-blob 8s infinite alternate ease-in-out;
}

.blob-1 {
    top: 10%;
    right: 10%;
    width: 450px;
    height: 450px;
    background: var(--accent-indigo);
}

.blob-2 {
    top: 40%;
    left: 5%;
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    animation-delay: -2s;
}

.blob-3 {
    bottom: 15%;
    right: 15%;
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    animation-delay: -4s;
}

@keyframes pulse-blob {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    100% { transform: scale(1.15) translate(20px, -20px); opacity: 0.18; }
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--grad-primary);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease-out;
}

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

.section {
    padding: 7rem 0;
    position: relative;
    z-index: 5;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Badge Tags */
.badge-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-indigo);
    border: 1px solid rgba(99, 102, 241, 0.2);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Gradient Text */
.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--button-radius);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

.btn-primary {
    background: var(--grad-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: var(--transition-slow);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    border: 1px solid var(--accent-indigo);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.02);
}

.btn-outline:hover {
    background: var(--accent-indigo);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
}

.btn-text {
    color: var(--accent-indigo);
    font-weight: 500;
}

.btn-text:hover {
    color: var(--accent-purple);
    transform: translateX(3px);
}

.btn-block {
    width: 100%;
}

.btn-outline-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--button-radius);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.btn-outline-icon:hover {
    border-color: var(--accent-indigo);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

/* Glassmorphism Card Style Utility */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--glass-shadow);
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 100;
    transition: var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    height: 70px;
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: var(--border-color);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.logo-accent {
    color: var(--accent-indigo);
}

.nav-menu ul {
    display: flex;
    gap: 2.25rem;
}

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

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

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 40px;
}

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

.hero-content {
    max-width: 680px;
}

.hero-content .badge-tag {
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    height: 3rem; /* Prevents layout shifting during typing */
}

.typed-cursor {
    color: var(--accent-indigo);
    opacity: 1;
    animation: blink-cursor 1s infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Terminal Mockup Visual Graphic */
.terminal-mockup {
    background: var(--bg-terminal);
    border: var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    transition: var(--transition-normal);
}

.terminal-mockup:hover {
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
}

.terminal-header {
    background: #111827;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-btn.close { background: #ef4444; }
.terminal-btn.minimize { background: #eab308; }
.terminal-btn.expand { background: #22c55e; }

.terminal-title {
    margin-left: 0.5rem;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-code);
    font-size: 0.9rem;
    overflow-x: auto;
}

/* Simple Syntax Highlighting for Terminal Mockup */
.token.keyword { color: #f43f5e; font-weight: 500; }
.token.operator { color: #eab308; }
.token.string { color: #10b981; }
.token.comment { color: #6b7280; font-style: italic; }

.code-json .key { color: #f43f5e; }
.code-json .string { color: #10b981; }

.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse-icon {
    display: block;
    width: 26px;
    height: 44px;
    border: 2px solid var(--text-secondary);
    border-radius: 100px;
    position: relative;
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-8px) translateX(-50%); }
    60% { transform: translateY(-4px) translateX(-50%); }
}

/* ==========================================================================
   ABOUT ME SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4.5rem;
    align-items: center;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-headline {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

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

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

.soft-qualities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.quality-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 12px;
    transition: var(--transition-normal);
}

.quality-card:hover {
    border-color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

.quality-icon {
    font-size: 1.5rem;
    color: var(--accent-indigo);
    margin-bottom: 0.75rem;
}

.quality-card h4 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.quality-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
}

.panel-heading {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.panel-heading i {
    color: var(--accent-indigo);
}

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

.skill-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition-normal);
}

.skill-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-indigo);
}

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

/* Skill Icon Colors */
.text-react { color: #61dafb; }
.text-js { color: #f7df1e; }
.text-html { color: #e34f26; }
.text-css { color: #1572b6; }
.text-python { color: #3776ab; }
.text-git { color: #f05032; }
.text-github { color: #f3f4f6; }

.skill-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
}

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

/* Interactive spin for React logo on hover */
.animate-spin-slow {
    animation: spin 12s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.soft-skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.soft-skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    font-size: 0.95rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.progress {
    height: 100%;
    background: var(--grad-primary);
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
    width: 0; /* Animated dynamically or set statically */
    box-shadow: 0 0 8px var(--accent-indigo);
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.05);
}

.filter-btn.active {
    background: var(--grad-primary);
    color: var(--text-primary);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

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

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-indigo);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.15);
}

/* Card Visual Header */
.project-preview {
    height: 190px;
    background: #0d1220;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.project-mockup-graphic {
    width: 80%;
    height: 75%;
    background: rgba(9, 13, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-normal);
}

.project-card:hover .project-mockup-graphic {
    transform: scale(1.05);
}

.journal-icon {
    font-size: 1.8rem;
    color: var(--accent-indigo);
}

.mock-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.code-lines span {
    display: block;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 4px;
}
.code-lines span:nth-child(1) { width: 90%; }
.code-lines span:nth-child(2) { width: 70%; }
.code-lines span:nth-child(3) { width: 50%; }

/* Background visual colors */
.preview-siare {
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 80%);
}
.preview-horizon {
    background: radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.25) 0%, transparent 80%);
}
.preview-conference {
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 80%);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 10;
}

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

/* Card details text */
.project-details {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-indigo);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.project-details h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.tech-pills span {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.project-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Filtering Animations Classes */
.project-card.fade-out {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: none;
}

.project-card.fade-in {
    animation: card-reveal 0.4s ease forwards;
}

@keyframes card-reveal {
    from { opacity: 0; transform: translateY(15px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   EDUCATION TIMELINE & CERTIFICATIONS
   ========================================================================== */
.edu-achieve-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4.5rem;
}

.sub-section-title {
    font-size: 1.5rem;
    margin-bottom: 2.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sub-section-title i {
    color: var(--accent-indigo);
}

/* Timeline Layout */
.timeline {
    position: relative;
    padding-left: 1.75rem;
    border-left: 2px solid rgba(255, 255, 255, 0.06);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

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

.timeline-dot {
    position: absolute;
    top: 5px;
    left: -1.75rem;
    width: 14px;
    height: 14px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-indigo);
    border-radius: 50%;
    transform: translateX(-40%);
    box-shadow: 0 0 8px var(--accent-indigo-glow);
    z-index: 5;
    transition: var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-indigo);
    box-shadow: 0 0 12px var(--accent-indigo);
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.timeline-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-institution {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

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

/* Certifications Layout */
.inner-block {
    position: relative;
}

.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cert-card {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    transition: var(--transition-normal);
}

.cert-card:hover {
    border-color: var(--accent-indigo);
    transform: translateX(4px);
}

.cert-icon {
    font-size: 1.8rem;
    color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.08);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-details h4 {
    font-size: 1.05rem;
    font-weight: 600;
}

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

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

/* Key Accomplishments bullets */
.achievements-bullets {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievements-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.bullet-icon {
    color: var(--accent-indigo);
    font-size: 1.1rem;
    margin-top: 0.15rem;
}

.achievements-bullets p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.90fr 1.10fr;
    gap: 4.5rem;
}

.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.contact-prompt {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.channel-card {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition-normal);
}

.channel-card[href]:hover {
    border-color: var(--accent-indigo);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}

.channel-icon {
    font-size: 1.5rem;
    color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.08);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.channel-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.channel-value {
    font-size: 1rem;
    font-weight: 500;
}

.socials-container {
    margin-top: 2.5rem;
}

.socials-container p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

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

.socials-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.socials-links a:hover {
    color: var(--text-primary);
    background: var(--accent-indigo);
    border-color: transparent;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
    transform: translateY(-3px);
}

/* Contact Form CSS */
.contact-form-container {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: var(--card-radius);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.input-wrapper textarea {
    padding-top: 0.85rem;
    resize: none;
}

.textarea-wrapper i {
    top: 1rem;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    border-color: var(--accent-indigo);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-response-msg {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.form-response-msg.success {
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    padding: 0.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-response-msg.error {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    padding: 0.5rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
    background: #02050d;
    padding: 4rem 0 2.5rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 5;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

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

.footer-socials {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

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

.footer-socials a:hover {
    color: var(--text-primary);
    background: var(--accent-indigo);
    border-color: transparent;
    transform: translateY(-2px);
}

.footer-divider {
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 1.5rem;
}

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

/* Back to top UI */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: var(--glass-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--glass-shadow);
}

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

.back-to-top:hover {
    background: var(--accent-indigo);
    border-color: transparent;
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   INTERACTIVE RESUME MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: var(--transition-normal);
}

.modal-overlay.open .modal-card {
    transform: scale(1);
}

.modal-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
}

.modal-close-btn {
    font-size: 2rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

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

.modal-body {
    padding: 2rem;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Printable CV Content Styling */
.resume-printable-content {
    color: #1e293b;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

.resume-header {
    border-bottom: 2px solid #6366f1;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.resume-header h2 {
    color: #1e293b;
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
}

.resume-sub {
    color: #4f46e5;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.resume-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #64748b;
}

.resume-contacts span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.resume-contacts i {
    color: #6366f1;
}

.resume-section {
    margin-bottom: 1.5rem;
}

.resume-section h3 {
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.35rem;
    margin-bottom: 0.85rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.resume-item {
    margin-bottom: 1rem;
}

.resume-item-title {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.resume-item-title strong {
    color: #0f172a;
}

.resume-item-title a {
    color: #4f46e5;
    font-weight: 500;
}

.resume-item p {
    font-size: 0.85rem;
    color: #475569;
}

.resume-section ul {
    padding-left: 1.25rem;
}

.resume-section li {
    list-style: disc;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.35rem;
}

.resume-section p {
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.35rem;
}

/* Print Specific Logic */
@media print {
    body * {
        visibility: hidden;
    }
    #printable-resume, #printable-resume * {
        visibility: visible;
    }
    #printable-resume {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
        margin: 0;
        background: transparent;
    }
    .modal-overlay {
        background: transparent !important;
        position: static;
        overflow: visible;
        display: block;
    }
    .modal-card {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        max-width: 100% !important;
        max-height: 100% !important;
        position: static;
    }
    .modal-header, .modal-footer {
        display: none !important;
    }
    .resume-printable-content {
        padding: 0;
        color: #000;
        background: #fff;
    }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Animations declarations */
@keyframes slide-up-animation {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-animation {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-slide-up {
    animation: slide-up-animation 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in {
    animation: fade-in-animation 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Animation Delays */
.hero-content .animate-slide-up:nth-child(2) { animation-delay: 0.1s; }
.hero-content .animate-slide-up:nth-child(3) { animation-delay: 0.25s; }
.hero-content .animate-slide-up:nth-child(4) { animation-delay: 0.4s; }
.hero-content .animate-fade-in { animation-delay: 0.5s; }

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    .hero-container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 2rem;
    }
    .hero-title {
        font-size: 3.2rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-terminal {
        order: 2;
        max-width: 580px;
        margin: 0 auto;
        width: 100%;
    }
    .about-details {
        order: 1;
    }
    .skills-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .edu-achieve-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    /* Disable background floating blobs on mobile for performance & visual cleanliness */
    .glow-blob {
        display: none !important;
    }

    /* Disable hover floating/translation animations on touch screens to prevent stuck hover states */
    .terminal-mockup:hover,
    .quality-card:hover,
    .skill-card:hover,
    .project-card:hover,
    .cert-card:hover,
    .channel-card[href]:hover,
    .btn:hover,
    .btn-primary:hover,
    .btn-outline:hover,
    .socials-links a:hover,
    .footer-socials a:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .header {
        height: 70px;
        background: rgba(3, 7, 18, 0.85);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: var(--border-color);
    }
    .hamburger-menu {
        display: flex;
    }
    
    /* Mobile Menu Drawer style */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(3, 7, 18, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 3rem 1.5rem;
        transition: var(--transition-normal);
        z-index: 100;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .btn-contact-nav {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-graphic {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }
    
    .hero-subtitle {
        height: auto;
        margin-bottom: 2rem;
    }
    
    .soft-qualities-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .contact-form-container {
        padding: 1.75rem;
    }
    
    /* Hamburger animation states */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    .hero-title {
        font-size: 2.6rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    .hero-ctas .btn, .hero-ctas button {
        width: 100%;
    }
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 38px;
        height: 38px;
    }
    .modal-card {
        width: 95%;
        max-height: 90vh;
    }
    .resume-printable-content {
        padding: 1.25rem;
    }
    .resume-header h2 {
        font-size: 1.6rem;
    }
}
