/* ===== SANSKAR 0DAY - MAIN STYLES ===== */

/* ---------- FONT IMPORTS (Google Fonts CDN) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Gloock&family=Amiri+Quran&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* ---------- CSS VARIABLES ---------- */
:root {
    --font-gloock: 'Gloock', serif;
    --font-amiri-quran: 'Amiri Quran', serif;
    --font-rajdhani: 'Rajdhani', sans-serif;
    --color-bg: #000;
    --color-text: #fff;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-accent: #00d4ff;
}

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

html {
    overflow-x: hidden;
}

html.lenis {
    height: auto;
}

body {
    font-family: var(--font-gloock);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

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

img,
video {
    max-width: 100%;
    display: block;
}

/* ---------- UTILITIES ---------- */
.font-gloock {
    font-family: var(--font-gloock);
}

.font-amiri-quran {
    font-family: var(--font-amiri-quran);
}

.font-rajdhani {
    font-family: var(--font-rajdhani);
}

/* ---------- MAIN CONTENT ---------- */
.mainContent {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* ---------- UNICORN BACKGROUND (Three.js Canvas Placeholder) ---------- */
.unicorn-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: #000;
}

.unicorn-canvas {
    width: 100%;
    height: 100%;
}

/* ---------- VIDEO BACKGROUND ---------- */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    opacity: 0.6;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* ---------- HEADER ---------- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 9%, rgba(0, 0, 0, 0.81) 100%);
    backdrop-filter: blur(5px);
}

.header-logo {
    width: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-logo:hover img {
    filter: brightness(1.2) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.header-nav {
    display: flex;
    gap: 0.25rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-button {
    padding: 10px 30px;
    border-radius: 100px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    font-family: var(--font-rajdhani);
    font-weight: 500;
    font-size: 1.125rem;
    color: #c9c9c9;
    transition: color 0.3s ease;
}

.nav-button .text-container {
    position: relative;
}

.nav-button .text {
    position: relative;
    top: 0;
    transition: top 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.nav-button .overlay {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.nav-button .overlay p {
    color: #000;
}

.nav-button .overlay div {
    position: absolute;
    background: #fff;
    width: 60%;
    height: 100%;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    z-index: -1;
}

.nav-button:hover .text {
    top: -40px;
}

.nav-button:hover .overlay {
    top: 0;
}

.nav-button:hover .overlay div {
    width: 100%;
    border-radius: 100px;
}

/* Mobile burger */
.burger-button {
    display: none;
    width: 80px;
    height: 40px;
    position: relative;
    z-index: 52;
}

.burger {
    width: 100%;
}

.burger .line {
    display: block;
    height: 1px;
    width: 40%;
    margin: auto;
    background-color: #fff;
    transition: transform 0.3s;
}

.burger .line:first-child {
    position: relative;
    top: -5px;
}

.burger .line:last-child {
    position: relative;
    top: 5px;
}

@media (max-width: 1024px) {
    .header-nav {
        /* Mobile Menu Styles */
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #000;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 50;
        /* Below burger button */
        transform: translateY(-100%);
        transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
        padding-top: 60px;
    }

    .header-nav.nav-active {
        transform: translateY(0);
        display: flex;
        /* Ensure it's flex when active */
    }

    .burger-button {
        display: block;
    }

    .nav-button {
        font-size: 2rem;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .header-nav.nav-active .nav-button {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.3s;
        /* Stagger via JS or strict delay here */
    }

    /* Stagger delays for menu items */
    .header-nav.nav-active .nav-button:nth-child(1) {
        transition-delay: 0.3s;
    }

    .header-nav.nav-active .nav-button:nth-child(2) {
        transition-delay: 0.4s;
    }

    .header-nav.nav-active .nav-button:nth-child(3) {
        transition-delay: 0.5s;
    }

    .header-nav.nav-active .nav-button:nth-child(4) {
        transition-delay: 0.6s;
    }
}

/* Burger Animation */
.burger-button.active .line:first-child {
    transform: rotate(45deg) translate(5px, 6px);
}

.burger-button.active .line:nth-child(2) {
    opacity: 0;
}

.burger-button.active .line:last-child {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ---------- HERO SECTION ---------- */
.hero-container {
    min-height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}



.hero-content {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    pointer-events: none;
}

.hero-text-wrapper {
    width: 90vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 200px;
    height: 100%;
}

.hero-top-row {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 0.75rem;
    align-items: flex-end;
    position: relative;
}

.hero-bottom-row {
    display: flex;
    width: 100%;
    justify-content: center;
    position: relative;
}

/* TAKE text (outlined) */
.take-text {
    font-family: var(--font-amiri-quran);
    color: #ffffff14;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
    font-size: clamp(8rem, 15vw, 18rem);
    line-height: 0.8;
    letter-spacing: 2px;
    z-index: 0;
    margin-left: -2vw;
    font-weight: 300;
}

/* CREATIVITY text */
.creativity-text-container {
    position: relative;
}

.creativity-text {
    font-family: var(--font-gloock);
    color: #fff;
    font-size: clamp(4rem, 8vw, 10rem);
    line-height: 0.9;
    letter-spacing: -2px;
}

.creativity-text-effect {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleY(1.3);
    filter: blur(15px);
    opacity: 0.4;
    pointer-events: none;
    color: #fff;
    font-family: var(--font-gloock);
    font-size: clamp(4rem, 8vw, 10rem);
    line-height: 0.9;
    letter-spacing: -2px;
    white-space: nowrap;
}

/* BEYOND text (rotating) */
.beyond-text-container {
    position: relative;
    display: flex;
    align-items: flex-start;
}

.beyond-text {
    font-family: var(--font-gloock);
    color: #fff;
    font-size: clamp(10rem, 18vw, 22rem);
    line-height: clamp(6.5rem, 12vw, 16.5rem);
    letter-spacing: -4px;
}

.beyond-text-effect {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleY(1.3);
    filter: blur(15px);
    opacity: 0.4;
    pointer-events: none;
    color: #fff;
    font-family: var(--font-gloock);
    font-size: clamp(10rem, 18vw, 22rem);
    line-height: clamp(6.5rem, 12vw, 16.5rem);
    letter-spacing: -4px;
    white-space: nowrap;
}

/* ---------- MARQUEE TICKER ---------- */
.marquee-container {
    position: absolute;
    width: 100%;
    z-index: 30; /* Bring above hero text */
    mix-blend-mode: difference; /* Invert colors over video/text */
    overflow: hidden;
    pointer-events: none;
}

.marquee-top {
    top: 8%;
}

.marquee-bottom {
    bottom: 8%;
    transform: rotate(180deg);
}

.marquee-track {
    display: flex;
    animation: marquee-scroll 45s linear infinite;
}

.marquee-bottom .marquee-track {
    animation-direction: reverse;
}

.marquee-item {
    flex-shrink: 0;
    font-size: clamp(3rem, 5vw, 6rem); /* Scale massive text */
    color: #fff;
    margin-right: 2rem;
    white-space: nowrap;
    font-family: var(--font-gloock);
    font-weight: 400;
}

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

    100% {
        transform: translateX(-50%);
    }
}

/* ---------- SOCIAL MEDIA DOCK ---------- */
.social-dock {
    position: fixed;
    z-index: 60;
    bottom: 50px;
    right: 50px;
}

.social-dock.outlined a {
    border: 2px solid rgba(255, 255, 255, 0.711);
    width: 70px;
    height: 70px;
}

.social-dock a {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    color: rgba(255, 255, 255, 0.711);
}

.social-dock a:hover {
    border-color: #fff;
    color: #fff;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .social-dock.outlined a {
        width: 50px;
        height: 50px;
    }

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

/* ---------- ABOUT SECTION ---------- */
.about-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 5rem 25px;
    min-height: 100vh;
    position: relative;
}

.about-content {
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
    max-width: 600px;
}

.about-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-family: var(--font-gloock);
    color: #fff;
    margin-bottom: 3.5rem;
    position: relative;
}

.about-title-effect {
    position: absolute;
    top: 0;
    left: 7px;
    filter: blur(0);
    transform: scaleY(1);
    color: #ffe5c6;
    opacity: 0;
    pointer-events: none;
}

.about-description {
    font-family: var(--font-rajdhani);
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.about-image-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image-container {
        order: -1;
    }
}

/* ---------- WORKS SECTION ---------- */
.works-section {
    width: 100%;
    padding: 5rem 0;
    position: relative;
    background: #000;
}

.works-section::before {
    content: "";
    position: absolute;
    top: -200px;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(0deg, #000, transparent);
    z-index: 0;
}

.works-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.works-title {
    font-family: var(--font-gloock);
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
}

/* Works cards horizontal scroll */
.works-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: grab;
}

.works-carousel:active {
    cursor: grabbing;
}

.works-track {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 0 2rem;
}

.work-card {
    display: block;
    /* Ensure anchor tag works */
    flex: none;
    width: min(320px, 85vw);
    /* Responsive width */
    height: 480px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #333;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.work-card:hover {
    transform: scale(1.02);
}

.work-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #000;
}

.work-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2) 50%, transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.work-card-title {
    font-family: var(--font-gloock);
    font-size: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 0.9;
}

@media (max-width: 768px) {
    .work-card {
        width: min(280px, 80vw);
        height: 420px;
    }

    .work-card-title {
        font-size: 1rem;
    }
}

/* ---------- CONTACT / CTA SECTION ---------- */
.contact-section {
    width: 100%;
    padding: 8rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-section::before {
    content: "";
    width: 80vw;
    height: 500px;
    background-color: #da4907;
    filter: blur(100px);
    position: absolute;
    bottom: -400px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    opacity: 0.3;
    border-radius: 50%;
}

.contact-text {
    font-family: var(--font-rajdhani);
    font-size: 1.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #fff;
    font-family: var(--font-rajdhani);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ---------- FOOTER ---------- */
.footer {
    width: 100%;
    padding: 3rem 2rem 2rem;
    border-top: 1px solid #2a2a2a;
    text-align: center;
    font-family: var(--font-rajdhani);
    font-size: 0.85rem;
    color: #555;
}



/* ---------- PRELOADER ---------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.preloader-logo {
    width: 100px;
    margin-bottom: 2rem;
}

.preloader-text {
    font-family: var(--font-rajdhani);
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: preloader-pulse 2s infinite;
}

@keyframes preloader-pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.preloader-button {
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    font-family: var(--font-rajdhani);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.preloader-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ---------- ANIMATIONS (GSAP FALLBACK) ---------- */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.8s ease forwards;
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
    }

    .hero-text-wrapper {
        gap: 40px;
        /* Reduced gap for mobile */
        width: 95vw;
    }

    .hero-content {
        padding-top: 60px;
        /* Offset for header */
        align-items: center;
    }

    .take-text {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .creativity-text,
    .creativity-text-effect {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .beyond-text,
    .beyond-text-effect {
        font-size: clamp(3rem, 15vw, 6rem);
        line-height: 1;
    }

    .hero-top-row {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }

    .hero-bottom-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .marquee-item {
        font-size: 24px;
    }

    .about-section {
        padding: 3rem 1.5rem;
    }

    .work-card {
        width: min(260px, 75vw);
        height: 380px;
    }
}

@media (max-width: 480px) {
    .take-text {
        font-size: 3rem;
        letter-spacing: 2px;
    }

    .creativity-text,
    .creativity-text-effect {
        font-size: 2.5rem;
    }

    .beyond-text,
    .beyond-text-effect {
        font-size: 4rem;
        line-height: 1;
    }

    .hero-text-wrapper {
        gap: 30px;
    }

    .hero-top-row,
    .hero-bottom-row {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .contact-section {
        padding: 4rem 1.5rem;
    }

    .contact-text {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* ---------- COLORFUL SOCIAL BUTTONS ---------- */
.colorful-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-rajdhani);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-icon-img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Email - Red gradient */
.email-btn {
    background: linear-gradient(135deg, #ea4335, #c5221f);
}

.email-btn:hover {
    background: linear-gradient(135deg, #ff5a4d, #ea4335);
}

/* GitHub - Dark gradient */
.github-btn {
    background: linear-gradient(135deg, #333, #24292e);
}

.github-btn:hover {
    background: linear-gradient(135deg, #555, #333);
}

/* Instagram - Multicolor gradient */
.instagram-btn {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.instagram-btn:hover {
    background: linear-gradient(135deg, #9b4bce, #ff3636, #ffc966);
}

/* Telegram - Blue gradient */
.telegram-btn {
    background: linear-gradient(135deg, #0088cc, #229ed9);
}

.telegram-btn:hover {
    background: linear-gradient(135deg, #29a9e0, #0088cc);
}

/* Twitter/X - Dark gradient */
.twitter-btn {
    background: linear-gradient(135deg, #14171a, #657786);
}

.twitter-btn:hover {
    background: linear-gradient(135deg, #333, #14171a);
}

@media (max-width: 768px) {
    .colorful-socials {
        gap: 0.75rem;
    }

    .social-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .btn-text {
        display: none;
    }

    .social-btn {
        padding: 0.75rem;
        border-radius: 50%;
    }
}

/* Hide Quarto defaults */
#quarto-document-content,
.page-columns,
.page-full,
header#title-block-header,
nav.navbar,
footer.footer {
    all: unset;
}

body>header,
body>footer,
#quarto-header,
#quarto-footer {
    display: none !important;
}

/* ---------- CUSTOM CURSOR ---------- */
.cursor {
    position: fixed;
    background-color: #fff;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    z-index: 10000;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 9999;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
    transition: transform 0.1s, width 0.3s, height 0.3s, background-color 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
    mix-blend-mode: difference;
}

.cursor.active {
    width: 0px;
    height: 0px;
}

.cursor-follower.active {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.3);
    border-color: transparent;
}



/* ---------- MAGNETIC DOCK ---------- */
.magnetic-wrap {
    display: inline-block;
    position: relative;
    padding: 10px;
}

.magnetic-area {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    z-index: 1;
}

.magnetic-content {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease-out;
}

/* ---------- CUSTOM CURSOR ---------- */
.cursor {
    position: fixed;
    background-color: #fff;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    z-index: 10000;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 9999;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
    transition: transform 0.1s, width 0.3s, height 0.3s, background-color 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
    mix-blend-mode: difference;
}

.cursor.active {
    width: 0px;
    height: 0px;
}

.cursor-follower.active {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.3);
    border-color: transparent;
}

/* ---------- NOISE OVERLAY ---------- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ---------- MAGNETIC DOCK ---------- */
.magnetic-wrap {
    display: inline-block;
    position: relative;
    padding: 10px;
}

.magnetic-area {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    z-index: 1;
}

.magnetic-content {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease-out;
}

/* ---------- ASSIGNMENT LIST ---------- */
.assignment-list {
    width: 100%;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
}

.assignment-item-link {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.assignment-item-link:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.assignment-preview-canvas {
    width: 250px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: rgba(255,255,255,0.02);
}

.assignment-placeholder {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.02),
        rgba(255,255,255,0.02) 10px,
        rgba(255,255,255,0.05) 10px,
        rgba(255,255,255,0.05) 20px
    );
}

.assignment-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    flex-grow: 1;
    pointer-events: none;
    overflow: hidden;
}

.assignment-subject {
    flex-shrink: 0;
    width: 140px; /* Strong boundary to prevent overlap */
    color: var(--color-text-muted);
    font-size: 0.9em;
    font-family: var(--font-rajdhani);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.assignment-title {
    flex-grow: 1;
    font-size: 1.1rem;
    color: var(--color-text);
    font-family: var(--font-rajdhani);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;    
}

.assignment-link-text {
    flex-shrink: 0;
    margin-left: auto;
    font-family: var(--font-rajdhani);
    color: var(--color-accent);
    font-size: 0.9em;
    opacity: 0.8;
}

/* ---------- HOVER PREVIEW ---------- */
.hover-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 9999;
    /* Position handled by JS (top/left) */
}

.hover-preview-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: min(320px, 90vw);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #111;

    /* Center on parent point and apply scale */
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    /* Only animate opacity on exit, not transform (prevent slide back) */
    transition: opacity 0.2s ease;
}

.hover-preview.active .hover-preview-inner {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    /* Animate transform and opacity on enter */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.hover-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- NOTIFICATION TOAST ---------- */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-rajdhani);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-notification.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}