@import url('https://fonts.googleapis.com/css2?family=Miniver&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
  /* Colors */
  --white-color: #fff;
  --dark-color: #252525;
  --primary-color: #0c0e2e;
  --secondary-color: #3e8bff;
  --light-pink-color: #faf4f5;
  --medium-gray-color: #ccc;

  /* Font size */
  --font-size-s: 0.9rem;
  --font-size-n: 1rem;
  --font-size-m: 1.12rem;
  --font-size-l: 1.5rem;
  --font-size-xl: 2rem;
  --font-size-xxl: 2.3rem;

  /* Font weight */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Border radius */
  --border-radius-s: 8px;
  --border-radius-m: 30px;
  --border-radius-circle: 50%;

  /* Site max width */
  --site-max-width: 1300px;
}

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--dark-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

.section-content {
    margin: 0 auto;
    padding: 0 20px;
    max-width: var(--site-max-width);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/*Navbar Styling*/
header{
    position: fixed;
    width: 100%;
    z-index: 5;
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .navbar {
    display: flex;
    padding: 20px;
    align-items:  center;
    justify-content: space-between;
}

.navbar .nav-logo .logo-text{
    color:  var(--white-color);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

.navbar .nav-menu{
    display: flex;
    gap: 10px;
}

.navbar .nav-menu .nav-link{
    padding: 10px 18px;
    color: var(--white-color);
    font-size: var(--font-size-m);
    background: (var(--secondary-color));
    border-radius: var(--border-radius-m);
    transition: 0.3s ease;
}

.navbar .nav-menu .nav-link:hover,
.navbar .nav-menu .nav-link[aria-current="page"] {
    color: var(--primary-color);
    background: var(--secondary-color);
}

.navbar :where(#menu-close-button, #menu-open-button) {
    display: none;
}

/* Hero Section Styling*/
.hero-section {
    min-height: 100vh;
    background: var(--primary-color);
    padding-top: 80px; /* Account for fixed header */
}

.hero-section .section-content{
    display: flex;
    align-items: center;
    min-height: calc(100vh - 80px); /* Account for fixed header */
    color: var(--white-color);
    justify-content: space-between;
}

.hero-section .hero-details .title {
    font-size: var(--font-size-xxl);
    color: var(--secondary-color);
    font-family: "Miniver",sans-serif;
}

.hero-section .hero-details .subtitle {
    margin-top: 8px;
    max-width: 70%;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

.hero-section .hero-details .description {
    max-width: 70%;
    margin: 24px 0 40px;
    font-size: var(--font-size-m);
}

.hero-section .hero-image-wrapper {
    max-width: 500px;
    margin-right: 30px;
}

/* Contact Form Styling */
.contact-content {
    flex-direction: row;
    gap: 40px;
    padding: 40px 20px;
}

.contact-form-container {
    flex: 1;
    max-width: 600px;
}

.contact-title {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: var(--font-size-xl);
}

.contact-description {
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: var(--font-weight-medium);
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--medium-gray-color);
    border-radius: var(--border-radius-s);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    flex: 1;
    max-width: 400px;
    padding: 30px;
    border-radius: var(--border-radius-s);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 22px;
    color: var(--secondary-color);
}

.social-contact {
    margin-top: 40px;
}

.social-contact h3 {
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

/*About*/
.about-section {
    background: var(--white-color);
    padding-bottom: 60px;
    padding-top: 80px; /* Account for fixed header */
}

.about-section .about-content{
    padding-top: 140px;
    display:flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--dark-color);
    padding-left: 60px;
}

.about-section .about-content .about-title .title-highlight {
    color: var(--secondary-color);
}

.about-section .about-content .about-title {
    font-size: 42px;
    padding-bottom: 10px;
}

.about-section .about-content .about-subtitle {
    padding-top: 40px;
    padding-bottom: 10px;
}

.about-section .about-content .about-details {
    max-width: 70%;
    font-size: var(--font-size-m);
    line-height: 1.7;
}

/*Services*/
.about-list {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 40px;
}

.about-list .section-title {
    padding-top: 40px;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xl);
}

.about-list .section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8%;
    transform: translateX(-50%);
    height: 3px;
    width: 60%;
    background-color: var(--secondary-color);
    border-radius: 3px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.service-box {
  background-color: transparent;
  padding: 20px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, background-color 0.3s ease, color 0.3s ease;
  border: 1px solid rgba(0,0,0,0.08);
}

.service-box:hover {
  transform: translateY(-5px);
  background-color: var(--secondary-color);
  color: var(--white-color);
}

.button.contact-us {
  background-color: transparent;
  color: var(--white-color);
  padding: 15px 25px;
  font-weight: var(--font-weight-medium);
  border-radius: var(--border-radius-m);
  border: 2px solid var(--white-color);
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.button.contact-us:hover {
  background-color: var(--secondary-color);
  color: black;
  border: 2px solid var(--secondary-color);
}

/*Employees*/
.employees-section {
    padding-top: 120px; /* Account for fixed header */
    align-items: center;
    padding-bottom: 40px;
}

.employees-section .employee-team-intro{
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.team-description {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: var(--font-size-m);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.employees-section .employee-intro .intro-title {
    color: var(--primary-color);
    padding: 20px;
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    border-radius: 25px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    font-weight: var(--font-weight-bold);
    transition: all 0.3s ease;
}

.employee-intro .intro-title:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.employees-section .employee-team-intro .intro-title {
    color: var(--primary-color);
    padding-top: 40px;
    position: relative;
    display: inline-block;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 40px;
    font-weight: var(--font-weight-bold);
}

.employees-section .employee-team-intro .intro-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8%;
    transform: translateX(-50%);
    height: 4px;
    width: 60%;
    background-color: var(--secondary-color);
    border-radius: 3px;
}
.employees-section .employee-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.employees-section .employee-list .employee {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    border-radius: var(--border-radius-s);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.employees-section .employee-list .employee:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.employees-section .employee-list .employee .employee-pic .the-pic {    
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.employees-section .employee-list .employee:hover .employee-pic .the-pic {
    transform: scale(1.05);
}

.employees-section .employee-list .employee .employee-details {
    padding-left: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.employee-details .employee-title {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-s);
    margin-bottom: 10px;
    width: fit-content;
}

.employee-details .employee-name {
    margin: 5px 0;
    font-weight: var(--font-weight-semibold);
}

.employee-details .employee-job {
    color: #666;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.employees-section .social-link {
    color: var(--dark-color);
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.employees-section .social-link:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/*Footer styling*/
.footer-section {
    padding: 20px 0;
    background: var(--dark-color);
}

.footer-section .section-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section :where(.copyright-text, .social-link) {
    color: var(--white-color);
}

.footer-section .social-link-list {
    display: flex;
    gap: 20px;
}

.footer-section .social-link {
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-section .social-link:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Responsive media query*/
@media screen and (max-width: 900px) {
    :root {
        --font-size-m: 1rem;
        --font-size-l: 1.3rem;
        --font-size-xl: 1.5rem;
        --font-size-xxl: 1.8rem;
    }

    body.show-mobile-menu header::before {
        content: "";
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        backdrop-filter: blur(5px);
        background: rgba(0, 0, 0, 0.2);
    }

    .navbar :where(#menu-close-button, #menu-open-button) {
        display: block;
        font-size: var(--font-size-l);
    }

    .navbar #menu-close-button {
        position: absolute;
        right: 30px;
        top: 30px;
    }

    .navbar #menu-open-button {
        color: var(--white-color);
    }

    .navbar .nav-menu {
        display: block;
        position: fixed;
        left: -300px;
        top: 0;
        width: 300px;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 100px;
        background: var(--white-color);
        transition: left 0.2s ease;
        z-index: 10;
    }

    body.show-mobile-menu .navbar .nav-menu{
        left: 0;
    }

    .navbar .nav-menu .nav-link {
        color: var(--dark-color);
        display: block;
        margin-top: 17px;
        font-size: var(--font-size-l);
    }

    .hero-section .section-content {
        gap: 50px;
        text-align: center;
        padding: 30px 20px 20px;
        flex-direction: column-reverse;
        justify-content: center;
    }

    .hero-section .hero-details :is(.subtitle, .description) {
        max-width: 100%;
    }

    .hero-section .hero-details .buttons {
        justify-content: center;
    }

    .hero-section .hero-image-wrapper {
        max-width: 270px;
        margin-right: 0;
    }

    .employees-section .employee-list .employee {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .employees-section .employee-list .employee .employee-details {
        padding-left: 0;
        padding-top: 20px;
        align-items: center;
        text-align: center;
    }

    .contact-content {
        flex-direction: column;
        padding: 20px;
    }

    .contact-info {
        max-width: 100%;
    }

    .about-section .about-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .about-section .about-content .about-details {
        max-width: 100%;
    }

    .footer-section .section-content {
        justify-content: center;
        text-align: center;
    }
}

@media screen and (max-width: 600px) {
    .hero-section {
        padding-top: 60px;
    }
    
    .contact-form-container {
        padding: 0;
    }
    
    .employees-section {
        padding-top: 100px;
    }
    
    .employees-section .employee-team-intro .intro-title {
        font-size: 32px;
    }
    
    .about-section .about-content .about-title {
        font-size: 32px;
    }
}