:root {
    /* Colors */
    --color-primary-blue: #0A1C3A;
    /* Darker blue for text */
    --color-dark-navy: #0B355B;
    --color-card-bg: #DFEBF8;
    /* Matched from screenshot */
    --color-highlight-orange: #F97316;
    /* Hero orange */
    --color-coin-gold: #F59E0B;
    --color-bg-light: #F4F7F9;
    /* Theme colors */
    --color-bg-primary: #F8FAFC;
    --color-white: #FFFFFF;
    --color-text: #0F172A;
    --color-text-light: #64748B;
    --border-color: #E2E8F0;
    --card-bg: #ff6b6b;
    /* Light red request */
    --card-icon-bg: #FFFFFF;
    /* White so font-awesome shows clear */

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Layout */
    --max-width: 1280px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --------------- HEADER --------------- */
.header {
    background-color: var(--color-white);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo img {
    height: 48px;
    margin-bottom: -4px;
}

.logo-subtext {
    font-size: 11px;
    color: var(--color-primary-blue);
    letter-spacing: 2px;
    margin-left: 2px;
}

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
    margin-left: 40px;
}

.nav-links a {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-primary-blue);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.nav-links a.active {
    color: var(--color-primary-blue);
}

.nav-links a.active .nav-icon {
    color: #4F46E5;
    /* Adding a slightly different blue for the active icon to match screen */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.coin-pill {
    background-color: #FEF3C7;
    border: 1px solid #FCD34D;
    border-radius: 99px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 15px;
    color: #1E3A8A;
    cursor: pointer;
}

.user-greeting {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-primary-blue);
}

.auth-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.login-btn {
    color: var(--color-text);
    background-color: transparent;
    border: 1px solid var(--border-color);
}

.login-btn:hover {
    background-color: var(--color-bg-primary);
}

.signup-btn {
    background-color: #0A142F;
    color: white;
    border: 1px solid #0A142F;
}

.signup-btn:hover {
    background-color: #1a2a5f;
}

/* User Profile Dropdown */
.user-profile-container {
    position: relative;
    display: inline-block;
}

.user-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.2s;
}

.user-profile:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: white;
    min-width: 160px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.dropdown-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #2563eb;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.dropdown-item.logout {
    color: #ef4444;
}

.dropdown-item.logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* --------------- HERO BANNER --------------- */
.hero-wrapper {
    max-width: var(--max-width);
    margin: 24px auto 0;
    padding: 0 24px;
}

.hero-banner {
    background: linear-gradient(90deg, #10265b 0%, #163683 50%, #1a3c94 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    height: 180px;
    display: flex;
    align-items: center;
    padding: 0 48px;
}

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

.hero-text h1 {
    font-size: 40px;
    color: var(--color-white);
    font-weight: 700;
    margin-bottom: 12px;
}

.highlight-orange {
    color: var(--color-highlight-orange);
}

.hero-text p {
    color: var(--color-white);
    font-size: 24px;
    font-weight: 500;
}

.hero-graphics {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 650px;
    background-image: url('assets/hero-illustration.png');
    /* To be handled */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    mix-blend-mode: lighten;
    /* Ensure nice blending */
}

/* --------------- MAIN CONTENT --------------- */
.main-content {
    background: var(--color-bg-light);
    padding-bottom: 80px;
}

.services-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px 0;
}

.service-section {
    margin-bottom: 48px;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.service-section h2 {
    color: #0A142F;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}

.section-header-row h2 {
    margin-bottom: 0;
}

.bharat-connect {
    height: 32px;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 20px;
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* Cards */
.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    /* For when they become links */
    color: var(--color-text);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.icon-wrapper {
    background: var(--card-icon-bg);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.icon-wrapper i {
    font-size: 24px;
    color: #2563EB;
}

.icon-wrapper {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

.service-card h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

/* --------------- TRUSTED PARTNERS Overlay --------------- */
.trusted-partners {
    text-align: center;
    padding: 60px 24px 100px;
    background-color: var(--color-bg-light);
    position: relative;
    z-index: 10;
}

.trusted-partners h2 {
    color: var(--color-dark-navy);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.trusted-partners p {
    color: var(--color-text-gray);
    font-size: 16px;
    margin-bottom: 32px;
}

.partners-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    background: #fff;
    padding: 24px 48px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-width: fit-content;
    margin: 0 auto;
    flex-wrap: wrap;
}

.partners-box img {
    height: 30px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.partners-box {
    transform: translateY(110px);
    /* Overlaps with footer */
    position: relative;
    z-index: 20;
}

/* --------------- FOOTER --------------- */
.footer {
    background-color: var(--color-dark-navy);
    color: var(--color-white);
    padding: 120px 24px 40px;
    /* Top padding extra for the overlay */
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 24px;
}

.follow-us p {
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons svg {
    opacity: 0.8;
    transition: opacity 0.2s;
}

.social-icons svg:hover {
    opacity: 1;
}

.footer-contact {
    display: flex;
    gap: 40px;
}

.contact-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    display: inline-block;
}

.contact-value {
    font-size: 16px;
    font-weight: 600;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-links-grid h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-links-grid ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links-grid a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

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

.quick-links-split {
    display: flex !important;
    flex-direction: row !important;
    gap: 60px !important;
}

.quick-links-split div {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.certifications {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* --------------- Responsive Design --------------- */
@media (max-width: 1024px) {

    .grid-4,
    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-4,
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .nav-links {
        display: none;
        /* Hide on mobile for now, add hamburger later */
    }

    .partners-box {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 480px) {

    .grid-4,
    .grid-5 {
        grid-template-columns: repeat(1, 1fr);
    }
}