/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #002147;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
    color: #4a5568;
    font-weight: 400;
    widows: 3;
    orphans: 3;
}

/* Global link styling */
a {
    color: #4a4a4a;
    text-decoration: underline;
}

a:hover {
    color: #2a2a2a;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #002962;
    opacity: 95%;
    color: rgb(244, 244, 244);
    box-shadow: 0 4px 15px rgba(44, 82, 130, 0.3);
}

.btn-primary:hover {
    background: #012f70;
    color: rgb(241, 241, 241);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 82, 130, 0.4);
}


.btn-secondary:hover {
    background: linear-gradient(135deg, #2c5282 #5286c5);
    color: white;
    transform: translateY(-2px);
}

.btn2-primary {
    background: #ffffff;
    opacity: 95%;
    color: white;
    box-shadow: 0 4px 15px rgba(44, 82, 130, 0.3);
}

.btn2-primary:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 82, 130, 0.4);
}

.btn2-secondary {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid #ffffff;
}

.btn2-secondary:hover {
    background: linear-gradient(135deg, #2c5282 #5286c5);
    color: white;
    transform: translateY(-2px);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.925);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 800;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar {
    padding: 1.6rem 0.4rem;
}

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

.logo h1 {
    color: #2c5282;
    opacity: 84%;
    font-size: 1.2rem;
    margin: 0;
    transition: opacity 0.3s ease;
}

.logo a {
    text-decoration: none;
    display: block;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    margin-top: 4.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3.1rem;
}

.nav-menu-desktop {
    margin-left: auto;
    margin-right: 0;
}

.nav-menu-mobile {
    display: none;
}

.nav-menu a {
    text-decoration: none;
    color: #274c7a;
    font-weight: 600;
    display: inline-block;
}

.nav-menu a:hover {
    color: #1d3c61;
    transform: scale(1.0285);
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Mobile Menu */
.menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.menu-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 1000;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #7a7a7a;
    opacity: 84%;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger:hover span {
    background: #002962d1;
    opacity: 90%;
}

.hamburger.active span {
    background: #002962d1;
}

/* Hero Section */
.hero {
    color: white;
    padding: 250px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cursor {
    display: inline;
    color: white;
    font-weight: 100;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    justify-content: center;
    max-width: 350px;
    margin: 0 auto;
}

.hero-buttons .btn {
    width: 100%;
}

/* About Section */
.about {
    padding: 95px 25px;
    background: #f7fafc;
}

.about-carousel {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    height: 480px;
    margin-bottom: 3rem;
}

.carousel-slide {
    position: absolute;
    width: 86%;
    opacity: 0;
    transition: opacity 0.75s ease-in-out;
    padding: 2rem 0;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.carousel-slide h2 {
    color: #002147;
    opacity: 0.925;
    margin-bottom: 2rem;
}

.carousel-slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    margin-top: -2.5rem;
}

.carousel-slide-content-lower {
    margin-top: -1rem;
}

.carousel-slide p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.75s ease;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: background 0.75s ease;
}

.dot.active {
    background: #002962;
}

.dot:hover {
    background: #2c5282;
}

/* Services Section */
.services {
    padding: 100px 30px;
    background: #f7fafc;
}

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

.service-card {
    background: rgb(251, 252, 253);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    .service-card {
        scroll-margin-top: 80px;
    }
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

.service-content {
    padding: 2rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    color: #5c5c5c;
    margin-top: 2.4rem;
    margin-bottom: 3rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-content p {
    margin-bottom: 1.8rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Team Section */
.team {
    padding: 100px 0 230px 0;
    background: #f7fafc;
}

#team {
    scroll-margin-top: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4.5rem;
    margin-top: 2.5rem;
}

.team-card {
    text-align: center;
    padding: 2rem 1rem;
}

.team-card-last {
    grid-column: 2;
}

.team-info {
    padding: 1.5rem 0 0 0;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.team-info h3 {
    color: #5c5c5c;
    margin-bottom: 0.5rem;
    height: 3.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-text {
    margin-top: 5rem;
}

.title {
    color: #ab914a !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Read More Button */
.btn-read-more {
    margin-top: 1.5rem;
    padding: 10px 25px;
    background: none;
    color: #909090;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: underline;
    text-underline-offset: 11px;
    text-decoration-thickness: 0.6px;
}

.btn-read-more:hover {
    transform: translateY(-2px);
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 0.7px;
    color: #5c5c5c;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

@keyframes modalFadeIn {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 4rem 5.4rem 3rem 5rem;
    border-radius: 10px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Custom scrollbar for modal - hidden by default */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.modal-content:hover::-webkit-scrollbar-thumb {
    background: rgba(138, 138, 138, 0.3);
}

.modal-content:hover::-webkit-scrollbar-thumb:hover {
    background: rgba(122, 122, 122, 0.5);
}

/* For Firefox */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.modal-content:hover {
    scrollbar-color: rgba(138, 138, 138, 0.3) transparent;
}

@media (min-width: 769px) {
    .modal-content {
        padding-left: 5.5rem;
        padding-right: 6rem;
        padding-top: 6.3rem;
    }

    .modal.active .modal-content {
        animation: modalFadeIn 0.3s ease-out;
    }
}

.modal-close {
    position: fixed;
    right: calc(50% - 350px + 1.5rem);
    top: calc(50% - 40vh + 0.6rem);
    font-size: 2rem;
    font-weight: 300;
    color: #5c5c5c;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
}

@media (max-width: 768px) {
    .modal-close {
        position: absolute;
        right: 1.5rem;
        top: 0.8rem;
    }

    .modal-content {
        padding: 4rem 2.8rem 3rem 2.8rem;
    }

    .btn-modal-close {
        margin-bottom: 1.5rem;
    }
}

.modal-close:hover {
    color: #002962;
}

.modal-content h3 {
    color: #5c5c5c;
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.modal-content .title {
    color: #ab914a !important;
    font-weight: 600 !important;
    margin-bottom: 2rem !important;
    font-size: 1.1rem;
}

.modal-text {
    text-align: center;
    margin-top: 4rem;
}

.modal-text p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.btn-modal-close {
    margin-top: 2.3rem;
    margin-bottom: 1.7rem;
    margin-left: 3px;
    padding: 14px 54px;
    background: transparent;
    color: #ab914a;
    border: 0.8px solid #ab914a;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.btn-modal-close:hover {
    background: transparent;
    opacity: 1;
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 100px 20px;
    background: rgb(254, 254, 254);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-content > div:first-child p {
    max-width: 70%;
}

.contact-details {
    margin-top: -2.1rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item strong {
    color: #969696;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #000000;
    font-weight: 700;
}

.contact-form {
    background: rgb(254, 254, 254);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.97rem;
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #7f7f84;
    font-weight: 400;
    font-size: 2.1rem;;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.contact-form button {
    width: 100%;
}

.contact-form .btn-primary {
    background: #9c8b5c;
    box-shadow: 0 4px 15px rgba(158, 137, 79, 0.3);
}

.contact-form .btn-primary:hover {
    background: #8d7a4c;
    box-shadow: 0 6px 20px rgba(158, 137, 79, 0.4);
}

/* Footer */
.footer {
    background: #173156;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 5rem;
    margin-bottom: 2rem;
    margin-top: 5.3rem;
}

/* Laptop view adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .navbar {
        padding: 1.2rem 0.4rem;
    }

    .team-info h3 {
        margin-bottom: 1.8rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 10rem;
    }

    .footer-quick-links {
        margin-left: 6rem;
    }
}

@media (min-width: 1025px) {
    .footer-quick-links {
        margin-left: 6rem;
    }
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: #cbd5e0;
}

.footer-bottom {
    text-align: center;
    padding-top: 4rem;
    border-top: 0.7px solid #eaebec;
    color: #a0aec0;
}

.copyright {
    color: #d9d9dc;
    font-size: 0.75rem;
    margin-top: -55px
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-container {
        height: 517px;
    }

    .carousel-slide h2 {
        height: auto;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-dots {
        bottom: -53.5px;
    }

    .carousel-slide-content {
        margin-top: 0rem;
        margin-bottom: 0rem;
        padding: 0 0.2rem;
    }

    .carousel-slide-content p {
        margin-bottom: 0.8rem;
    }

    .carousel-slide-content-lower {
        margin-top: 0;
    }

    .team {
        padding: 100px 20px;
    }

    #team {
        scroll-margin-top: 70px;
    }

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

    .team-card-last {
        grid-column: 1;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu-desktop {
        display: none;
    }

    .nav-menu-mobile {
        display: flex;
        position: fixed;
        left: 52%;
        transform: translateX(-50%);
        top: 80px;
        flex-direction: column;
        background: rgb(248, 249, 255);
        backdrop-filter: blur(80px);
        width: 79%;
        text-align: center;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: calc(2.2rem + 30px) 0 calc(2rem + 27px) 0;
        overflow-y: auto;
        height: auto;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        border-radius: 6px;
        z-index: 1001;
    }

    .nav-menu-close {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        font-size: 2.5rem;
        color: #2c5282;
        cursor: pointer;
        line-height: 1;
        transition: color 0.3s ease;
    }

    .nav-menu-close:hover {
        color: #1d3c61;
    }

    /* Custom scrollbar for hamburger menu */
    .nav-menu::-webkit-scrollbar {
        width: 4px;
    }

    .nav-menu::-webkit-scrollbar-track {
        background: transparent;
    }

    .nav-menu::-webkit-scrollbar-thumb {
        background: rgba(138, 138, 138, 0.3);
        border-radius: 6px;
    }

    .nav-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(122, 122, 122, 0.5);
    }

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

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-menu a {
        font-size: 1.25rem;
    }

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

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .hero-buttons {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .carousel-container {
        min-height: 400px;
    }

    .carousel-slide {
        padding: 1rem 0;
        width: 92%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.5rem;
    }

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

    .contact {
        padding: 100px 25px;
        scroll-margin-top: 60px;
    }

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

    .contact-form {
        padding: 3rem 3.5rem;
        margin-left: -15px;
        margin-right: -15px;
    }

    .contact-form h3 {
        margin-top: 1rem;
    }

    .footer {
        padding: 60px 35px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 250px 10px 80px;
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-video {
        object-position: center;
    }

    .hero-buttons {
        justify-items: center;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-form h3 {
        margin-top: 1.5rem;
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .copyright {
        margin-top: -50px;
    }
}