/* --- RESET & VARIABLES --- */
:root {
    --primary: #692e82;       /* Your New Theme Purple */
    --primary-dark: #5a2870;  /* Slightly darker for hover/active states */
    --secondary: #0f172a;     /* Dark Slate */
    --accent: #f59e0b;        /* Amber for highlights (can also be changed if desired) */
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --transition: all 0.3s ease;
     --light-purple: #F0E5F7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* --- SCROLL REVEAL --- */
/* .reveal is only ever added by JS, so content stays visible by default if JS fails to run.
   Placed early in the cascade so later, more specific rules (e.g. .card:hover) still win. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

body {
    line-height: 1.6;
    color: var(--secondary);
    background-color: var(--white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- REUSABLE CLASSES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}
.btn-primary:hover { background-color: var(--primary-dark); }

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}
.btn-secondary:hover { background-color: var(--white); color: var(--secondary); }

.section-header { text-align: center; margin-bottom: 50px; }
.subtitle { color: var(--primary); font-weight: bold; text-transform: uppercase; letter-spacing: 1px; font-size: 1.1rem; }
.section-header h2 { font-size: 2.5rem; margin-top: 10px; color: var(--primary); }
.line { width: 60px; height: 4px; background: var(--primary); margin: 15px auto 0; }

/* --- NAVBAR --- */
.navbar {
    background: var(--white);
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 400;
    color: #692e82;
    font-family: 'Bodoni Moda', serif;
    letter-spacing: 2px;
}

.dot { color: var(--primary); }

.nav-menu { display: flex; align-items: center; gap: 30px; }

/* Default state for all nav links (Home, Solutions, About Us) */
.nav-menu li a.nav-link {
    font-weight: 500;
    color: #555; /* Default color for inactive links */
    font-size: 1rem;
    transition: color 0.3s, border-bottom 0.3s, background 0.3s; /* Smooth transitions */
}

/* Hover style for regular nav links */
.nav-menu li a.nav-link:hover:not(.nav-btn) {
    color: var(--primary);
}

/* ACTIVE state for regular nav links (Home, Solutions, About Us) */
.nav-menu li a.active-nav-link {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px; /* Space between text and underline */
}

/* Default style for the "Contact Us" button */
.nav-btn {
    background-color: var(--primary); /* Always has primary background */
    color: var(--white) !important;   /* Text color always white, !important to override other rules */
    padding: 10px 20px;
    border-radius: 4px;
    transition: background 0.3s, box-shadow 0.3s; /* Include box-shadow in transition */
}

/* Hover state for the "Contact Us" button */
.nav-btn:hover {
    background-color: var(--primary-dark); /* Slightly darker on hover */
}

/* ACTIVE state for the "Contact Us" button (when #contact section is in view) */
.nav-menu li a.nav-btn.active-nav-btn {
    background-color: var(--primary-dark); /* Even darker background to show it's active */
    box-shadow: 0 0 0 2px var(--primary); /* Optional: A subtle border highlight */
}


/* Mobile Menu Toggle */
.menu-toggle { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: var(--transition); background-color: var(--secondary); }

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    padding-top: 110px;
    padding-bottom: 40px;
    /* background: url('./images/nechama-lock-dLFmwIOGNYo-unsplash.jpg') no-repeat center center/cover; */
    background: radial-gradient(circle at 20% 25%, #2d1440 0%, #0b1120 55%);
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.10); /* Dark blue overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; font-weight: 800; }
.highlight {
    color: var(--primary); /* fallback for browsers without background-clip: text support */
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p { font-size: 1.2rem; margin-bottom: 30px; color: #cbd5e1; max-width: 600px; }
.hero-btns { display: flex; gap: 20px; }

.product-banner {
    margin-top: 40px;
    max-width: 700px;
    background: rgba(105, 46, 130, 0.6);
    border: 1px solid rgba(105, 46, 130, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 30px 35px;
}
.product-banner-heading { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--white); margin-bottom: 18px; }
.product-slide { display: none; }
.product-slide.active { display: block; animation: fadeInUp 0.6s ease; }
.product-slide i { font-size: 2.2rem; color: var(--accent); margin-bottom: 12px; }
.product-slide h4 { font-size: 1.6rem; margin-bottom: 8px; color: var(--white); }
.product-slide p { font-size: 1.3rem; color: #cbd5e1; margin: 0; max-width: 100%; }
.product-dots { display: flex; gap: 10px; margin-top: 22px; }
.product-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition); }
.product-dots .dot.active { background: var(--accent); width: 24px; border-radius: 5px; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- STATS SECTION --- */
.stats { background: var(--primary); padding: 40px 0; color: var(--white); margin-top: -5px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stat-item h2 { font-size: 2.5rem; font-weight: 800; }

/* --- SERVICES --- */
.services {
    /* background: url('./images/jei-lee-pr0I-DUB5eA-unsplash.jpg') no-repeat center center/cover; */
    background: radial-gradient(circle at 80% 15%, #2d1440 0%, #0b1120 55%);
    position: relative;
}
.services .container { position: relative; z-index: 1; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.card:hover { transform: translateY(-10px); border-bottom-color: var(--primary); }
.icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(105, 46, 130, 0.12);
    border-radius: 18px;
    font-size: 1.9rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.card h3 { margin-bottom: 15px; font-size: 1.4rem; color: var(--primary); }
.card p { color: var(--gray); margin-bottom: 20px; font-size: 0.95rem; }
.read-more { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* --- ABOUT --- */
.about-wrapper { display: flex; align-items: center; gap: 60px; }
.about-img { flex: 1; }
.about-img img { border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.about-text { flex: 1; }
.about-text h2 { font-size: 2.2rem; margin: 10px 0 20px; line-height: 1.3; color: var(--primary); }
.about-text p { color: var(--white); margin-bottom: 20px; }
.check-list li { margin-bottom: 10px; font-weight: 700; display: flex; align-items: center; gap: 10px; color: var(--primary); }
.check-list i { color: var(--primary); }
.about-text .btn { margin-top: 20px; }

/* --- ABOUT --- */
.about {
    padding: 80px 0;
    /* background: url('./images/codioful-formerly-gradienta-W75no7rGSLk-unsplash.jpg') no-repeat center center/cover; */
    background: radial-gradient(circle at 20% 8%, #2d1440 0%, #0b1120 55%);
    position: relative; /* Needed for positioning a potential overlay */
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85); /* White overlay, 85% opaque */
    z-index: 1; /* Place it below the content */
}

/* Ensure your content is above the overlay */
.about-wrapper {
    position: relative;
    z-index: 2; /* Content must be above the overlay */
}


/* --- CONTACT --- */
.contact {
    /*background: var(--secondary); */
    /* background: url('./images/kseniya-lapteva-Dr8jO199ORY-unsplash.jpg') no-repeat center center/cover; */
    background: radial-gradient(circle at 80% 20%, #2d1440 0%, #0b1120 55%);
    color: var(--white);
    position: relative;
}
.contact .container { position: relative; z-index: 1; }

.contact-box {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.contact-info {
    flex: 1;
    background: var(--primary);
    padding: 50px;
    color: var(--white);
}

.contact-info h3 { font-size: 2rem; margin-bottom: 15px; }
.contact-info p { margin-bottom: 30px; opacity: 0.9; }
.info-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.info-item i { font-size: 1.2rem; }
.info-item a { color: inherit; text-decoration: none; }
.info-item a:hover { text-decoration: underline; }
.info-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; margin: 25px 0 10px; }

.contact-form { flex: 1.5; padding: 50px; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 1rem; background: #f9f9f9;
}
.full-width { width: 100%; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.form-status { margin-top: 15px; font-size: 0.95rem; min-height: 1.2em; }
.form-status.success { color: #16a34a; }
.form-status.error { color: #dc2626; }

/* --- FOOTER --- */
footer { background: #0b1120; color: #94a3b8; padding: 60px 0 20px; position: relative; }
footer .container, footer .footer-bottom { position: relative; z-index: 1; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; border-bottom: 1px solid #1e293b; padding-bottom: 40px; margin-bottom: 20px; }
.footer-brand { flex: 1 1 260px; }
.footer-brand h2 {
    color: #692e82; /* Your desired logo color */
    font-family: 'Bodoni Moda', serif; /* Use the same font as your logo */
    font-weight: 400; /* Matches the light weight of the logo wordmark */
    letter-spacing: 2px; /* Matches the wide tracking of the logo wordmark */
}
.footer-links h4, .footer-contact h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-contact p { margin-bottom: 16px; }
.footer-contact a { color: #94a3b8; transition: var(--transition); }
.footer-contact a:hover { color: var(--primary); }
.footer-socials a { font-size: 1.5rem; margin-right: 16px; color: #94a3b8; transition: var(--transition); }
.footer-socials a:hover { color: var(--primary); }
.footer-bottom { text-align: center; font-size: 0.9rem; }
.footer-bottom a { color: var(--white); text-decoration: underline; }
.footer-bottom a:hover { color: var(--primary); }


/* --- RESPONSIVE CSS --- */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    .nav-menu.active { left: 0; }
    .nav-item { margin: 15px 0; }
    .menu-toggle { display: block; }

    .hero h1 { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; }
    .product-banner { padding: 22px 20px; }

    .about-wrapper { flex-direction: column; }
    
    .contact-box { flex-direction: column; }
    
    .stats-grid { grid-template-columns: 1fr; gap: 20px; }
}


/* --- LEGAL PAGES --- */
.legal-content { max-width: 800px; margin: 0 auto; padding: 140px 20px 80px; line-height: 1.7; }
.legal-content h1 { font-size: 2.2rem; color: var(--primary); margin-bottom: 10px; }
.legal-content .effective-date { color: var(--gray); font-style: italic; margin-bottom: 30px; }
.legal-content h2 { font-size: 1.3rem; color: var(--primary); margin-top: 35px; margin-bottom: 12px; }
.legal-content p, .legal-content li { color: var(--secondary); margin-bottom: 14px; }
.legal-content ul { padding-left: 20px; margin-bottom: 14px; }

/* --- MODAL STYLES --- */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
    justify-content: center; /* These will only apply when display is flex */
    align-items: center;    /* These will only apply when display is flex */
    z-index: 2000; /* Ensure it's on top of everything */
}

.modal-overlay.active {
    display: flex; /* This rule makes the modal visible when the 'active' class is added by JS */
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out; /* Simple fade-in animation */

    max-height: 85vh; /* Limit height to 85% of the screen height */
    overflow-y: auto; /* Adds a vertical scrollbar if content is too long */
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--secondary);
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--primary);
}

.modal-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.modal-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.modal-content ul {
    list-style: none;
    margin-bottom: 20px;
}

.modal-content ul li {
    background: var(--primary);
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 8px;
    color: var(--white);
}

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

/* --- LOGO IMAGE STYLES --- */
.logo-image img {
    height: 35px; /* Adjust this height to fit your navbar */
    width: auto;  /* Maintains aspect ratio */
    display: block;
    transition: transform 0.3s ease;
}

.logo-image:hover img {
    transform: scale(1.05); /* Optional: Slight zoom on hover */
}

/* --- Custom Scrollbar for Modal --- */
.modal-content::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1; /* Color of the track */
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #ccc; /* Color of the scroll handle */
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary); /* Color on hover */
}

/* --- AMBIENT NETWORK BACKGROUND --- */
.network-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- CLICK RIPPLE EFFECT --- */
.click-ripple {
    position: fixed;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    margin-top: -7px;
    border-radius: 50%;
    border: 2px solid rgba(105, 46, 130, 0.65);
    background: rgba(105, 46, 130, 0.18);
    pointer-events: none;
    z-index: 9999;
    animation: click-ripple-expand 1s ease-out forwards;
}
@keyframes click-ripple-expand {
    to {
        transform: scale(9);
        opacity: 0;
    }
}

