@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

@font-face {
    font-family: 'Satoshi-Variable';
    src: url('../fonts/Satoshi-Variable.woff2') format('woff2'),
         url('../fonts/Satoshi-Variable.woff') format('woff'),
         url('../fonts/Satoshi-Variable.ttf') format('truetype');
    font-weight: 300 900;
    font-display: swap;
    font-style: normal;
}

/* @font-face {
    font-family: 'aujournuit';
    src: url('../assets/Fonts/PPEditorialNew-UltralightItalic.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'aujournuit-ultralight';
    src: url('../assets/Fonts/PPEditorialNew-Ultralight.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
} */

@font-face {
    font-family: 'aujournuit';
    src: url('../Fonts/Auj/Aujournuit-VariableVF.woff2') format('woff2'),
         url('../Fonts/Auj/Aujournuit-VariableVF.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable both-edges;
    overflow-x: hidden;
}

body {
    cursor: default;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.22s ease;
}

body.loaded {
    opacity: 1;
}

/* ── Theme toggle button ── */
.theme-toggle-nav {
    background: transparent;
    border: none;
    padding: 0;
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: inherit;
    cursor: pointer;
}

.theme-toggle-nav:hover {
    color: #F6FB6B;
    text-decoration: underline;
}

/* ── Dark mode overrides (improved contrast) ── */
body.theme-dark {
    background: #04131A !important; /* deep, near-black teal */
    color: #F8FAFC !important;      /* almost pure white for high contrast */
}

body.theme-dark .bg-white {
    background-color: #04131A !important;
}

body.theme-dark .text-black {
    color: #F8FAFC !important;
}

/* invert utility backgrounds carefully */
body.theme-dark .bg-black {
    background-color: #F8FAFC !important;
}

body.theme-dark .text-white {
    color: #04131A !important;
}

/* Muted text for secondary content */
body.theme-dark .text-gray-600,
body.theme-dark .text-gray-500,
body.theme-dark .text-gray-400 {
    color: #1f2021 !important;
}

/* Make small/light text more legible */
body.theme-dark .text-gray-200 {
    color: #9CA3AF !important;
}

/* Links / accents */
body.theme-dark a.underline, body.theme-dark .underline {
    color: #F6FB6B !important; /* neon accent preserved for visibility */
}

body.theme-dark .theme-toggle-nav {
    color: #F8FAFC;
}

body.theme-dark .circle-text {
    fill: #F8FAFC;
}

body.theme-dark .project-label {
    border-top-color: #1F2937;
    color: #9CA3AF;
}

/* ── Custom cursor ── */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    font-family: sans-serif;
    font-size: 28px;
    font-weight: 200;
    line-height: 1;
    color: white;
    mix-blend-mode:exclusion;
    opacity: 0;
    transition: opacity 0.15s ease;
    user-select: none;
}

#custom-cursor.visible {
    opacity: 1;
}

/* ── Project container ── */
#project-container {
    font-weight: 200;
    line-height: 1.0;
    letter-spacing: -0.05em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    animation: fadeIn 0.8s ease-out forwards;
    font-variation-settings: 'wdth' 3;
}

#text-aboutme {
    font-weight: 200;
    letter-spacing: -0.025em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    animation: fadeIn 0.8s ease-out forwards;
    font-variation-settings: 'wdth' 4;
}

/* ── Hover sui nomi dei progetti ── */
h2 span {
    transition: all 0.3s ease;
    display: inline-block;
}

h2 span:hover {
    color: #F6FB6B;
    transform: skewX(-5deg);
}

/* #project-container a:hover  {
    background-color: black;
} */


/* ── Animazione entrata ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Icona vinile footer ── */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.group:hover svg {
    animation: spin 3s linear infinite;
}

/* ── Mobile Menu ── */
#mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
}
#mobile-menu.open {
    transform: translateX(0);
}
@media (min-width: 768px) {
    #mobile-menu { display: none !important; }
}
body.theme-dark #mobile-menu {
    background: #04131A !important;
}
body.theme-dark #mobile-menu .border-gray-200 {
    border-color: #1F2937 !important;
}
body.theme-dark #mobile-menu .text-gray-500 {
    color: #9CA3AF !important;
}

/* ── Nav show/hide helpers ── */
.nav-desktop {
    display: none;
}
@media (min-width: 768px) {
    .nav-desktop { display: block; }
    .nav-mobile  { display: none !important; }
}

/* ── Mobile Hamburger Menu ── */
#hamburger-toggle {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

body.theme-dark #hamburger-toggle .hamburger-icon span {
    background-color: #F8FAFC;
}

#hamburger-toggle.active .hamburger-icon span:first-child {
    transform: rotate(45deg) translate(8px, 8px);
}

#hamburger-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

#hamburger-toggle.active .hamburger-icon span:last-child {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Styling */
#mobile-menu {
    background: inherit;
    box-shadow: inset 2px 0 10px rgba(0, 0, 0, 0.05);
}

#mobile-menu.open {
    transform: translateX(0);
}

body.theme-dark #mobile-menu {
    background: #04131A;
    box-shadow: inset 2px 0 10px rgba(255, 255, 255, 0.05);
}

#mobile-menu a,
#mobile-menu button {
    transition: color 0.3s ease;
}

body.theme-dark #mobile-menu a,
body.theme-dark #mobile-menu button {
    color: #F8FAFC;
}

body.theme-dark #mobile-menu .border-t {
    border-color: #1F2937;
}

body.theme-dark #mobile-menu .text-gray-500 {
    color: #9CA3AF;
}





@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.group:hover svg {
    animation: spin 3s linear infinite;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #C2C2C2;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #F6FB6B;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #C2C2C2 transparent;
}

/* CONTAINER */

.circular-text {
    width: 140px;
    height: 140px;
    cursor: pointer;
}

/* TESTO */

.circle-text {
    font-family: 'Satoshi';
    font-size: 16px;
    letter-spacing: 0.18em;
    fill: black;
    transition: fill 0.3s ease;
    font-weight: 600;
}

/* ROTAZIONE */

.circular-text svg {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.circular-text:hover svg {
    animation: rotateText 6s linear infinite;
}

body.theme-dark .filter-btn.bg-\[\#F6FB6B\] {
    color: #000000 !important;
}

@keyframes rotateText {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


@media (max-width: 767px) {
  /* NAV */
  nav {
    padding: 1.25rem !important;
  }

  nav .col-span-12:first-child {
    font-size: 13px;
  }

  nav .col-span-12:last-child {
    font-size: 13px;
    text-align: left !important;
  }

  /* FOOTER */
  footer {
    padding: 1.25rem !important;
    align-items: end;
  }

  footer .col-span-6 {
    font-size: 13px;
  }

  /* nascondi il "listening to" su mobile, troppo lungo */
  footer .italic {
    display: none;
  }
}


@media (max-width: 767px) {
  /* più spazio sotto la nav */
  /* main .pt-24 {
    padding-top: 8rem !important;
  } */

  /* filtri più piccoli */
  .filter-btn {
    font-size: 14px !important;
    padding: 0.4rem 0.9rem !important;
  }

}


@media (max-width: 767px) {
  #project-container a {
    display: block;
    white-space: nowrap;
  }

  #project-container span {
    display: none;
  }

  #project-container {
    font-size: 2.4rem !important;
    line-height: 1.4 !important;
    letter-spacing: -0.03em !important;
    text-align: left !important;
  }
  
  .justify-center {
    justify-content: left;
  }
}



/* nav {
    mix-blend-mode: difference;
}

nav, nav * {
    color: white !important;
}

footer {
    mix-blend-mode: difference;
}

footer, footer * {
    color: white !important;
} */