/* ============================================
   DESIGN SYSTEM - CSS Custom Properties
   ============================================ */
:root {
    /* Colors - Dark Theme with .NET Purple Accent */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-glass: rgba(18, 18, 26, 0.85);

    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent-primary: #7c3aed;
    --accent-hover: #8b5cf6;
    --accent-glow: rgba(124, 58, 237, 0.3);
    --accent-secondary: #06b6d4;
    --accent-tertiary: #10b981;

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Layout */
    --container-max: 1100px;
    --nav-height: 64px;
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Focus Styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    background: var(--accent-primary);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius-sm);
    z-index: 9999;
    font-size: var(--text-sm);
}

.skip-link:focus {
    top: var(--space-2);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-24) 0;
}

/* Section Title */
.section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-12);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
    margin-left: var(--space-4);
}

.section-number {
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--accent-primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-outline:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-hover);
}

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

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    font-weight: 500;
    text-decoration: none;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

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

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

.logo-name {
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding: var(--space-1) 0;
    transition: color var(--transition-fast);
}

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

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

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

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.nav-toggle.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--accent-glow);
    filter: blur(80px);
}

.hero-particles::before {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
}

.hero-particles::after {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    background: rgba(6, 182, 212, 0.15);
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-16);
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    font-size: var(--text-sm);
    color: var(--accent-tertiary);
    margin-bottom: var(--space-6);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-tertiary);
    display: inline-block;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

.highlight {
    color: var(--accent-primary);
}

.hero-subtitle {
    font-size: var(--text-2xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    min-height: 2.4rem;
}

.typing-prefix {
    color: var(--text-secondary);
}

.typing-text {
    color: var(--accent-secondary);
    font-weight: 500;
}

.typing-cursor {
    color: var(--accent-primary);
    font-weight: 300;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-8);
    max-width: 520px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.hero-tech-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tech-chip {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    padding: var(--space-1) var(--space-3);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    transition: all var(--transition-fast);
}

.tech-chip:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Code Window */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.code-window-bar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-subtle);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.code-filename {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.code-content {
    padding: var(--space-5);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.8;
    overflow-x: auto;
    margin: 0;
    background: transparent;
}

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

.code-content .kw { color: var(--accent-primary); }
.code-content .fn { color: #dcdcaa; }
.code-content .str { color: var(--accent-tertiary); }
.code-content .cm { color: var(--text-muted); }

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-12);
    align-items: start;
}

.image-frame {
    position: relative;
    width: 280px;
    height: 280px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 4rem;
    position: relative;
    z-index: 1;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    position: relative;
    z-index: 1;
}

.image-border {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-primary);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-base);
}

.image-frame:hover .image-border {
    top: 10px;
    left: 10px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.about-details {
    margin-top: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.detail-item i {
    color: var(--accent-primary);
    font-size: var(--text-lg);
    width: 20px;
    text-align: center;
}

/* ============================================
   SKILLS
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.skill-category {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    transition: all var(--transition-base);
}

.skill-category:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--accent-primary);
    font-size: var(--text-xl);
}

.category-header h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.skill-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.skill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skill-dot.primary {
    background: var(--accent-primary);
}

.skill-dot.secondary {
    background: var(--text-muted);
}

/* ============================================
   EXPERIENCE
   ============================================ */
.timeline {
    position: relative;
    padding-left: var(--space-8);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--border-subtle));
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-8);
}

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-8) - 5px);
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 2px var(--accent-primary);
}

.timeline-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
}

.timeline-header {
    margin-bottom: var(--space-3);
}

.timeline-header h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-company {
    font-size: var(--text-base);
    color: var(--accent-primary);
    font-weight: 500;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.timeline-date,
.timeline-location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.timeline-details {
    margin-bottom: var(--space-4);
    padding-left: var(--space-4);
}

.timeline-details li {
    position: relative;
    padding-left: var(--space-4);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
    line-height: 1.7;
}

.timeline-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tag {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent-secondary);
    padding: var(--space-1) var(--space-3);
    background: rgba(6, 182, 212, 0.1);
    border-radius: var(--border-radius-sm);
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.1);
}

.project-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    color: var(--text-muted);
}

.project-image-placeholder i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    opacity: 0.5;
}

.project-image-placeholder span {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
}

.project-card.featured .project-image-placeholder {
    height: 100%;
    min-height: 280px;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.project-links {
    display: flex;
    gap: var(--space-4);
}

.project-links a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: var(--text-xl);
    transition: all var(--transition-fast);
}

.project-links a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    transform: scale(1.1);
}

.project-info {
    padding: var(--space-5);
}

.project-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: var(--space-2);
}

.project-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.project-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent-secondary);
}

.project-tech span:not(:last-child)::after {
    content: ' \00b7';
    color: var(--text-muted);
    margin-left: var(--space-2);
}

/* ============================================
   EDUCATION
   ============================================ */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.education-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    transition: all var(--transition-base);
}

.education-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.edu-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    border-radius: var(--border-radius-md);
    color: var(--accent-primary);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.education-card h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.edu-subtitle {
    display: block;
    font-size: var(--text-sm);
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: var(--space-3);
}

.edu-institution {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.edu-detail {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-1);
}

.edu-date {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-2);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-10);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-10);
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-5);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    transition: all var(--transition-base);
}

.contact-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.1);
}

.contact-card i {
    font-size: var(--text-2xl);
    color: var(--accent-primary);
}

.contact-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-value {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--space-8) 0;
    border-top: 1px solid var(--border-subtle);
}

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

.footer-content p {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-4);
}

.footer-links a {
    color: var(--text-muted);
    font-size: var(--text-xl);
    transition: color var(--transition-fast);
}

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

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 768px) {
    :root {
        --text-5xl: 2.25rem;
        --text-3xl: 1.5rem;
    }

    .section {
        padding: var(--space-16) 0;
    }

    /* Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-8);
        transition: right var(--transition-slow);
        border-left: 1px solid var(--border-subtle);
    }

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

    .nav-link {
        font-size: var(--text-lg);
    }

    /* Hero */
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-visual {
        display: none;
    }

    .hero-badge {
        margin: 0 auto var(--space-6);
    }

    .hero-description {
        max-width: 100%;
    }

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

    .hero-tech-strip {
        justify-content: center;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .about-details {
        align-items: center;
    }

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

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

    .project-card.featured {
        grid-template-columns: 1fr;
    }

    /* Education */
    .education-grid {
        grid-template-columns: 1fr;
    }

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

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 480px) {
    :root {
        --text-5xl: 1.875rem;
        --text-2xl: 1.25rem;
    }

    .container {
        padding: 0 var(--space-4);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    .timeline {
        padding-left: var(--space-6);
    }

    .timeline-marker {
        left: calc(-1 * var(--space-6) - 5px);
    }
}

/* ============================================
   WHATSAPP — CARD + FLOATING BUTTON
   ============================================ */

/* Contact card with WhatsApp brand color on hover */
.contact-card-whatsapp:hover {
    border-color: #25D366;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.18);
}
.contact-card-whatsapp i {
    color: #25D366;
}

/* Floating action button — bottom right, always visible */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 9999;
    animation: whatsapp-pulse 2.2s infinite;
}

.whatsapp-float i {
    font-size: 30px;
    line-height: 1;
    color: #ffffff;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
    animation: none;
}

/* Tooltip — appears on hover (desktop only) */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #111827;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}

/* Pulse animation — gentle ring effect */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45),
                    0 0 0 0 rgba(37, 211, 102, 0.55);
    }
    70% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45),
                    0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45),
                    0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile — smaller button, hide tooltip */
@media (max-width: 640px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-float i {
        font-size: 28px;
    }
    .whatsapp-tooltip {
        display: none;
    }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none;
    }
}
