@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1:wght@100..900&family=Michroma&family=Space+Grotesk:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1:wght@100..900&family=Michroma&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Space+Grotesk:wght@300..700&display=swap');


/* Font Sets - Updated to use new fonts */
:root {
    --primary-color: #FFD700;
    --text-color: #ffffff;
    --heading-font: 'Michroma', sans-serif;
    --body-font: 'M PLUS 1', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--body-font);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    color: var(--text-color);
    padding-top: env(safe-area-inset-top); /* Adjusts for the status bar */
    background: #cbb37a; /* Or whatever blue color matches your design */
    min-height: -webkit-fill-available;
}


h1, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    letter-spacing: 0.02em;
    text-shadow: 
        0 0 2px rgba(255, 255, 255, 0.8),
        0 0 4px rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
}

h2 {
    font-family: var(--heading-font);
    letter-spacing: 0.02em;
    text-shadow: 
        0 0 2px rgba(0, 0, 0, 0.8),
        0 0 4px rgba(1, 1, 0, 0.4);
    color: #f7e416;
    font-size: 0.2rem;
}

.inizio h1 {
    font-family: 'Poppins', sans-serif; /* A different, potentially cleaner font */
    font-weight: 600;
    font-size: 2.8rem;
    color: var(--text-color);
    text-shadow: none; /* No shadow */
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em; /* Slightly tighter letter spacing */
    line-height: 1.1; /* Adjust line height if needed */
}

@media (max-width: 490px) {
    .inizio h1 {
        font-size: 2rem;
    }
}

@media (max-width: 420px) {
    .inizio h1 {
        font-size: 1.6rem;
        margin-top: 1rem;
    }
}



.video-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh; /* Fallback */
    height: 100dvh; /* Modern browsers */
    z-index: -1;
    margin-top: calc(0px - env(safe-area-inset-top)); /* iOS notch */
    margin-top: calc(0px - constant(safe-area-inset-top)); /* iOS fallback */
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* For Android browsers that support display-cutout */
@supports (padding-top: env(safe-area-inset-top)) {
    .video-background {
        padding-top: env(safe-area-inset-top);
        height: calc(100vh + env(safe-area-inset-top));
    }
}

/* For older Android browsers */
@supports not (padding-top: env(safe-area-inset-top)) {
    .video-background {
        height: 100vh;
    }
}



.logo {
    height: 50px;
    margin-left: 1rem;
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: -1;
    margin-top: calc(0px - env(safe-area-inset-top));
    margin-top: calc(0px - constant(safe-area-inset-top)); /* iOS fallback */
}




.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    background: none;
    border: none;
    z-index: 1001;
}


@media (max-width: 580px) {
    .cta {
        margin-top: 0.1rem;
        margin-bottom: -2rem;
    }
    
    .scroll-container {
        margin: 0.8rem 0; /* Reduced from 2rem 0 */
    }

    @keyframes scroll {
        0% { transform: translateX(0%); }  /* Changed from 10% to 0% */
        100% { transform: translateX(-150%); }
    }
    
    @-webkit-keyframes scroll {
        0% { -webkit-transform: translateX(0%); }  /* Changed from 100% to 0% */
        100% { -webkit-transform: translateX(-150%); }
    }
    
    .scroll-text {
        animation: scroll 35s linear infinite;
        margin-bottom: -0.4rem;
    }
}


@media (max-width: 480px) {
    main { 
        padding: 1rem; 
    }
    
    .inizio {
        font-weight: 800;
        margin-top: -2rem;
    }

    .scroll-text span { 
        font-size: 1.2rem; 
        font-weight: 1000;
        text-shadow: 
            2px 2px 0 rgba(0, 0, 0, 0.8),
            -1px -1px 0 rgba(0, 0, 0, 0.8),
            1px -1px 0 rgba(0, 0, 0, 0.8),
            -1px 1px 0 rgba(0, 0, 0, 0.8);
        margin-bottom: -0.1rem;
    }
    
    /* Updated CTA styles for mobile */
    .cta {
        padding: 6px 27px; /* 60% of original 10px 45px */
        font-size: 12px; /* 60% of original 20px */
        box-shadow: 4px 4px 0 #FFDF3A; /* 60% of original 6px 6px */
        margin-bottom: 1.2rem;
        width: 20%; /* 60% of original 33.33% */
        min-width: fit-content; /* Changed from max-content to better handle mobile */
        font-weight: 1000;
        text-shadow: 
            2px 2px 0 rgba(0, 0, 0, 0.8),
            -1px -1px 0 rgba(0, 0, 0, 0.8),
            1px -1px 0 rgba(0, 0, 0, 0.8),
            -1px 1px 0 rgba(0, 0, 0, 0.8);
    }
    
    .cta:hover {
        box-shadow: 6px 6px 0 #FBC638; /* 60% of original 10px 10px */
    }
    
    .cta span:first-child {
        margin-right: 12px; /* 60% of original 20px */
    }
    
    .cta span:nth-child(2) {
        margin-left: 9px; /* 60% of original 15px */
    }
    
    .cta:hover span:nth-child(2) {
        margin-right: 27px; /* 60% of original 45px */
    }
    
    /* Scale down the SVG */
    .cta svg {
        width: 40px; /* 60% of original 66px */
        height: 26px; /* 60% of original 43px */
    }

}

.close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    padding: 0;
}

.close-menu:hover {
    color: var(--primary-color);
}


.scroll-container {
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 2rem 0;
  }
  
  .scroll-text {
    display: flex;
    white-space: nowrap;
    /* Increased duration to show all spans while maintaining the same speed feel */
    animation: scroll 35s linear infinite;
    font-family: 'Orbitron', sans-serif;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    pointer-events: none;
    user-select: none;
    animation-delay: 0s !important;
    animation-play-state: running !important;
    -webkit-animation-play-state: running !important;
    text-shadow: 
    2px 2px 0 rgba(0, 0, 0, 0.8),
    -1px -1px 0 rgba(0, 0, 0, 0.8),
    1px -1px 0 rgba(0, 0, 0, 0.8),
    -1px 1px 0 rgba(0, 0, 0, 0.8);
  }
  
  .scroll-text span {
    padding: 0 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--heading-font);
    letter-spacing: 0.02em;
    text-shadow:
      0 0 2px rgba(0, 0, 0, 0.8),
      0 0 4px rgba(1, 1, 0, 0.4);
    padding: 10px 20px;
    color: #ffffff;
    text-shadow: 
    2px 2px 0 rgba(0, 0, 0, 0.8),
    -1px -1px 0 rgba(0, 0, 0, 0.8),
    1px -1px 0 rgba(0, 0, 0, 0.8),
    -1px 1px 0 rgba(0, 0, 0, 0.8);
  }
  
  @keyframes scroll {
    0% { transform: translateX(10%); }
    100% { transform: translateX(-150%); }  /* Increased the distance */
  }
  
  @-webkit-keyframes scroll {
    0% { -webkit-transform: translateX(100%); }
    100% { -webkit-transform: translateX(-180%); }  /* Increased the distance */
  }


  main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 20px; /* Height of nav */
}


.cta {
    display: flex;
    padding: 10px 45px;
    text-decoration: none;
    font-family: var(--nav-font);
    font-size: 20px;
    color: white;
    background: linear-gradient(135deg, #6e00ff, #c300ff);
    transition: 1s;
    box-shadow: 6px 6px 0 #FFDF3A;
    transform: skewX(-15deg);
    margin: 1rem auto;
    text-align: center;
    width: 33.33%;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    min-width: max-content;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-weight: 1000;
    text-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.8),
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8);
  }
  
  
  .cta span:first-child {
    white-space: nowrap;
    margin-right: 20px; /* Added: space between text and arrow */
  }
  
  .cta:focus {
    outline: none;
  }
  
  .cta:hover {
    transition: 0.5s;
    box-shadow: 10px 10px 0 #FBC638;
  }
  
  .cta span:nth-child(2) {
    transition: 0.5s;
    margin-right: 0px;
    display: inline-flex;
    align-items: center;
    margin-left: 15px; /* Added: additional space before the arrow */
  }
  
  .cta:hover span:nth-child(2) {
    transition: 0.5s;
    margin-right: 45px;
  }
  
  /* SVG */
  path.one {
    transition: 0.4s;
    transform: translateX(-60%);
  }
  
  path.two {
    transition: 0.5s;
    transform: translateX(-30%);
  }
  
  .cta:hover path.three {
    animation: color_anim 1s infinite 0.2s;
  }
  
  .cta:hover path.one {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.6s;
  }
  
  .cta:hover path.two {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.4s;
  }
  
  /* SVG animations */
  @keyframes color_anim {
    0% {
      fill: white;
    }
    50% {
      fill: #FBC638;
    }
    100% {
      fill: white;
    }
  }










.athlete-cards {
    width: 100%;
    padding: 2rem;
    /*background: rgba(255, 255, 255, 0.1);
    /*backdrop-filter: blur(5px);*/
}

.athlete-cards h2 {
    font-family: var(--body-font);
    text-align: center !important;
    margin: 0;
    padding: 2px 0;
    color: var(--primary-color);
    transform: translateX(-20px);
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
    font-size: 2.5rem;
    font-weight: 1000;
    text-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.8),
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

/* Add animation delay for h2 */
.athlete-cards h2 {
    animation-delay: 0.2s;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 840px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    width: 100%;
    padding-top: 133.33%; /* 4:3 aspect ratio */
}

.athlete-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-content {
    padding: 1rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px; /* Aumentato per dare più spazio al testo */
  }
  
  .card-content h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #333;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .card-content p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #666;
    margin: 0;
    overflow: hidden; /* Evita overflow di testo */
    flex: 1; /* Permette al paragrafo di espandersi */
    text-align: left; /* Allinea il testo a sinistra */
    padding: 0 0.5rem; /* Aggiunge un po' di padding laterale */
  }
  
  @media (max-width: 1024px) {
    .cards-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
      padding: 0.5rem;
    }
    
    .card-content {
      min-height: 220px; /* Aumentato per tablet */
    }

  }

  @media (max-width: 768px) {
    .athlete-cards h2 {
        font-size: 1.8rem;
    }

  }
  
  @media (max-width: 480px) {
    main {
      margin-top: 50px;
    }
    
    .athlete-cards {
      padding: 1rem;
    }

    .athlete-cards h2 {
        font-size: 1.8rem;
        text-shadow: 
            1px 1px 0 rgba(0, 0, 0, 0.8),
            -0.5px -0.5px 0 rgba(0, 0, 0, 0.8),
            0.5px -0.5px 0 rgba(0, 0, 0, 0.8),
            -0.5px 0.5px 0 rgba(0, 0, 0, 0.8);
    }
    
    .cards-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.5rem;
    }
    
    .card-content h3 {
      font-size: 1rem;
    }
    
    .card-content p {
      font-size: 0.8rem;
      line-height: 1.3; /* Ridotto per mobile */
    }
    
    .card-content {
      min-height: 180px; /* Adattato per mobile */
      padding: 0.75rem; /* Ridotto padding su mobile */
    }
  }



/*2901 1200*/

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjusts scroll position to account for fixed nav */
    height: -webkit-fill-available;
}

/* Content Container Styles */
.content-container {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative; /* Add this */
    overflow: hidden; /* Add this */
}

/* Add the silhouette background */
.content-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30%;
    height: 30%;
    background-image: url('../images/logotrasp01noshnopl.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.2;
    z-index: 1;
    margin-right: 1.5rem;
}



.text-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}


/* Service Cards Specific Styles */
.service-card {
    background: rgba(255, 255, 255, 0.9);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1rem;
}

.service-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.5;
}

/* Contact Form Styles */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6225E6;
}

.submit-button {
    background: #6225E6;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-family: var(--heading-font);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 4px 4px 0 #FFDF3A;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8),
                 0 0 4px rgba(255, 255, 255, 0.4);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 #FBC638;
}

/* Hero Form Styles */
.hero-form-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-form-text {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #ffffff;
    font-weight: 800;
    text-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.8),
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8);
}

.hero-form {
    width: 100%;
}

.hero-form-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-form-inputs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    justify-content: space-between;
}

.hero-form-group {
    flex: 0 0 calc(50% - 0.5rem); /* Even distribution with gap accounted for */
    min-width: 160px;
    margin-bottom: 0;
}

/* Make both inputs same size */
.hero-form-group select,
.hero-form-group input {
    width: 100%;
    height: 56px; /* Increased from 50px to give more vertical space */
    box-sizing: border-box;
    font-size: 1rem;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    line-height: 1.3; /* Added to improve text spacing */
}

/* Make sure the placeholder text for selects is visible */
.hero-form-group select option[disabled] {
    color: #666;
}

/* Style select dropdown arrow */
.hero-form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 30px;
}

/* Style for the default placeholder text */
.hero-form-group select option[value=""][disabled] {
    font-weight: 400;
    color: #666 !important;
}

/* Additional styling for region select to fix visual issues on mobile */
.region-select {
    text-align: left !important;
    padding-left: 10px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Ensure placeholder is visible on iPhone */
.region-select option:first-child {
    font-weight: normal;
    color: #666;
}

.hero-cta {
    display: inline-flex;
    padding: 8px 25px;
    font-size: 16px;
    margin: 0.5rem auto;
    width: auto;
    min-width: 240px;
    max-width: 300px;
    justify-content: center;
    white-space: nowrap;
}

.submission-message {
    color: white;
    font-weight: bold;
    text-align: center;
    margin-top: 0.5rem;
    text-shadow: 
        1px 1px 0 rgba(0, 0, 0, 0.8),
        -0.5px -0.5px 0 rgba(0, 0, 0, 0.8),
        0.5px -0.5px 0 rgba(0, 0, 0, 0.8),
        -0.5px 0.5px 0 rgba(0, 0, 0, 0.8);
}

.error-message {
    color: #FFD700 !important;
}

.hero-cta span:first-child {
    white-space: nowrap;
    font-size: 16px;
}

.hero-cta svg {
    width: 65px;
    height: 42px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .text-content {
        padding: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .hero-form-section {
        margin-top: 1.2rem;
        padding-top: 1.2rem;
    }
    
    .hero-form-text {
        font-size: 1rem;
    }
    
    .hero-form-inputs {
        gap: 0.8rem;
    }
    
    .hero-cta {
        padding: 8px 20px;
        font-size: 14px;
        min-width: 140px;
    }
}

@media (max-width: 650px) {
    .hero-form-inputs-row {
        flex-direction: column;
    }
    
    .hero-form-group {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-form-group select,
    .hero-form-group input {
        width: 100%;
    }
    
    .hero-cta {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    
    .hero-content2 {
        padding: 2.5rem;
    }
    
    .hero-content2-secondary {
        padding: 2rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .text-content p {
        font-size: 1rem;
    }
    
    .service-card h3 {
        font-size: 0.9rem;
    }
    
    .submit-button {
        padding: 0.8rem 1.6rem;
        font-size: 1rem;
    }
    
    .hero-content2 {
        padding: 1.5rem;
    }
    
    .hero-content2-secondary {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .hero-form-section {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .hero-form-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        text-shadow: 
            1px 1px 0 rgba(0, 0, 0, 0.8),
            -0.5px -0.5px 0 rgba(0, 0, 0, 0.8),
            0.5px -0.5px 0 rgba(0, 0, 0, 0.8),
            -0.5px 0.5px 0 rgba(0, 0, 0, 0.8);
    }
    
    /* Reduce form fields by 20% on mobile */
    .hero-form-group select,
    .hero-form-group input {
        height: 40px; /* 20% reduction from 50px */
        font-size: 0.8rem; /* 20% reduction from 1rem */
        padding: 9px; /* 20% reduction from 12px (rounded down) */
    }
    
    /* Mobile-only hint text */
    .mobile-only-hint {
        display: none; /* Hidden by default on non-mobile */
    }
    
    /* Only display the hint on small screens */
    @media (max-width: 480px) {
        .mobile-only-hint {
            display: block; /* Show on mobile */
            color: #e74c3c; /* Red color */
            font-size: 0.7rem; /* Small text */
            margin-top: 0; 
            margin-bottom: 5px;
            font-weight: bold;
            text-align: left;
            position: relative;
            z-index: 1;
            padding-left: 2px;
        }
    }
    
    .hero-cta {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    .hero-cta svg {
        width: 30px;
        height: 20px;
    }
    
    .subtext-container p {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }
    
    .hero-content2-secondary::after {
        width: 50px;
        height: 50px;
    }

}



/* Navigation Styling */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 80px;
    /*background: rgba(236, 220, 220, 0.5);*/
    /*backdrop-filter: blur(10px);*/
    /*-webkit-backdrop-filter: blur(10px);*/
    /*border-bottom: 1px solid rgba(255, 255, 255, 0.1);*/
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


.login-button {
    background: rgba(225, 223, 210, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 0.5rem 1rem !important;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 1rem;
    display: inline-block;
    font-family: var(--heading-font);
    letter-spacing: 0.02em;
    text-shadow: 
        0 0 2px rgba(255, 255, 255, 0.8),
        0 0 4px rgba(255, 255, 255, 0.4);
}

/* Responsive navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.8rem 0;
    }
    
    .nav-links {
        gap: 1rem;
        margin-right: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .logo {
        height: 40px;
        margin-left: 1rem;
    }
    
    .login-button {
        padding: 0.4rem 0.8rem !important;
        margin-right: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.5rem;
        margin-right: 1rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
    
    .logout-link, .login-button {
        padding: 0.3rem 0.7rem !important;
        font-size: 0.9rem;
        margin-right: 1rem;
    }
    
    .nav-container {
        padding: 0.6rem 0;
    }
    
    .logo {
        height: 35px;
        margin-left: 1rem;
    }
}

main {
    padding-top: 90px; /* Slightly more than the nav height */
    margin-top: 0; /* Reset any existing margin */
}


/* Adjust scroll padding to account for fixed nav */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Slightly more than nav height */
    height: -webkit-fill-available;
}




/* Side menu for mobile */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px; /* Start off-screen */
    width: 300px;
    height: 100vh;
    background: rgba(98, 37, 230, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1001;
    padding: 80px 2rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.side-menu.active {
    right: 0;
}

.side-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.side-menu .nav-links a {
    font-size: 1.2rem;
    padding: 0.8rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    font-family: var(--nav-font);
    letter-spacing: 0.02em;
    display: block;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8),
                 0 0 4px rgba(1, 1, 0, 0.4);
}

.side-menu .nav-links a:hover {
    color: var(--primary-color);
}

.side-menu .logout-link {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 0.5rem 1rem !important;
}

.side-menu .logout-link:hover {
    background: var(--primary-color);
    color: #6225E6 !important;
    text-shadow: none !important;
}

.close-menu:hover {
    color: var(--primary-color);
}




@media (max-width: 1290px) {
    .nav-links {
        display: none; /* Hide regular nav links */
    }
    
    .mobile-menu {
        display: block; /* Show hamburger icon */
    }
    
    nav {
        padding: 0.8rem 1.5rem;
    }
    
    /* Adjust main content padding to prevent overlap with fixed nav */
    main {
        padding-top: 90px;
    }
}



.hero-content2 {
    width: 80%;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 840px;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(0deg, rgb(255, 126, 61) 0%, rgba(255,179,0,1) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    box-shadow: 0 8px 48px rgb(100, 100, 100);
    overflow: hidden;

}

/* Secondary hero content container for text and background image */
.hero-content2-secondary {
    margin-top: 1rem; /* Space between the containers */
    padding: 2.5rem;
    background: linear-gradient(0deg, rgba(255,179,0,1) 0%, rgba(255,136,0,1) 100%); /* Inverted gradient */
}

.hero-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero-image {
    width: 150px;
    height: auto;
    object-fit: contain;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* The small logo in the background only appears in the secondary container */
.hero-content2-secondary::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px; 
    height: 80px; 
    background-image: url('../images/logotrasp01nosh.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.8;
    z-index: 1;
    align-items: right;
}

.slogan-container {
    width: 100%;
    position: relative;
    height: 50%; /* Adjust based on your needs */
    margin-bottom: 2rem;
}

.slogan-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.slogan-slide.active {
    opacity: 1;
    visibility: visible;
}

.slogan-slide .main-slogan {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    font-weight: bold;
    text-align: left;
    margin-bottom: 1rem;
    text-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.8),
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8);
    color: #ffffff;
    transform: translateY(-20px);
    opacity: 0;
    animation: slideDown 0.5s ease forwards;
}

.slogan-image {
    width: 400px;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideRight 0.2s ease forwards 0.2s;
}

.slogan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Animations */
@keyframes slideDown {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .slogan-slide .main-slogan {
        font-size: 2.8rem;
    }

    .slogan-image {
        width: 380px;
        height: 380px;
    }
    
    .hero-image {
        width: 120px;
        border-width: 3px;
    }
}

@media (max-width: 480px) {
    .hero-content2 {
        padding: 1rem;
    }

    .slogan-container {
        height: 200px;
    }

    .slogan-slide {
        font-size: 2rem;
    }
    
    .hero-image {
        width: 140px;
        border-width: 3px;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    }
    
    .hero-image-container {
        margin-bottom: 1rem;
    }
}


.early-access-info {
    color: white; /* White text */
    margin-top: 1rem; /* Add some spacing below the main heading */
    margin-bottom: 1.5rem; /* Add spacing below this line before the form */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Optional: subtle shadow for readability on the video */

    text-align: center !important;
    margin: 0;
    padding: 2px 0;
    color: #ffffff;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
    font-style: italic;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    font-family: 'Poppins', sans-serif; /* A different, potentially cleaner font */

}

@media (max-width: 490px) {
    .early-access-info {
        font-size: 1rem;
    }
}

@media (max-width: 420px) {
    .early-access-info {
        font-size: 0.9rem;
        margin-top: 0.8rem;
        margin-bottom: 1.2rem;
    }
}






.subtext-container {
    font-family: 'Poppins', sans-serif; /* A different, potentially cleaner font */
    width: 100%;
    text-align: center;
    font-family: var(--body-font);
    position: relative;
    z-index: 1;
}

.subtext-container p {
    text-align: center !important;
    margin: 0;
    padding: 2px 0;
    color: #ffffff;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
    font-style: italic;
    font-size: 1.2rem;
    font-weight: 800;
    text-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.8),
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8);
    margin-bottom: 0.4rem;
    font-family: 'Poppins', sans-serif; /* A different, potentially cleaner font */
}

/* Add different delays for each paragraph */
.subtext-container p:nth-child(1) { animation-delay: 0.2s; }
.subtext-container p:nth-child(2) { animation-delay: 0.4s; }
.subtext-container p:nth-child(3) { animation-delay: 0.6s; }
.subtext-container p:nth-child(4) { animation-delay: 0.8s; }

/* Keep other styles the same */
.main-slogan p {
    margin: 0;
    padding: 0;
    text-align: left !important;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.main-slogan p:last-child {
    margin-bottom: 0;
}



/* Ensure text content stays above the image */
.main-slogan,
.subtext-container {
    position: relative;
    z-index: 2;
}

.subtext-container p:not(.club-name) {
    transition: transform 0.3s ease, text-shadow 0.3s ease;
    cursor: default;
}

.subtext-container p:not(.club-name):hover {
    transform: translateX(10px);
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}



@media (max-width: 480px) {
    .main-slogan {
        font-size: 2.4rem;
        font-family: var(--heading-font);
        letter-spacing: 0.02em;
    text-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.8),
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8);
        padding: 4px 2px;
        color: #ffffff;
        font-weight: 900;
    }
    
    .subtext-container p {
        font-size: 0.8rem;
        font-weight: 1000;
        
    }

    .subtext-container p:not(.club-name):hover {
        transform: translateX(5px); /* Smaller movement on mobile */
    }

    .club-name {
        text-shadow: 
            1px 1px 0 rgba(0, 0, 0, 0.8),
            -0.5px -0.5px 0 rgba(0, 0, 0, 0.8),
            0.5px -0.5px 0 rgba(0, 0, 0, 0.8),
            -0.5px 0.5px 0 rgba(0, 0, 0, 0.8);
    }
    
    .hero-content2 {
        padding: 0.8rem;
    }
}

@media (max-width: 768px) {
    .hero-content2::after {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .hero-content2::after {
        width: 100px;
        height: 100px;
        }
}

@media (max-width: 430px) {
    .hero-content2-secondary::after {
        width: 40px;
        height: 40px;
    }
    
    .hero-image {
        width: 130px;
        border-width: 2px;
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
    }
    
    .hero-content2-secondary {
        padding: 1.2rem;
    }
    
    /* Form sizing for smallest screens */
    .hero-form-group select,
    .hero-form-group input {
        height: 46px; /* Further increased to ensure the text is fully visible */
        font-size: 0.85rem; /* Readable font size */
        padding: 8px 12px; /* Comfortable padding */
        line-height: 1.3; /* Improved line height */
    }
    
    /* Fix alignment and visibility issues for select text on small screens */
    .hero-form-group select {
        text-indent: 0;
        text-align: left;
        padding-left: 10px;
        color: #333 !important; /* Force text color */
        background-color: rgba(255, 255, 255, 0.9) !important; /* Force background */
    }
}









/* Footer Styles */
footer {
    background-color: rgba(98, 37, 230, 0.9);
    color: white;
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Changed from 3 to 4 columns */
    gap: 2rem;
}

.footer-column h4 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.8),
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 3rem; /* Increased horizontal gap for better spacing */
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Specific fixes for iPhone 13 Mini and similar sized devices */
@media (max-width: 375px) {
    .region-select {
        font-size: 0.85rem !important;
        color: #333 !important;
        padding: 10px 8px 10px 12px !important; /* Increased vertical padding */
        background-color: rgba(255, 255, 255, 0.95) !important;
        border: 1px solid rgba(0, 0, 0, 0.2) !important;
        height: 48px !important; /* Explicitly set height for iPhone */
    }
    
    /* Add contrast to ensure placeholder is visible */
    .region-select option:first-child {
        color: #444 !important;
        font-weight: 500 !important;
    }
    
    /* Also ensure the email input matches */
    .hero-form-group input[type="email"] {
        height: 48px !important;
        padding: 10px 12px !important;
    }
}



