/* CSS Variables for Professional Light Theme (ISRD Style) */
:root {
    --primary-color: #003366;
    /* Navy Blue - Trust & Professionalism */
    --secondary-color: #00aaff;
    /* Cyan/Light Blue - Innovation */
    --accent-color: #fca311;
    /* Subtle Accent */
    --light-bg: #ffffff;
    --section-bg: #f4f7f6;
    /* Very light grey/blue tint */
    --card-bg: #ffffff;
    --text-primary: #1a202c;
    /* Dark Grey/Black for main text */
    --text-secondary: #4a5568;
    /* Medium Grey */
    --nav-bg: #ffffff;
    --border-color: #e2e8f0;
    --transition: all 0.3s ease;
    --font-main: 'Outfit', sans-serif;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

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

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Typography & Utilities */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn-primary,
.btn-primary-large {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    /* More corporate square-rounded */
    border: 2px solid var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary-large:hover {
    background: #002244;
    border-color: #002244;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    border: 2px solid var(--primary-color);
    margin-left: 1rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.logo-subtext {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--secondary-color);
}

.nav-active {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    /* Slightly shorter for modern feel */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
    /* Offset for fixed nav */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    /* Slight dim for text contrast */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    /* text-align: left !important;  Override center */
    margin-right: auto;
    margin-left: 0;
    /* Left align content like ISRD often does */
    padding-left: 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.1;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 600px;
}

/* Page Headers (for subpages) */
.page-header {
    background: var(--section-bg);
    padding: 150px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Sections General */
.section {
    padding: 100px 0;
}

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

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.align-center {
    align-items: center;
}

/* Cards */
.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

/* Features/About */
.feature-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
}

.feature-list i {
    color: var(--secondary-color);
    width: 20px;
}

.img-framed {
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 10px solid #fff;
}

/* Services */
.service-card {
    text-align: left;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--section-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--primary-color);
    color: #fff;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Partners grid */
.partner-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
    max-height: 60px;
    margin: 0 auto;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Footer & Contact */
.footer {
    background: var(--primary-color);
    color: #fff;
    padding: 80px 0 30px;
}

.footer h3 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
        padding: 0;
    }

    .hero-overlay {
        background: rgba(255, 255, 255, 0.85);
        /* More opaque on mobile for text readability */
    }

    .hero h1 {
        font-size: 2.8rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}