/* style.css */

/* 1. CSS Variables */
:root {
    --primary-color: #0A2463; /* Deep Blue */
    --primary-color-lighter: #1E3A8A;
    --primary-color-darker: #071A48;

    --secondary-color: #FF8F00; /* Bright Orange */
    --secondary-color-lighter: #FFA733;
    --secondary-color-darker: #D97800;

    --tertiary-color: #2E7D32; /* Green */
    --tertiary-color-lighter: #4CAF50;
    --tertiary-color-darker: #1B5E20;

    --text-color-dark: #333333;
    --text-color-light: #FFFFFF;
    --text-color-headings: #1A237E; /* Specific Dark Blue for titles */
    --text-color-muted: #6c757d;

    --bg-light: #f8f9fa; /* Bootstrap's light bg */
    --bg-white: #FFFFFF;

    --font-family-headings: 'Inter', sans-serif;
    --font-family-body: 'IBM Plex Sans', sans-serif;

    --border-radius-small: 0.25rem;  /* 4px */
    --border-radius-medium: 0.5rem; /* 8px */
    --border-radius-large: 0.75rem;   /* 12px, adjusted from 1rem to be less bulky for cards */

    --glass-bg: rgba(255, 255, 255, 0.05); /* Subtle glass */
    --glass-blur: blur(8px);
    --glass-border-color: rgba(255, 255, 255, 0.15);

    --transition-smooth: all 0.3s ease-in-out;
    --transition-bouncy: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --navbar-height: 70px; /* Approximate for padding */
}

/* 2. Body & Base Styles */
body {
    font-family: var(--font-family-body);
    color: var(--text-color-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

main {
    padding-top: var(--navbar-height); /* For fixed navbar */
}

section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    overflow: hidden; /* To contain animations or overflowing elements */
}

.section-bg-texture, [style*="background-image"] {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* 3. Typography */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: var(--text-color-headings);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-title {
    font-weight: 800; /* Inter bold */
    margin-bottom: 3rem !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

p {
    margin-bottom: 1rem;
    color: var(--text-color-dark);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}
a:hover {
    color: var(--secondary-color-darker);
    text-decoration: none;
}

/* 4. Navbar */
.navbar.glassmorphism-nav {
    background: rgba(10, 36, 99, 0.8); /* Darker blue base for nav glass */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    transition: background-color 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800; /* Inter ExtraBold */
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--secondary-color) !important;
}
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width .3s;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 70%;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Scrolled state for Navbar (optional, can be triggered by JS) */
.navbar.scrolled {
    background: rgba(10, 36, 99, 0.95); /* More opaque when scrolled */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}


/* 5. Hero Section */
.hero-section {
    min-height: calc(100vh - var(--navbar-height));
    background-attachment: fixed; /* Simple parallax */
    color: var(--text-color-light);
    position: relative;
    margin-top: -var(--navbar-height); /* Pull it up under the transparent navbar */
}
.hero-section h1 {
    color: var(--text-color-light);
    font-size: 3.5rem;
}
.hero-section p.lead {
    color: var(--text-color-light);
    opacity: 0.9;
    font-size: 1.3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 6. Buttons (Global) */
.btn, button, input[type="submit"] {
    font-family: var(--font-family-body);
    font-weight: 500;
    padding: 0.7rem 1.8rem;
    border-radius: var(--border-radius-medium);
    transition: var(--transition-bouncy), box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-width: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn:hover, button:hover, input[type="submit"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.btn:active, button:active, input[type="submit"]:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-primary.custom-btn {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color-light); /* White text on orange */
}
.btn-primary.custom-btn:hover {
    background-color: var(--secondary-color-darker);
    border-color: var(--secondary-color-darker);
}

.btn-outline-primary.custom-btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-outline-primary.custom-btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.btn-link.custom-link {
    color: var(--secondary-color);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 3px;
    text-transform: none; /* Override btn default */
    letter-spacing: normal; /* Override btn default */
}
.btn-link.custom-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease-in-out;
}
.btn-link.custom-link:hover::after {
    width: 100%;
}
.btn-link.custom-link:hover {
    color: var(--secondary-color-darker);
    transform: none; /* Override btn default hover */
    box-shadow: none; /* Override btn default hover */
}

/* 7. Cards */
.card {
    border: none;
    border-radius: var(--border-radius-large);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background-color: var(--bg-white); /* Default for non-glass cards */
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.glassmorphism-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.glassmorphism-card:hover {
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
/* Ensure text in glassmorphism cards has good contrast */
.glassmorphism-card .card-title,
.glassmorphism-card .card-text,
.glassmorphism-card h1, .glassmorphism-card h2, .glassmorphism-card h3, .glassmorphism-card h4, .glassmorphism-card h5, .glassmorphism-card h6,
.glassmorphism-card p, .glassmorphism-card small, .glassmorphism-card .list-group-item {
    color: var(--text-color-dark); /* Default to dark for light glass */
}
/* If glass is dark, text needs to be light. Adjust --glass-bg and text colors accordingly. */
/* The current --glass-bg is very transparent, so it relies on the background behind it. */


.card .card-image { /* Wrapper for image */
    width: 100%;
    overflow: hidden;
    border-top-left-radius: var(--border-radius-large);
    border-top-right-radius: var(--border-radius-large);
}

#features .card-image,
#services .card-image,
#pricing .card-image,
#press .card-image {
    height: 220px; /* Consistent height for these top images */
}
.card .card-image img.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}
.card:hover .card-image img.card-img-top {
    transform: scale(1.08);
}

/* Team Card Specifics */
.team-card {
    text-align: center;
}
.team-card .card-image { /* This is the div container for the circular image */
    width: 150px;
    height: 150px;
    margin: 1.5rem auto 1rem auto; /* Use auto margins for block level centering */
    border-radius: 50%;
    overflow: hidden; /* Crucial for circular shape */
    border: 4px solid var(--bg-white);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.team-card .card-image img { /* The actual img tag */
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-card .card-body {
    padding-top: 0;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content like buttons to be pushed to bottom */
    display: flex;
    flex-direction: column;
}
.card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.card-text {
    font-size: 0.95rem;
    flex-grow: 1; /* Pushes elements after it down if card-body is flex */
}
.card .btn { /* Button inside a card */
    margin-top: auto; /* Push to bottom if card-body is flex */
    align-self: center; /* Center if it's the only element or in text-center card */
}
.offer-card .card-body .btn { /* ensure buttons in offer cards are at bottom and centered */
    align-self: center;
}

/* 8. Forms */
.form-control.custom-input {
    background-color: rgba(255, 255, 255, 0.7); /* Slightly opaque */
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius-medium);
    padding: 0.75rem 1rem;
    transition: var(--transition-smooth);
    color: var(--text-color-dark);
}
.form-control.custom-input:focus {
    background-color: var(--bg-white);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--secondary-color-rgb), 0.25); /* Use RGB if var not directly usable */
    /* For var(--secondary-color): #FF8F00 -> rgba(255, 143, 0, 0.25) */
    box-shadow: 0 0 0 0.2rem rgba(255, 143, 0, 0.25);
}
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}
/* Custom styling for Bootstrap validation messages */
.was-validated .form-control:invalid, .form-control.is-invalid {
    border-color: #dc3545; /* Bootstrap danger color */
    background-image: none; /* Remove default Bootstrap icon if not desired, or style it */
}
.invalid-feedback {
    font-size: 0.875em;
}

/* 9. Accordion */
.accordion-item {
    border: none;
    border-radius: var(--border-radius-medium) !important; /* Override Bootstrap */
    margin-bottom: 1rem;
    background-color: rgba(255, 255, 255, 0.8); /* For glassmorphism if applied */
}
.accordion-button {
    border-radius: var(--border-radius-medium) !important;
    font-weight: 500;
    color: var(--text-color-headings);
    background-color: transparent; /* For glassmorphism effect */
}
.accordion-button:not(.collapsed) {
    color: var(--secondary-color-darker);
    background-color: rgba(var(--secondary-color-rgb), 0.1); /* e.g. rgba(255,143,0,0.1) */
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}
.accordion-body {
    font-size: 0.95rem;
}
.glassmorphism-card.accordion-item { /* Ensure glassmorphism styles apply if class is used */
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-color);
}

/* 10. Carousel (Testimonials) */
#testimonialSlider .carousel-item .card {
    box-shadow: none; /* Remove card shadow if slider has its own styling or is glass */
}
#testimonialSlider .testimonial-card { /* The card itself */
    max-width: 700px;
    margin: 1rem auto;
}
#testimonialSlider .carousel-indicators [data-bs-target] {
    background-color: var(--secondary-color);
    opacity: 0.5;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}
#testimonialSlider .carousel-indicators .active {
    opacity: 1;
}
#testimonialSlider .carousel-control-prev-icon,
#testimonialSlider .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 15px; /* Make icons larger */
    width: 30px; /* Adjust size of the icon itself */
    height: 30px;
    background-size: 60%;
}

/* 11. Progress Bars */
.progress {
    border-radius: var(--border-radius-medium);
    height: 25px !important; /* From HTML */
}
.progress-bar {
    font-weight: 500;
    color: var(--text-color-light); /* Ensure text is visible */
}
.progress-bar.bg-success { background-color: var(--tertiary-color) !important; }
.progress-bar.bg-warning { background-color: var(--secondary-color) !important; color: var(--text-color-dark) !important; }


/* 12. Page Specific Styles */
/* Success Page */
.success-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-light);
}
.success-page-container .card {
    max-width: 500px;
    width: 100%;
}
.success-page-container .icon-success {
    font-size: 4rem; /* Placeholder for an icon */
    color: var(--tertiary-color);
    margin-bottom: 1rem;
}

/* Privacy & Terms Pages */
.privacy-page-container,
.terms-page-container {
    padding-top: calc(var(--navbar-height) + 3rem); /* Navbar height + extra space */
    padding-bottom: 3rem;
}
.privacy-page-container h1, .terms-page-container h1 {
    margin-bottom: 2rem;
}
.privacy-page-container h2, .terms-page-container h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

/* 13. Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding-top: 4rem;
    padding-bottom: 2rem; /* Less padding at the very bottom */
}
footer h5 {
    color: var(--text-color-light);
    opacity: 0.9;
    margin-bottom: 1rem;
    font-weight: 700;
}
footer p, footer .small {
    color: rgba(255, 255, 255, 0.7);
}
footer .list-unstyled li {
    margin-bottom: 0.5rem;
}
footer .footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
footer .footer-link:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Cookie Consent Popup */
/* Basic styling already in HTML, this is for any overrides or enhancements if needed */
#cookieConsentPopup {
    /* Styles are in HTML */
}
#cookieSettingsLink { /* In footer */
    cursor: pointer;
}


/* 14. Animations & Transitions (Scroll Animation Setup) */
.animate-on-scroll {
    /*opacity: 0;*/
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s var(--transition-bouncy);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* 15. Utility Classes */
.text-shadow {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}


/* 16. Responsive Adjustments */
@media (max-width: 991.98px) { /* Medium devices (tablets, less than 992px) */
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .hero-section p.lead {
        font-size: 1.1rem;
    }
    main {
        padding-top: calc(var(--navbar-height) - 10px); /* Adjust if navbar height changes */
    }
    .navbar-nav {
        background-color: rgba(10, 36, 99, 0.95); /* Background for mobile menu */
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: var(--border-radius-medium);
    }
    .nav-link::after { /* Disable underline effect for mobile dropdown */
      display: none;
    }
}

@media (max-width: 767.98px) { /* Small devices (landscape phones, less than 768px) */
    .hero-section h1 {
        font-size: 2.2rem;
    }
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem !important;
    }
    .btn, button, input[type="submit"] {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    #features .card-image,
    #services .card-image,
    #pricing .card-image,
    #press .card-image {
        height: 180px;
    }
    .map-responsive iframe {
        height: 250px;
    }
}

@media (max-width: 575.98px) { /* Extra small devices (portrait phones, less than 576px) */
    .hero-section {
        min-height: 80vh; /* Slightly less for small screens */
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
     .hero-section p.lead {
        font-size: 1rem;
    }
    .footer .col-lg-4, .footer .col-lg-2, .footer .col-lg-3 { /* Stack footer columns */
        text-align: center;
    }
    .footer .list-unstyled {
        padding-left: 0;
    }
}
.navbar-toggler{
    display: none;
}