/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Import Road Rage font */
@font-face {
    font-family: 'Road Rage';
    src: url('../fonts/Road_Rage.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Add this with your other font declarations */
@font-face {
    font-family: 'SF Movie Poster';
    src: url('../fonts/SF\ Movie\ Poster.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #0f0f1a;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

/* Header styles */
header {
    position: absolute;
    width: 100%;
    height: 100vh; /* Fallback for browsers that don't support svh */
    height: 100svh;
    max-height: 100vh; /* Ensure header never exceeds viewport height */
    overflow: hidden;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box; /* Ensure padding doesn't add to dimensions */
}

#header-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100vh !important; /* Fallback for browsers that don't support svh */
    height: 100svh !important;
    max-height: 100vh !important; /* Ensure container never exceeds viewport height */
    z-index: 1;
    overflow: hidden;
    box-sizing: border-box; /* Ensure padding doesn't add to dimensions */
}

#header-canvas-container canvas {
    width: 100% !important;
    height: 100vh !important; /* Fallback for browsers that don't support svh */
    height: 100svh !important;
    max-height: 100vh !important; /* Ensure canvas never exceeds viewport height */
    display: block;
    box-sizing: border-box; /* Ensure padding doesn't add to dimensions */
}

/* Main content styles */
main {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    width: 100%;
}

/* Add gradient overlay for better text legibility */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35vh;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

/* Title styling */
.title-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.vibe-coding {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: -0.5rem;
    position: relative;
    z-index: 1;
}

.hackathon {
    font-family: 'Road Rage', cursive;
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 0.9;
    transform: rotate(-5deg);
    color: #ff3bac;
    display: inline-block;
    position: relative;
    z-index: 2;
    text-shadow: 
        0 0 5px rgba(255, 59, 172, 0.4),
        0 0 10px rgba(255, 59, 172, 0.4),
        0 0 20px rgba(255, 59, 172, 0.4),
        0 0 30px rgba(128, 0, 128, 0.4),
        0 0 40px rgba(128, 0, 128, 0.3),
        0 0 55px rgba(128, 0, 128, 0.2),
        0 0 70px rgba(128, 0, 128, 0.1);
    margin-top: -0.5rem;
    letter-spacing: 2px;
    animation: hackathon-glow 1.5s infinite alternate;
}

@keyframes hackathon-glow {
    from {
        text-shadow: 
            0 0 5px rgba(255, 59, 172, 0.4),
            0 0 10px rgba(255, 59, 172, 0.4),
            0 0 20px rgba(255, 59, 172, 0.4),
            0 0 30px rgba(128, 0, 128, 0.4),
            0 0 40px rgba(128, 0, 128, 0.3),
            0 0 55px rgba(128, 0, 128, 0.2),
            0 0 70px rgba(128, 0, 128, 0.1);
    }
    to {
        text-shadow: 
            0 0 5px rgba(255, 59, 172, 0.7),
            0 0 10px rgba(255, 59, 172, 0.7),
            0 0 20px rgba(255, 59, 172, 0.7),
            0 0 30px rgba(128, 0, 128, 0.7),
            0 0 40px rgba(128, 0, 128, 0.5),
            0 0 55px rgba(128, 0, 128, 0.4),
            0 0 70px rgba(128, 0, 128, 0.3);
    }
}

.hero p {
    font-family: 'SF Movie Poster', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2.0rem);
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    position: absolute;
    top: 30vh;
    left: 0;
    right: 0;
    line-height: 1.2;
    letter-spacing: 1.5px;
    word-spacing: -2px;
    z-index: 2; /* Ensure text appears above the gradient */
}

/* Enhanced neon text effect */
.neon-text {
    color: #fff;
    text-shadow: 
        0 0 7px rgba(255, 255, 255, 1.0),
        0 0 10px rgba(255, 255, 255, 0.9),
        0 0 21px rgba(0, 195, 255, 0.8),
        0 0 42px rgba(0, 195, 255, 0.7),
        0 0 82px rgba(0, 195, 255, 0.5),
        0 0 92px rgba(0, 195, 255, 0.4);
    animation: neon-pulse 1.5s infinite alternate;
}

@keyframes neon-pulse {
    from {
        text-shadow: 
            0 0 7px rgba(255, 255, 255, 1.0),
            0 0 10px rgba(255, 255, 255, 0.9),
            0 0 21px rgba(0, 195, 255, 0.8),
            0 0 42px rgba(0, 195, 255, 0.7),
            0 0 82px rgba(0, 195, 255, 0.5),
            0 0 92px rgba(0, 195, 255, 0.4);
    }
    to {
        text-shadow: 
            0 0 7px rgba(255, 255, 255, 1.0),
            0 0 10px rgba(255, 255, 255, 0.9),
            0 0 21px rgba(0, 195, 255, 0.8),
            0 0 42px rgba(0, 195, 255, 0.7),
            0 0 102px rgba(0, 195, 255, 0.5),
            0 0 151px rgba(0, 195, 255, 0.4);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hackathon {
        font-size: clamp(3rem, 10vw, 6rem);
        line-height: 1.2;
    }
}

/* Add desktop-specific adjustments */
@media (min-width: 769px) {
    .hero p {
        top: 30vh; /* Move text content down on larger screens */
        font-size: 1.8rem; /* Slightly smaller font for better spacing */
    }
    
    .title-container {
        margin-top: -10vh; /* Move title up to create more space */
    }
    
    .vibe-coding {
        font-size: 3.5rem; /* Control size on desktop */
    }
    
    .hackathon {
        font-size: 5.5rem; /* Control size on desktop */
    }
    
    .tagline-text {
        top: 8%; /* Position tagline a bit lower on desktop */
        font-size: 1.1rem; /* Slightly larger on desktop */
    }
    
    .mpaa-rating {
        width: 120px; /* Slightly larger rating image on desktop */
        height: auto;
    }
}

/* Add this to your CSS file */
.tagline-text {
    font-family: 'Orbitron', 'Chakra Petch', sans-serif; /* Retro tech font */
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 5px rgba(180, 120, 255, 0.7);
    position: absolute;
    top: 5%;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 3;
    transform: perspective(500px) rotateX(10deg);
    opacity: 0;
    animation: fadeInTagline 1.5s ease-out 0.5s forwards;
}

@keyframes fadeInTagline {
    from {
        opacity: 0;
        transform: perspective(500px) rotateX(10deg) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: perspective(500px) rotateX(10deg) translateY(0);
    }
}

.mpaa-rating {
    margin-top: 2rem;
}

/* Rating button styles */
.rating-button {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
  }
  
  /* Desktop hover state */
  @media (hover: hover) {
    .rating-button:hover {
      opacity: 0.85;
      transform: scale(1.05);
    }
  }
  
  /* Active/tap state (works on both desktop and mobile) */
  .rating-button:active {
    transform: scale(0.95);
    opacity: 0.7;
  }

/* Add these rules to prevent FOUC */
.tagline-text,
.title-container,
.hero p,
.mpaa-rating {
    opacity: 0;
    visibility: hidden;
}
