/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent-blue: #4285f4;
    --light-blue: #1b6ef3;
    --text-color: #ffffff;
    --secondary-text: #8b949e;
    --background-dark: #010409;
    --background-medium: #0d1117;
    --background-light: #161b22;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 48px;
    --spacing-xxl: 72px;
    --border-radius: 8px;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, var(--light-blue) 0%, var(--background-medium) 25%, var(--background-dark) 50%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(to right, #ffffff, #a0c2ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-xl);
}

.section-heading h2 {
    margin-bottom: var(--spacing-lg); /* Medium spacing between h2 and subtitle */
}

h3 {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: var(--secondary-text);
    line-height: 1.8;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--secondary-text);
    margin-bottom: var(--spacing-xl);
    max-width: 1200px;
    line-height: 1.5;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header and navigation */
header {
    background: transparent;
    padding: var(--spacing-md) 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 65px;
    width: auto;
    max-width: 100%;
    display: block; /* Prevents inline spacing issues */
}

.logo h1 {
    margin-left: var(--spacing-md);
    font-size: 1.5rem;
    margin-bottom: 0;
    color: white;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.navbar {
    display: flex;
    align-items: center;
    position: static;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    position: static;
    margin-left: var(--spacing-xl);
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

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

/* Mega Menu Styles */
.mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(1, 4, 9, 0.97);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
}

.mega-menu-content {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

.mega-menu-column {
    flex: 1;
    padding: 0 20px;
}

.mega-menu-column h4 {
    font-size: 1.1rem;
    color: var(--accent-blue);
    margin-bottom: 15px;
    font-weight: 500;
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column ul li {
    margin-bottom: 8px;
}

.mega-menu-column ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.mega-menu-column ul li a:hover {
    color: var(--accent-blue);
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hero section */
.hero {
    background: transparent;
    padding: calc(var(--spacing-xxl) + 150px) 0 calc(var(--spacing-xxl) * 1.5) 0;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    border-bottom: none;
}

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

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(66, 133, 244, 0.15) 0%, rgba(15, 46, 104, 0.05) 40%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
}

/* Sections */
section {
    padding: var(--spacing-xxl) 0;
}

section:not(.hero):not(#about):not(#services) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-heading {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}
/* Add space between services and contact sections */
#research {
    margin-bottom: 80px;
}

#contact {
    margin-top: 60px;
}

/* Add this where your other section styles are defined */
/* For example, after the .section-light class */

.section-spacer {
    height: 60px;
    width: 100%;
    background: linear-gradient(180deg, rgba(1, 4, 9, 0.1) 0%, rgba(27, 110, 243, 0.05) 50%, rgba(1, 4, 9, 0.1) 100%);
}

/* Card grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.card {
    background-color: var(--background-medium);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 200px;
    background-color: var(--background-light);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary-text);
    font-weight: 500;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: var(--spacing-lg);
}

.card h3 {
    margin-bottom: var(--spacing-sm);
}

.card p {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.card-link {
    display: inline-block;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.card-link::after {
    content: "→";
    margin-left: var(--spacing-sm);
    transition: margin-left 0.3s;
}

.card-link:hover::after {
    margin-left: var(--spacing-md);
}

/* Feature section */
.feature-section {
    background-color: var(--background-light);
}

.feature-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-xxl);
    margin-top: var(--spacing-xl);
}

.feature-content, .feature-image {
    flex: 1;
}

.feature-image {
    height: 400px;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary-text);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact Section - UPDATED */
#contact .cta-content {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--background-medium);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    text-align: center;
}

#contact .gradient-accent {
    display: none;
}

#contact .cta-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

#contact .cta-content h3 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

#contact .cta-content p {
    margin-bottom: 2rem;
    color: var(--secondary-text);
}

#contact .cta-content .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    background-color: var(--light-blue);
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
    display: inline-block;
}

/* Footer */
footer {
    background-color: var(--background-dark);
    color: white;
    padding: var(--spacing-xl) 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.footer-menu {
    list-style: none;
}

.footer-menu h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: var(--spacing-sm);
    transition: color 0.3s;
}

.footer-link:hover {
    color: white;
}

.contact-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 12px;
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    height: 42px;
    border: none;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    box-sizing: border-box;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    width: 100%;
}

.form-group.half {
    flex: 1;
}

/* For mobile responsiveness */
@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

textarea.form-control {
    min-height: 100px;
    height: auto;
    resize: vertical;
}

/* Fix for select element to match other form controls */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 12px auto;
    padding-right: 30px;
    color: white;
}

select.form-control option {
    background-color: var(--background-medium);
    color: white;
}

.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    background-color: var(--accent-blue);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #3b78e7;
}

.subscribe-btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    background-color: var(--light-blue); /* Using the darker blue color */
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.subscribe-btn:hover {
    background-color: #1659c8; /* A slightly darker shade for hover state */
}

.footer-bottom {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* New styles for main contact form */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.contact-form-main {
    background-color: var(--background-medium);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-panel {
    background-color: var(--background-medium);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: flex-start;
}

address {
  font-style: normal;
}

.credentials-note {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
}

/* Responsive styles for contact section */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info-panel {
        order: -1;
    }
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Responsive styles */
@media (max-width: 1200px) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .subtitle {
        font-size: 1.25rem;
    }
    .feature-container {
        flex-direction: column;
    }
    .feature-content, .feature-image {
        width: 100%;
    }
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        background-color: rgba(1, 4, 9, 0.95);
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        margin: var(--spacing-md) 0;
    }
    .mobile-menu-btn {
        display: block;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: calc(var(--spacing-xl) + 70px) 0 var(--spacing-xl) 0;
        min-height: 70vh;
    }
    h1 {
        font-size: 3rem;
    }
    header {
        background: rgba(1, 4, 9, 0.8);
        position: fixed;
    }
    .mega-menu {
        display: none;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    .subtitle {
        font-size: 1.125rem;
        margin-left: 20px;
    }
    .logo h1 {
        font-size: 1.25rem;
    }
    .footer-nav {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    .hero {
        min-height: 60vh;
    }
}

/* Four-card grid layout */
.four-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

/* Responsive adjustments for four-card grid */
@media (max-width: 992px) {
    .four-card-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* Additional card styles for services section */
#services .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(27, 110, 243, 0.2);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

#services .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(27, 110, 243, 0.15);
    border-color: rgba(27, 110, 243, 0.5);
}

#services .card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--spacing-xl);
}

#services .card p {
    flex-grow: 1;
    margin-bottom: var(--spacing-lg);
}

#services .card-link {
    align-self: flex-start;
    margin-top: auto;
}


/* Image overlay styles for service cards */
.card-image {
    position: relative;
    height: 180px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.card-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.image-overlay {
    position: absolute;
    bottom: 15px;
    left: 20px;
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover .image-overlay {
    opacity: 1;
}

/* Adjust card content padding when images are present */
.card-image + .card-content {
    padding-top: var(--spacing-md);
}

/* Premium footer layout */
.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column: span 2;
  gap: 40px;
}

.contact-form {
  grid-column: 3;
}

.footer-bottom {
  width: 100%;
  text-align: center;
  margin-top: 60px;
}

@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .footer-nav {
    grid-column: 1;
  }
  
  .contact-form {
    grid-column: 1;
    max-width: 100%;
  }
}

/* Add more space between footer text and form */
.contact-form .footer-text {
    margin-bottom: 10px;
}

/* Add scroll padding to account for fixed header */
html {
  scroll-padding-top: 100px; /* Adjust this value based on your header height */
}

/* Alternative approach for older browsers */
#mission::before,
#team::before,
#advisory::before {
  content: "";
  display: block;
  height: 100px; /* Adjust this value based on your header height */
  margin-top: -100px;
  visibility: hidden;
  pointer-events: none;
}