/*
Theme Name: Lunar Standalone Theme
Description: Independent theme for Lunar, optimized for speed without page builders.
Author: Lunar
Version: 1.0.1
*/

/* --- CSS RESET --- */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', 'Roboto', sans-serif; background-color: #0b1120; color: #f8fafc; }
a { background-color: transparent; text-decoration: none; color: inherit; }
img { border-style: none; max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }

/* Gradient Text for Elementor */
.lunar-gradient-text {
    background: linear-gradient(90deg, #7C3BED 0%, #C27AFF 50%, #00FFFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    line-height: 1.2;
}

/* Contact Form 7 Lunar Style */
.lunar-cf7-container {
    background: #1d2433;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(147, 51, 234, 0.3);
    color: #fff;
    font-family: sans-serif;
}
.lunar-cf7-container label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #94a3b8;
}
.lunar-cf7-container input[type="text"],
.lunar-cf7-container input[type="email"],
.lunar-cf7-container textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 15px;
    color: #fff;
    margin-bottom: 20px;
    box-sizing: border-box;
}
.lunar-cf7-container input:focus,
.lunar-cf7-container textarea:focus {
    border-color: #9333ea;
    outline: none;
    background: rgba(147, 51, 234, 0.1);
}
.lunar-cf7-container input[type="submit"] {
    background: #9333ea;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0px 10px 20px -5px rgba(147, 51, 234, 0.5);
    transition: all 0.3s ease;
}
.lunar-cf7-container input[type="submit"]:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0px 15px 25px -5px rgba(147, 51, 234, 0.7);
}

/* --- LUNAR DESIGN SYSTEM --- */
:root {
    --lunar-bg: #0b1120; /* Darker navy blue */
    --lunar-text: #e2e8f0;
    --lunar-primary: #9333ea;
    --lunar-primary-hover: #7c3aed;
    --lunar-glass-bg: rgba(255, 255, 255, 0.02);
    --lunar-glass-border: rgba(255, 255, 255, 0.05);
}

body {
    background-color: var(--lunar-bg);
    color: var(--lunar-text);
}

/* Glassmorphism Cards */
.lunar-glass-card {
    background: var(--lunar-glass-bg);
    border: 1px solid var(--lunar-glass-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    color: var(--lunar-text);
}

/* Buttons */
.lunar-btn {
    display: inline-block;
    background: var(--lunar-primary);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.lunar-btn:hover {
    background: var(--lunar-primary-hover);
    color: #fff;
}
.lunar-btn-glow {
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
}
.lunar-btn-glow:hover {
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.8);
}

/* Typography */
.lunar-section-title {
    font-size: 2.2rem;
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
}
.lunar-section-subtitle {
    color: #94a3b8;
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Layouts */
.lunar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.lunar-section {
    margin-bottom: 100px;
}

/* Hero Section */
.lunar-hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 100px;
}
.lunar-hero-content {
    flex: 1;
    max-width: 550px;
}
.lunar-hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
}
.lunar-hero-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 35px;
}
.lunar-hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}
.lunar-hero-img-placeholder {
    width: 100%;
    max-width: 500px;
}
@media (max-width: 992px) {
    .lunar-hero-section {
        flex-direction: column;
        text-align: center;
    }
    .lunar-hero-content {
        margin: 0 auto;
    }
}

/* Services Grid (4 cols) */
.lunar-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.lunar-service-item {
    padding: 25px;
    border-radius: 8px;
    background: #111827; /* slightly different dark shade */
    border: 1px solid rgba(255,255,255,0.05);
}
.lunar-service-title {
    font-size: 1.2rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
}
.lunar-service-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

/* Portfolio Grid (3 cols) */
.lunar-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.lunar-portfolio-item {
    background: #111827;
    border-radius: 12px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.lunar-portfolio-img {
    margin-bottom: 30px;
    width: 100%;
    height: 160px; /* Fixed height for uniformity */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.lunar-portfolio-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}
.lunar-portfolio-meta {
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
}
.lunar-portfolio-client, .lunar-portfolio-tech {
    margin: 0;
}

/* Contact Form */
.lunar-contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #111827;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}
.lunar-contact-form-wrapper .lunar-cf7-container {
    background: transparent;
    padding: 0;
    border: none;
}
.lunar-contact-form-wrapper label {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: block;
}
.lunar-contact-form-wrapper input[type="text"],
.lunar-contact-form-wrapper input[type="email"],
.lunar-contact-form-wrapper textarea,
.lunar-contact-form-wrapper .wpcf7-form-control.wpcf7-text,
.lunar-contact-form-wrapper .wpcf7-form-control.wpcf7-textarea {
    width: 100% !important;
    background: #1f2937 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
    padding: 14px 18px !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    margin-bottom: 20px !important;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}
.lunar-contact-form-wrapper input[type="text"]:focus,
.lunar-contact-form-wrapper input[type="email"]:focus,
.lunar-contact-form-wrapper textarea:focus,
.lunar-contact-form-wrapper .wpcf7-form-control:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}
.lunar-contact-form-wrapper input[type="submit"],
.lunar-contact-form-wrapper .wpcf7-submit {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}
.lunar-contact-form-wrapper input[type="submit"]:hover,
.lunar-contact-form-wrapper .wpcf7-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.6) !important;
}

/* --- POPUP WINDOW --- */
.lunar-popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 17, 32, 0.85); backdrop-filter: blur(5px);
    display: none; justify-content: center; align-items: center;
    z-index: 9999; opacity: 0; transition: opacity 0.4s ease;
}
.lunar-popup-overlay.active { display: flex; opacity: 1; }
.lunar-popup-content {
    background: #111827; border: 1px solid #1f2937; border-radius: 16px;
    padding: 40px; text-align: center; max-width: 500px; width: 90%;
    position: relative; transform: translateY(20px); transition: transform 0.4s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.lunar-popup-overlay.active .lunar-popup-content { transform: translateY(0); }
.lunar-popup-close {
    position: absolute; top: 15px; right: 20px; font-size: 28px;
    color: #9ca3af; cursor: pointer; transition: color 0.3s;
}
.lunar-popup-close:hover { color: #fff; }
.lunar-popup-title { font-size: 2rem; color: #fff; margin: 0 0 15px; font-weight: 800; }
.lunar-popup-desc { color: #9ca3af; font-size: 1.1rem; margin-bottom: 25px; line-height: 1.6; }

/* --- HEADER --- */
.lunar-site-header {
    background-color: #0b1120; border-bottom: 1px solid #1f2937;
    position: sticky; top: 0; z-index: 1000; padding: 15px 0;
}
.lunar-header-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.lunar-logo { font-size: 24px; font-weight: 800; }
.lunar-nav-menu { display: flex; gap: 30px; }
.lunar-nav-menu a { color: #f8fafc; font-size: 15px; font-weight: 500; transition: color 0.3s; }
.lunar-nav-menu a:hover { color: #a855f7; }
.lunar-btn-header { padding: 10px 24px; font-size: 14px; }
.lunar-mobile-menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* --- FOOTER --- */
.lunar-site-footer {
    background-color: #0f172a; border-top: 1px solid #1f2937;
    padding: 60px 0 20px; margin-top: 60px; color: #9ca3af;
}
.lunar-footer-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px;
}
.lunar-footer-title { font-size: 28px; font-weight: 800; margin-bottom: 15px; }
.lunar-footer-heading { color: #f8fafc; font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.lunar-footer-menu li { margin-bottom: 12px; }
.lunar-footer-menu a { color: #9ca3af; transition: color 0.3s; }
.lunar-footer-menu a:hover { color: #fff; }
.lunar-footer-contacts li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.lunar-footer-contacts a { color: #9ca3af; transition: color 0.3s; }
.lunar-footer-contacts a:hover { color: #fff; }
.lunar-footer-bottom { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid #1f2937; font-size: 14px; }

@media (max-width: 768px) {
    .lunar-nav-menu, .lunar-header-button { display: none; }
    .lunar-mobile-menu-toggle { display: block; }
}
