/* Custom premium styling for Video Editor & Researcher Portfolio */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&family=Nunito:wght@300;400;600;700;800;900&family=Spartan:wght@400;500;600;700;800;900&display=swap');

body {
    background-color: #0b0c10;
    color: #e5e7eb;
    font-family: 'Nunito', sans-serif;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0b0c10;
}
::-webkit-scrollbar-thumb {
    background: #1f2833;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #66fcf1;
}

/* Cursor Canvas */
.cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999999;
}

/* Page Loader */
#page-loader {
    position: fixed;
    inset: 0;
    background-color: #0b0c10;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.6s ease;
}

body.loading {
    overflow: hidden;
}

/* Header & Glassmorphic Nav */
header {
    position: fixed !important;
    top: 15px;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 99999 !important;
    width: 90%;
    max-width: 1200px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    top: 10px;
    width: 88%;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.5rem;
    background: rgba(11, 12, 16, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

header.scrolled .nav-container {
    background: rgba(11, 12, 16, 0.85);
    padding: 0.5rem 1.5rem;
}

/* Logo Styles */
.logo {
    font-size: 1.15rem;
    font-weight: 800;
    font-family: 'Spartan', sans-serif;
    cursor: pointer;
    transition: all 0.4s ease;
}
.logo:hover {
    transform: translateY(-1px);
    text-shadow: 0 0 15px rgba(102, 252, 241, 0.6);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 0.3rem;
    list-style: none;
    margin: 0;
    padding: 0.3rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50px;
}

.nav-links a {
    color: #c5c6c7;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.45rem 0.75rem;
    border-radius: 50px;
    display: block;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a span {
    display: inline-block;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #66fcf1;
    background: rgba(102, 252, 241, 0.1);
}

/* Main Hero Typography & Button Effects */
.text-pressure-name span {
    display: inline-block;
    transition: all 0.3s ease;
}
.text-pressure-name span:hover {
    color: #66fcf1;
    transform: scale(1.2) translateY(-2px);
}

.hero-btn {
    background: linear-gradient(135deg, #1f2833, #0b0c10);
    border: 1px solid rgba(102, 252, 241, 0.3);
    color: #e5e7eb;
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
.hero-btn:hover {
    background: linear-gradient(135deg, #66fcf1, #45a29e);
    color: #0b0c10;
    box-shadow: 0 8px 30px rgba(102, 252, 241, 0.4);
    transform: translateY(-3px);
}

/* Background Glowing Blurs */
.layer-blur {
    height: 35rem;
    width: 35rem;
    position: absolute;
    top: 5%;
    right: -10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 252, 241, 0.15) 0%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.layer-blur-2 {
    height: 30rem;
    width: 30rem;
    position: absolute;
    bottom: 10%;
    left: -10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(69, 162, 158, 0.12) 0%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

/* Work Showcase Grid Cards */
.work-card {
    background: rgba(31, 40, 51, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    backdrop-filter: blur(10px);
    width: 340px; /* Locked width for marquee styling */
    flex-shrink: 0;
}
.work-card:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 252, 241, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(102, 252, 241, 0.1);
}

.video-thumbnail-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.video-thumbnail-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11, 12, 16, 0.8) 0%, rgba(11, 12, 16, 0) 50%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.work-card:hover .video-thumbnail-container::after {
    opacity: 0.4;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 64px;
    height: 64px;
    background: rgba(102, 252, 241, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b0c10;
    box-shadow: 0 0 30px rgba(102, 252, 241, 0.5);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}
.work-card:hover .play-button-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(11, 12, 16, 0.9);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.modal.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(102, 252, 241, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.modal.active .modal-content {
    transform: scale(1);
}

.video-modal-content {
    width: 90%;
    max-width: 1000px;
    background: #0e1017;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(102, 252, 241, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.modal.active .video-modal-content {
    transform: scale(1);
}

/* --- Pure CSS Marquee Styles for Skill Set & Video Projects --- */
.marquee-container {
    display: flex;
    overflow: hidden;
    width: 100%;
    gap: 2rem; /* Gap between the two tracks */
    mask-image: linear-gradient(to right, transparent, #fff 15%, #fff 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #fff 15%, #fff 85%, transparent);
}

.marquee-track {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 2rem; /* Gap between cards inside the track */
    animation: marquee-scroll-left 40s linear infinite;
}

.marquee-track-reverse {
    animation: marquee-scroll-right 40s linear infinite;
}

/* Pause scroll animation on hover */
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - 2rem)); /* Mathematically offset the gap to keep flow perfect */
    }
}

@keyframes marquee-scroll-right {
    0% {
        transform: translateX(calc(-100% - 2rem));
    }
    100% {
        transform: translateX(0);
    }
}

/* Skills cards styling inside marquee */
.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    background: rgba(31, 40, 51, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    min-width: 160px;
}
.skill-card:hover {
    transform: translateY(-6px);
    border-color: #66fcf1;
    box-shadow: 0 10px 30px rgba(102, 252, 241, 0.25);
    background: rgba(31, 40, 51, 0.4);
}
.skill-card img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(102, 252, 241, 0.2));
    transition: all 0.3s ease;
}
.skill-card:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(102, 252, 241, 0.6));
}

/* Client Feedback/Testimonial Swiper */
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}
.feedback-card {
    background: rgba(31, 40, 51, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 1.5rem 2.5rem;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    backdrop-filter: blur(15px);
}

/* Custom Text animation details */
.animated-text span::after {
    content: "";
    animation: typing 6s infinite;
    color: #66fcf1;
    font-weight: 700;
}

@keyframes typing {
    0% { content: "Video Editor"; }
    25% { content: "Storyteller"; }
    50% { content: "Visual Researcher"; }
    75% { content: "Content Strategist"; }
    100% { content: "Video Editor"; }
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 999;
    background: rgba(102, 252, 241, 0.15);
    border: 1px solid rgba(102, 252, 241, 0.4);
    color: #66fcf1;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.back-to-top:hover {
    background: #66fcf1;
    color: #0b0c10;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(102, 252, 241, 0.4);
}

/* Mobile responsive menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}
.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

@media (max-width: 968px) {
    header {
        width: 90% !important;
        top: 10px;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 80px;
        left: 5%;
        right: 5%;
        flex-direction: column;
        background: rgba(11, 12, 16, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        padding: 1.5rem;
        gap: 0.5rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s ease;
    }
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-links a {
        text-align: center;
        padding: 0.75rem;
    }
}

@media (min-width: 969px) and (max-width: 1220px) {
    .nav-links a {
        padding: 0.4rem 0.5rem;
        font-size: 0.65rem;
    }
    .logo {
        font-size: 1rem;
    }
    header {
        width: 95%;
    }
}

/* Review Cards Shake Animation */
.review-shake {
    transition: all 0.3s ease;
}
.review-shake:hover {
    animation: professional-wiggle 0.5s ease-in-out;
}

@keyframes professional-wiggle {
    0% { transform: rotate(0deg) scale(1.03); }
    15% { transform: rotate(-2deg) scale(1.03); }
    30% { transform: rotate(1.5deg) scale(1.03); }
    45% { transform: rotate(-1.5deg) scale(1.03); }
    60% { transform: rotate(1deg) scale(1.03); }
    75% { transform: rotate(-0.5deg) scale(1.03); }
    100% { transform: rotate(0deg) scale(1.03); }
}

/* Playlist Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #66fcf1;
}
