/* ═══════════════════════════════════════════════════════════════════
   PORTFOLIO — STYLE1.CSS  (REFACTORED)
   Salahedin Said
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ────────────────────────────────────────────────────────────────
   RESET & VARIABELEN
   ──────────────────────────────────────────────────────────────── */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary:    #6C63FF;
    --secondary:  #FF6584;
    --accent:     #00e5ff;
    --dark:       #0F0F1E;
    --darker:     #0A0A14;
    --light:      #FFFFFF;
    --gray:       #8B92A4;
    --gradient-1: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    cursor: none;
}


/* ────────────────────────────────────────────────────────────────
   CUSTOM CURSOR
   FIX: Verwijderd uit style1.css — één definitie in animation.css.
   Dubbele definitie veroorzaakte cascade-conflict op width/border.
   transform: translate(-50%,-50%) ook verwijderd — GSAP positioneert
   via x/y vanuit top:0;left:0. CSS-centering + GSAP-offset = dubbele
   correctie = cursor 18-20px verkeerd geplaatst.
   ──────────────────────────────────────────────────────────────── */

a:hover,
button:hover {
    cursor: none;
}

/* ────────────────────────────────────────────────────────────────
   NAVBAR
   ──────────────────────────────────────────────────────────────── */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(15, 15, 30, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--light);
    text-decoration: none;
}

.accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:not(.btn-nav-cv)::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-nav-cv):hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav-cv {
    padding: 8px 20px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    color: var(--light) !important;
    font-weight: 600;
    transition: background 0.3s, box-shadow 0.3s;
}

.btn-nav-cv:hover {
    background: var(--primary);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.4);
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.hamburger .line {
    width: 30px;
    height: 3px;
    background: var(--light);
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s;
    display: block;
}

.hamburger.open .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.open .line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.open .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ────────────────────────────────────────────────────────────────
   HERO
   FIX 1: .hero gebruikt display:grid + place-items:center in plaats
          van display:flex + align-items. De inner .hero-container is
          ook al een grid (2 kolommen), dus een outer flex was overbodig
          en veroorzaakte onvoorspelbare hoogte op het child-grid.
   FIX 2: .hero-bg animation:float verwijderd — GSAP ScrollTrigger
          animates dezelfde transform.y. Beide tegelijk = conflict.
   FIX 3: .hero-visual inspringing hersteld (was flush-left, broken block).
   FIX 4: will-change:transform toegevoegd aan .hero-bg en .hero-terminal.
   ──────────────────────────────────────────────────────────────── */

.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(108, 99, 255, 0.15) 0%, transparent 55%);
    z-index: 0;
    will-change: transform;
    pointer-events: none;
    /* FIX: animation:float VERWIJDERD — GSAP ScrollTrigger animates y op dit element.
       CSS animation + GSAP transform = conflict. GSAP wint maar CSS blijft vuren = GPU verspilling. */
}

/* Grid lines decoration */
.hero-grid-lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(108, 99, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 99, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 4vw, 60px);
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.hero-text {
    text-align: left;
}

.greeting {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    color: var(--gray);
    display: block;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.name {
    font-size: clamp(2.8rem, 4vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    white-space: nowrap;
    background: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* fallback */
    display: inline-block;
}

/* ────────────────────────────────────────────────────────────────
   RESPONSIVE — LAPTOP (1024px – 1280px)
   ──────────────────────────────────────────────────────────────── */
@media (max-width: 1280px) and (min-width: 1025px) {
    .name { font-size: clamp(2.8rem, 3.2vw, 3.8rem); }
}

.title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 600;
    margin-bottom: 1rem;
    min-height: 2.5rem;
}

.subtitle {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 46ch;
    line-height: 1.65;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ────────────────────────────────────────────────────────────────
   HERO TERMINAL (right column)
   ──────────────────────────────────────────────────────────────── */

.hero-visual {
    position: relative;       /* FIX: was flush-left (indent bug in origineel) */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.hero-terminal {
    width: 100%;
    max-width: 480px;
    background: rgba(10, 12, 20, 0.92);
    border: 1px solid rgba(108, 99, 255, 0.25);
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(108, 99, 255, 0.08),
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(108, 99, 255, 0.08);
    backdrop-filter: blur(4px);
    will-change: transform;
    animation: terminalFloat 6s ease-in-out infinite;
}

@keyframes terminalFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

/* Title bar */
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.terminal-dot--red    { background: #ff5f57; }
.terminal-dot--yellow { background: #febc2e; }
.terminal-dot--green  { background: #28c840; }

.terminal-title {
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    margin-left: 6px;
    letter-spacing: 0.03em;
}

/* Body */
.terminal-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.terminal-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    white-space: nowrap;
}

.terminal-line--gap { margin-top: 10px; }

/* Prompt $ */
.t-prompt {
    color: #6C63FF;
    font-weight: 700;
    flex-shrink: 0;
}

/* Command text */
.t-cmd { color: #e2e8f0; }

/* Output text */
.t-output {
    padding-left: 16px;
    color: rgba(139, 146, 164, 0.85);
    font-size: 0.8rem;
}

/* Key / value */
.t-key {
    color: #a78bfa;
    min-width: 80px;
    display: inline-block;
}

.t-val { color: rgba(139, 146, 164, 0.75); }

.t-green { color: #4ade80 !important; }

/* Blinking cursor */
.t-cursor {
    color: #6C63FF;
    animation: cursorBlink 1.1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ────────────────────────────────────────────────────────────────
   KNOPPEN
   ──────────────────────────────────────────────────────────────── */

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
    cursor: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--light);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ────────────────────────────────────────────────────────────────
   SCROLL INDICATOR
   ──────────────────────────────────────────────────────────────── */

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: var(--gradient-1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ────────────────────────────────────────────────────────────────
   ABOUT
   ──────────────────────────────────────────────────────────────── */

.about {
    padding: 8rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: start;
}

.about-photo-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-photo-frame {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Adjusting the responsiveness of the photo */
.single-photo {
    width: 100%;
    max-width: 100%;
    height: auto; /* Ensures the aspect ratio is maintained */
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    display: block;
    filter: grayscale(15%);
    transition: filter 0.4s;
}

.about-photo-frame:hover .single-photo {
    filter: grayscale(0%);
}

.photo-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    pointer-events: none;
}

.photo-corner--tl {
    top: -8px;
    left: -8px;
    border-top: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
    border-radius: 4px 0 0 0;
}

.photo-corner--br {
    bottom: -8px;
    right: -8px;
    border-bottom: 2px solid var(--secondary);
    border-right: 2px solid var(--secondary);
    border-radius: 0 0 4px 0;
}

.photo-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 10, 20, 0.88);
    border: 1px solid rgba(108, 99, 255, 0.4);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
    color: #fff;
}

.photo-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: availPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes availPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat {
    text-align: center;
    padding: 1.2rem 1rem;
    background: rgba(108, 99, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(108, 99, 255, 0.18);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(108, 99, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    display: block;
    color: var(--gray);
    font-size: 0.72rem;
    margin-top: 0.4rem;
}

.about-text {
    padding-top: 0.5rem;
}

.about-intro {
    font-size: 1.25rem;
    color: #fff;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-intro strong {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.85;
    margin-bottom: 1.4rem;
}

.about-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
}

.trait-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}

.trait-tag:hover {
    background: rgba(108, 99, 255, 0.12);
    border-color: rgba(108, 99, 255, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

/* ────────────────────────────────────────────────────────────────
   SKILLS
   ──────────────────────────────────────────────────────────────── */

.skills {
    padding: 9rem 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.skills .section-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4rem;
    background: linear-gradient(120deg, #fff 30%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    overflow: hidden;
}

.skill-card {
    background: #0d1420;
    padding: 2.5rem 2.8rem;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: background 0.3s;
}

.skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mx, 50%) var(--my, 50%),
        rgba(0, 229, 255, 0.06),
        transparent 55%
    );
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.skill-card:hover::after { opacity: 1; }
.skill-card:hover { background: #101824; }

.skill-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.4s ease;
}
.skill-card:hover::before { width: 100%; }

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.6rem;
}

.skill-icon {
    font-size: 1.8rem;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.25));
    transition: transform 0.3s, filter 0.3s;
    flex-shrink: 0;
}

.skill-card:hover .skill-icon {
    transform: scale(1.12) translateY(-2px);
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.55));
}

.skill-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.skill-icons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem 0.45rem 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray);
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
    cursor: default;
}

.skill-pill img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.skill-pill-emoji {
    font-size: 1rem;
    line-height: 1;
}

.skill-pill:hover {
    background: rgba(108, 99, 255, 0.12);
    border-color: rgba(108, 99, 255, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

.skill-list { display: none; }

/* ────────────────────────────────────────────────────────────────
   PROJECTS (ZIGZAG)
   ──────────────────────────────────────────────────────────────── */

.projects {
    padding: 8rem 0;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-top: 40px;
}

.project-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
    position: relative;
}

.project-row.reverse {
    direction: rtl;
}

.project-row.reverse .project-content {
    direction: ltr;
    text-align: right;
}

.project-row.reverse .tech-list,
.project-row.reverse .project-links,
.project-row.reverse .project-features {
    justify-content: flex-end;
}

.project-row.reverse .project-features li {
    flex-direction: row-reverse;
}

.featured-label {
    color: var(--primary);
    font-family: monospace;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 10px;
}

.project-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--light);
}

.project-desc-box {
    background: rgba(255, 255, 255, 0.04);
    padding: 22px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.project-desc-box p {
    color: var(--gray);
    font-size: 0.98rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.project-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--gray);
    transition: color 0.2s;
}

.project-features li:hover {
    color: #fff;
}

.project-features li .fa-check-circle {
    color: var(--primary);
    font-size: 0.75rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(108, 99, 255, 0.5));
}

.tech-list {
    display: flex;
    gap: 12px;
    list-style: none;
    margin-bottom: 20px;
    color: var(--gray);
    font-family: monospace;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.project-links {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.project-image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--darker);
    cursor: pointer;
    transition: border-color 0.3s;
    transform-style: preserve-3d;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease; /* transform handled exclusively by GSAP scrub */
    opacity: 0.9;
}

.project-image-wrapper:hover {
    border-color: var(--primary);
}

.project-image-wrapper:hover img {
    filter: brightness(0.55);
}

.img-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image-wrapper:hover .img-overlay {
    opacity: 1;
}

.img-overlay-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 22px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 30px;
    backdrop-filter: blur(4px);
}

.btn-direct-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-1);
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: opacity 0.25s, box-shadow 0.3s;
    cursor: none;
    border: none;
}

.btn-direct-link:hover {
    opacity: 0.88;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.45);
}

.btn-github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--gray);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
    cursor: none;
}

.btn-github-link:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* t-brace: JSON brace colour in terminal */
.t-brace { color: #e2e8f0; }

/* ────────────────────────────────────────────────────────────────
   CONTACT
   ──────────────────────────────────────────────────────────────── */

.contact {
    padding: 8rem 0;
    background: var(--dark);
}

.contact-content-centered {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-info-box h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info-box p {
    color: var(--gray);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--light);
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.1);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover .icon-circle {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.4);
}

.contact-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-card span {
    color: var(--gray);
}

/* ────────────────────────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────────────────────────── */

.footer {
    background: var(--darker);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 30px;
    color: var(--gray);
}

/* ────────────────────────────────────────────────────────────────
   UTILITIES
   ──────────────────────────────────────────────────────────────── */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* ────────────────────────────────────────────────────────────────
   RESPONSIVE — TABLET PORTRAIT (max 900px)
   ──────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .container { padding: 0 20px; }

    .hero {
        padding-top: 100px;
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-visual {
        margin: 0 auto;
        max-width: 440px;
    }

    .name { font-size: 2.8rem; }
    .title { font-size: 1.5rem; margin: 0 auto 1rem auto; }
    .greeting { font-size: 1.2rem; }

    .cta-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }

    .btn { width: 100%; text-align: center; justify-content: center; }

    .projects-list { gap: 60px; }
    .project-row,
    .project-row.reverse {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .project-image-wrapper { order: -1; height: 250px; }
    .project-row.reverse .project-content { text-align: center; }
    .tech-list { justify-content: center; }
    .project-row.reverse .tech-list,
    .project-row.reverse .project-links { justify-content: center; }

    .about-content { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-photo-col { align-items: center; }
    .single-photo { height: 360px; max-width: 100%; }
    .about-traits { justify-content: center; }
    .project-row.reverse .project-features li { flex-direction: row; }
    .project-links { justify-content: center; }
    .scroll-indicator { bottom: 10px; opacity: 0.5; }
}

/* ────────────────────────────────────────────────────────────────
   RESPONSIVE — MOBIEL (max 768px)
   ──────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .navbar { padding: 1.2rem 3%; }
    .logo { font-size: 1.5rem; }

    .hero { padding-top: 80px; text-align: center; }
    .hero-container { grid-template-columns: 1fr; gap: 30px; }
    .hero-visual { max-width: 100%; }
    .terminal-line { font-size: 0.75rem; white-space: normal; }
    .t-output { font-size: 0.72rem; }

   .name {
    font-size: 3rem;
    display: inline-block;
}
    .title { font-size: 1.3rem; margin: 0 auto 1rem auto; }
    .greeting { font-size: 1.1rem; }

    .cta-buttons { justify-content: center; flex-wrap: wrap; gap: 15px; }
    .btn { padding: 0.9rem 2rem; justify-content: center; }

    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(10, 10, 20, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 999;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        gap: 2rem;
    }

    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.2rem; }

    .projects-list { gap: 60px; }
    .project-row,
    .project-row.reverse {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .project-image-wrapper { order: -1; height: 250px; }
    .project-row.reverse .project-content { text-align: center; }
    .tech-list,
    .project-row.reverse .tech-list,
    .project-row.reverse .project-links { justify-content: center; }
    .project-content h3 { font-size: 1.5rem; }

    .about-content { grid-template-columns: 1fr; gap: 2rem; }
    .about-photo-col { align-items: center; }
    .about-traits { justify-content: center; }
    .single-photo { width: 100%; max-width: 100%; height: 300px; }
    .stats { grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
    .stat { padding: 1rem 0.6rem; }
    .stat-number { font-size: 1.6rem; }
    .project-features { align-items: flex-start; }
    .project-row.reverse .project-features li { flex-direction: row; }
    .project-row.reverse .project-features { align-items: flex-start; }
    .project-links { justify-content: center; }
    .contact-methods-grid { grid-template-columns: 1fr; }
    .scroll-indicator { bottom: 10px; opacity: 0.5; }

    a:hover, button:hover { cursor: auto; }
}

/* ────────────────────────────────────────────────────────────────
   RESPONSIVE — KLEIN MOBIEL (max 480px)
   ──────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .navbar {
        padding: 1rem 3%;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-links {
        width: 100%;
    }

    .hero {
        padding-top: 70px;
    }

    .name {
        font-size: 2rem;
        line-height: 1.2;
        display: inline-block;
        /* zorgt dat background-clip blijft werken */
    }

    .title {
        font-size: 1.1rem;
    }

    .greeting {
        font-size: 0.95rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .section-title {
        font-size: 2rem;
    }

    .project-content h3 {
        font-size: 1.2rem;
    }

    .project-image-wrapper {
        height: 200px;
    }

    .single-photo {
        width: 100%;
    }

    .skill-card {
        padding: 1.5rem 1.2rem;
    }

    .skill-icon {
        font-size: 1.8rem;
    }

    .skill-card h3 {
        font-size: 1.1rem;
    }

    .project-desc-box {
        padding: 15px;
    }

    .contact-info-box h3 {
        font-size: 1.8rem;
    }

    .contact-info-box p {
        font-size: 1rem;
    }

    /* Additional media query for smaller screens */
    .single-photo {
        height: auto; /* Removes fixed height for very small screens */
    }
}