/* Font imports */
@import url("https://use.typekit.net/ksi4rqm.css");

/* CSS Variables */
:root {
    --font-text: "verdigris-mvb-pro-text", serif;
    --font-display: "verdigris-mvb-pro-big", serif;
    --font-logo: var(--font-display);
    --font-styling: "Raleway", sans-serif;
    --color-bg: #000;
    --color-text: #fff;
    --color-accent: #666;
    --transition-speed: 0.3s;
    --navbar-height: 4rem;
}

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

body {
    font-family: var(--font-text);
    font-display: swap;
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.6;
    padding-top: var(--navbar-height);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-display: swap;
    font-weight: normal;
    line-height: 1.2;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    font-family: var(--font-display);
    text-transform: uppercase;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.navbar-logo:hover {
    opacity: 0.8;
}

.nav-item {
    color: var(--color-text);
    text-decoration: none;
    margin: 0 1rem;
    transition: color var(--transition-speed) ease;
}

.nav-item:hover {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-text);
    transition: width 0.3s ease;
}

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

.nav-links a.active {
    opacity: 0.7;
}

.nav-links a.active::after {
    width: 100%;
}

main {
    padding-top: 80px;
}

#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo-container {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-family: var(--font-logo);
    font-size: 5.5rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    letter-spacing: 0.05em;
    white-space: nowrap;
    line-height: 1.2;
}

.logo span {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo span:nth-child(1) { animation-delay: 0.05s; }
.logo span:nth-child(2) { animation-delay: 0.1s; }
.logo span:nth-child(3) { animation-delay: 0.15s; }
.logo span:nth-child(4) { animation-delay: 0.2s; }
.logo span:nth-child(5) { animation-delay: 0.25s; }
.logo span:nth-child(6) { animation-delay: 0.3s; }
.logo span:nth-child(7) { animation-delay: 0.35s; }
.logo span:nth-child(8) { animation-delay: 0.4s; }
.logo span:nth-child(9) { animation-delay: 0.45s; }
.logo span:nth-child(10) { animation-delay: 0.5s; }
.logo span:nth-child(11) { animation-delay: 0.55s; }

.text-effect {
    font-size: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
    animation-delay: 1s;
}

.text-effect p {
    margin: 0.5rem 0;
}

#sections {
    padding: 0;
    background: var(--color-text);
}

.section-item {
    margin: 0;
    padding: 4rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.section-item:nth-child(odd) {
    background: var(--color-text);
    color: var(--color-bg);
}

.section-item:nth-child(even) {
    background: var(--color-bg);
    color: var(--color-text);
}

/* Specific section colors */
.section-item.find-me {
    background: var(--color-text);
    color: var(--color-bg);
}

.section-item.find-me h2,
.section-item.find-me p {
    color: var(--color-bg);
}

.section-item.find-me .discover-btn {
    border-color: var(--color-bg);
    color: var(--color-bg);
}

.section-item.find-me .discover-btn:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

/* Find yourself section */
.section-item.find-yourself {
    background: var(--color-bg);
    color: var(--color-text);
}

.section-item.find-yourself h2,
.section-item.find-yourself p {
    color: var(--color-text);
}

.section-item.find-yourself .discover-btn {
    border-color: var(--color-text) !important;
    color: var(--color-text) !important;
}

.section-item.find-yourself .discover-btn:hover {
    background: var(--color-text) !important;
    color: var(--color-bg) !important;
}

.section-item h2 {
    color: inherit;
    margin-bottom: 1rem;
}

.section-item p {
    color: inherit;
    opacity: 0.8;
}

.discover-btn {
    display: inline-block;
    padding: 1rem 2rem;
    margin-top: 1rem;
    text-decoration: none;
    border: 2px solid var(--color-bg);
    transition: all 0.3s ease;
    background: transparent;
    color: var(--color-bg);
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.discover-btn:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

footer {
    padding: 2rem;
    text-align: center;
    background: var(--color-bg);
}

.social-links {
    margin-bottom: 1rem;
    background: transparent;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    background: transparent;
}

.social-links a:hover {
    color: #666;
}

.copyright {
    font-size: 0.8rem;
    color: #666;
    background: transparent;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode transitions */
.fade-to-black {
    animation: fadeToBlack 2s forwards;
}

@keyframes fadeToBlack {
    to {
        background-color: #000;
    }
}

/* TV Effect Animations */
@keyframes tvLines {
    0% {
        background: linear-gradient(transparent 50%, rgba(255, 255, 255, 0.05) 50%);
        background-size: 100% 4px;
        transform: scaleY(1);
    }
    50% {
        background: linear-gradient(transparent 50%, rgba(255, 255, 255, 0.05) 50%);
        background-size: 100% 2px;
        transform: scaleY(0.5);
    }
    100% {
        background: linear-gradient(transparent 50%, rgba(255, 255, 255, 0.05) 50%);
        background-size: 100% 1px;
        transform: scaleY(0.2);
    }
}

@keyframes tvFlash {
    0% {
        opacity: 1;
        filter: brightness(1);
    }
    5% {
        opacity: 1;
        filter: brightness(5);
    }
    6% {
        opacity: 0.98;
        filter: brightness(40);
    }
    100% {
        opacity: 0;
        filter: brightness(1);
    }
}

.tv-effect {
    position: relative;
    overflow: hidden;
}

.tv-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    animation: tvLines 2s linear forwards;
}

.tv-effect.flash::before {
    animation: tvFlash 0.1s linear forwards;
    animation-delay: 5s;
    width: 100%;
    max-width: 1200px;
}

.tv-effect.off {
    opacity: 0;
}

/* Neon text effect */
.styling-container {
    position: relative;
    height: 60px;
    margin-top: 1rem;
}

.styling-text {
    font-family: var(--font-styling);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-text);
    text-align: center;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0;
    animation: stylingReveal 2s ease forwards;
    animation-delay: 4s;
}

.tv-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transform-origin: center;
    animation: tvLine 0.2s ease-out forwards;
    animation-delay: 6s;
    opacity: 0;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes letterReveal {
    0% {
        opacity: 0;
        transform: translateX(0);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes stylingReveal {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
        text-shadow: 0 0 10px white, 0 0 20px white, 0 0 30px white;
    }
    20% {
        opacity: 0;
        text-shadow: none;
    }
    30% {
        opacity: 1;
        text-shadow: 0 0 10px white, 0 0 20px white, 0 0 30px white;
    }
    40% {
        opacity: 0;
        text-shadow: none;
    }
    45% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes tvLine {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: scaleX(1);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 3.5rem;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .fade-in {
        transform: scale(0.95);
    }

    .slide-in {
        transform: translateX(-20px);
    }

    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    .styling-text {
        font-size: 3rem;
    }
    
    .navbar-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        font-size: 2.5rem;
        transform: scale(0.85);
        max-width: 90%;
        margin: 0 auto;
        text-align: center;
    }

    .styling-text {
        font-size: 1.5rem;
        letter-spacing: 0.3rem;
        text-align: center;
    }

    .tv-line {
        width: 50%;
        height: 1px;
        margin: 1rem auto;
    }

    .navbar-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-item {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem;
    }

    button {
        width: 100%;
        margin-top: 1rem;
    }

    input[type="text"] {
        width: 100%;
    }

    /* Ottimizzazioni per iPhone 14 */
    @media (max-height: 844px) {
        .logo-container {
            margin-bottom: 2rem;
        }

        .form-container {
            margin-top: 1rem;
        }

        .container {
            padding: 0.5rem;
        }
    }
} 

/* Fix responsive for iPhone vertical */

@media (max-width: 768px) {
  body {
    padding-top: 5rem !important;
  }

  .logo {
    font-size: 2.2rem;
    transform: scale(0.85);
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
  }

  .styling-text {
    font-size: 1.5rem;
    letter-spacing: 0.3rem;
    text-align: center;
  }

  .tv-line {
    width: 50%;
    height: 1px;
    margin: 1rem auto;
  }

  .navbar-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-item {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
  }
}


/* FINAL FIXES FOR IPHONE VERTICAL */

@media (max-width: 768px) {
  body {
    padding-top: 5rem !important;
  }

  .logo {
    font-size: 2.4rem !important;
    transform: scale(0.85);
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
  }

  .styling-text {
    font-size: 1.5rem;
    letter-spacing: 0.3rem;
    text-align: center;
  }

  .tv-line {
    width: 60%;
    height: 1px;
    margin: 1rem auto;
  }

  .logo-container {
    margin-bottom: 1rem;
  }

  .container {
    padding: 1rem !important;
  }

  .navbar-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .nav-item {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
}


/* HAMBURGER MENU STYLES */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-item {
    padding: 0.75rem 0;
    font-size: 1rem;
  }
}


/* FINAL FULL MOBILE FIXES */

@media (max-width: 768px) {
  body {
    padding-top: 5rem !important;
  }

  .logo {
    font-size: 2rem !important;
    transform: scale(0.75);
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
  }

  .styling-text {
    font-size: 1.2rem;
    letter-spacing: 0.25rem;
    text-align: center;
  }

  .tv-line {
    width: 40%;
    height: 1px;
    margin: 0.5rem auto;
  }

  .logo-container {
    margin-bottom: 0.5rem;
  }

  .container {
    padding: 0.5rem !important;
  }

  .navbar-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-item {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
  }

  .hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
  }
}
