/* Luna Tech Works - Northern Lights Theme */

:root {
    /* Color Palette */
    --primary: #2dd4bf;
    /* Teal 400 - Aurora Green */
    --secondary: #818cf8;
    /* Indigo 400 - Aurora Purple */
    --accent: #c084fc;
    /* Purple 400 */

    --bg-dark: #0f172a;
    /* Slate 900 - Deep Night Sky */
    --bg-card: rgba(30, 41, 59, 0.7);
    /* Glassy Slate 800 */
    --bg-surface: rgba(15, 23, 42, 0.8);

    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */

    --glow-primary: rgba(45, 212, 191, 0.5);
    --glow-secondary: rgba(129, 140, 248, 0.5);

    /* Luna Tech Works Brand Colors */
    --brand-navy: #091C48;
    /* Deep night sky */
    --brand-royal: #264C95;
    /* Twilight blue */
    --brand-purple: #691B67;
    /* Deep purple */
    --brand-magenta: #7B214B;
    /* Rich magenta */
    --brand-pink: #C76693;
    /* Soft pink */
    --brand-teal: #198D77;
    /* Aurora teal */

    /* Brand gradient */
    --brand-gradient: linear-gradient(135deg,
            var(--brand-navy),
            var(--brand-royal),
            var(--brand-purple),
            var(--brand-magenta),
            var(--brand-pink),
            var(--brand-teal));
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}

/* --- Animated Northern Lights Background --- */
.northern-lights-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: var(--bg-dark);
    overflow: hidden;
}

.aurora-1,
.aurora-2,
.aurora-3 {
    position: absolute;
    filter: blur(50px);
    /* Reduced blur for more vibrancy */
    opacity: 0.7;
    /* Increased opacity */
    animation: aurora-flow 20s infinite alternate ease-in-out;
}

.aurora-1 {
    top: -20%;
    left: -20%;
    width: 80vw;
    height: 80vh;
    background: radial-gradient(ellipse at center, rgba(25, 141, 119, 0.4), transparent 70%);
    /* brand-teal */
    animation-duration: 25s;
}

.aurora-2 {
    bottom: -20%;
    right: -20%;
    width: 90vw;
    height: 90vh;
    background: radial-gradient(ellipse at center, rgba(38, 76, 149, 0.4), transparent 70%);
    /* brand-royal */
    animation-duration: 30s;
    animation-direction: alternate-reverse;
}

.aurora-3 {
    top: 30%;
    left: 20%;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(ellipse at center, rgba(199, 102, 147, 0.3), transparent 70%);
    /* brand-pink */
    animation-duration: 35s;
    opacity: 0.4;
    /* Kept this one a bit more subtle */
}

@keyframes aurora-flow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 20px) scale(1.1);
    }

    100% {
        transform: translate(-20px, -10px) scale(0.9);
    }
}

/* --- Stars --- */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 10% 10%, white, transparent),
        radial-gradient(1px 1px at 20% 40%, white, transparent),
        radial-gradient(2px 2px at 30% 70%, white, transparent),
        radial-gradient(1px 1px at 40% 20%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(2px 2px at 60% 80%, white, transparent),
        radial-gradient(1px 1px at 70% 30%, white, transparent),
        radial-gradient(1px 1px at 80% 60%, white, transparent),
        radial-gradient(2px 2px at 90% 10%, white, transparent);
    background-size: 500px 500px;
    opacity: 0.3;
    animation: twinkle 5s infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.5;
    }
}

/* --- Crescent Moon --- */
.crescent-moon {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: -20px 10px 0 5px var(--text-main);
    /* The crescent shape */
    transform: rotate(-15deg);
    opacity: 0.9;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
    z-index: 0;
    animation: moon-glow 4s infinite alternate ease-in-out;
}

@keyframes moon-glow {
    0% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    }

    100% {
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.8));
    }
}

/* --- Navigation --- */
.navbar {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem 5rem;
    /* Increased horizontal padding */
    position: relative; /* For absolute positioning of diamond */
    margin-bottom: 2rem; /* Add space for the hanging diamond */
}

.header-diamond {
    position: absolute;
    bottom: -16px; /* Half of height (32px) to center on line */
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    z-index: 10;
    filter: drop-shadow(0 0 10px var(--bg-dark)); /* Shadow to separate from content if needed */
}

.navbar-brand {
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main) !important;
    text-shadow: 0 0 10px var(--glow-primary);
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: #0f172a;
    /* Dark text for contrast on bright gradient */
    box-shadow: 0 4px 15px var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-primary);
    color: #0f172a;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--text-main);
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.1);
}

.btn-outline:hover {
    background: rgba(129, 140, 248, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px var(--glow-secondary);
}

/* --- Cards (Glassmorphism) --- */
.feature-card,
.pricing-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    /* height: 100%; REMOVED - was causing massive blank space and footer overlap */
}

.feature-card {
    min-height: 180px;
    /* height: 100% removed - was causing 1000px boxes and footer overlap */
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px var(--glow-primary);
}

.pricing-card.featured {
    background: linear-gradient(145deg, rgba(45, 212, 191, 0.1), rgba(129, 140, 248, 0.1));
    border: 1px solid var(--primary);
    box-shadow: 0 0 30px var(--glow-primary);
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--primary);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.feature-card:hover .icon-box {
    background: var(--primary);
    color: var(--bg-dark);
    transform: scale(1.1) rotate(5deg);
}

/* --- Sections --- */
section {
    position: relative;
    z-index: 1;
}

.hero {
    padding: 100px 0;
    /* Reduced padding */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--brand-teal);
    color: var(--brand-teal);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    /* Reduced margin */
    backdrop-filter: blur(4px);
}

.hero-badge i {
    margin-right: 0.5rem;
    color: var(--brand-teal);
}

/* Brand Diamond Decorator */
.brand-diamond {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 5s linear infinite;
    background-size: 200% auto;
}

/* --- Pricing Specifics --- */
.price-tag {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(to bottom, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-period {
    color: var(--text-muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* List Items */
ul.list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

ul.list-unstyled li:last-child {
    border-bottom: none;
}

/* --- Polish Animations --- */

/* 1. Flowing Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 5s linear infinite;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 2. Shimmering Buttons */
.btn-primary {
    background: linear-gradient(110deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    border: none;
    color: #0f172a;
    box-shadow: 0 4px 15px var(--glow-primary);
    transition: all 0.4s ease;
}

.btn-primary:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--glow-primary);
}

/* 3. Scroll Fade-In Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Footer Styles --- */
.footer {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
    /* margin-top removed - handled by flexbox */
}

.footer-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-icon-link:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--glow-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.policy-card {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--primary);
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.policy-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--secondary);
}

.policy-link-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.policy-link-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(45, 212, 191, 0.2);
}

/* --- Contact Page Styles --- */
.contact-info-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px var(--glow-primary);
}

.icon-box-large {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    color: var(--bg-dark);
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.contact-info-card:hover .icon-box-large {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px var(--glow-primary);
}

/* --- Form Enhancements --- */
.form-control,
.form-control-lg {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-control-lg:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(45, 212, 191, 0.15);
    color: var(--text-main);
}

.form-control::placeholder,
.form-control-lg::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-label {
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-brand img {
        height: 32px !important;
    }

    .navbar-brand span {
        font-size: 1rem;
    }

    .header-diamond {
        font-size: 1.5rem;
        bottom: -12px;
    }

    /* Typography & Spacing */
    .hero {
        padding: 60px 0;
    }

    .display-2 {
        font-size: 2.5rem !important;
    }

    .display-4 {
        font-size: 2rem !important;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .price-tag {
        font-size: 2.5rem;
    }

    section {
        padding: 2rem 0 !important;
    }

    .pricing-card,
    .feature-card {
        padding: 1.5rem;
    }

    /* Footer */
    .footer {
        margin-top: 3rem;
        padding: 2rem 0 !important;
    }

    .footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-6,
    .footer .col-md-4,
    .footer .col-md-6,
    .footer .col-md-8 {
        margin-bottom: 2rem;
    }

    /* Cards */
    .contact-info-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }

    .policy-card {
        margin-bottom: 1rem;
    }

    .policy-link-card {
        margin-bottom: 1rem;
    }

    /* Forms */
    .form-control,
    .form-control-lg {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Buttons */
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.75rem 1.75rem;
        font-size: 1rem;
    }

    /* Hero badge */
    .hero-badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.9rem;
    }

    /* Hours/Schedule Section */
    .pricing-card .list-inline {
        width: 100%;
    }

    .pricing-card .list-inline-item {
        min-width: auto !important;
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
        margin-bottom: 0.5rem;
    }

    .pricing-card .d-flex.flex-wrap {
        flex-direction: column;
        align-items: stretch !important;
    }

    .pricing-card .d-flex.flex-wrap > div:first-child {
        margin-bottom: 1rem;
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.5rem 0.75rem;
    }

    .navbar-brand span {
        font-size: 0.9rem;
    }

    .hero {
        padding: 40px 0;
    }

    .display-2 {
        font-size: 2rem !important;
    }

    .display-4 {
        font-size: 1.75rem !important;
    }

    .price-tag {
        font-size: 2rem;
    }

    .pricing-card,
    .feature-card {
        padding: 1.25rem;
    }

    .footer {
        padding: 1.5rem 0 !important;
    }

    /* Schedule days - full width on very small screens */
    .pricing-card .list-inline-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* --- Body Layout Fix --- */
html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.main-wrapper {
    flex: 1 0 auto;
    min-height: 0; /* Prevent flex item from growing beyond viewport */
}

.footer {
    flex-shrink: 0;
    margin-top: auto; /* Push footer to bottom */
}