/* Onsite Font Migration */
@font-face {
    font-family: 'Onsite';
    src: url('onsite-font/OnsiteStandardTRIAL-Thin-BF64b60bd69edfe.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'Onsite';
    src: url('onsite-font/OnsiteStandardTRIAL-ThinItalic-BF64b60bd6728df.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
}
@font-face {
    font-family: 'Onsite';
    src: url('onsite-font/OnsiteStandardTRIAL-Extralight-BF64b60bd6cd591.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Onsite';
    src: url('onsite-font/OnsiteStandardTRIAL-ExtralightItalic-BF64b60bd6969ea.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
}
@font-face {
    font-family: 'Onsite';
    src: url('onsite-font/OnsiteStandardTRIAL-Light-BF64b60bd6cff80.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Onsite';
    src: url('onsite-font/OnsiteStandardTRIAL-LightItalic-BF64b60bd67e170.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}
@font-face {
    font-family: 'Onsite';
    src: url('onsite-font/OnsiteStandardTRIAL-Regular-BF64b60bd6980ca.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Onsite';
    src: url('onsite-font/OnsiteStandardTRIAL-RegularItalic-BF64b60bd658401.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Onsite';
    src: url('onsite-font/OnsiteStandardTRIAL-Medium-BF64b60bd692af5.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Onsite';
    src: url('onsite-font/OnsiteStandardTRIAL-MediumItalic-BF64b60bd5c19de.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
}
@font-face {
    font-family: 'Onsite';
    src: url('onsite-font/OnsiteStandardTRIAL-Bold-BF64b60bd69b69d.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Onsite';
    src: url('onsite-font/OnsiteStandardTRIAL-BoldItalic-BF64b60bd5d4cb1.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}
@font-face {
    font-family: 'Onsite';
    src: url('onsite-font/OnsiteStandardTRIAL-Extrabold-BF64b60bd6dcb78.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'Onsite';
    src: url('onsite-font/OnsiteStandardTRIAL-ExtraboldItalic-BF64b60bd619d1f.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
}

:root {
    --dot-bg: #fdfdfd;
    --dot-color: rgba(0, 0, 0, 0.15); /* Increased opacity */
    --dot-size: 1.5px; /* Increased dot size */
    --dot-space: 40px; /* Increased spacing for a bolder look */
    --primary-neon: #bfff00;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Onsite', sans-serif;
    background-color: var(--dot-bg);
    background-image: radial-gradient(var(--dot-color) var(--dot-size), transparent var(--dot-size));
    background-size: var(--dot-space) var(--dot-space);
    overflow-x: hidden;
    color: #1a1a1a;
}

.glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.08);
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.pulse-green {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.8); }
    70% { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

.pill-black {
    background: #1a1a1a;
    color: #fff;
    padding: 12px 32px;
    border-radius: 9999px;
}

.pill-white {
    background: #fff;
    color: #1a1a1a;
    padding: 12px 32px;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.04);
}

.cta-button {
    background-color: var(--primary-neon);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-button:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(191, 255, 0, 0.3);
}

/* Infinite Marquee */
.marquee-container {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 24px 0; /* Consistent padding for height */
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center; /* Vertically center content */
}

.marquee-content {
    display: flex;
    align-items: center; /* Ensure items are centered */
    flex-shrink: 0;
    min-width: 100%;
    padding-left: 0;
    animation: marquee-scroll 40s linear infinite;
}

.marquee-item {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 100px;
    letter-spacing: 2px;
}

.marquee-reduced-spacing .marquee-item {
    letter-spacing: 0px;
}

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

/* Experience Cards */
.experience-card {
    transition: all 0.4s ease;
    padding: 40px;
    border-radius: 2rem;
}

.experience-card:hover {
    background: rgba(255, 255, 255, 0.05); /* Subtle white highlight for black background */
    transform: translateX(10px);
}

/* Make sure default cursor is visible everywhere */
body, a, button, .experience-card {
    cursor: auto !important;
}

a:hover, button:hover {
    cursor: pointer !important;
}
/* Responsive adjustments */
@media (max-width: 1024px) {
    .lg\:mt-20 {
        margin-top: 0;
    }
    .experience-card {
        padding: 20px 0;
    }
    .experience-card:hover {
        transform: none;
    }
    .experience-card ul {
        margin-left: 0;
    }
}

/* Projects Grid Update */
#portfolio .grid {
    gap: 60px; /* Horizontal and Vertical Gap */
}

@media (min-width: 1024px) {
    #portfolio .grid {
        gap: 80px;
    }
}

/* 3D Folder Styles */
.folder-3d {
    perspective: 1200px;
    width: 65%; /* Adjusted for better balance */
    max-width: 200px;
    margin: 0 auto;
}
.folder-front {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-top: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 -4px 32px 0 rgba(31, 38, 135, 0.05);
    border-radius: 24px;
    transform-origin: bottom center;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.6);
}
/* Folder Hover Animations */
.folder-3d:hover .folder-front {
    transform: rotateX(-18deg);
}

.folder-3d:hover .thumb.card-1 {
    transform: translateY(-70px) rotate(0deg) scale(1);
    transition-delay: 0ms;
    z-index: 30;
}
.folder-3d:hover .thumb.card-2 {
    transform: translateY(-55px) rotate(-15deg) scale(1) translateX(-65px);
    transition-delay: 100ms;
    z-index: 25;
}
.folder-3d:hover .thumb.card-3 {
    transform: translateY(-45px) rotate(15deg) scale(1) translateX(65px);
    transition-delay: 200ms;
    z-index: 20;
}

/* Ensure contain behavior for project videos and smooth transitions */
.thumb {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.project-video {
    object-fit: contain !important;
    background: #000;
}

/* Form Styles */
.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
    border-color: rgba(170, 255, 0, 0.5);
    box-shadow: 0 0 20px rgba(170, 255, 0, 0.1);
}

/* Reels Grid Specification (For AGODA folder) */
.reels-grid {
    padding-bottom: 50px;
}

@media (min-width: 1024px) {
    .reels-grid .video-container {
        aspect-ratio: 9/16;
        height: 60vh; /* This helps achieve the "half-view" of the second row on standard screens */
        min-height: 500px;
    }
}

/* GIF Blending */
.lg\:w-\[45\%\] img {
    mix-blend-mode: multiply;
}

/* Projects Overlay Animations */
#project-overlay {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Onsite', sans-serif !important;
}

#project-overlay:not(.hidden) {
    animation: overlayFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes overlayFadeIn {
    from { 
        opacity: 0; 
        transform: scale(0.95);
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
        backdrop-filter: blur(20px);
    }
}

.video-container:hover .project-video {
    transform: scale(1.05);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-video {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Lightbox Styles */
#lightbox {
    transition: opacity 0.4s ease, visibility 0.4s ease;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

#lightbox.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#lightbox:not(.hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#lightbox:not(.hidden) img {
    transform: scale(1);
}
