body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #1a1a2e;
    color: #fff;
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #0f3460;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #00d4ff;
    animation: spin 4s linear infinite;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #00ff95;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #fff;
}

.hero {
    position: relative;
    text-align: center;
    color: #fff;
    overflow: hidden; /* Prevents text overflow */
}

.hero-image {
    width: 100%;
    height: auto;
    opacity: 0.6; /* Further reduced for stronger text dominance */
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10; /* Ensures overlay stays on top */
    max-width: 90%; /* Limits width to prevent edge overflow */
    padding: 30px 25px; /* Increased padding for breathing room */
    word-wrap: break-word; /* Forces long text to wrap */
    white-space: normal; /* Allows normal line breaks */
    position: relative; /* For pseudo-element positioning */
}

/* New: Dark backdrop behind text only */
.hero-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 20, 50, 0.7); /* Semi-transparent dark blue-gray overlay */
    border-radius: 10px; /* Soft rounded corners */
    z-index: -1; /* Behind the text but above image */
    backdrop-filter: blur(2px); /* Subtle blur for frosted effect (supported in modern browsers) */
}

.hero-text h1 {
    font-size: 48px;
    margin: 0 0 10px 0;
    color: #00ff95;
    word-break: break-word; /* Breaks words if needed */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9); /* Deeper shadow for contrast */
    position: relative; /* Ensures shadow renders above backdrop */
}

.hero-text p {
    font-size: 20px;
    margin: 10px 0 20px 0;
    word-break: break-word; /* Ensures tagline wraps properly */
    max-width: 100%; /* Full width within parent */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9); /* Enhanced shadow */
    position: relative;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px; /* Slightly larger for visibility */
    background-color: rgba(0, 212, 255, 0.95); /* Near-opaque blue */
    color: #1a1a2e !important; /* Force dark text contrast */
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: bold;
    text-shadow: none;
    z-index: 11; /* Above everything */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6); /* Stronger shadow */
    position: relative;
    /* Mini-backdrop for button */
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1); /* Subtle white tint for glow */
    border-radius: 5px;
    z-index: -1;
}

.cta-button:hover {
    background-color: #00ff95;
    transform: scale(1.05); /* Slight zoom on hover */
}

.section {
    padding: 40px 20px;
    text-align: center;
}

.section h2 {
    color: #00ff95;
    margin-bottom: 20px;
}

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

.section ul li {
    margin: 10px 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: 20px;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 20px auto;
}

input, textarea {
    margin: 10px 0;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #0f3460;
    color: #fff;
}

button {
    padding: 10px;
    background-color: #00d4ff;
    border: none;
    border-radius: 5px;
    color: #1a1a2e;
    cursor: pointer;
}

button:hover {
    background-color: #00ff95;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #0f3460;
    color: #00ff95;
    position: relative;
    bottom: 0;
    width: 100%;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #0f3460;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    position: relative;
    max-width: 400px;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

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

@media (max-width: 600px) {
    nav ul {
        display: none; /* Or add hamburger menu JS if needed */
    }
    .hero-text h1 { 
        font-size: 32px; 
    }
    .hero-text p { 
        font-size: 16px; 
    }
    .cta-button { 
        font-size: 14px; 
        padding: 10px 20px; 
    }
    .hero-text {
        max-width: 95%; /* Extra room on mobile */
        padding: 20px 15px; /* Scaled padding */
    }
    .hero-text::before {
        border-radius: 8px; /* Smaller corners on mobile */
    }
}