:root {
    --cobalt-blue: #1a3a5f;
    --amber-orange: #f39c12;
    --light-orange: #ffbd59;
    --glass-white: rgba(255, 255, 255, 0.9);
    --dark-text: #2c3e50;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f9f9f9;
}

h1, h2, h3, .serif {
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

/* --- NAVIGATION --- */

#to-top-container {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1000;
}

#to-top-toggle {
    width: 60px;
    height: 60px;
    background: var(--cobalt-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 2px solid var(--amber-orange);
    transition: transform 0.3s;
}

#to-top-toggle span {
    display: block;
    width: 15px;
    height: 15px;
    background: transparent;
    border-top: 3px solid white;
    border-left: 3px solid white;
    position: relative;
    transform: rotate(45deg) translate(-1px, 1px);
    margin-left: 5px;
}

#back-container {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
}

#back-toggle {
    width: 60px;
    height: 60px;
    background: var(--cobalt-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 2px solid var(--amber-orange);
    transition: transform 0.3s;
}

#back-toggle span {
    display: block;
    width: 15px;
    height: 15px;
    background: transparent;
    border-top: 3px solid white;
    border-left: 3px solid white;
    position: relative;
    transform: rotate(-45deg);
    margin-left: 5px;
}

#nav-toggle span::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 2px;
    background: white;
    left: 0;
    transition: all 0.3s ease-in-out;
}

#nav-container {
    position: fixed;
    bottom: 15px;
    left: 15px;
    z-index: 1000;
}

#nav-toggle {
    width: 60px;
    height: 60px;
    background: var(--cobalt-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 2px solid var(--amber-orange);
    transition: transform 0.3s;
}

#nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    position: relative;
    transition: all 0.3s ease-in-out;
}

#nav-toggle span::before, #nav-toggle span::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 2px;
    background: white;
    left: 0;
    transition: all 0.3s ease-in-out;
}

#nav-toggle span::before { top: -8px; }

#nav-toggle span::after { bottom: -8px; }

#nav-toggle.active span {
    background: transparent;
}

#nav-toggle.active span::before {
    top: 0;
    transform: rotate(45deg);
}

#nav-toggle.active span::after {
    top: 0;
    bottom: auto;
    transform: rotate(-45deg);
}

#side-menu {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border: 1px solid var(--cobalt-blue);
    border-radius: 15px;
    padding: 15px;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);

    border-left: 4px solid var(--cobalt-blue);
    border-right: 4px solid var(--cobalt-blue);
    border-top: 2px solid var(--cobalt-blue);
    border-bottom: 2px solid var(--cobalt-blue);
}

#side-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.menu-logo { width: 50px; height: 50px; background: #ddd; margin: 0 auto 20px; border-radius: 5px; }

.side-menu-links { list-style: none; text-align: center; }

.side-menu-links li { margin: 5px 0; font-weight: 600; font-size: 1.1rem; color: var(--cobalt-blue); cursor: pointer; }

.side-menu-links li:hover { color: var(--amber-orange); }

.social-icons { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }

.social-circle { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    border: 1px solid var(--cobalt-blue);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: white;
}

.facebook { background-color: #1877F2; font-size: 1.5rem; }

.instagram { background-color: #E1306C; font-size: 1.5rem; }

.x-twitter { background-color: #000000; font-size: 1.5rem; }

/* --- FIXED LOGO --- */
#fixed-logo {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 150px;
    max-width: 20vw;
    z-index: 999;
    transition: all 0.4s ease;
}

#fixed-logo img {
    width: 100%;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

#fixed-logo.shrunk {
    width: 50px;
    top: 15px;
    right: 15px;
}

/* --- HERO SECTION (Background Carousel) --- */
header {
    height: 100vh;
    line-height: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-halfsize {
    height: 65vh;
}

.hero-carousel {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active { 
    opacity: 1; 
    animation: heroZoom 6.5s linear forwards;
}

.hero-slide.active-single {
    opacity: 1;
    animation: heroZoomSingle 10s ease-in-out infinite;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes heroZoomSingle {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: -1;
}

.hero-text h1 { font-size: 5rem; letter-spacing: -1px; text-transform: uppercase; margin-bottom: 0; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.836); }

.hero-text p { font-size: 3rem; font-style: italic;  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.301); }

/* --- FEATURED SECTION (Carousel of 3) --- */
.section-padding { padding: 80px 10%; }

.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; text-transform: uppercase; }

.featured-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
}

.featured-card {
    flex: 1;
    height: 450px;
    position: relative;
    border-radius: 10px;
    border-color: var(--cobalt-blue);
    border-width: 5px;
    border-style: solid;
    overflow: hidden;
    box-shadow: 15px 15px 3px rgba(0, 0, 0, 0.452);
    transition: transform 0.3s;
}

.featured-card:nth-child(even) { transform: translateY(-20px); z-index: 2; }

.card-img { width: 100%; height: 100%; object-fit: cover; }

.card-overlay-title {
    position: absolute;
    top: 0; left: 0; width: 100%;
    padding: 30px;
    background: linear-gradient(rgba(0, 0, 0, 0.75), transparent);
    color: white;
    text-align: center;
}

.card-overlay-title h3 { font-size: 1.5rem; line-height: 1; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.836); } 

.card-overlay-info {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.836);
    text-align: center;
    line-height: 1.15;
}

.btn-orange {
    display: inline-block;
    padding: 10px 25px;
    background: var(--amber-orange);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.btn-orange:hover { background: var(--light-orange); }

/* --- PHOTO GALLERY GRID --- */
.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Change 3 to desired number of columns */
    gap: 30px;
    width: 100%;
}
.employee-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Change 3 to desired number of columns */
    gap: 30px;
    width: 100%;
}

.photo-gallery-grid .featured-card:nth-child(even) {
    transform: translateY(-20px);
}

.photo-gallery-card {
    width: 100%;
    height: 400px;
    padding: 20px;
    padding-bottom: 75px;
    position: relative;
    border: 2px solid black;
    overflow: hidden;
    box-shadow: 15px 15px 3px rgba(0, 0, 0, 0.452);
    transition: transform 0.3s;
}
.photo-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1px;
    border: 2px solid black;
}
/* --- VERTICAL TILES --- */
.vertical-tiles {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.vertical-tile {
    width: 100%;
    height: 275px;
    position: relative;
    border-radius: 10px;
    border: 5px solid var(--cobalt-blue);
    overflow: hidden;
    box-shadow: 15px 15px 3px rgba(0, 0, 0, 0.452);
    transition: transform 0.3s;
}

.vertical-tile:nth-child(even) {
    transform: translateX(20px);
}

/* --- ABOUT SECTION --- */

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img { width: 100%; border: 10px solid white; }

/* --- SERVICES SECTION --- */

.services-image {
    flex: 1;
    height: 450px;
    position: relative;
    border-radius: 10px;
    border-color: var(--cobalt-blue);
    border-width: 5px;
    border-style: solid;
    overflow: hidden;
    box-shadow: 15px 15px 3px rgba(0, 0, 0, 0.452);
    transition: transform 0.3s;
}

.services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* --- CONTACT BANNER --- */

.contact-banner {
    background: var(--cobalt-blue);
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin: 40px 0px 0;
}

.contact-banner h2 { font-size: 3rem; margin-bottom: 10px; }

/* --- TESTIMONIALS SECTION --- */
.testimonial-section {
    background-color: #f9f9f9;
    padding: 80px 10%;
    text-align: center;
}

.testimonial-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
    padding: 0 50px;
    animation: fadeEffect 1s;
}

.testimonial-slide.active {
    display: block;
}

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

.testimonial-header {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--cobalt-blue);
    margin-bottom: 15px;
    font-weight: bold;
}

.testimonial-body {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-signature {
    font-weight: bold;
    color: var(--amber-orange);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.prev-btn, .next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: var(--cobalt-blue);
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 3px;
    user-select: none;
}

.next-btn { right: 0; }
.prev-btn { left: 0; }

.prev-btn:hover, .next-btn:hover {
    color: var(--amber-orange);
    background-color: rgba(0,0,0,0.05);
}

/* --- FOOTER --- */

footer {
    background: #eee;
    padding: 50px 10%;
    text-align: center;
    border-top: 2px solid var(--cobalt-blue);
}

.footer-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-info div { margin: 10px; }

.footer-icons { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }

.footer-image { 
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    flex-direction: column;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1800; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.726); /* Black w/ opacity */
}

/* Modal Image Content */
.modal-img-content {
  max-width: 100vw;
  max-height: 100vh;
  height: auto;
  width: auto;
  margin: auto;
  display: block;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

/* The Close Button */
.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #c5c5c5;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 10px 16px;
  color: white;
  width: 100%;
}

.modal-body
{
  overflow: auto;
}

.modal-body h2
{
    letter-spacing: 0px;
    color: white;
}
.modal-body p2
{
    color: white;
}

.modal-footer {
  height: 25px;
  background-color: #00326b52;
  color: white;
}

/* Forms */

    .form-control
    {
        color: #000000;
        font-weight: 600;
        background-color: #eeeeee;
        display: block;
        width: 100%;
        padding: 0.375rem 0.75rem;
        font-size: 1.2rem;
        font-weight: 600;
        line-height: 1.5;
        background-clip: padding-box;
        border: 1px solid var(--cobalt-blue);
        border-radius: 0.25rem;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    }   

    .form-check-label
    {
        padding-bottom: 5px;
    }

    .form-check {

        background-color: #eeeeee;
        position: relative;
        display: block;
        padding-left: 0rem;
        margin-left: auto;
        margin-right:auto;
      }

      label
      {
        margin-bottom:0px !important;
      }  

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 0 75px;
}

.contact-info {
    text-align: left;
    padding-bottom: 3rem;
}

.contact-form-wrapper form {
    margin-top: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row > div {
    flex: 1;
}



/* --- RESPONSIVE MOBILE --- */

@media (max-width: 768px) {
    .hero-text h1 { font-size: 3rem; }
    .featured-carousel { flex-direction: column; }
    .about-grid { grid-template-columns: 1fr; }
    .about-content { order: 2; }
    .about-img-container { order: 1; }
    .footer-info { flex-direction: column; }
    .featured-card:nth-child(even) { transform: translateY(0px); z-index: 2; }
    .vertical-tile:nth-child(even) { transform: translateX(0px); }
    .photo-gallery-grid { grid-template-columns: 1fr; }
    .employee-gallery-grid { grid-template-columns: 1fr; }
    .photo-gallery-card { height: 300px !important; }
    .contact-grid { grid-template-columns: 1fr; padding: 0 20px; }
    .form-row { flex-direction: column; gap: 15px; }
    #side-menu { width: 90vw; }
}