/* Delulu Website - Cosmic Theme Styling */

:root {
    /* Color palette inspired by DelularColorScheme.kt */
    --dark-bg: #1a0033;
    --dark-purple: #2d1b4e;
    --deep-purple: #4a3566;
    --gold: #ffd700;
    --gold-shimmer: #ffed4e;
    --lavender: #b8a4d4;
    --white: #ffffff;
    --white-alpha-80: rgba(255, 255, 255, 0.8);
    --white-alpha-60: rgba(255, 255, 255, 0.6);
    --white-alpha-10: rgba(255, 255, 255, 0.1);
    --white-alpha-05: rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-purple) 100%);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
header {
    background: var(--white-alpha-05);
    border-bottom: 1px solid var(--white-alpha-10);
    padding: 1rem 2rem;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--gold), var(--gold-shimmer));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

header nav a, .mobile-menu nav a {
    color: var(--white-alpha-80);
    text-decoration: none;
    transition: color 0.3s ease;
}

header nav a:hover, .mobile-menu nav a:hover {
    color: var(--gold);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: url('images/deluluDrip.png') center/cover no-repeat;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.8), rgba(45, 27, 78, 0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-shimmer));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.tagline {
    font-size: 1.5rem;
    color: var(--lavender);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-shimmer));
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* Content Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Feature Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card {
    background: var(--white-alpha-05);
    border: 1px solid var(--white-alpha-10);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--white-alpha-80);
}

/* Form Styling */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    background: var(--white-alpha-05);
    border: 1px solid var(--white-alpha-10);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--lavender);
}

input[type="email"],
input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    background: var(--white-alpha-05);
    border: 1px solid var(--white-alpha-10);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
}

input::placeholder {
    color: var(--white-alpha-60);
}

input:focus {
    outline: none;
    border-color: var(--gold);
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-shimmer));
    color: var(--dark-bg);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.warning {
    background: rgba(255, 69, 0, 0.1);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #ff6b6b;
}

.info {
    background: var(--white-alpha-05);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: var(--white-alpha-60);
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--white-alpha-10);
    color: var(--white-alpha-60);
}

footer a {
    color: var(--lavender);
    text-decoration: none;
}

footer a:hover {
    color: var(--gold);
}

/* Responsive Design */
/* Tablet and smaller - reduce nav spacing but keep horizontal */
@media (max-width: 900px) {
    header nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    header {
        padding: 1rem 1rem;
    }

    header nav {
        flex-wrap: nowrap;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
    /* Ensure minimum clickable area */
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--white);
    background: #ffffff; /* Fallback color */
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 0, 51, 0.85);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Panel - AGGRESSIVELY HIDDEN */
.mobile-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-purple) 100%);
    border-left: 1px solid var(--white-alpha-10);
    z-index: 1000;
    transition: right 0.3s ease, opacity 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    right: 0;
}

/* Ensure mobile menu nav is properly styled and hidden */
.mobile-menu nav {
    display: block;  /* Will be hidden by parent .mobile-menu display: none */
}

.mobile-menu nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu nav ul li {
    border-bottom: 1px solid var(--white-alpha-10);
}

.mobile-menu nav ul li:last-child {
    border-bottom: none;
}

.mobile-menu nav ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--white-alpha-80);
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-menu nav ul li a:hover,
.mobile-menu nav ul li a.active {
    background: var(--white-alpha-05);
    color: var(--gold);
    padding-left: 2rem;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--white-alpha-10);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.mobile-menu nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
}

.mobile-menu nav ul li {
    width: 100%;
}

.mobile-menu nav ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--white-alpha-80);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-menu nav ul li a:hover,
.mobile-menu nav ul li a.active {
    color: var(--gold);
    background: var(--white-alpha-05);
    border-left-color: var(--gold);
}

/* Mobile - hamburger navigation */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    header {
        padding: 0.75rem 1rem;
    }

    header nav {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    header nav ul {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
        visibility: visible;
        opacity: 1;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .container {
        padding: 1rem 0.5rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .form-container {
        padding: 1rem 0.75rem;
    }

    .hero {
        padding: 3rem 0.5rem;
    }

    .logo {
        margin-bottom: 0;
    }
}

/* Force hide mobile menu on desktop */
@media (min-width: 641px) {
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .hamburger {
        display: none !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}
