/*
 * Premium ML/AI Portfolio — Styles
 * Author: Grzegorz Mróz
 * Theme: Ultra-dark with electric blue/cyan, glassmorphism, micro-animations
 */

/* ==============================
   DESIGN TOKENS
   ============================== */
:root {
    /* Core palette */
    --bg-primary: #030712;
    --bg-secondary: #0c1222;
    --bg-elevated: #111827;
    --bg-card: rgba(17, 24, 39, 0.6);

    /* Accent colors */
    --accent-primary: #3b82f6;
    --accent-secondary: #06b6d4;
    --accent-glow: rgba(59, 130, 246, 0.35);
    --accent-gradient: linear-gradient(135deg, #3b82f6, #06b6d4);
    --accent-gradient-r: linear-gradient(135deg, #06b6d4, #3b82f6);

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #60a5fa;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(59, 130, 246, 0.3);
    --border-glow: rgba(59, 130, 246, 0.15);

    /* Glass */
    --glass-bg: rgba(3, 7, 18, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Layout */
    --nav-height: 72px;
    --max-width: 1200px;
    --section-padding: 120px 0;
    --border-radius: 16px;
    --border-radius-sm: 10px;
}

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

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

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

::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, transform 0.3s ease;
}

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

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ==============================
   CANVAS (PARTICLES)
   ============================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ==============================
   SECTION UTILITIES
   ============================== */
.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-number {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.85em;
    margin-right: 0.5rem;
    font-weight: 500;
}

/* ==============================
   BUTTONS
   ============================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
    background: rgba(59, 130, 246, 0.08);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

/* ==============================
   NAVIGATION
   ============================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

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

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-links a:not(.btn-nav-contact)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

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

.btn-nav-contact {
    padding: 8px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}

.btn-nav-contact:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 1001;
}

.bar {
    display: block;
    width: 26px;
    height: 2px;
    margin: 6px auto;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    left: 0;
    top: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(3, 7, 18, 0.97);
    backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.mobile-menu.active {
    top: 0;
    opacity: 1;
}

.mobile-link {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.mobile-link:hover {
    color: var(--accent-primary);
    transform: translateX(10px);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    align-items: center;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

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

.subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
    min-height: 2.5rem;
}

.cursor {
    color: var(--accent-primary);
    font-weight: 300;
    animation: blink 1s infinite;
}

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

.hero-description {
    font-size: 1.05rem;
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

/* 3D Skills Graph */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#skills-graph-container {
    position: relative;
    width: 100%;
    /* Max-width expanded to allow the graph to take up more space */
    max-width: 800px;
    height: 600px; /* Increased height */
    /* Removed border, box-shadow, and overflow: hidden to make it look boundless */
    /* Optional: keep a very subtle glow but no hard edges */
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
}

#skills-graph {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
}

#skills-graph:active {
    cursor: grabbing;
}

.graph-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 6px 14px;
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    pointer-events: none;
    opacity: 0.7;
    animation: hintFade 6s ease-in-out forwards;
}

@keyframes hintFade {
    0%, 70% { opacity: 0.7; }
    100% { opacity: 0; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

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

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

.scroll-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* ==============================
   ABOUT SECTION
   ============================== */
.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:hover {
    transform: translateX(8px);
    border-color: var(--border-hover);
    background: rgba(59, 130, 246, 0.04);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.about-card-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    font-size: 1.3rem;
}

.about-card h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.about-card p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* ==============================
   TIMELINE (Education & Experience)
   ============================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary), transparent);
    top: 0;
    bottom: 0;
    left: 14px;
    border-radius: 1px;
}

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

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

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 24px;
}

.timeline-dot-outer {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.section-alt .timeline-dot-outer {
    background: var(--bg-secondary);
}

.timeline-dot-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.4s ease;
}

.timeline-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.timeline-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 600;
    font-family: var(--font-mono);
    margin-bottom: 1rem;
}

.timeline-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.timeline-card h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-card h4 i {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.specialization {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 6px 14px;
    background: rgba(6, 182, 212, 0.08);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.specialization i {
    font-size: 0.85rem;
}

/* Modules (chips) */
.modules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.modules span {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.modules span:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--border-hover);
    color: var(--text-accent);
}

/* Thesis Box */
.thesis-box {
    display: flex;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.thesis-box i {
    color: var(--accent-primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.timeline-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.timeline-note i {
    color: var(--accent-secondary);
    font-size: 0.8rem;
}

/* Location Tag */
.location-tag {
    margin-left: 0.5rem;
    padding: 2px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.location-tag i {
    color: var(--accent-primary);
    font-size: 0.75rem;
    margin-right: 0.2rem;
}

/* Experience list */
.experience-list {
    padding-left: 0;
    margin-top: 0.5rem;
}

.experience-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.experience-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 700;
}

/* ==============================
   SKILLS SECTION
   ============================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

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

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skill-icon-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    font-size: 1.15rem;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon-wrap {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.skill-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

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

.skill-tags span {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.skill-tags span:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--border-hover);
    color: var(--text-accent);
    transform: translateY(-2px);
}

/* ==============================
   PROJECTS SECTION
   ============================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(12, 18, 34, 0.8));
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(59, 130, 246, 0.05);
}

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

.project-content {
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

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

.project-folder {
    font-size: 2.2rem;
    color: var(--accent-primary);
}

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

.project-links-top a {
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.project-links-top a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.project-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--text-accent);
}

.project-desc {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-tech span {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-weight: 500;
}

/* ==============================
   FOOTER / CONTACT
   ============================== */
.footer {
    background: var(--bg-secondary);
    padding: 100px 0 0 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-subtle);
}

.footer-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem auto;
}

.footer-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.2rem;
    margin-top: 0.5rem;
}

.footer-cta p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.footer-links {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-social a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom p {
    color: var(--text-muted);
    margin: 0;
}

.heart {
    color: #ef4444;
    display: inline-block;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.2); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    56% { transform: scale(1); }
}

.footer-info {
    display: flex;
    gap: 1.5rem;
}

.footer-info span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-info i {
    color: var(--accent-primary);
    font-size: 0.8rem;
}

/* ==============================
   REVEAL ANIMATIONS
   ============================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

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

/* ==============================
   RESPONSIVE DESIGN
   ============================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

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

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

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

    .social-links {
        justify-content: center;
    }

    #skills-graph-container {
        max-width: 400px;
        height: 380px;
        margin: 0 auto;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-cards {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .about-card {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 230px;
    }
}

@media (max-width: 900px) {
    :root {
        --section-padding: 80px 0;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .section-title {
        margin-bottom: 3rem;
    }

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

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

@media (max-width: 600px) {
    :root {
        --section-padding: 60px 0;
        --nav-height: 64px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

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

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

    .about-cards {
        flex-direction: column;
    }

    .about-card {
        flex: 1 1 100%;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 8px;
    }

    .timeline-marker {
        left: -30px;
    }

    .timeline-dot-outer {
        width: 22px;
        height: 22px;
    }

    .timeline-dot-inner {
        width: 8px;
        height: 8px;
    }

    .timeline-card {
        padding: 1.5rem;
    }

    .project-content {
        padding: 1.8rem;
    }

    .footer-cta h2 {
        font-size: 1.8rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}
