/* --- Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Container */
.header-avatar {
  width: 45px;                   /* Set your desired size */
  height: 45px;                  /* Must match width for a perfect circle */
  border-radius: 50%;            /* This makes it a circle */
  object-fit: cover;             /* Prevents the image from stretching/distorting */
  border: 2px solid #f8f4f4;        /* Optional: adds a nice border */
}

/* --- end header    --- */
:root {
    --primary-blue: #0f4c81; /* Deep Professional Blue */
    --light-blue: #e6f0fa;    /* Soft Background Blue */
    --dark-blue: #0a3256;     /* Dark Blue for text/hover */
    --white: #ffffff;
    --gray-text: #555555;
    --light-gray: #f9f9f9;
}

html {
    scroll-behavior: smooth;
}

.services {
    text-decoration: none;
    color: inherit;
    padding: 12px;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Section Titles --- */
.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 2.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: var(--primary-blue);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- our stfaff section --- */
/* Team Section Global Styles */
.team-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  font-family: Arial, sans-serif; /* Matches standard clean font */
  text-align: center;
}

.team-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Titles styled to match image 04c96dc8-fdaf-4857-892e-cbe7769c2d7b */
.section-title {
  color: #0066a6; /* Deep blue accent color */
  font-size: 2rem;
  margin-bottom: 5px;
}

.title-underline {
  width: 50px;
  height: 3px;
  background-color: #0066a6;
  margin: 0 auto 40px auto;
}

/* Responsive 4-Column Layout using Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

/* Individual Card Styling */
.team-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px); /* Gentle hover animation */
}

/* Image Aspect-Ratio Container */
.image-wrapper {
  width: 100%;
  height: 250px; /* Forces uniform size across all staff pictures */
  background-color: #eee;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures square/rectangular staff pictures fit perfectly without distorting */
  object-position: center;
}

/* Text details below images */
.team-info {
  padding: 20px 15px;
}

.team-info h3 {
  font-size: 1.2rem;
  margin: 0 0 5px 0;
  color: #333333;
}

.team-info .role {
  font-size: 0.9rem;
  color: #666666;
  margin: 0;
  font-weight: bold;
}

/* --- Buttons (Mobile Optimized) --- */
.btn-primary, .btn-secondary, .btn-nav {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* --- Navigation Bar --- */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative; /* Changed from fixed to relative for better mobile experience .MaximeMK */
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    flex-direction: column; /* Mobile first: stacked */
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.blue-text {
    color: var(--dark-blue);
}

.nav-links {
    display: flex;
    flex-wrap: wrap; /* Allows links to wrap safely on tiny screens */
    justify-content: center;
    list-style: none;
    gap: 1.2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.btn-nav {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(15, 76, 129, 0.85), rgba(10, 50, 86, 0.9)), 
                url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=1920') no-repeat center center/cover;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 3rem 1rem;
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.05rem;
    margin-bottom: 0rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    flex-direction: column; /* Stack buttons on mobile */
    gap: 1rem;
    max-width: 280px;
    margin: 0 auto;
}

/* --- Services Section --- */
.services {
    padding: 0.3rem 0;
}

.services-grid {
    display: flex;
    flex-direction: column; /* Stack cards on mobile */
    gap: 1.5rem;
}

.service-card {
    background-color: var(--light-gray);
    padding: 2rem 1.5rem;
    border-radius: 6px;
    border-top: 5px solid var(--primary-blue);
    transition: transform 0.3s ease;
}

.service-card h3 {
    color: var(--dark-blue);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

/* --- About Section --- */
.about {
    padding: 4rem 0;
    background-color: var(--light-blue);
}

.about-text h2 {
    color: var(--dark-blue);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.about-text p {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

.about-text ul {
    list-style: none;
}

.about-text ul li {
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--primary-blue);
}

/* --- Contact Section --- */
.contact {
    padding: 4rem 0;
}

.contact-form {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
}

.form-group {
    display: flex;
    flex-direction: column; /* Stack form inputs on mobile */
    gap: 0;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary-blue);
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-blue);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
}

/* ======================================================
     DESKTOP & TABLET STYLES (Screens wider than 768px)
======================================================
*/
@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    /* Navbar row layout */
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }

    .nav-links {
        gap: 2rem;
    }

    /* Hero row buttons */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-btns {
        flex-direction: row;
        max-width: none;
        justify-content: center;
    }

    /* Side-by-side multi-column grid for services */
    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .service-card:hover {
        transform: translateY(-5px);
    }

    /* Contact Form input row layout */
    .form-group {
        flex-direction: row;
        gap: 1rem;
    }

    .contact-form {
        padding: 2.5rem;
    }
}

@media(max-width: 365px) {

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 0.8rem;
    align-items: center;
}

} 

@media(max-width: 340px) {

    .nav-links {
    font-size: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 0.8rem;
    align-items: center;
}
   .logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-blue);
} 
}

