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

html {
    scroll-behavior: smooth;
}

/* =========================================
   STOP MOBILE SIDE-TO-SIDE DRAG
   ========================================= */
html,.
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

body {
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a, #2a2a2a, #1a1a1a);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Make sure media can’t overflow */
img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

/* Prevent layout children from accidentally overflowing */
section,
nav,
.vouch-carousel,
#particles,
#rain,
.particles,
.rain-container {
    max-width: 100%;
    overflow-x: clip;
}

/* iOS Safari: reduce horizontal rubber-banding */
@supports (-webkit-touch-callout: none) {
    body {
        overscroll-behavior-x: none;
        touch-action: pan-y;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 70%, rgba(0,0,0,0.95) 100%);
    z-index: -3;
    pointer-events: none;
}

/* =========================
   PARTICLES / RAIN
   ========================= */
#particles,
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

#rain,
.rain-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 0, 0, 0.4);
    border-radius: 50%;
    animation: float 20s infinite linear;
    box-shadow: 0 0 6px rgba(255, 0, 0, 0.3);
}

.rain-drop {
    position: absolute;
    top: -120px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 80, 80, 0.18) 25%,
        rgba(255, 0, 0, 0.65) 100%
    );
    border-radius: 0 0 50% 50%;
    opacity: 0.9;
    animation: correctRain linear forwards;
}

/* =========================
   SCROLLBAR
   ========================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff3333, #ff0000);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* =========================
   KEYFRAMES
   ========================= */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes correctRain {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 300px));
        opacity: 0;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.6;
    }
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5)); }
    to { filter: drop-shadow(0 0 50px rgba(255, 0, 0, 0.9)); }
}

/* =========================
   NAV
   ========================= */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 35px;
    padding: 0.9rem 1rem;
    z-index: 1000;
    opacity: 0;
    animation: slideInDown 1.2s ease forwards;
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 30px rgba(255, 0, 0, 0.1);
    transition: all 0.3s ease;
}

nav:hover {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 40px rgba(255, 0, 0, 0.2);
}

.nav-container {
    display: inline-flex;
    align-items: center;
    width: max-content;
    gap: 0;
}

.nav-links {
    display: inline-flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    flex: 0 0 auto;
    list-style: none;
}

.nav-links a {
    color: #ff0000;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    padding: 0.1rem 1rem;
    cursor: pointer;
    border-radius: 25px;
    font-weight: 500;
    overflow: hidden;
    letter-spacing: 0.5px;
    display: block;
    z-index: 10;
    white-space: nowrap;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.55);
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff0000, #ff3333);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::before {
    left: 100%;
}

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

.nav-links a:hover {
    color: #ff3333;
    background: rgba(255, 0, 0, 0.1);
    text-shadow: 0 0 22px rgba(255, 0, 0, 0.95);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* =========================
   SECTIONS
   ========================= */
section {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-margin-top: 100px;
}

.fade-in {
    animation: fadeInUp 1.2s ease forwards;
}

/* Make vouch section always visible */
#vouches,
#vouches.fade-in {
    opacity: 1;
    transform: none;
    animation: none;
}

/* =========================
   HERO
   ========================= */
#hero {
    text-align: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(255, 0, 0, 0.05) 0%, transparent 70%);
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ff0000, #ff6666, #ff3333, #ff0000);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate, gradientMove 5s ease-in-out infinite;
    position: relative;
    filter: drop-shadow(0 0 30px rgba(255, 0, 0, 0.3));
}

.hero-title::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(255, 0, 0, 0.08) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 3.5rem;
    color: #e0e0e0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
    font-weight: 300;
}

/* =========================
   CTA BUTTONS
   ========================= */
.cta-buttons {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white !important;
    padding: 1.4rem 3.5rem;
    border: none;
    border-radius: 35px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s ease;
    text-decoration: none !important;
    display: inline-block;
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    z-index: 10;
}

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

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover::after {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 30px 60px rgba(255, 0, 0, 0.6);
    background: linear-gradient(45deg, #ff3333, #ff0000);
}

.cta-button.outline {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 3px solid #ff0000;
    color: #ff0000 !important;
    backdrop-filter: blur(15px);
}

.cta-button.outline:hover {
    background: linear-gradient(45deg, #ff0000, #cc0000) !important;
    color: white !important;
    border-color: transparent;
}

/* =========================
   HEADINGS
   ========================= */
h2 {
    font-size: 3.5rem;
    margin-bottom: 4rem;
    color: #ff0000;
    text-align: center;
    text-shadow: 0 0 40px rgba(255, 0, 0, 0.5);
    position: relative;
    font-weight: 700;
}

h2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.1) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
    border-radius: 2px;
}

/* =========================
   TABS / SKILLS
   ========================= */
.tab-container {
    margin-bottom: 4rem;
    position: relative;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-button {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 0, 0, 0.3);
    color: #e0e0e0;
    padding: 1.2rem 3rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.5s ease;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    z-index: 10;
}

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

.tab-button:hover::before {
    left: 100%;
}

.tab-button.active,
.tab-button:hover {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
    border-color: #ff0000;
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.4);
    transform: translateY(-3px);
}

.tab-stage {
    position: relative;
    min-height: 520px;
}

.tab-content {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(18px) scale(0.99);
    pointer-events: none;
    transition:
        opacity 420ms ease,
        transform 520ms cubic-bezier(.2,.9,.2,1),
        filter 520ms ease;
    filter: blur(4px);
}

.tab-content.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    filter: blur(0);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

/* =========================
   CARDS
   ========================= */
.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 0, 0, 0.2);
    border-radius: 30px;
    padding: 3rem;
    transition: all 0.5s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.08), transparent);
    transition: left 0.8s ease;
    pointer-events: none;
    z-index: 0;
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.card > * {
    position: relative;
    z-index: 2;
}

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

.card:hover::after {
    opacity: 1;
}

.card:hover {
    transform: translateY(-20px) scale(1.03);
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 35px 70px rgba(255, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

.card h3 {
    color: #ff3333;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    font-weight: 600;
}

/* =========================
   CONTACT
   ========================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

.contact-button {
    position: relative;
    z-index: 5;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    padding: 1rem 2rem;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.4s ease;
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.3);
}

.contact-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 55px rgba(255, 0, 0, 0.5);
    background: linear-gradient(45deg, #ff3333, #ff0000);
}

.contact-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 0;
    background: none;
    box-shadow: none;
    padding: 0;
}

.contact-button img.contact-icon {
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: block;
}

/* =========================
   VOUCHES
   ========================= */
#vouches {
    overflow: visible;
    padding-bottom: 6rem;
}

.vouch-carousel {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 80px;
    width: 100%;
    overflow: visible;
}

.vouch-wrapper {
    max-height: none;
    overflow: visible;
    padding: 20px 0;
}

.vouches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.vouch-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255,0,0,0.25);
    border-radius: 25px;
    padding: 2.25rem;
    transition: all 0.5s ease;
    min-height: 360px;
    height: 360px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.vouch-card * {
    position: relative;
    z-index: 2;
}

.vouch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.08), transparent);
    transition: left 0.8s ease;
    pointer-events: none;
}

.vouch-card:hover::before {
    left: 100%;
}

.vouch-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 25px 60px rgba(255, 0, 0, 0.2);
    background: rgba(255,255,255,0.12);
    z-index: 20;
}

.vouch-header {
    display: grid;
    grid-template-columns: 56px 1fr; /* ⬅️ smaller avatar column = more name space */
    column-gap: 0.8rem;
    align-items: start;
    margin-bottom: 1rem;
    min-height: 112px;
}

.vouch-avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #111;
    box-shadow: 0 0 16px rgba(255, 0, 0, 0.22);
    justify-self: start;
    align-self: start;
    overflow: hidden;
}

.vouch-card:hover .vouch-avatar {
    transform: scale(1.06);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.6);
}

.vouch-info {
    display: grid;
    grid-template-rows: auto 38px 34px; /* name / date / rating */
    align-items: start;
    min-width: 0;
}

.vouch-info h4 {
    color: #ff3333;
    margin: 0;
    font-size: 1.05rem; /* ⬅️ slightly smaller */
    font-weight: 600;
    line-height: 1.2;
    text-align: left;

    white-space: nowrap;  /* one line */
    overflow: visible;    /* no cutting */
}

.vouch-date {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.2;
    margin: 0;
    text-align: left;
}

.vouch-date:empty::before {
    content: "";
    display: block;
    height: 1.2em;
}

.vouch-rating {
    color: #ffaa00;
    font-size: 1.05rem;
    line-height: 1.2;
    margin: 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.stars {
    color: #ffaa00;
    margin-left: 0;
    font-weight: 600;
}

.vouch-text {
    color: #e0e0e0;
    font-style: italic;
    line-height: 1.55;
    font-size: 0.95rem;
    margin-top: 0.85rem;
    overflow: hidden;
    text-align: left;
}

.vouch-card:hover .vouch-text {
    overflow: visible;
}

/* ARROWS */
.vouch-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,0,0,0.4);
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(14px);
    color: white;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.25s ease;
    user-select: none;
}

.vouch-arrow:hover {
    transform: translateY(-50%) scale(1.06);
    border-color: rgba(255, 0, 0, 0.65);
    box-shadow:
        0 20px 45px rgba(0,0,0,0.45),
        0 0 28px rgba(255,0,0,0.22);
}

.vouch-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.vouch-arrow.left {
    left: 0;
}

.vouch-arrow.right {
    right: 0;
}

.vouch-page-indicator {
    text-align: center;
    margin-top: 2rem;
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    letter-spacing: 0.4px;
}

/* =========================
   FOOTER
   ========================= */
.footer {
    text-align: center;
    padding: 4rem 2rem;
    color: #888;
    font-size: 1rem;
    border-top: 1px solid rgba(255, 0, 0, 0.2);
    margin-top: 6rem;
    backdrop-filter: blur(15px);
    background: rgba(0, 0, 0, 0.2);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1100px) {
    .vouches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   MOBILE NAV + RESPONSIVE
   ========================= */
@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
        max-width: 500px;
        padding: 0.9rem 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    .nav-container {
        display: inline-flex;
        align-items: center;
        width: max-content;
        gap: 0;
    }

    .nav-links {
        display: inline-flex;
        flex-wrap: nowrap;
        white-space: nowrap;
        list-style: none;
        gap: 0.6rem;
        margin: 0;
        padding: 0;
    }

    .nav-links li {
        flex: 0 0 auto;
    }

    .nav-links a {
        display: inline-block;
        white-space: nowrap;
        flex: 0 0 auto;
        padding: 0.55rem 1rem;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    section {
        padding: 7rem 1rem 3rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    .tab-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .tab-button {
        width: 100%;
        max-width: 300px;
    }

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

    .card,
    .vouch-card {
        padding: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .tab-stage {
        min-height: 720px;
    }

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

    .vouch-card {
        height: auto;
        min-height: auto;
    }
}

@media (max-width: 700px) {
    .vouches-grid {
        grid-template-columns: 1fr;
    }

    .vouch-card {
        height: auto;
        min-height: auto;
    }

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

/* =========================
   CLIENTS
   ========================= */
#clients,
#clients.fade-in {
    opacity: 1;
    transform: none;
    animation: none;

    max-width: 1600px;   /* bigger section width */
    width: 100%;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
    align-items: start;
    width: 100%;
    justify-content: center;
}

.client-card {
    transform-origin: center center;
    position: relative;
    min-height: 520px;
    height: auto;

    border-radius: 32px;
    overflow: hidden;
    border: 2px solid rgba(255, 0, 0, 0.25);

    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 0, 0, 0.05) inset;

    backdrop-filter: blur(16px);
    transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
    z-index: 1;

    display: flex;
    flex-direction: column;
}

.client-card * {
    position: relative;
    z-index: 3;
}

.client-card:hover {
    transform: translateY(-10px) scale(1.015); /* slightly softer so it won’t clip */
    border-color: rgba(255, 0, 0, 0.55);

    box-shadow:
        0 32px 80px rgba(255, 0, 0, 0.20),
        0 24px 60px rgba(0, 0, 0, 0.55);

    z-index: 20;
}

.client-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.55s ease, filter 0.55s ease;
    z-index: 1;
    filter: saturate(1.02) brightness(0.92);
}

.client-card:hover .client-bg {
    transform: scale(1.06);
    filter: saturate(1.08) brightness(1);
}

.client-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(10,10,10,0.18), rgba(10,10,10,0.82)),
        linear-gradient(135deg, rgba(255,0,0,0.10), rgba(0,0,0,0.24));
    z-index: 2;
}

.client-content {
    position: relative;
    z-index: 3;
    flex: 1;
    padding: 2.4rem;

    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.client-pfp {
    width: 88px;
    height: 88px;
    min-width: 78px;
    min-height: 78px;
    max-width: 78px;
    max-height: 78px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 0 1.2rem 0;
    margin-bottom: 1.4rem;
    border: 2px solid rgba(255,255,255,0.16);
    box-shadow:
        0 0 22px rgba(255, 0, 0, 0.18),
        0 8px 22px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.client-name {
    color: #ff3333;
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0 0 0.9rem 0;
    margin-bottom: 1rem;
    text-shadow: 0 0 14px rgba(255, 0, 0, 0.22);
    line-height: 1.2;
}

.client-description {
    color: #ececec;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 1rem 0;
    flex: 1;
}

.client-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    margin-top: auto;
    align-self: stretch;
}

.client-buttons a:nth-child(n+4) {
    display: none;
}

.client-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    border-radius: 999px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 12px 26px rgba(255, 0, 0, 0.2);
    min-height: 48px;
}

.client-button:hover {
    transform: translateY(-3px);
    background: linear-gradient(45deg, #ff3333, #ff0000);
    box-shadow: 0 18px 38px rgba(255, 0, 0, 0.28);
}

@media (max-width: 1100px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }

    .client-card {
        min-height: 390px;
    }
}

/* =========================
   CLIENT CAROUSEL
   ========================= */

.client-carousel {
    position: relative;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 115px; /* extra room for hover + arrows */
    overflow: visible;
}

.client-wrapper {
    overflow: visible; /* was hidden */
    width: 100%;
    padding: 24px 0;   /* gives hover room top/bottom */
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
    align-items: start;
    justify-content: center;
}

/* ARROWS */
.client-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;

    border-radius: 50%;
    border: 2px solid rgba(255,0,0,0.4);
    background: rgba(0,0,0,0.7);

    color: white;
    font-size: 1.8rem;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 20;
    transition: 0.3s;
}

.client-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    border-color: red;
    box-shadow: 0 0 20px rgba(255,0,0,0.3);
}

.client-arrow.left {
    left: 0;
}

.client-arrow.right {
    right: 0;
}

.client-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.client-page-indicator {
    text-align: center;
    margin-top: 1.5rem;
    color: #ccc;
}

/* =========================
   CLIENTS RESPONSIVE FIXES
   ========================= */

@media (max-width: 1400px) {
    #clients {
        max-width: 1300px;
    }

    .client-carousel {
        max-width: 1250px;
        padding: 0 90px;
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .client-carousel {
        padding: 0 70px;
        overflow: visible;
    }

    .client-wrapper {
        overflow: visible;
    }

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

    .client-card {
        min-height: 430px;
        height: auto;
    }

    .client-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}
