* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    height: 60px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s;
}

.logo:hover img {
    opacity: 0.9;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
    font-size: 1.1rem;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    height: 100vh;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #ff6b6b;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

/* Background carousel slides */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slides .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slides .slide.active {
    opacity: 1;
}

/* subtle blue overlay to keep text readable and add color tint */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(30, 60, 114, 0.4);
    z-index: 1;
    pointer-events: none;
}

.quick-links {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.quick-links-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.quick-link-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    text-decoration: none;
    color: #333;
    display: block;
}

.quick-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.quick-link-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #1e3c72;
}

.quick-link-icon i {
    display: block;
}

.quick-link-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.quick-link-card p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.services {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1e3c72;
}

.service-icon i {
    display: block;
}

.service-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

.about {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 5rem 2rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 1.5rem;
}

.contact {
    padding: 5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #1e3c72;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2a5298;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 60, 114, 0.3);
}

footer {
    background: #005db3;
    color: white;
    padding: 2.25rem 5rem 2.25rem;
    margin: auto;
    position: relative;
    background-image: url('pictures/footer.png');
    background-size: auto 100%;
    background-position: center;
    background-repeat: repeat-x;
}

footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 93, 179, 0.85);
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
    
}

.footer-links{
    margin: 2rem 5rem 0 5rem;
}

.footer-links h3 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    color: white;
}

.footer-links:nth-child(2) {
    text-align: center;
}
.footer-links h3 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;  
    font-weight: 600;
    color: white;
}

.footer-links:nth-child(2) {
    text-align: center;
}
.footer-links:nth-child(3) {
   padding-left: 3rem;
}


.footer-links h3 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.6rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-contact-link {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

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

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.copyright-tagline {
    margin-top: 0.3rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* back icon (links to quicklinks.html) */
.back-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    margin-right:0.75rem;
    font-size:1.05rem;
    color:#222;
    text-decoration:none;
    border-radius:6px;
    background:rgba(0,0,0,0.05);
}
.back-icon i{ pointer-events:none; }
.back-icon:hover{ background:rgba(0,0,0,0.08); }

/* page title row: back icon stays left, section title stays centered */
.page-title-row{
    display:flex;
    align-items:center;
    justify-content:center; /* centers the title horizontally */
    max-width:1200px;
    margin:0 auto 1.25rem;
    width:100%;
    height:64px; /* consistent row height so icon and title sit on same Y-axis */
    position:relative;
    padding:0 1rem;
    box-sizing:border-box;
}

/* position back icon absolutely on the left and vertically center it */
.page-title-row .back-icon{
    position:absolute;
    left:0.75rem;
    top:50%;
    transform:translateY(-50%);
    width:44px;
    height:44px;
    margin:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    color:#1e3c72;
    border-radius:8px;
    box-shadow:0 4px 10px rgba(0,0,0,0.08);
}

/* keep the title centered and vertically aligned */
.page-title-row .section-title{
    margin:0;
    text-align:center;
    line-height:1;
}

/* responsive tweak */
@media (max-width:480px){
    .page-title-row{ height:56px; padding:0 .5rem; }
    .page-title-row .back-icon{ left:0.5rem; width:36px; height:36px; }
    .page-title-row .section-title{ font-size:1.6rem; padding:0 2.5rem; }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Services page carousel (reuses patterns from index / quicklinks) */
    .services-hero {
        min-height: 60vh;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
    }

    .services-background {
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    .services-slide {
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        overflow: hidden;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transform: translateZ(0);
    }

    .services-slide.active {
        opacity: 1;
    }

    /* use <img> for sharper rendering */
    .services-slide-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        image-rendering: auto;
    }

    /* subtle blue tint overlay */
    .services-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(30,60,114,0.45);
        z-index: 2;
        pointer-events: none;
    }

    /* content sits above slides */
    .services-content {
        position: relative;
        z-index: 3;
        text-align: center;
        padding: 3rem 1rem;
    }

    .services-hero { min-height: 45vh; }
    .services-content h1 { font-size: 1.6rem; }

    /* Services page background carousel (background only) */
    .services-hero {
        position: relative;
        min-height: 50vh; /* adjust as needed */
        overflow: hidden;
        display: block;
    }

    .services-background {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .services-slide {
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        overflow: hidden;
    }

    .services-slide.active { opacity: 1; }

    /* use <img> for sharper rendering */
    .services-slide-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    /* subtle blue tint to match site */
    .services-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(30,60,114,0.45);
        z-index: 1;
        pointer-events: none;
    }

    /* container for page content so it sits above background */
    .services-container {
        position: relative;
        z-index: 2;
        padding: 3rem 1rem;
    }

    .services-hero { min-height: 40vh; }

    /* Gallery page background carousel - full height */
.gallery-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.gallery-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    overflow: hidden;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Blue tint overlay */
.gallery-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(30, 60, 114, 0.45);
    z-index: 1;
    pointer-events: none;
}

.gallery-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.gallery-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* Gallery section with folders positioned over the hero background */
.gallery-section {
    position: relative;
    z-index: 10;
    background: transparent;
    padding: 4rem 1.5rem;
    margin-top: 0;
}

.folders-grid {
    position: relative;
    z-index: 10;
    /* existing grid styles */
}

@media (max-width: 768px) {
    .gallery-hero { height: 100vh; }
    .gallery-content h1 { font-size: 1.8rem; }
    .gallery-content p { font-size: 0.95rem; }
    .gallery-section { padding: 2rem 1rem; }
}
 /* Change nav links to blue */
      .nav-links a {
        color: #1e3c72 !important;
      }

      .nav-links a:hover {
        color: #2a5298 !important;
      }

      /* Active page styling */
      .nav-links a.active {
        color: #0d1f3d !important;
        font-weight: 600;
        position: relative;
      }

      .nav-links a.active::after {
        content: "";
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        height: 3px;
        background: #0d1f3d;
      }

      /* Dropdown Menu Styles */
      .dropdown {
        position: relative;
      }

      .dropdown-toggle {
        display: flex;
        align-items: center;
        gap: 5px;
        cursor: pointer;
      }

      .dropdown-toggle i {
        font-size: 0.7rem;
        transition: transform 0.3s ease;
      }

      .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
      }

      .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        min-width: 250px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        margin-top: 10px;
        z-index: 1000;
      }

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

      .dropdown-menu a {
        display: block;
        padding: 12px 20px;
        color: #1e3c72 !important;
        text-decoration: none;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(30, 60, 114, 0.1);
        font-size: 0.95rem;
      }

      .dropdown-menu a:last-child {
        border-bottom: none;
      }

      .dropdown-menu a:hover {
        background: rgba(30, 60, 114, 0.05);
        padding-left: 25px;
        color: #2a5298 !important;
      }

      @media (max-width: 768px) {
        .nav-links a.active::after {
          display: none;
        }

        .nav-links a.active {
          background: rgba(13, 31, 61, 0.15);
        }

        .dropdown-menu {
          position: static;
          opacity: 1;
          visibility: visible;
          transform: none;
          box-shadow: none;
          background: rgba(255, 255, 255, 0.1);
          margin: 0;
          max-height: 0;
          overflow: hidden;
          transition: max-height 0.3s ease;
        }

        .dropdown.active .dropdown-menu {
          max-height: 400px;
        }

        .dropdown-menu a {
          color: white !important;
          border-bottom: 1px solid rgba(255, 255, 255, 0.1);
          padding-left: 3rem;
          font-size: 0.95rem;
        }

        .dropdown-menu a:hover {
          background: rgba(255, 255, 255, 0.1);
          padding-left: 3.5rem;
        }

        .dropdown-toggle {
          padding: 1.2rem 2rem;
          color: white !important;
          font-size: 1.15rem;
          font-weight: 500;
          border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
      }

      /* Hamburger menu bars to blue */
      .hamburger span {
        background: #1e3c72 !important;
      }

      /* Hamburger Menu Styles */
      .hamburger {
        display: none;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
        z-index: 1000;
        position: relative;
      }

      .hamburger span {
        width: 30px;
        height: 3px;
        border-radius: 3px;
        transition: all 0.3s ease;
      }

      .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
      }

      .hamburger.active span:nth-child(2) {
        opacity: 0;
      }

      .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
      }

      .hamburger.active span {
        background: white !important;
      }

      @media (max-width: 768px) {
        .hamburger {
          display: flex;
        }

        /* Menu Overlay */
        .menu-overlay {
          position: fixed;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: rgba(0, 0, 0, 0.5);
          backdrop-filter: blur(3px);
          z-index: 998;
          opacity: 0;
          visibility: hidden;
          transition: all 0.3s ease;
        }

        .menu-overlay.active {
          opacity: 1;
          visibility: visible;
        }

        .nav-links {
          display: flex;
          position: fixed;
          top: 0;
          right: -100%;
          width: 85%;
          max-width: 320px;
          height: 100vh;
          background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
          flex-direction: column;
          padding: 100px 0 2rem;
          gap: 0;
          transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
          box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
          z-index: 999;
          overflow-y: auto;
        }

        .nav-links.active {
          right: 0;
        }

        .nav-links li {
          width: 100%;
          margin: 0;
        }

        /* Mobile menu links stay white */
        .nav-links a {
          display: block;
          padding: 1.2rem 2rem;
          color: rgba(255, 255, 255, 0.9) !important;
          font-size: 1.2rem;
          font-weight: 500;
          border-bottom: 1px solid rgba(255, 255, 255, 0.1);
          transition: all 0.3s ease;
        }

        .nav-links a:hover {
          background: rgba(255, 255, 255, 0.15);
          padding-left: 2.5rem;
          color: #fff !important;
        }

        .nav-links a.active {
          background: rgba(255, 255, 255, 0.2);
          color: #fff !important;
          border-left: 5px solid #fff;
        }
      }