/* ============================================
   PERSONA 5 INSPIRED PORTFOLIO - STYLE SYSTEM
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --black: #050505;
    --dark-gray: #1a1a1a;
    --mid-gray: #2d2d2d;
    --light-gray: #8a8a8a;
    --white: #ffffff;
    --red: #D00000;
    --red-dark: #a00000;
    --red-glow: rgba(208, 0, 0, 0.4);
    --cyan: #00D2D2;
    --cyan-glow: rgba(0, 210, 210, 0.3);
    --font-display: 'Bebas Neue', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --skew: -3deg;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--red) var(--black);
    scroll-snap-type: y mandatory;
    height: 100vh;
}

html::-webkit-scrollbar {
    width: 6px;
}

html::-webkit-scrollbar-track {
    background: var(--black);
}

html::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 3px;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    overflow-y: auto;
    cursor: none;
    height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

button {
    cursor: none;
    border: none;
    background: none;
    font-family: inherit;
}

/* ---- Custom Cursor ---- */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--red);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease, border-color 0.3s ease;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    transform: scale(2);
    border-color: var(--cyan);
    background: rgba(0, 210, 210, 0.1);
}

.cursor-trail {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---- Video Background ---- */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-bg video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-bg video.active {
    opacity: 0.55;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(5, 5, 5, 0.7) 0%,
            rgba(5, 5, 5, 0.6) 30%,
            rgba(208, 0, 0, 0.05) 60%,
            rgba(5, 5, 5, 0.7) 100%);
}

/* ---- Transition Screen ---- */
.transition-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 8000;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.transition-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
}

.transition-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Site Loading Logic */
body:not(.site-loaded) {
    overflow: hidden;
    /* Prevent scrolling before main site loads */
}

body.site-loaded {
    scroll-snap-type: y mandatory;
}

body:not(.site-loaded) .main-content,
body:not(.site-loaded) .p5-nav {
    opacity: 0 !important;
    pointer-events: none;
    visibility: hidden;
}

/* ---- Splash Screen ---- */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9000;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Splash Video (title.mp4) */
.splash-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.splash-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.splash-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(5, 5, 5, 0.7) 0%,
            rgba(5, 5, 5, 0.5) 40%,
            rgba(208, 0, 0, 0.1) 70%,
            rgba(5, 5, 5, 0.75) 100%);
}

.splash-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: none;
    /* Hidden — title.mp4 provides the visual background now */
}

.splash-rect {
    position: absolute;
    border-radius: 30px;
    background: var(--mid-gray);
    opacity: 0;
    animation: splashRectIn 0.8s ease-out forwards;
}

.splash-rect.r1 {
    width: 120px;
    height: 280px;
    top: 20%;
    left: 25%;
    animation-delay: 0s;
}

.splash-rect.r2 {
    width: 120px;
    height: 280px;
    top: 20%;
    left: 45%;
    animation-delay: 0.15s;
}

.splash-rect.r3 {
    width: 350px;
    height: 220px;
    top: 15%;
    right: -5%;
    border-radius: 20px;
    animation-delay: 0.3s;
}

@keyframes splashRectIn {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }

    100% {
        opacity: 0.6;
        transform: translateY(0) scale(1);
    }
}

.splash-content {
    position: absolute;
    z-index: 10;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 90%;
}

.splash-title {
    font-family: var(--font-display);
    font-size: clamp(60px, 10vw, 160px);
    letter-spacing: 10px;
    line-height: 0.9;
    color: var(--white);
    text-shadow: 0 0 40px rgba(208, 0, 0, 0.5), 0 4px 20px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    animation: titleReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

.name-split {
    display: block;
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ---- Loader ---- */
.loader-container {
    margin-top: 50px;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.8s;
}

.loader-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transform: skewX(-15deg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--red);
    box-shadow: 0 0 15px var(--red-glow);
    transition: width 0.3s ease;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--white);
    letter-spacing: 2px;
    margin-top: 10px;
    text-align: right;
    text-transform: uppercase;
}

.splash-sub.hidden {
    display: none;
}

.splash-sub {
    font-family: var(--font-heading);
    font-size: 18px;
    letter-spacing: 8px;
    color: var(--cyan);
    margin-top: 30px;
    text-shadow: 0 0 20px rgba(0, 210, 210, 0.5), 0 2px 10px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

.splash-sub::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 18px;
    background: var(--cyan);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ---- Navigation ---- */
.p5-nav {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.p5-nav.visible {
    opacity: 1;
}

.nav-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--light-gray);
    transition: all 0.3s ease;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
    background: transparent;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--red);
    transform: translateX(-105%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.nav-item:hover::before,
.nav-item.active::before {
    transform: translateX(0);
}

.nav-item:hover,
.nav-item.active {
    color: var(--white);
}

.nav-item.active {
    background: var(--red);
}

.nav-slash {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    width: 2px;
    height: 20px;
    background: var(--red);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item:hover .nav-slash,
.nav-item.active .nav-slash {
    opacity: 1;
    background: var(--white);
}

/* ---- Main Content ---- */
.main-content {
    position: relative;
    z-index: 1;
}

.section {
    min-height: 100vh;
    height: 100vh;
    /* Enforced for snapping */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 120px;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* ---- Section Headers ---- */
.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    /* Reduced from 50px */
}

.section-num {
    font-family: var(--font-display);
    font-size: 72px;
    color: var(--red);
    opacity: 0.3;
    line-height: 1;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: 6px;
    position: relative;
    line-height: 1;
}

.title-line {
    position: absolute;
    left: -20px;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--red);
}

/* ---- Section Transitions (Slash Effect) ---- */
.section-transition {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
    pointer-events: none;
}

.transition-slash {
    position: absolute;
    width: 120%;
    height: 40px;
    background: var(--red);
    left: -10%;
}

.transition-slash.t1 {
    top: 0;
    transform: skewY(var(--skew));
    opacity: 0.8;
}

.transition-slash.t2 {
    top: 35px;
    transform: skewY(calc(var(--skew) * -1));
    opacity: 0.4;
    background: var(--dark-gray);
}

.transition-slash.t3 {
    top: 70px;
    transform: skewY(var(--skew));
    opacity: 0.2;
    background: var(--red);
}

/* ---- Animate on Scroll ---- */
.animate-slash {
    opacity: 0;
    transform: translateX(-60px) skewX(-2deg);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
}

.animate-slash.visible {
    opacity: 1;
    transform: translateX(0) skewX(0deg);
}

/* ---- Red Silhouettes ---- */
.silhouette {
    position: fixed;
    z-index: 2;
    pointer-events: none;
    opacity: 0.06;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.sil-1 {
    right: 5%;
    bottom: -5%;
    width: 200px;
    height: auto;
    transform: scaleX(-1);
}

.sil-2 {
    right: 18%;
    bottom: -8%;
    width: 160px;
    height: auto;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-left {
    position: relative;
    z-index: 5;
    filter: drop-shadow(40px 0 10px rgba(0, 0, 0, 1)) drop-shadow(80px 0 25px rgba(0, 0, 0, 1)) drop-shadow(120px 0 45px rgba(0, 0, 0, 1)) drop-shadow(150px 0 70px rgba(0, 0, 0, 1));
}

.p5-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tag-line {
    width: 40px;
    height: 3px;
    background: var(--red);
}

.tag-text {
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--light-gray);
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(72px, 12vw, 160px);
    line-height: 0.85;
    letter-spacing: 8px;
    position: relative;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.hero-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 5px;
    background: var(--red);
}

.hero-role {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.role-highlight {
    font-family: var(--font-heading);
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--cyan);
}

.role-amp {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--red);
}

.hero-desc {
    font-size: 16px;
    color: var(--light-gray);
    max-width: 500px;
    line-height: 1.7;
    margin-top: 20px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

/* P5 Buttons */
.p5-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
    transition: transform 0.3s ease;
}

.p5-btn:hover {
    transform: scale(1.05) skewX(-1deg);
}

.p5-btn .btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: transform 0.4s ease;
}

.p5-btn.primary .btn-bg {
    background: var(--red);
}

.p5-btn.secondary .btn-bg {
    background: var(--dark-gray);
    border: 2px solid var(--mid-gray);
}

.p5-btn.primary:hover .btn-bg {
    background: var(--red-dark);
}

.p5-btn.secondary:hover .btn-bg {
    background: var(--mid-gray);
}

.p5-btn .btn-text {
    position: relative;
    z-index: 1;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-box {
    background: rgba(26, 26, 26, 0.8);
    border-left: 4px solid var(--red);
    padding: 24px 30px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    clip-path: polygon(0 0, 100% 0, 97% 100%, 0 100%);
    transition: all 0.3s ease;
    flex-wrap: wrap;
}

.stat-box:hover {
    border-left-color: var(--cyan);
    background: rgba(45, 45, 45, 0.8);
    transform: translateX(-8px);
}

.stat-num {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--white);
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--cyan);
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--light-gray);
    margin-left: 12px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator span {
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--light-gray);
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--mid-gray);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    width: 100%;
    height: 20px;
    background: var(--red);
    position: absolute;
    top: -20px;
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        top: -20px;
    }

    100% {
        top: 40px;
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    max-width: 1200px;
}

.p5-card {
    background: rgba(26, 26, 26, 0.85);
    padding: 40px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
    border-top: 3px solid var(--red);
}

.card-edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--red);
}

.p5-card p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--light-gray);
    margin-bottom: 16px;
}

.p5-card p:last-child {
    margin-bottom: 0;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--mid-gray);
    transition: all 0.3s ease;
}

.info-row:hover {
    background: rgba(208, 0, 0, 0.05);
    padding-left: 32px;
}

.info-label {
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--light-gray);
}

.info-value {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
}

.info-value.available {
    color: var(--cyan);
    position: relative;
}

.info-value.available::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    margin-right: 8px;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
}

.skill-card {
    background: rgba(26, 26, 26, 0.85);
    padding: 28px;
    border-left: 3px solid var(--red);
    clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 60%, rgba(208, 0, 0, 0.08));
    pointer-events: none;
}

.skill-card:hover {
    border-left-color: var(--cyan);
    transform: translateY(-5px) skewX(-1deg);
    background: rgba(45, 45, 45, 0.85);
}

.skill-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 8px var(--red-glow));
    transition: filter 0.3s ease;
}

.skill-card:hover .skill-icon {
    filter: drop-shadow(0 0 12px var(--cyan-glow));
}

.skill-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 14px;
}

.skill-bar {
    width: 100%;
    height: 4px;
    background: var(--mid-gray);
    border-radius: 2px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red), var(--cyan));
    width: 0;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.skill-fill.animated {
    width: var(--target-width);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-section {
    padding: 40px 120px 20px 120px;
    /* Reduced top/bottom padding */
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Reduced from 16px */
    max-width: 1200px;
    width: 100%;
}

.project-card {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    /* Slimmer visual side */
    align-items: center;
    background: rgba(26, 26, 26, 0.85);
    padding: 0;
    border-left: 4px solid var(--red);
    clip-path: polygon(0 0, 100% 0, 99.5% 100%, 0.5% 100%);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    min-height: 85px;
    /* Reduced from 100px */
}

.project-card:hover {
    border-left-color: var(--cyan);
    transform: translateX(10px) skewX(-0.5deg);
    background: rgba(45, 45, 45, 0.9);
}

.project-visual {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(208, 0, 0, 0.1);
    border-right: 2px solid var(--mid-gray);
    padding: 20px;
    position: relative;
}

.project-card:hover .project-visual {
    background: rgba(var(--accent), 0.15);
}

.project-number {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--red);
    line-height: 1;
}

.project-icon {
    font-size: 24px;
}

.project-details {
    padding: 12px 25px;
    /* Reduced padding */
}

.project-details h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.project-card:hover .project-details h3 {
    color: var(--cyan);
}

.project-details p {
    font-size: 13px;
    color: var(--light-gray);
    line-height: 1.4;
    margin-bottom: 8px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-tags span {
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 2px;
    padding: 4px 12px;
    background: var(--mid-gray);
    color: var(--light-gray);
    clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
    transition: all 0.3s ease;
}

.project-card:hover .project-tags span {
    background: rgba(208, 0, 0, 0.2);
    color: var(--white);
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-left: 1px solid var(--mid-gray);
    padding: 20px;
    color: var(--light-gray);
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--red);
    color: var(--white);
}

.see-more {
    text-align: center;
    margin-top: 20px;
    /* Reduced from 40px */
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-desc {
    font-size: 18px;
    color: var(--light-gray);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1200px;
}

.contact-card {
    background: rgba(26, 26, 26, 0.85);
    padding: 32px 24px;
    border-top: 3px solid var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card:hover {
    transform: translateY(-8px) skewX(-1deg);
}

.contact-card.instagram {
    border-top-color: #E1306C;
}

.contact-card.whatsapp {
    border-top-color: #25D366;
}

.contact-card.github {
    border-top-color: var(--white);
}

.contact-card:hover {
    border-top-color: var(--cyan);
    background: rgba(45, 45, 45, 0.9);
}

.contact-icon {
    color: var(--light-gray);
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    color: var(--cyan);
    transform: scale(1.2);
}

.contact-type {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
}

.contact-value {
    font-size: 12px;
    color: var(--light-gray);
    letter-spacing: 1px;
}

/* ---- Footer ---- */
.p5-footer {
    margin-top: 80px;
    text-align: center;
    padding-top: 30px;
    position: relative;
}

.footer-line {
    width: 80px;
    height: 3px;
    background: var(--red);
    margin: 0 auto 20px;
}

.p5-footer p {
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--light-gray);
    margin-bottom: 8px;
}

.footer-sub {
    font-size: 11px !important;
    letter-spacing: 3px !important;
    color: var(--mid-gray) !important;
}

/* ============================================
   PAGE TRANSITION OVERLAY
   ============================================ */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 8000;
    pointer-events: none;
    display: flex;
}

.transition-panel {
    width: 33.34%;
    height: 100%;
    background: var(--red);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-transition.active .panel-1 {
    transform: scaleY(1);
    transition-delay: 0s;
}

.page-transition.active .panel-2 {
    transform: scaleY(1);
    transition-delay: 0.1s;
}

.page-transition.active .panel-3 {
    transform: scaleY(1);
    transition-delay: 0.2s;
}

.page-transition.exit .panel-1 {
    transform: scaleY(0);
    transform-origin: bottom;
    transition-delay: 0.2s;
}

.page-transition.exit .panel-2 {
    transform: scaleY(0);
    transform-origin: bottom;
    transition-delay: 0.1s;
}

.page-transition.exit .panel-3 {
    transform: scaleY(0);
    transform-origin: bottom;
    transition-delay: 0s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .section {
        padding: 80px 60px;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 900px) {
    .section {
        padding: 60px 30px;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-stats {
        flex-direction: row;
        gap: 12px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .project-card {
        grid-template-columns: 80px 1fr 50px;
    }

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

    .p5-nav {
        display: none;
    }

    .silhouette {
        display: none;
    }

    .custom-cursor,
    .cursor-trail {
        display: none;
    }

    body {
        cursor: auto;
    }

    a,
    button {
        cursor: pointer;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 50px 20px;
    }

    .hero-stats {
        flex-direction: column;
    }

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

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-visual {
        flex-direction: row;
        border-right: none;
        border-bottom: 2px solid var(--mid-gray);
    }

    .project-link {
        border-left: none;
        border-top: 1px solid var(--mid-gray);
    }

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

    .hero-cta {
        flex-direction: column;
    }
}