/* ================================
   TABLE OF CONTENTS
===================================
1.  RESET & BASE STYLES
2.  PRELOADER
3.  NAVIGATION
4.  HERO SECTION
5.  GENERAL SECTION STYLES
6.  WORK (PORTFOLIO) SECTION
7.  EXPERIENCE (TIMELINE) SECTION
8.  ABOUT SECTION
9.  SKILLS SECTION
10. CONTACT SECTION
11. HOVER PREVIEW CARDS
12. CREATIVES CTA SECTION
13. CREATIVES PAGE STYLES
14. FOOTER
15. RESPONSIVE DESIGN
16. DIGITAL LAVA LAMP CURSOR
================================ */

/* ================================
   1. RESET & BASE STYLES
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111827;
    background-color: #F8F9FA;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================
   2. PRELOADER
================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F8F9FA;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.preloader-logo {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0px;
    opacity: 0;
    animation: fadeInDown 0.6s ease forwards;
}

.preloader-sublogo {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: #111827;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInDown 0.6s ease forwards;
}

.loading-bar {
    width: 100%;
    height: 3px;
    background-color: #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.3s forwards;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #60A5FA, #93C5FD);
    border-radius: 10px;
    animation: loadProgress 2s ease-in-out forwards;
}

.loading-text {
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.5s forwards;
}

.dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

@keyframes dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

/* ================================
   3. NAVIGATION
================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #F8F9FA;
    border-bottom: 1px solid #E5E7EB;
    z-index: 100;
    backdrop-filter: blur(8px);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 18px;
    font-family: monospace;
    font-weight: 500;
    color: #111827;
    z-index: 101;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #111827;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    text-decoration: none;
    position: relative;
    transition: color 0.25s ease-out;
    letter-spacing: 0.25px;
}

.nav-link:hover {
    color: #111827;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #3B82F6;
    transition: width 0.25s ease-out, transform 0.25s ease-out;
    transform: translateX(-50%);
}

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

/* ================================
   4. HERO SECTION
================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #111827;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(55%);
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(0.75px);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: heroFadeIn 0.8s ease-out forwards;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    font-weight: 600;
    line-height: 1.2;
    color: #111827;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 500;
    font-style: italic;
    color: #111827;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ================================
   5. GENERAL SECTION STYLES
================================ */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -1px;
    color: #111827;
    margin-bottom: 48px;
}

/* ================================
   6. WORK (PORTFOLIO) SECTION
================================ */
.work-section {
    padding: 48px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.portfolio-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
}

.portfolio-image {
    width: 100%;
    height: 160px;
    background: #E5E7EB;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-content {
    padding: 20px;
}

.portfolio-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.portfolio-description {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 16px;
}

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

.tag {
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    background-color: #F8F9FA;
    padding: 4px 12px;
    border-radius: 4px;
}

/* ================================
   7. EXPERIENCE (TIMELINE) SECTION
================================ */
.experience-section {
    padding: 48px 0;
}

.experience-category {
    margin-bottom: 48px;
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 48px;
}

.experience-timeline {
    position: relative;
    max-width: 800px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0) 0%, #3B82F6 12%, #3B82F6 88%, rgba(59, 130, 246, 0) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
    padding-left: 80px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(24px - 7px);
    top: 8px;
    width: 14px;
    height: 14px;
    background-color: #3B82F6;
    border: 3px solid #F8F9FA;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
    z-index: 2;
}

.timeline-content {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #60A5FA, #93C5FD);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
}

.timeline-date {
    font-size: 14px;
    font-weight: 600;
    color: #3B82F6;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.timeline-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #3B82F6;
    margin-bottom: 16px;
}

.timeline-description {
    font-size: 16px;
    color: #6B7280;
    margin-bottom: 24px;
}

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

.timeline-tags .tag {
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
    background-color: #F8F9FA;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease-out;
}

.timeline-tags .tag:hover {
    background-color: #3B82F6;
    color: #FFFFFF;
    border-color: #3B82F6;
}

/* ================================
   8. ABOUT SECTION
================================ */
.about-section {
    padding: 48px 0;
    background-color: #FFFFFF;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 64px;
    align-items: start;
}

.about-content {
    max-width: 800px;
}

.about-text {
    font-size: 18px;
    color: #6B7280;
    margin-bottom: 24px;
}

.about-carousel {
    position: sticky;
    top: 96px;
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.carousel-track {
    width: 100%;
    height: 100%;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

/* ================================
   9. SKILLS SECTION
================================ */
.skills {
    margin-top: 64px;
}

.skills-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 40px;
    border-bottom: 2px solid #E5E7EB;
    padding-bottom: 8px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px 64px;
    align-items: start;
}

.skill-category {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease-out;
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.06);
}

.skill-category-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 4px;
}

.skill-list {
    list-style: none;
}

.skill-item {
    font-size: 15px;
    color: #374151;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-item::before {
    content: "•";
    color: #3B82F6;
    font-size: 18px;
    line-height: 1;
}

/* ================================
   10. CONTACT SECTION
================================ */
.contact-section {
    padding: 48px 0;
    background-color: #F8F9FA;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background Slanting Carousel */
.slanting-carousel-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 0;
    transform: rotate(-30deg);
    opacity: 0.1;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    display: flex;
    gap: 20px;
    animation: scroll-loop 40s linear infinite;
    /* Slower for background */
    width: max-content;
}

.carousel-track.reverse {
    animation-direction: reverse;
}

.carousel-track img {
    height: 400px;
    width: auto;
    border-radius: 0;
    box-shadow: none;
    /* Shadow might look weird on sharp tiling images */
    object-fit: cover;
}

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

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

.contact-description {
    font-size: 18px;
    color: #6B7280;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
}

.contact-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #F3F4F6;
    transition: all 0.3s ease;
    animation: fadeInIcon 0.6s ease forwards;
}

.contact-icon:hover {
    background-color: #3B82F6;
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 10px 18px rgba(59, 130, 246, 0.25);
}

.contact-icon:hover svg {
    stroke: #FFFFFF;
    transform: scale(1.2);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    stroke: #3B82F6;
    stroke-width: 2px;
    transition: all 0.3s ease;
}

@keyframes fadeInIcon {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================================
   11. HOVER PREVIEW CARDS
================================ */
.hover-preview {
    position: relative;
    cursor: pointer;
}

.preview-box {
    position: fixed;
    top: 0;
    left: 0;
    transform: scale(0.95);
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 12px;
    width: 240px;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9999;
}

.preview-box img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 8px;
}

.preview-box strong {
    font-size: 15px;
    color: #111827;
    display: block;
    margin-bottom: 4px;
}

.preview-box p {
    font-size: 13px;
    color: #4B5563;
    line-height: 1.3;
}

/* ================================
   12. CREATIVES CTA SECTION
================================ */
.cta-section {
    padding: 48px 0;
    text-align: center;
    background-color: #FFFFFF;
}

.cta-section .section-title {
    margin-bottom: 24px;
}

.cta-description {
    font-size: 18px;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: #3B82F6;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.cta-button:hover {
    background-color: #7785a2;
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.3);
}

/* ================================
   13. CREATIVES PAGE STYLES
================================ */
.creatives-section {
    padding-top: 160px;
    padding-bottom: 96px;
    min-height: 100vh;
}

.creatives-section .section-title {
    text-align: center;
}

.nav-home-link .contact-icon {
    width: 40px;
    height: 40px;
    background-color: transparent;
    animation: none;
}

.nav-home-link .contact-icon:hover {
    background-color: #F3F4F6;
    transform: scale(1.1);
    box-shadow: none;
}

.nav-home-link .contact-icon svg {
    stroke: #3B82F6;
    stroke-width: 2.5px;
}

.nav-home-link .contact-icon:hover svg {
    stroke: #3B82F6;
}

.creative-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.creative-list-item {
    display: block;
    width: 100%;
    padding: 24px 32px;
    background-color: #F3F4F6;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    text-align: center;
    text-decoration: none;
    color: #4B5563;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease-out;
}

.creative-list-item:hover {
    background-color: #FFFFFF;
    border-color: #D1D5DB;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.05);
    color: #111827;
}

/* ================================
   14. FOOTER
================================ */
.footer {
    background-color: #F3F4F6;
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid #E5E7EB;
}

.footer-text {
    font-size: 15px;
    color: #6B7280;
    letter-spacing: 0.3px;
}

/* ================================
   15. RESPONSIVE DESIGN
================================ */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-content {
        padding: 30px 40px;
    }

    .hero-title {
        font-size: 56px;
    }

    .about-wrapper {
        grid-template-columns: 1fr 320px;
        gap: 48px;
    }
}

@media (max-width: 768px) {

    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: #F8F9FA;
        border-bottom: 1px solid #E5E7EB;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        max-height: 300px;
        padding: 16px 0;
    }

    .nav-link {
        padding: 16px 24px;
        width: 100%;
        font-size: 16px;
        border-bottom: 1px solid #E5E7EB;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        background-color: #F3F4F6;
    }

    /* General Adjustments */
    .section-title {
        font-size: 32px;
        margin-bottom: 32px;
    }

    .work-section,
    .experience-section,
    .about-section,
    .contact-section,
    .cta-section {
        padding: 64px 0;
    }

    /* Hero */
    .hero-content {
        padding: 24px 32px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 22px;
        line-height: 1.4;
    }

    /* Timeline */
    .experience-timeline::before {
        left: 16px;
    }

    .timeline-item {
        padding-left: 56px;
    }

    .timeline-item::before {
        left: calc(16px - 6px);
        width: 12px;
        height: 12px;
    }

    .category-title {
        font-size: 24px;
        margin-bottom: 32px;
    }

    /* About */
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-carousel {
        position: relative;
        top: 0;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Contact */
    .contact-icons {
        gap: 32px;
    }

    /* Creatives Page */
    .creative-list-item {
        font-size: 18px;
        padding: 20px;
    }

    /* Contact Carousel Mobile */
    .carousel-track img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .nav-brand {
        font-size: 16px;
    }

    .work-section,
    .experience-section,
    .about-section,
    .contact-section,
    .cta-section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .hero-content {
        padding: 20px 24px;
        margin: 0 16px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

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

    .portfolio-content {
        padding: 24px;
    }

    .portfolio-title {
        font-size: 24px;
    }

    .timeline-title {
        font-size: 18px;
    }

    .timeline-subtitle,
    .timeline-description {
        font-size: 14px;
    }

    .contact-description {
        font-size: 16px;
    }

    .contact-icons {
        gap: 24px;
    }

    .contact-icon {
        width: 56px;
        height: 56px;
    }

    .contact-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* ================================
   16. CUSTOM SVG CURSOR
================================ */

/* Apply the custom cursor to the entire page */
html,
body {
    /*
     * The 'url()' function points to your cursor image.
     * The two numbers (16 16) are the X and Y coordinates of the "hotspot"
     * of your cursor. This is the exact point that will trigger a click.
     * (0 0) is the top-left corner. (16 16) is usually a good starting point
     * for a 32x32px cursor, placing the hotspot in the center.
     * You may need to adjust these values to match your SVG's design.
     * The 'auto' at the end is a fallback to the default cursor if the image fails to load.
    */
    cursor: url('/static/media/cursor.png') 10 10, auto;
}

a,
button,
.portfolio-card,
.timeline-tags .tag,
input[type="submit"],
.clickable,
.nav-link,
.cta-button {
    cursor: url('/static/media/cursor.png') 10 10, pointer;
}

@media (max-width: 768px) {

    html,
    body,
    a,
    button,
    .portfolio-card,
    .timeline-tags .tag,
    input[type="submit"] {
        cursor: auto;
        /* Restores the default system cursor */
    }
}

/* ================================
   17. COMMUNITY POP-UP MODAL
================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.8);
    /* Dark, semi-transparent overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    /* Ensure it's on top of everything */

    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: #FFFFFF;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    text-align: center;

    /* Entrance animation */
    transform: scale(1);
    transition: transform 0.3s ease;
}

/* --- Modal States --- */

.modal-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Allow clicks to pass through when hidden */
}

.modal-overlay.is-hidden .modal-content {
    transform: scale(0.95);
    /* Shrink slightly on exit */
}

/* --- Modal Elements --- */

.modal-title {
    margin-bottom: 1rem;
}

.modal-description {
    font-size: 18px;
    color: #565b66;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.modal-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #9CA3AF;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.modal-close-button:hover {
    color: #111827;
}

/* Responsive adjustments for the modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 2rem;
    }

    .modal-description {
        font-size: 16px;
    }
}