/* Reset and Base Styles */
:root {
    --primary-color: #002244;
    /* Dark Blue like Agicap */
    --accent-color: #2563EB;
    /* Bright Blue */
    --text-color: #333333;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
/* Global Reset using explicit selectors to avoid * */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
}

/* Typography Classes - Replaces direct tag selectors */
.text-heading {
    margin: 0;
    font-weight: 700;
    color: var(--primary-color);
}

.text-paragraph {
    margin: 0 0 1rem 0;
}

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

.text-link {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

.image-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.centered {
    text-align: center;
}

.alternate-bg {
    background-color: var(--light-bg);
}

/* Advertisement Banner */
.top-advertisement-banner {
    background-color: #fce7f3;
    /* Light pinkish/red for visibility */
    color: #be185d;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-brand {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    animation: fadeIn 1s ease-in-out;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 34, 68, 0.1);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -0.05em;
    text-transform: uppercase;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
}

.nav-link:hover {
    color: var(--accent-color);
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color var(--transition-speed);
}

.cta-button:hover {
    background-color: #1d4ed8;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    /* The overlay actually covers the whole screen, but we animate the content */
    z-index: 2000;
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
}

.mobile-nav-overlay.active {
    opacity: 1;
    right: 0;
    pointer-events: auto;
}

.mobile-nav-content {
    width: 75%;
    /* Requested 75% width */
    height: 100%;
    background-color: var(--white);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateX(0);
}

.close-menu-btn {
    align-self: flex-end;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-cta {
    margin-top: 2rem;
    text-align: center;
    display: inline-block;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.primary-btn {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.secondary-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.secondary-btn:hover {
    background-color: #f1f5f9;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* General Section Styles */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 3rem;
}

.section-text {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    border-radius: 12px;
}

.gradient-bg {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
}

/* Why Us Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-desc {
    color: #64748b;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.testimonial-text {
    font-style: italic;
    color: #334155;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform var(--transition-speed);
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: #4b5563;
}

/* Footer */
.site-footer {
    background-color: #1e293b;
    color: #f1f5f9;
}

.footer-disclaimer-banner {
    background-color: #334155;
    padding: 1.5rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.disclaimer-text {
    font-size: 0.875rem;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

.footer-content-grid {
    padding: 4rem 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-heading {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.contact-name,
.contact-detail,
.contact-director,
.contact-phone {
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.contact-address {
    font-style: normal;
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.legal-details p {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.footer-bottom {
    background-color: #0f172a;
    padding: 1.5rem 0;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    z-index: 9990;
    display: none;
    /* Hidden by default, shown via JS */
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.cookie-text {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    flex: 1;
    padding: 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.accept-btn {
    background-color: var(--accent-color);
    color: var(--white);
}

.reject-btn {
    background-color: #f1f5f9;
    color: #475569;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 2.5rem;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-actions .cta-button {
        display: none;
        /* Hide primary CTA on mobile header, show only burger or keep both? Usally better to keep header clean */
    }

    /* Wait, usually we want the CTA to be visible. Let's keep the CTA but maybe smaller? Or just rely on mobile menu CTA. */
    /* Let's hide the desktop CTA in header-actions on mobile to save space, and ensure it's in the mobile menu */

    .logo-container {
        flex: 1;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }
}