/* =========================================
   PORTFOLIO - DARK VIOLET THEME
   Professional Design System
   ========================================= */

:root {
    /* Dark Violet Color Palette */
    --bg-primary: #0f0a1a;
    --bg-secondary: #1a0f2e;
    --bg-card: #1f1538;
    --bg-card-hover: #2a1d47;

    /* Violet Spectrum */
    --violet-900: #1a0f2e;
    --violet-700: #4a2f7a;
    --violet-600: #6b46c1;
    --violet-500: #8b5cf6;
    --violet-400: #a78bfa;
    --violet-300: #c4b5fd;

    /* Accent Colors */
    --accent-pink: #d946ef;
    --accent-cyan: #06b6d4;

    /* Text Colors */
    --text-primary: #f5f3ff;
    --text-secondary: #c4b5fd;
    --text-muted: #9ca3af;

    /* Borders & Effects */
    --border-subtle: rgba(139, 92, 246, 0.15);
    --border-strong: rgba(139, 92, 246, 0.3);
    --glow-violet: 0 0 20px rgba(139, 92, 246, 0.3);
    --glow-strong: 0 0 30px rgba(139, 92, 246, 0.5);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --container-max: 1280px;
    --header-height: 72px;
    --section-padding: 120px;

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

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

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

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

::selection {
    background-color: var(--violet-500);
    color: var(--text-primary);
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    background: linear-gradient(135deg, var(--text-primary), var(--violet-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-subtitle {
    text-align: center;
    color: var(--accent-pink);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: -2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
}


.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--violet-600), var(--accent-pink));
    border-radius: 2px;
    box-shadow: var(--glow-violet);
}

.highlight {
    color: var(--violet-400);
    position: relative;
}

/* HERO SCREEN & INTRO */
.hero-screen {
    min-height: calc(100vh - 280px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-bottom: 4rem;
}

.intro-text-large {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.8;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    padding: 0 2rem;
    color: var(--text-secondary);
}

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

/* SCROLL HINT */
.scroll-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 1.8rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.scroll-hint:hover {
    opacity: 1;
    color: var(--accent-pink);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--violet-600), var(--violet-500));
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-strong);
    color: var(--text-primary);
    margin-left: 1rem;
}

.btn-outline:hover {
    border-color: var(--violet-400);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

/* =========================================
   GLASSMORPHIC NAVIGATION
   ========================================= */
.glass-nav {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: transform var(--transition-fast);
    z-index: 2;
}

.logo:hover {
    transform: scale(1.05);
}

.logo .highlight {
    background: linear-gradient(135deg, var(--violet-500), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(26, 15, 46, 0.4);
    backdrop-filter: blur(30px) saturate(200%);
    padding: 0.5rem;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 2px 8px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-tabs:hover {
    background: rgba(26, 15, 46, 0.5);
    border-color: rgba(139, 92, 246, 0.15);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.5rem;
    border-radius: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: transparent;
}

.nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.8),
            rgba(139, 92, 246, 0.6));
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-tab i {
    font-size: 1.1rem;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-tab:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-tab:hover i {
    transform: scale(1.2) rotate(-5deg);
}

.nav-tab:hover::before {
    opacity: 0.5;
}

.nav-tab.active {
    background: linear-gradient(135deg,
            var(--violet-600),
            var(--violet-500));
    color: var(--text-primary);
    box-shadow:
        0 6px 20px rgba(139, 92, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-tab.active::before {
    opacity: 1;
}

.nav-tab.active i {
    transform: scale(1.08);
}

/* Floating effect on scroll */
.glass-nav.scrolled {
    top: 10px;
}

.glass-nav.scrolled .nav-tabs {
    background: rgba(26, 15, 46, 0.6);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.35),
        0 6px 16px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 0;
    /* Background removed to match site theme (var(--bg-primary) from body) */
}

/* Removed .hero::before used for the old overlay */

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.code-style {
    display: block;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--violet-400);
    font-weight: 600;
    margin-top: 1rem;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================
   PAGE SECTIONS (for multi-page layout)
   ========================================= */
.page-section {
    min-height: calc(100vh - 120px);
    padding-top: 120px;
}

/* =========================================
   MOTIVATION SECTION
   ========================================= */
.motivation {
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.motivation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.motivation-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.motivation-text em {
    color: var(--violet-400);
    font-style: normal;
    font-weight: 600;
}

.skills-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.skills-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 0.5rem 0;
}

.skills-list li i {
    color: var(--violet-500);
    font-size: 1.25rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 2.25rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    min-height: 140px;
    justify-content: center;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--violet-500);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

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

.tool-icon {
    font-size: 2.5rem;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.tool-card:hover .tool-icon {
    color: var(--violet-400);
    transform: scale(1.1);
}

.tool-card span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    z-index: 1;
}

/* Skills Tags */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.skill-tag {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--violet-300);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: var(--violet-500);
    transform: translateY(-2px);
    color: white;
}

/* =========================================
   PROJECTS SECTION
   ========================================= */
.projects {
    background: var(--bg-primary);
}

/* =========================================
   PROJECTS SECTION REMNANTS CLEARED
   ========================================= */
.projects {
    background: var(--bg-primary);
}

/* =========================================
   NEW EXPANDABLE TIMELINE
   ========================================= */

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 50px;
}

/* La ligne excentrée à gauche */
.timeline-line {
    position: absolute;
    left: 15px;
    top: 20px;
    bottom: 20px;
    width: 4px;
    background: linear-gradient(180deg,
            var(--violet-600) 0%,
            var(--accent-pink) 50%,
            transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.timeline-project {
    position: relative;
    margin-bottom: 3rem;
    transition: all 0.4s ease;
}

.timeline-dot {
    position: absolute;
    left: -44px;
    top: 24px;
    width: 22px;
    height: 22px;
    background: var(--bg-primary);
    border: 4px solid var(--violet-500);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
    transition: all 0.3s ease;
}

.timeline-project:hover .timeline-dot,
.timeline-project.active .timeline-dot {
    background: var(--violet-500);
    border-color: var(--accent-pink);
    transform: scale(1.2);
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.6);
}

/* --- Project Card (Header + Wrapper) --- */
.project-card-wrapper,
.glass-card {
    background: rgba(26, 15, 46, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.timeline-project:hover .project-card-wrapper {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.timeline-project.active .project-card-wrapper {
    border-color: var(--violet-500);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.25);
    background: rgba(26, 15, 46, 0.85);
}

/* --- Header Compact --- */
.project-header {
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
}

.project-date {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-pink);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.project-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.project-icon {
    font-size: 1.8rem;
    color: var(--violet-400);
    min-width: 40px;
    text-align: center;
}

.project-title {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 800;
    line-height: 1.2;
}

.project-summary {
    color: var(--text-secondary);
    margin-bottom: 0;
    padding-right: 40px;
    font-size: 1rem;
    line-height: 1.5;
}

.expand-btn {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--violet-300);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.expand-btn span {
    display: inline-block;
}

.expand-btn i {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.timeline-project.active .expand-btn {
    background: var(--violet-600);
    color: white;
    border-color: var(--violet-600);
}

.timeline-project.active .expand-btn i {
    transform: rotate(180deg);
}

/* --- Details Content (Expandable) --- */
.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.details-content {
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.timeline-project.active .details-content {
    opacity: 1;
    transform: translateY(0);
}

.full-description {
    line-height: 1.7;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}


/* --- Tech Stack & Info --- */
.tech-stack-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-details-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    display: grid;
    gap: 0.8rem;
}

.tech-details-list li {
    background: rgba(139, 92, 246, 0.08);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--violet-500);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tech-details-list strong {
    color: var(--violet-300);
    margin-right: 0.3rem;
}

/* --- Gallery --- */
.project-gallery {
    margin: 2rem 0;
    position: relative;
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--violet-600) rgba(0, 0, 0, 0.3);
}

.gallery-scroll img {
    height: 250px;
    border-radius: 8px;
    scroll-snap-align: start;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.gallery-scroll img:hover {
    transform: scale(1.02);
}

.gallery-hint {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

.placeholder-gallery .placeholder-content {
    background: rgba(255, 255, 255, 0.05);
    height: 150px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.placeholder-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.alert-box {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* --- Footer Actions --- */
.project-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.github-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.github-btn.disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    cursor: not-allowed;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact {
    background: var(--bg-primary);
}

.contact-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: -2rem auto 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: var(--violet-500);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.25);
}

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

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--violet-600), var(--violet-500));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-primary);
    box-shadow: var(--glow-violet);
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--glow-strong);
}

.contact-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    z-index: 1;
}

.contact-card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    word-break: break-word;
    z-index: 1;
    transition: color var(--transition-fast);
}

.contact-card:hover .contact-card-text {
    color: var(--violet-300);
}

/* Link reset for contact cards */
/* =========================================
   CONTACT UNIFIED CARD
   ========================================= */
.contact-unified-wrapper {
    margin-top: 2rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    transition: background 0.2s ease;
    border-radius: 8px;
}

.contact-row:hover {
    background: rgba(139, 92, 246, 0.05);
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-icon-small {
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--violet-400);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.contact-value {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-value:hover {
    color: var(--violet-400);
}

.copy-btn {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--violet-300);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.copy-btn:hover {
    background: var(--violet-600);
    color: white;
    border-color: var(--violet-600);
}

.contact-divider {
    height: 1px;
    background: rgba(139, 92, 246, 0.2);
    margin: 1.5rem 0;
}

.contact-socials-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(26, 15, 46, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 1rem;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    background: var(--violet-700);
    border-color: var(--violet-500);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.social-btn i {
    font-size: 1.25rem;
}

/* Tooltip */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 60px;
    background-color: var(--violet-600);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--violet-600) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* --- Unifying Home Tool Cards to Match --- */
.tool-card {
    /* Extending reuse of styles */
    background: rgba(26, 15, 46, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    /* ... existing styles ... */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}


/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 2.5rem 0;
    text-align: center;
}

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

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .motivation-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .glass-nav {
        top: 10px;
        width: 95%;
    }

    .nav-wrapper {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .nav-tabs {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-tab {
        padding: 0.5rem 0.5rem;
        font-size: 0.85rem;
        flex: 1 1 auto;
        min-width: 60px;
        /* Reduced from 100px to fit on one line */
        justify-content: center;
    }

    .nav-tab span {
        display: none;
    }

    .nav-tab i {
        font-size: 1.25rem;
    }

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

    .btn-outline {
        margin-left: 0;
    }

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

    .timeline-container {
        padding-left: 2rem;
    }

    .timeline-dot {
        left: -2.625rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .page-section,
    .hero {
        padding-top: 140px;
        /* Increased to prevent nav overlap on all pages */
    }

    /* New Timeline Responsive Fixes */
    .timeline-container {
        padding-left: 40px;
    }

    .timeline-line {
        left: 18px;
    }

    .timeline-dot {
        left: -31px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .glass-nav {
        width: calc(100% - 20px);
    }

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

    .timeline-container {
        padding-left: 20px;
    }
}

/* =========================================
   ANIMATIONS & EFFECTS
   ========================================= */
@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: gradientShift 20s ease infinite;
    pointer-events: none;
}