/* 
    ====================================================================================================
    FILE: assets/css/style.css
    DESCRIPTION: SolarAIDE Design System (Clean, Responsive, Mobile-Fixed)
    ====================================================================================================
*/

/* 
    ----------------------------------------------------------------------------
    1. ROOT VARIABLES
    ----------------------------------------------------------------------------
*/
:root {
    /* --- Colors --- */
    --primary: #0071e3;
    /* Apple Blue */
    --primary-dark: #005bb5;
    --primary-light: #47a6ff;
    --secondary: #1d1d1f;
    /* Dark Text */
    --accent: #ff9f0a;
    /* Solar Orange */
    --success: #34C759;

    /* --- Backgrounds --- */
    --bg-body: #Fbfbfd;
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.95);

    /* --- Typography --- */
    --font-main: 'Inter', sans-serif;
    --font-head: 'Outfit', sans-serif;

    /* --- Spacing --- */
    --section-gap: 100px;
    --section-gap-mobile: 60px;

    /* --- Shadows & Radius --- */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 113, 227, 0.15);
}

/* 
    ----------------------------------------------------------------------------
    2. GLOBAL RESET & BASE STYLES
    ----------------------------------------------------------------------------
*/
body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px;
    /* Space for fixed header */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    display: flex;
    padding: var(--section-gap) 0;
    justify-content: center !important;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #a259ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 
    ----------------------------------------------------------------------------
    3. HEADER & NAVIGATION (DESKTOP & MOBILE FIX)
    ----------------------------------------------------------------------------
*/
.navbar {
    background: #ffffff !important;
    /* Force White Background */
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 35px;
    width: auto;
}

.nav-link {
    color: #424245 !important;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* --- Header Buttons --- */
.btn-login-header {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-login-header:hover {
    background: #f5f5f7;
    border-color: #d2d2d7;
}

.btn-cta-header {
    padding: 10px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: #0071e3;
    border: 1px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

.btn-cta-header:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
    color: white;
}

/* --- Mobile Toggle (Hamburger) --- */
.navbar-toggler {
    border: none !important;
    padding: 5px !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* --- MOBILE MENU STYLES (Max Width 991px) --- */
@media (max-width: 991px) {

    /* Navbar Container adjustments */
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* The Dropdown Menu Box */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff !important;
        padding: 20px 25px 40px 25px;
        box-shadow: 0 50px 100px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 1000;
        border-radius: 0 0 20px 20px;
    }

    /* Menu Links */
    .navbar-nav {
        margin-top: 10px;
        text-align: left;
    }

    .nav-item {
        border-bottom: 1px solid #f5f5f7;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 15px 0;
        color: #1d1d1f !important;
        display: block;
    }

    /* Mobile Buttons */
    .d-flex.gap-3 {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        margin-top: 25px !important;
        margin-left: 0 !important;
        gap: 15px !important;
    }

    .btn-login-header,
    .btn-cta-header {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }

    .btn-login-header {
        background-color: #f5f5f7;
        border: none;
    }
}

/* 
    ----------------------------------------------------------------------------
    4. HERO SECTION
    ----------------------------------------------------------------------------
*/
.hero-section {
    padding: var(--section-gap) 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-image {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    margin-top: 40px;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 113, 227, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

@media (min-width: 992px) {
    .hero-image {
        margin-top: 0;
    }
}

/* 
    ----------------------------------------------------------------------------
    5. BRANDS
    ----------------------------------------------------------------------------
*/
.brands-section {
    padding: 40px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brands-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 50px;
    opacity: 0.6;
}

.brands-wrapper img {
    height: 35px;
    filter: grayscale(100%);
    transition: 0.3s;
}

.brands-wrapper img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* 
    ----------------------------------------------------------------------------
    6. FEATURES SECTION
    ----------------------------------------------------------------------------
*/
.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title span {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 113, 227, 0.08);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* 
    ----------------------------------------------------------------------------
    7. WORKFLOW
    ----------------------------------------------------------------------------
*/
.workflow-section {
    background: #f5f5f7;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.step-image {
    flex: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.step-content {
    flex: 1;
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
    margin-bottom: -20px;
    display: block;
}

@media (min-width: 992px) {
    .process-step:nth-child(even) {
        flex-direction: row-reverse;
    }
}

@media (max-width: 991px) {
    .process-step {
        flex-direction: column;
        text-align: center;
    }
}

/* 
    ----------------------------------------------------------------------------
    8. PRICING
    ----------------------------------------------------------------------------
*/
.pricing-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: #fff;
    padding: 50px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid #eee;
    position: relative;
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 2;
}

.price-tag {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
}

.price-tag span {
    font-size: 1rem;
    color: #888;
    font-weight: 400;
}

.pricing-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features i {
    color: var(--success);
}

/* 
    ----------------------------------------------------------------------------
    9. TESTIMONIALS & FAQ
    ----------------------------------------------------------------------------
*/
.testimonials-section {
    background: #f9f9f9;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    margin: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* FAQ */
.accordion-item {
    border: none;
    margin-bottom: 10px;
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.accordion-button {
    font-weight: 600;
    padding: 20px;
    background: #fff;
    color: var(--secondary);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(0, 113, 227, 0.05);
    color: var(--primary);
    box-shadow: none;
}

/* 
    ----------------------------------------------------------------------------
    10. FOOTER
    ----------------------------------------------------------------------------
*/
.footer-section {
    background: #111;
    color: #fff;
    padding: 80px 0 30px;
}

.footer-widget h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #888;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    color: #666;
}

/* 
    ----------------------------------------------------------------------------
    11. MODALS & UTILITIES
    ----------------------------------------------------------------------------
*/
.modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    border-radius: var(--radius-md);
    border: none;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 20px 30px;
}

.modal-body {
    padding: 30px;
}

/* Generic Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    padding: 12px 28px;
    border-radius: 50px;
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    transform: translateY(-2px);
}

.btn-outline-primary {
    padding: 12px 28px;
    border-radius: 50px;
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
}

/* 
    ----------------------------------------------------------------------------
    12. GLOBAL RESPONSIVE ADJUSTMENTS
    ----------------------------------------------------------------------------
*/
@media (max-width: 768px) {
    :root {
        --section-gap: 60px;
    }

    .display-1 {
        font-size: 2.5rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .pricing-card.popular {
        transform: scale(1);
        margin: 20px 0;
    }
}