* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #E63946;
    --secondary-color: #B32330;
    --void: #08080A;
    --dark-bg: #111114;
    --panel: #1B1B1F;
    --panel-light: #232327;
    --line: #2C2C31;
    --text-light: #F2F2F3;
    --text-muted: #9A9AA1;
    --white: #ffffff;
    --border-radius: 10px;
    --transition: all 0.3s ease;
    --slide-ease: cubic-bezier(.77, 0, .18, 1);
    --font-display: 'Segoe UI Black', 'Arial Black', 'Segoe UI', sans-serif;
    --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
    height: 100dvh;
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    line-height: 1.6;
    background-color: var(--void);
    overflow: hidden;
    overscroll-behavior: none;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    -webkit-text-size-adjust: 100%;
}

/* ===================================================== */
/* INTRO SPLASH — slides up and off screen to reveal site  */
/* ===================================================== */
.intro-splash {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, var(--dark-bg) 0%, var(--void) 75%);
    transform: translateY(0);
    transition: transform 0.9s var(--slide-ease);
}

.intro-splash.hide {
    transform: translateY(-100%);
    pointer-events: none;
}

.intro-content { text-align: center; }

.intro-logo {
    height: 46px;
    opacity: 0;
    animation: introLogo 0.9s var(--slide-ease) forwards 0.15s;
    margin-bottom: 1.2rem;
}

@keyframes introLogo {
    0% { opacity: 0; transform: scale(0.85); filter: blur(8px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

.intro-name {
    display: flex;
    justify-content: center;
    gap: 0.15em;
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 7rem);
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-light);
}

.intro-name span {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: introLetter 0.6s cubic-bezier(.2, .8, .2, 1) forwards;
}

.intro-name span:nth-child(1) { animation-delay: 0.35s; }
.intro-name span:nth-child(2) { animation-delay: 0.45s; }
.intro-name span:nth-child(3) { animation-delay: 0.55s; }
.intro-name span:nth-child(4) { animation-delay: 0.65s; color: var(--primary-color); }

.intro-line {
    width: 220px;
    max-width: 60vw;
    height: 2px;
    background: var(--line);
    margin: 1.4rem auto 1rem;
    overflow: hidden;
}

.intro-line span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    animation: introBar 0.9s ease forwards 0.9s;
}

.intro-tag {
    opacity: 0;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.75rem;
    animation: introLogo 0.6s ease forwards 1.2s;
}

@keyframes introLetter { to { opacity: 1; transform: translateY(0); } }
@keyframes introBar { to { width: 100%; } }

/* ===================================================== */
/* LOGO FIXE HAUT GAUCHE — apparaît hors de l'accueil       */
/* ===================================================== */
.fixed-logo {
    position: fixed;
    top: calc(1.5rem + env(safe-area-inset-top));
    left: calc(1.8rem + env(safe-area-inset-left));
    z-index: 200;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    cursor: pointer;
}

.fixed-logo.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fixed-logo img { 
    height: 40px; 
    width: auto; 
}

/* ===================================================== */
/* CAROUSEL                                               */
/* ===================================================== */
.carousel-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateX(0);
    transition: transform 0.7s var(--slide-ease), opacity 0.7s var(--slide-ease);
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.page-section {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 70px 6vw 90px;
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Backgrounds */
.hero-page      { background: linear-gradient(155deg, var(--void) 0%, var(--dark-bg) 100%); }
.about-page      { background: linear-gradient(155deg, var(--dark-bg) 0%, var(--void) 100%); }
.skills-page     { background: linear-gradient(155deg, var(--void) 0%, var(--dark-bg) 100%); }
.projects-page   { background: linear-gradient(155deg, var(--dark-bg) 0%, var(--void) 100%); }
.experience-page { background: linear-gradient(155deg, var(--void) 0%, var(--dark-bg) 100%); }
.contact-page    { background: linear-gradient(155deg, var(--dark-bg) 0%, var(--void) 100%); }

.page-title {
    position: sticky;
    top: 0;
    z-index: 10;
    background: inherit;
    padding: 10px 0 20px;
    margin-bottom: 0;
    width: 100%;
    flex-shrink: 0;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    text-align: center;
    color: var(--text-light);
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary-color);
}

.page-content {
    max-width: 1200px;
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: riseIn 0.7s ease both;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    margin-top: 10px;
    flex-shrink: 0;
    max-height: calc(100% - 60px);
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===================================================== */
/* HERO                                                    */
/* ===================================================== */
.hero-wordmark {
    position: absolute;
    top: 50%;
    left: 4vw;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 15vw;
    font-weight: 900;
    letter-spacing: -6px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.9fr 1.2fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 82vh;
    max-height: 640px;
}

.ambient-glow {
    position: absolute;
    width: 60%;
    aspect-ratio: 1;
    max-width: 460px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.22) 0%, transparent 70%);
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
}

.profile-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    filter: grayscale(15%) contrast(1.08) drop-shadow(0 25px 35px rgba(0, 0, 0, 0.55));
    mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
    transition: transform 0.6s ease;
}

.hero-image:hover .profile-img { transform: translateY(-4px); }

.hero-content { position: relative; }

.brand-mark { margin-bottom: 1.6rem; }

/* Logo plus grand sur la page d'accueil */
.hero-page .logo-img {
    height: 80px;
    width: auto;
    opacity: 0.9;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1.1rem;
    letter-spacing: -1px;
}

.hero-title .accent { color: var(--primary-color); display: block; }

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.3rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 15px 34px;
    font-size: 1rem;
    cursor: pointer;
}

/* ===================================================== */
/* BUTTONS                                                */
/* ===================================================== */
.btn {
    position: relative;
    padding: 12px 28px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
    color: var(--primary-color);
    background: transparent;
    overflow: hidden;
    z-index: 0;
    transition: color 0.4s ease, border-color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--slide-ease);
    z-index: -1;
}

.btn:hover::before { transform: scaleX(1); }

.btn:not(.btn-primary):hover { color: var(--void); }

.btn-primary {
    color: var(--white);
    background: var(--primary-color);
}

.btn-primary::before { background: var(--secondary-color); }

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(230, 57, 70, 0.35);
}

.btn-small { padding: 8px 18px; font-size: 0.85rem; }

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

.about-img {
    display: flex;
    justify-content: center;
}

.about-img-frame {
    width: 100%;
    max-width: 300px;
    display: block;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    filter: grayscale(20%) contrast(1.05);
}

.about-right p { margin-bottom: 1rem; color: var(--text-muted); font-size: 1.05rem; }

.about-right h3 { margin-top: 1.6rem; margin-bottom: 0.9rem; color: var(--primary-color); font-size: 1.1rem; }

.expertise-list { list-style: none; }
.expertise-list li { padding: 0.4rem 0; color: var(--text-light); font-size: 1.02rem; }
.expertise-list li::before { content: "→ "; color: var(--primary-color); font-weight: bold; margin-right: 0.4rem; }

/* ===================================================== */
/* SKILLS                                                  */
/* ===================================================== */
.skills-page .page-content { display: flex; justify-content: center; }

.skills-showcase {
    width: 100%;
    max-width: 920px;
    display: flex;
    flex-direction: column;
    gap: 2.6rem;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.skill-category {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--border-radius);
    padding: 1.6rem 1.2rem;
    text-align: center;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--primary-color);
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.skill-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--panel-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.skill-icon svg { width: 22px; height: 22px; }

.skill-category:hover .skill-icon {
    background: var(--primary-color);
    color: var(--white);
}

.skill-category h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--text-light); }
.skill-category p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.skills-marquee {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 0.7rem;
    animation: marqueeScroll 26s linear infinite;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

.marquee-track .dotsep { color: var(--primary-color); }

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ===================================================== */
/* PROJECTS                                                 */
/* ===================================================== */
.projects-page .page-content { display: flex; justify-content: center; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    width: 100%;
}

.project-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--border-radius);
    padding: 1.7rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.project-card h3 { margin-bottom: 0.6rem; color: var(--text-light); font-size: 1.15rem; }
.project-card p { color: var(--text-muted); margin-bottom: 1.1rem; font-size: 0.95rem; flex: 1; }

.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }

.project-tags span {
    background: var(--panel-light);
    color: var(--primary-color);
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.78rem;
}

.project-links a { display: inline-block; }

/* ===================================================== */
/* EXPERIENCE — scrollable                                */
/* ===================================================== */
.experience-page .page-content { max-width: 780px; }

.experience-scroll {
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding-right: 0.8rem;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.experience-scroll::-webkit-scrollbar { width: 6px; }
.experience-scroll::-webkit-scrollbar-track { background: transparent; }
.experience-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.experience-scroll::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

.experience-timeline { position: relative; padding-left: 2rem; }

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--line));
}

.experience-item { position: relative; padding-bottom: 2rem; }
.experience-item:last-child { padding-bottom: 0.4rem; }

.experience-dot {
    position: absolute;
    left: -2rem;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.2);
}

.experience-date { font-weight: 700; color: var(--primary-color); font-size: 0.9rem; letter-spacing: 0.3px; margin-bottom: 0.3rem; }
.experience-content h3 { margin-bottom: 0.25rem; color: var(--text-light); font-size: 1.08rem; }
.company { color: var(--text-muted); font-weight: 600; margin-bottom: 0.4rem; font-size: 0.92rem; }
.experience-content p:not(.company) { color: var(--text-muted); font-size: 0.95rem; }

/* ===================================================== */
/* CONTACT                                                  */
/* ===================================================== */
.contact-page .page-content { display: flex; justify-content: center; }

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.2rem;
    width: 100%;
    max-width: 880px;
    align-items: start;
}

.form-field { margin-bottom: 1rem; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--panel);
    color: var(--text-light);
    transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }

.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--primary-color); }

.field-error { display: none; color: var(--primary-color); font-size: 0.8rem; margin-top: 0.3rem; }
.form-field.invalid input, .form-field.invalid textarea { border-color: var(--primary-color); }
.form-field.invalid .field-error { display: block; }

.contact-form button { width: 100%; margin-top: 0.4rem; }

.contact-info h3 { margin-bottom: 1.4rem; color: var(--text-light); font-size: 1.15rem; }

.contact-info p { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; color: var(--text-muted); font-size: 0.95rem; }

.info-icon { display: inline-flex; width: 20px; height: 20px; color: var(--primary-color); flex-shrink: 0; }
.info-icon svg { width: 100%; height: 100%; }

.social-links { display: flex; gap: 0.9rem; margin-top: 1.6rem; }

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text-light);
    transition: var(--transition);
}

.social-icon svg { width: 20px; height: 20px; }

.social-icon:hover { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); transform: translateY(-3px); }

/* ===================================================== */
/* CAROUSEL NAV — icon buttons + indicators               */
/* ===================================================== */
.carousel-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(27, 27, 31, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid var(--line);
    color: var(--text-light);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn svg { width: 22px; height: 22px; }

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.4);
}

.carousel-btn.prev { left: calc(24px + env(safe-area-inset-left)); }
.carousel-btn.next { right: calc(24px + env(safe-area-inset-right)); }

/* Flèches désactivées */
.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-btn:disabled:hover {
    transform: translateY(-50%);
    box-shadow: none;
    background: rgba(27, 27, 31, 0.7);
    border-color: var(--line);
}

.carousel-indicators {
    position: fixed;
    bottom: calc(30px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 100;
}

.indicator {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
    transition: var(--transition);
}
.indicator::before {
    content: '';
    position: absolute;
    inset: -14px;
}
.indicator.active { background: var(--primary-color); width: 26px; border-radius: 6px; }
.indicator:hover:not(.active) { background: var(--text-muted); }

/* ===================================================== */
/* RESPONSIVE                                              */
/* ===================================================== */

/* ---- ≤1180px ---- */
@media (max-width: 1180px) {
    .hero-container { gap: 2.2rem; }
    .hero-wordmark { font-size: 17vw; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- ≤900px ---- */
@media (max-width: 900px) {
    .page-section { padding: 64px 6vw 96px; }

    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
    .hero-image { height: 38vh; order: -1; }
    .hero-wordmark { display: none; }
    .brand-mark { display: flex; justify-content: center; }
    .hero-subtitle { margin-bottom: 1.8rem; }

    .about-page .page-content,
    .contact-content { grid-template-columns: 1fr; gap: 2rem; }
    .about-right { text-align: center; }
    .expertise-list { display: inline-block; text-align: left; }

    .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
    .skills-categories { grid-template-columns: repeat(2, 1fr); }

    .about-img-frame { max-width: 220px; }
    .fixed-logo { top: calc(1rem + env(safe-area-inset-top)); left: calc(1.2rem + env(safe-area-inset-left)); }

    .contact-content { max-width: 460px; margin: 0 auto; }
}

/* ---- ≤640px ---- */
@media (max-width: 640px) {
    .page-section { padding: 56px 6vw 100px; }

    .hero-title { font-size: 1.65rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-image { height: 32vh; }
    .hero-btn { width: 100%; justify-content: center; padding: 14px 20px; }

    .page-title { font-size: 1.6rem; margin-bottom: 1.8rem; }

    .carousel-btn { width: 40px; height: 40px; }
    .carousel-btn svg { width: 18px; height: 18px; }
    .carousel-btn.prev { left: calc(10px + env(safe-area-inset-left)); }
    .carousel-btn.next { right: calc(10px + env(safe-area-inset-right)); }

    .skills-categories { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
    .skill-category { padding: 1.1rem 0.7rem; }
    .skill-category p { font-size: 0.8rem; }
    .marquee-track { font-size: 0.9rem; gap: 0.5rem; }

    .projects-grid { grid-template-columns: 1fr; }
    .project-card { padding: 1.4rem; }

    .contact-content { grid-template-columns: 1fr; max-width: 100%; }
    .social-links { justify-content: center; }
    .contact-info p { justify-content: center; }
    .contact-info h3 { text-align: center; }

    .experience-page .page-content { max-width: 100%; }
    .experience-timeline { padding-left: 1.6rem; }
    .experience-dot { left: -1.6rem; }

    .carousel-indicators { bottom: calc(18px + env(safe-area-inset-bottom)); gap: 8px; }
}

/* ---- ≤400px ---- */
@media (max-width: 400px) {
    .hero-title { font-size: 1.4rem; }
    .page-title { font-size: 1.35rem; }
    .logo-img { height: 28px; }
    .intro-name { letter-spacing: 0; }
    .intro-logo { height: 38px; }

    .skills-categories { grid-template-columns: 1fr; }
    .skill-category { display: flex; align-items: center; gap: 0.9rem; text-align: left; padding: 0.9rem 1rem; }
    .skill-icon { margin: 0; flex-shrink: 0; }

    .btn { padding: 11px 22px; font-size: 0.88rem; }
    .about-img-frame { max-width: 180px; }
}

/* ---- Mobile en paysage ---- */
@media (max-height: 480px) and (orientation: landscape) {
    .page-section { padding: 20px 5vw 56px; overflow-y: auto; }
    .page-content { overflow-y: auto; max-height: 100%; }

    .hero-container { grid-template-columns: 1fr 1fr; text-align: left; }
    .hero-image { height: 100%; order: 0; }
    .hero-content { max-height: 100%; overflow-y: auto; }

    .about-page .page-content,
    .contact-content { grid-template-columns: 1fr 1fr; }

    .page-title { margin-bottom: 1.2rem; }
    .carousel-btn { top: auto; bottom: 10px; transform: none; }
    .carousel-btn.prev { left: 10px; }
    .carousel-btn.next { right: 10px; }
    .carousel-indicators { display: none; }
}

/* ---- Support tactile ---- */
@media (hover: none) {
    .skill-category:hover,
    .project-card:hover,
    .social-icon:hover,
    .carousel-btn:hover { transform: none; box-shadow: none; }
    .hero-image:hover .profile-img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}