/* ============================================
   BUT INFORMATIQUE STYLESHEET
   ============================================ */

:root {
    --primary-blue: #0066cc;
    --dark-blue: #003d7a;
    --light-blue: #e6f2ff;
    --accent-green: #00cc88;
    --dark-bg: #0a1929;
    --darker-bg: #04111d;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --border-light: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 102, 204, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 204, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 102, 204, 0.2);
    border: 1px solid rgba(0, 102, 204, 0.4);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0d5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(0, 102, 204, 0.1);
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2rem;
    color: var(--accent-green);
}

.stat-card .stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.stat-card .stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-green) 100%);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
    margin-top: 2rem;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.4);
    color: white;
}

/* ============================================
   SECTIONS COMMUNES
   ============================================ */

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   COMPÉTENCES
   ============================================ */

.section-skills {
    background: var(--light-blue);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.15);
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.skill-icon.python {
    background: linear-gradient(135deg, #3776ab 0%, #ffd43b 100%);
    color: white;
}

.skill-icon.web {
    background: linear-gradient(135deg, #e34c26 0%, #264de4 100%);
    color: white;
}

.skill-icon.algo {
    background: linear-gradient(135deg, #00cc88 0%, #0066cc 100%);
    color: white;
}

.skill-icon.tools {
    background: linear-gradient(135deg, #333 0%, #666 100%);
    color: white;
}

.skill-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.skill-level {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.level-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

.level-dot.active {
    background: var(--primary-blue);
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.5);
}

.skill-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ============================================
   PROJETS
   ============================================ */

.section-projects {
    background: white;
}

.github-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a2332 100%);
    padding: 2rem 3rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    color: white;
}

.github-header i {
    font-size: 3rem;
}

.github-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.github-header a {
    color: var(--accent-green);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.github-header a:hover {
    color: white;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-item {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
}

.project-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
    transform: translateX(10px);
}

.project-item.featured {
    border-width: 3px;
    border-color: var(--accent-green);
    background: linear-gradient(135deg, #f0fff8 0%, #e6f7ff 100%);
}

.featured-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-green);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-title i {
    font-size: 2rem;
    color: var(--primary-blue);
}

.project-title h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.project-tag {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-tag.python {
    background: #3776ab;
    color: white;
}

.project-tag.web {
    background: #e34c26;
    color: white;
}

.project-date {
    color: var(--text-gray);
    font-weight: 600;
}

.project-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-tech span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.project-tech i {
    color: var(--accent-green);
    font-size: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-blue);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--dark-blue);
    color: white;
    transform: translateX(5px);
}

/* ============================================
   SCRATCH TIMELINE
   ============================================ */

.section-scratch {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6f0 100%);
    position: relative;
    overflow: hidden;
}

.scratch-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 107, 53, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.section-scratch .container {
    position: relative;
    z-index: 2;
}

.scratch-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-blue), var(--accent-green));
    transform: translateX(-50%);
}

.scratch-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.scratch-item:nth-child(even) {
    flex-direction: row-reverse;
}

.scratch-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
    z-index: 2;
}

.scratch-card {
    width: 45%;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.scratch-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.scratch-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.scratch-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.scratch-card p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.scratch-concepts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.scratch-concepts span {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.scratch-footer {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 3rem;
    text-align: center;
    border-left: 5px solid var(--accent-green);
}

.scratch-footer p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.scratch-footer i {
    color: var(--accent-green);
    font-size: 1.5rem;
}

/* ============================================
   PARCOURS
   ============================================ */

.section-parcours {
    background: white;
}

.parcours-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 3rem;
    height: 100%;
    transition: all 0.4s ease;
}

.parcours-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.1);
    transform: translateY(-10px);
}

.parcours-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.parcours-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.castor-results {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.castor-results a {
    text-decoration: none !important;
    color: inherit !important;
    flex: 1;
    display: flex;
}

.castor-results a:hover .castor-year {
    background: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.2);
}

.castor-results a:hover .castor-year.highlight {
    background: linear-gradient(135deg, #009966, #00e699);
    box-shadow: 0 10px 20px rgba(0, 204, 136, 0.2);
}

.castor-results a:hover .year-label,
.castor-results a:hover .year-rank {
    color: white !important;
}

.castor-year {
    width: 100%;
    background: var(--light-blue);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.castor-year.highlight {
    background: linear-gradient(135deg, var(--accent-green), #00e699);
}

.castor-year.highlight .year-label,
.castor-year.highlight .year-rank {
    color: white;
}

.year-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.year-rank {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.parcours-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

.mediateur-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.mediateur-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-blue);
    border-radius: 10px;
}

.mediateur-list i {
    color: var(--accent-green);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.mediateur-list span {
    flex: 1;
    color: var(--text-dark);
}

.mediateur-list a {
    color: var(--primary-blue);
    text-decoration: none !important;
    position: relative;
    font-weight: 600;
    transition: color 0.3s ease;
}

.mediateur-list a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-green);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.mediateur-list a:hover {
    color: var(--dark-blue);
}

.mediateur-list a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ============================================
   PROJETS MMI CARDS
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@keyframes fadeUpProj {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.proj-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.08); /* changed to match but-info colors */
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: all 0.3s ease;
    animation: fadeUpProj 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.proj-card:nth-child(1) { animation-delay: 0.1s; }
.proj-card:nth-child(2) { animation-delay: 0.2s; }
.proj-card:nth-child(3) { animation-delay: 0.3s; }
.proj-card:nth-child(4) { animation-delay: 0.4s; }
.proj-card:nth-child(5) { animation-delay: 0.5s; }
.proj-card:nth-child(6) { animation-delay: 0.6s; }
.proj-card:nth-child(7) { animation-delay: 0.7s; }
.proj-card:nth-child(n+8) { animation-delay: 0.8s; }

.proj-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.15);
    border-color: var(--primary-blue);
    z-index: 2;
}

.proj-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.proj-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.proj-card:hover .proj-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.proj-card-icon.python {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFE4C4 100%);
    color: #DA7E22;
    box-shadow: 0 4px 12px rgba(218, 126, 34, 0.2);
}

.proj-card-icon.web {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    color: #1D4ED8;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2);
}

.proj-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.proj-card p {
    font-size: 0.92rem;
    color: var(--text-gray);
    line-height: 1.7;
    flex: 1;
}

.proj-context-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.proj-context-badge.school {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1.5px solid #BFDBFE;
}

.proj-context-badge.personal {
    background: #EEF2FF;
    color: #5B21B6;
    border: 1.5px solid #C4B5FD;
}

.proj-year {
    display: block;
    font-size: 0.78rem;
    color: var(--text-gray);
    font-weight: 600;
    margin-top: 0.3rem;
    text-align: right;
}

.proj-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1.2rem 0;
}

.proj-tags span {
    background: rgba(0, 102, 204, 0.08);
    color: var(--primary-blue);
    padding: 0.3rem 0.85rem;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
}

.proj-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn-proj-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1.5px solid var(--border-light);
    color: var(--text-dark);/* ============================================
   UX IMPROVEMENTS (BACK TO TOP & FOOTER NAV)
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-blue);
    transform: translateY(-5px);
}

.profil-footer-copy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-nav-links .sep {
    opacity: 0.3;
}

.highlight-link {
    color: var(--accent-green) !important;
    font-weight: 700;
}

@media (max-width: 768px) {
    .profil-footer-copy {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn-proj-outline:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
    background: rgba(0,102,204,0.05);
}

/* ============================================
   UX IMPROVEMENTS (BACK TO TOP & FOOTER NAV)
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-blue);
    transform: translateY(-5px);
}

.profil-footer-copy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
}

.footer-nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-nav-links a {
    text-decoration: none;
    color: white;
    opacity: 0.8;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-nav-links a:hover {
    opacity: 1;
    color: var(--primary-blue);
}

.footer-nav-links .sep {
    opacity: 0.3;
}

.highlight-link {
    color: var(--accent-green) !important;
    font-weight: 700;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .profil-footer-copy {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}


.section-motivation {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: white;
}

.motivation-card {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.motivation-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.motivation-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.motivation-point {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.motivation-point:hover {
    background: rgba(0, 102, 204, 0.1);
    border-color: var(--primary-blue);
    transform: translateY(-10px);
}

.motivation-point i {
    font-size: 3rem;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
    display: block;
}

.motivation-point h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.motivation-point p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* ============================================
   CTA SECTION
   ============================================ */

.section-cta {
    background: var(--light-blue);
}

.cta-card {
    background: white;
    border-radius: 30px;
    padding: 4rem;
    box-shadow: 0 20px 60px rgba(0, 102, 204, 0.1);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

.btn-cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 102, 204, 0.4);
    color: white;
}

.cta-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-gray);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.info-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-item a:hover {
    color: var(--primary-blue);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--dark-bg);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0;
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-card {
        width: 100%;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .timeline-line {
        left: 30px;
    }

    .scratch-year {
        left: 30px;
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }

    .scratch-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 100px;
    }

    .scratch-card {
        width: 100%;
    }

    .motivation-content {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 2rem;
    }

    .cta-info {
        flex-direction: column;
        gap: 1rem;
    }
}