/* Basic Reset and Variables */
:root {
    --primary-color: #007bff; /* Bright Primary Blue */
    --text-color: #f0f0f0;
    --background-dark: #1a1a1a;
    --button-dark: #2c2c2c;
    --hover-dark: #3a3a3a;
    --star-color: #555; /* Subtle color for stars/lines */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--background-dark);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Background Image and Shooting Stars Styling --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('techbackground.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
    filter: grayscale(100%); 
}

/* Shooting Star / Animated Line Container */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--star-color) 1px, transparent 1px);
    background-size: 150px 150px;
    animation: star-stream 100s linear infinite; /* Slow, constant movement */
    opacity: 0.15;
    z-index: -1;
}

@keyframes star-stream {
    from {
        background-position: 0 0;
    }
    to {
        /* Move diagonally (down-right) */
        background-position: 10000px 10000px; 
    }
}
/* END Shooting Star Animation */


/* --- Icon and Navbar Styling --- */
.navbar {
  position: fixed;
  top: 60px; /* or enough to clear the announcement bar height */
  width: 100%;
  /* rest of your styles */
  padding: 20px 50px;
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(5px);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: 800;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a i {
    margin-right: 5px; /* Spacing for icons */
    color: var(--star-color); /* Subtle icon color */
}

.nav-links a:hover {
    color: var(--primary-color);
}

.dashboard-button {
    background-color: var(--button-dark);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}
.dashboard-button i {
    margin-right: 5px;
}

.dashboard-button:hover {
    background-color: var(--hover-dark);
    transform: translateY(-2px);
}


/* --- Hero Section Styling --- */
.hero-section {
    position: relative; /* Needed for the ::after shooting stars positioning */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 90vh;
    padding-top: 80px;
}

.promo-tag {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    padding: 5px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    letter-spacing: 1px;
    animation: pulse 1.5s infinite;
}

.hero-title {
    font-size: 4em;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.hero-title strong {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2em;
    max-width: 700px;
    margin-bottom: 40px;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn i {
    margin-right: 8px;
}

/* Start Creating Button */
.primary-btn {
    background-color: var(--primary-color);
    color: var(--background-dark);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
}

.primary-btn:hover {
    background-color: #0069d9;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 30px rgba(0, 123, 255, 0.6);
}

/* Join Discord Button */
.secondary-btn {
    background-color: var(--button-dark);
    color: var(--text-color);
    border: 1px solid var(--hover-dark);
}

.secondary-btn:hover {
    background-color: var(--hover-dark);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Suggested Animation */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}


/* Inherit colors from the main style.css root variables */

/* General Layout for Documentation */
.docs-container {
    display: flex;
    padding-top: 70px; /* Space for the fixed navbar */
    min-height: 100vh;
}

/* --- Sidebar Styling --- */
.docs-sidebar {
    width: 280px;
    background-color: var(--button-dark);
    padding: 30px 20px;
    position: fixed; /* Makes the navigation stay in place */
    top: 70px;
    left: 0;
    bottom: 0;
    overflow-y: auto; /* Allows scrolling for long documentation */
    border-right: 1px solid var(--hover-dark);
}

.sidebar-title {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--hover-dark);
    padding-bottom: 10px;
}
.sidebar-title i {
    margin-right: 8px;
}

.docs-sidebar nav a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
    font-weight: 500;
}

.docs-sidebar nav a i {
    margin-right: 10px;
    color: var(--star-color);
}

.docs-sidebar nav a:hover {
    background-color: var(--hover-dark);
    color: var(--primary-color);
}

.docs-sidebar nav a.active {
    background-color: var(--primary-color);
    color: var(--background-dark);
    font-weight: 600;
}
.docs-sidebar nav a.active i {
    color: var(--background-dark);
}

.sidebar-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--hover-dark);
    text-align: center;
}

.sidebar-cta {
    width: 100%;
    padding: 10px 15px;
    text-align: center;
}

/* --- Main Content Styling --- */
.docs-content {
    margin-left: 280px; /* Offset to make space for the fixed sidebar */
    flex-grow: 1;
    padding: 30px 50px;
    line-height: 1.8;
}

.docs-h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    line-height: 1.2;
}

.docs-h3 {
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--text-color);
    opacity: 0.9;
}

.docs-content p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.docs-content ul, .docs-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
    padding-left: 0;
}

.docs-content li {
    margin-bottom: 8px;
    opacity: 0.85;
}

.docs-content hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), var(--hover-dark), rgba(0, 0, 0, 0));
    margin: 40px 0;
}

.code-example code {
    display: block;
    background-color: var(--button-dark);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
    font-family: monospace;
    overflow-x: auto;
    white-space: pre-wrap;
    opacity: 0.9;
}

.docs-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
}

/* ... [Your existing CSS goes here] ... */

/* ======================================= */
/* --- Mobile Responsiveness (Max 768px) --- */
/* ======================================= */

@media (max-width: 768px) {
    
    /* --- Navbar Adjustments --- */
    .navbar {
        /* Reduce horizontal padding */
        padding: 15px 20px;
        flex-wrap: wrap; /* Allow items to wrap on smaller screens */
        justify-content: center; /* Center items when they wrap */
    }

    .logo {
        width: 100%; /* Take full width on top */
        text-align: center;
        margin-bottom: 15px; /* Add space below logo */
        font-size: 1.8em; /* Slightly larger logo on mobile top */
    }
    
    .nav-links {
        display: none; /* Hide secondary links to save space (Hamburger menu is a better long-term solution, but hiding is quicker) */
    }

    .dashboard-button {
        padding: 6px 12px; /* Smaller button padding */
        font-size: 0.9em;
        /* Center the button under the logo if nav-links are hidden */
        margin: 0 auto; 
    }
    
    /* --- Hero Section Adjustments --- */
    .hero-section {
        /* Add more padding to the sides and reduce min-height */
        padding: 100px 20px 40px; 
        min-height: 80vh; 
    }

    .promo-tag {
        font-size: 0.9em; /* Smaller promo text */
        margin-bottom: 15px;
    }

    .hero-title {
        /* Significantly reduce the font size for mobile screens */
        font-size: 2.5em; 
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1em; /* Standard mobile text size */
        max-width: 90%; /* Ensure it fits well within the screen */
        margin-bottom: 30px;
    }

    .cta-buttons {
        /* Stack buttons vertically instead of horizontally */
        flex-direction: column; 
        gap: 15px;
        width: 80%; /* Make buttons take up more horizontal space */
        max-width: 350px; /* Limit max button width */
    }

    .btn {
        padding: 12px 20px; /* Adjust button padding */
        width: 100%; /* Full width within the max-width container */
        justify-content: center; /* Center the icon and text */
    }

    /* --- Documentation Page (If it were visible) --- */
    .docs-container {
        flex-direction: column; /* Stack sidebar and content */
        padding-top: 85px; /* Adjust for the new navbar height */
    }

    .docs-sidebar {
        position: static; /* Stop fixing the sidebar to allow scrolling with content */
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--hover-dark); /* Add separator */
    }

    .docs-content {
        margin-left: 0; /* Remove the left offset */
        padding: 20px; /* Reduce padding */
    }

    .docs-h2 {
        font-size: 2em; /* Smaller heading */
    }
}


/* =============================== */
/* === UPGRADED SHOOTING STARS ==== */
/* =============================== */

.shooting-stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.shooting-star {
    position: absolute;
    width: 3px;
    height: 140px;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,1),
        rgba(0,123,255,1),
        rgba(0,123,255,0)
    );
    border-radius: 50%;
    filter: drop-shadow(0 0 12px rgba(0,123,255,1));
    opacity: 1;
    animation: shoot 2s linear forwards;
}

@keyframes shoot {
    0% {
        transform: translate(0, 0) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translate(-1400px, 1400px) rotate(45deg);
        opacity: 0;
    }
}


/* Announcement bar styles (add this to your CSS) */
/* Announcement Bar matching your style */
.announcement-bar {
  width: 100%;
  background-color: #07b0ff; /* matching your color scheme */
  color: #343a40;
  padding: 10px 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite ease-in-out;
  /* No position: fixed; */
}

.announcement-link {
    color: #ff0000; /* Highlight the new domain with your brand color */
    text-decoration: underline;
    font-weight: 800; /* Extra bold */
    margin: 0 5px;
}

/* Optional: Slight color change on hover */
.announcement-link:hover {
    color: #fbff00;
}

/* Keyframe animation for the pulse effect */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.005);
    }
    100% {
        transform: scale(1);
    }
}

/* Keep the overall promo style */
.highlight-promo {
    border-color: #ff69b4; /* Pink border */
    color: #ff69b4; /* Pink text */
    background-color: transparent;
    font-weight: 700;
    animation: pulsePink 1.5s infinite;
}

/* Style for HOLIDAY25 - softer pink, no glow, just a gentle bounce */
.special-code {
    font-size: 1.5em;
    font-weight: bold;
    color: #d36bdc; /* Muted pink */
    text-shadow: none; /* Remove glow for subtlety */
    display: inline-block;
    animation: bounce 2s infinite;
}

/* Style for 25% off - softer teal, no glow, gentle bounce */
.discount-amount {
    font-size: 1.4em;
    font-weight: bold;
    color: #5bc0be; /* Muted teal */
    text-shadow: none; /* Remove glow for subtlety */
    display: inline-block;
    animation: bounce 2s infinite;
}

/* Animations for bounce */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

/* Optional pulse animation for the whole banner to draw attention gently */
@keyframes pulsePink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
}


/* --- Beta Page Specific Styles --- */

/* Adjust the announcement bar for the Beta lock page */
.announcement-bar .fa-exclamation-triangle {
    color: #ffc107; /* Warning yellow */
    margin-right: 5px;
}
.announcement-bar a {
    color: #ff0000;
}

/* Style for the beta tag to make it stand out */
.beta-tag {
    border-color: #ff0000; /* Red border */
    color: #ff0000; /* Red text */
    animation: pulseRed 1.5s infinite;
}

@keyframes pulseRed {
    0% { transform: scale(1); opacity: 1; border-color: #ff0000; }
    50% { transform: scale(1.03); opacity: 0.9; border-color: #ffc107; }
    100% { transform: scale(1); opacity: 1; border-color: #ff0000; }
}

/* Style for the locked dashboard button on the navbar */
.beta-locked-btn {
    background-color: #343a40; /* Darker gray to look disabled */
    color: #999999; /* Light gray text */
    pointer-events: none; /* Make it unclickable */
    cursor: default;
    box-shadow: none;
    transition: none;
}

.beta-locked-btn:hover {
    background-color: #343a40; /* Remove hover effect */
    transform: none; /* Remove hover transform */
}

/* Optional: Make the primary button pulse to draw attention to the Discord CTA */
.pulse-btn {
    animation: pulseCta 2s infinite ease-in-out;
}

.pulse-btn:hover {
    animation: none; /* Stop the animation on hover */
}

@keyframes pulseCta {
    0% {
        box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 123, 255, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
    }
}