:root {
    --primary-color: #004e92;
    --secondary-color: #000428;
    --accent-color: #00bcd4;
    --text-color: #333;
    --light-text: #f4f4f4;
    --background-color: #f9f9f9;
    --white: #ffffff;
    --nav-height: 70px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 78, 146, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: var(--nav-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary-color);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Main Content Padding for Fixed Header */
main {
    margin-top: var(--nav-height);
    flex: 1;
}

.header-bg h1 {
    color: var(--white) !important;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        /* Force 2 columns */
    }

    /* Make the first (Logo/Desc) span full width and centered */
    .footer-col:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }

    /* Make the fourth (Contact) and fifth (Newsletter) columns span full width but left-aligned */
    .footer-col:nth-child(4),
    .footer-col:nth-child(5) {
        grid-column: 1 / -1;
        text-align: left;
    }

    /* Ensure the middle columns (Links & Services) share the row */
    .footer-col:nth-child(2),
    .footer-col:nth-child(3) {
        grid-column: span 1;
    }
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

/* Newsletter Form Styles */
.newsletter-form {
    display: flex;
    flex-direction: column;
    /* Default: Desktop vertical */
    gap: 15px;
}

.newsletter-form input[type="email"] {
    padding: 10px;
    border-radius: 5px;
    border: none;
    outline: none;
    width: 100%;
}

.newsletter-form button {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: row;
        /* Mobile horizontal */
        gap: 10px;
    }

    .newsletter-form input[type="email"] {
        flex: 1;
        /* Input takes remaining space */
        width: auto;
    }

    .newsletter-form button {
        width: auto;
        /* Button fits content */
    }
}

/* Mobile Menu Toggle (Hidden by default on desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 3px 0;
    transition: 0.4s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
        animation: fadeInUp 0.3s ease-out;
    }

    /* Cross Animation */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Mobile Hero Adjustments */
    .hero h1 {
        font-size: 1.70rem !important;
        /* Override inline style */
    }

    .hero .hero-subtitle {
        font-size: 1rem !important;
        /* Override inline style */
    }

    .hero .container>div {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .hero .btn {
        margin: 0 !important;
        /* Reset inline margins */
        width: 100%;
        display: block;
        text-align: center;
    }

    /* General Mobile Adjustments */
    .container {
        padding: 0 15px;
    }

    section {
        padding: 40px 0 !important;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 78, 146, 0.1);
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Custom SVG Arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
    /* Space for the arrow */
    cursor: pointer;
}

select:focus {
    /* Arrow pointing up when active */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23004e92' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'%3E%3C/polyline%3E%3C/svg%3E");
    border-color: var(--primary-color);
}

.range-wrap {
    margin-top: 10px;
}

input[type="range"] {
    width: 100%;
    cursor: pointer;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1,
.hero p,
.hero .btn {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero p {
    animation-delay: 0.2s;
    opacity: 0;
    /* Starts hidden */
}

.hero .btn {
    animation-delay: 0.4s;
    opacity: 0;
    /* Starts hidden */
}

.feature-card,
.service-card {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.feature-card:nth-child(1),
.service-card:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(2),
.service-card:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(3),
.service-card:nth-child(3) {
    animation-delay: 0.6s;
}


/* Info Section Links */
.info-link {
    color: #999;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.info-link::after {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    color: var(--accent-color);
    /* Orange/Accent color for the arrow */
    font-weight: bold;
}

.info-link:hover {
    color: var(--primary-color);
}

.info-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Page Layout (Sidebar + Content) */
.page-container {
    display: flex;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-content {
    flex: 3;
}

.page-sidebar {
    flex: 1;
    min-width: 250px;
}

@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
    }
}

/* Sidebar Menu */
.sidebar-widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.sidebar-menu {
    border: 1px solid #eee;
    background: var(--white);
}

.sidebar-menu a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: #666;
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.sidebar-menu a:last-child {
    border-bottom: none;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: var(--primary-color);
    color: var(--white);
    padding-left: 25px;
}

/* Content Styles */
.content-image {
    width: 100%;
    height: 350px;
    background-color: #ddd;
    border-radius: 5px;
    margin-bottom: 30px;
    overflow: hidden;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.content-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.sidebar-cta-link {
    color: #999;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sidebar-cta-link::after {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    color: #ff9800;
    /* Orange arrow */
    font-weight: bold;
}

.sidebar-cta-link:hover {
    color: var(--primary-color);
    letter-spacing: 0;
    /* Removing letter-spacing change to avoid jitter with flex */
}

.sidebar-cta-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Process Section */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 50px auto 0;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: linear-gradient(to right, #ccc 50%, rgba(255, 255, 255, 0) 0%);
    background-position: bottom;
    background-size: 15px 1px;
    background-repeat: repeat-x;
    z-index: 1;
}

.process-step {
    position: relative;
    z-index: 2;
    background-color: var(--background-color);
    /* Match section bg */
    width: 30%;
    text-align: center;
    padding: 0 10px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--accent-color);
}

.step-title {
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        gap: 40px;
    }

    .process-steps::before {
        display: none;
        /* Hide connector line on mobile */
    }


    .process-step {
        width: 100%;
    }
}

/* Testimonial Section */
.testimonial-card {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
} */

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 5px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0;
    font-size: 1.25rem;
    color: #1a237e;
    /* Dark Blue from image */
    font-weight: 700;
}

.testimonial-content {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 0;
}

@media (max-width: 500px) {
    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Philosophy Subtitle */
.philosophy-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

@media (max-width: 768px) {
    .philosophy-subtitle {
        font-size: 1rem;
    }
}

/* Philosophy Heading */
.philosophy-heading {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .philosophy-heading {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .hero-title {
        /* font-size: 1.25rem !important; */
        line-height: 1.4 !important;
        text-align: center !important;
    }
}

/* Responsive Line Breaks */
.mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .mobile-break {
        display: block;
    }
}

.testimonial-carousel-container {
    user-select: none;
    -webkit-user-drag: none;
}

.testimonial-carousel-container img {
    pointer-events: none;
}

/* Philosophy Section Layout */
.philosophy-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 768px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 25px;
    border-radius: 8px;
    background: var(--white);
    color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease-out forwards;
    min-width: 300px;
}

.toast-success {
    border-left: 5px solid #4CAF50;
}

.toast-error {
    border-left: 5px solid #F44336;
}

.toast-info {
    border-left: 5px solid var(--accent-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}