/* Root variables for the design system */
:root {
  /* Logo colors based on analysis from the new image */
  --logo-primary: #0C1B33;  /* Dark navy from new logo */
  --logo-accent: #D80027;   /* Bright red from new logo */
  --logo-bg-light: #FFFFFF; /* White background */
  --logo-bg-offwhite: #F9FAFB; /* Off-white for subtle warmth */
  --text-primary: #0C1B33;   /* Dark navy for text to match logo */
  --text-secondary: #4a4a4a; /* Darker Gray for secondary text */
  --text-accent: #D80027;    /* Red for highlights */
  --border-color: #E0E0E0;   /* Light gray border */
  --shadow: rgba(12, 27, 51, 0.08); /* Subtle shadow for depth, updated to match primary color */
}

/* Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--logo-bg-light);
    color: var(--text-secondary);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header styling */
header {
  background-color: var(--logo-bg-light);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

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

.logo {
  height: 40px;
  width: auto;
}

/* Navigation styling */
nav {
    display: flex;
    align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-accent);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover {
  color: var(--text-primary);
}

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

/* Header Button */
.header-btn {
  background-color: var(--logo-primary);
  color: var(--logo-bg-light);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

.header-btn:hover {
  background-color: #1A2947; /* Lighter navy for hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Animation Keyframes */
@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Hero Section */
.hero {
    background: linear-gradient(45deg, var(--logo-bg-offwhite), #eef2f5);
    color: var(--text-primary);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    opacity: 0;
    animation: slideUpFadeIn 0.8s ease-out 0.2s forwards;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--text-secondary);
    opacity: 0;
    animation: slideUpFadeIn 0.8s ease-out 0.5s forwards;
}

.hero-btn {
    background-color: var(--text-accent);
    color: var(--logo-bg-light);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 1.0s forwards;
}

.hero-btn:hover {
    background-color: #b80022;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* General Section Styling */
.section {
    padding: 5rem 0;
    text-align: center;
}

.section-alt {
    background-color: var(--logo-bg-offwhite);
}

.section h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

/* Stats Counters Section */
.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    min-width: 200px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--logo-primary);
    line-height: 1.1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Concepts Section */
.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.concept-card {
    background-color: var(--logo-bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(12, 27, 51, 0.12);
}

.card-icon {
    color: var(--logo-primary);
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 48px;
    height: 48px;
}

.concept-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Contact Section */
#contact {
    background-color: var(--logo-primary);
    color: var(--logo-bg-offwhite);
}

#contact h2, #contact .section-subtitle {
    color: var(--logo-bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.contact-details {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    line-height: 2;
}

.contact-details a {
    color: var(--logo-bg-light);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.contact-details a:hover {
    border-color: var(--logo-bg-light);
}

.company-ids {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1.5rem;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--logo-bg-light);
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s, border-color 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--logo-bg-light);
    background-color: rgba(255, 255, 255, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background-color: var(--text-accent);
    color: var(--logo-bg-light);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1rem;
    align-self: flex-start;
}

.contact-form button:hover {
    background-color: #b80022;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Footer Styling */
footer {
    background-color: var(--logo-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--logo-bg-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #cccccc;
}

.copyright {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .contact-form button {
        align-self: center;
    }
}
