/* Color variables */
:root {
    --light-blue: #f4f9fd;
    --card-bg: #ffffff;
    --mid-blue: #3884c0;
    --mid-blue-hover: #2c6da1;
    --dark-navy: #052c57;
    --text-muted: #52667d;
    --white: #ffffff;
    --max-width: 1200px;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-navy);
    background-color: var(--white);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
nav {
    background: var(--dark-navy);
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(5, 44, 87, 0.1);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--light-blue);
}

.nav_logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); 
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: rgba(234, 247, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

nav ul li a:hover {
    color: var(--white);
}

/* Hero Section with Moving Gradient Mesh */
.hero {
    position: relative;
    color: var(--white);
    padding: 160px 5% 180px 5%;
    text-align: center;
    display: flex;
    justify-content: center;
    overflow: hidden; /* Prevents background animation leaks */
}

/* Dynamic shifting background canvas */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, #052c57 0%, #0a4a8a 40%, #1e5fa0 70%, #3884c0 100%);
    background-size: 300% 300%;
    animation: gradientShift 18s ease infinite;
}

/* Gentle pulsating light effect overlay */
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 2;
    background: radial-gradient(circle at 30% 40%, rgba(56, 132, 192, 0.25) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(234, 247, 255, 0.15) 0%, transparent 50%);
    animation: meshRotate 25s linear infinite;
}

/* Background Animation Keyframes */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes meshRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 3; /* Places copy on top of moving graphics */
    max-width: 800px;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(234, 247, 255, 0.9);
    font-weight: 300;
}

.btn {
    background: var(--mid-blue);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: inline-block;
    box-shadow: 0 4px 14px rgba(56, 132, 192, 0.3);
}

.btn:hover {
    background: var(--mid-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 132, 192, 0.4);
}

/* Features Section */
.features {
    background: var(--light-blue);
    padding: 100px 5%;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--dark-navy);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.grid-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--card-bg);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(5, 44, 87, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(5, 44, 87, 0.02);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(5, 44, 87, 0.08);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark-navy);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Contact Section */
.contact {
    padding: 100px 5%;
    background: var(--white);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-info {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(5, 44, 87, 0.08);
    padding-bottom: 1rem;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-weight: 500;
    color: var(--dark-navy);
}

.info-value a {
    color: var(--mid-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.info-value a:hover {
    color: var(--dark-navy);
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--dark-navy);
    color: rgba(234, 247, 255, 0.8);
    padding: 4rem 5%;
    font-size: 0.9rem;
    border-top: 1px solid rgba(234, 247, 255, 0.1);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1); /* makes dark logo match the transparent vibe if needed */
    opacity: 0.9;
}

.footer-text p {
    margin-bottom: 0.5rem;
}

.legal-note {
    font-size: 0.8rem;
    color: rgba(234, 247, 255, 0.6);
    max-width: 600px;
    margin: 1rem auto;
}

.copyright {
    margin-top: 2rem !important;
    font-size: 0.8rem;
    color: rgba(234, 247, 255, 0.4);
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero {
        padding: 100px 5% 110px 5%;
    }
    .hero h1 { 
        font-size: 2.6rem; 
    }
    nav {
        padding: 1rem 5%;
    }
    nav ul { 
        display: none; /* Consider implementing a hamburger menu later */
    }
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
