:root {
    --primary-blue: #003a70;
    --primary-green: #006b3f;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilities */
.text-blue {
    color: var(--primary-blue);
}

.text-green {
    color: var(--primary-green);
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

.rounded-lg {
    border-radius: 1rem;
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #002d5a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.8rem 0;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.4rem 0;
    box-shadow: var(--shadow-lg);
}

.navbar.scrolled .logo img {
    height: 50px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 70px;
    width: auto;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-blue);
}

.lang-switcher {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
    border-left: 1px solid #e2e8f0;
    padding-left: 0.75rem;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: var(--transition);
    filter: grayscale(1);
    line-height: 1;
}

.lang-btn:hover,
.lang-btn.active {
    filter: grayscale(0);
    transform: scale(1.1);
}

.lang-btn img {
    height: 15px;
    width: 22px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    margin-top: 86px;
    /* Offset for fixed navbar with larger logo */
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 4s ease;
    transform: scale(1.1);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 58, 112, 0.8) 0%, rgba(0, 107, 63, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 4rem;
    border-radius: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Sections */
.section-inner {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-blue);
}

.section-header .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 4rem;
}

/* About Section */
.about {
    position: relative;
    background-image: url('../background.png');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #ffffff;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.5);
    /* Lower opacity to see the light image */
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.about-image {
    position: relative;
    max-width: 100%;
}

.about-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

.about-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.about-slide.active {
    opacity: 1;
    z-index: 2;
}

.about-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 10;
    pointer-events: none;
}

.about-slider-prev,
.about-slider-next {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
}

.about-slider-prev:hover,
.about-slider-next:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.about-slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* Services Section */
.services {
    background-color: #f1f5f9;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 450px));
    justify-content: center;
    gap: 2rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
}

.services-grid::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome, Safari and Opera */
}

.service-card {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 1rem;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    scroll-snap-align: start;
    min-width: 300px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.service-card i {
    width: 48px;
    height: 48px;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    margin-top: 1rem;
}

.service-list li {
    font-size: 0.875rem;
    color: var(--text-dark);
    padding: 0.5rem 0;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
}

.service-list li::before {
    content: '→';
    margin-right: 0.5rem;
    color: var(--primary-blue);
    font-weight: 700;
}

/* Certificates Section */
.certificates {
    background-color: var(--white);
    padding: 2rem 0;
    overflow: hidden;
}

.certificates-wrapper {
    position: relative;
    width: 100%;
    padding: 2rem 0;
    overflow: hidden;
}

.certificates-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.cert-item {
    flex: 0 0 auto;
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(1);
    transition: var(--transition);
    opacity: 0.7;
}

.cert-item:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

.cert-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-150px * 7 - 4rem * 7));
    }
}

/* Projects Section */
.projects {
    position: relative;
    background-image: url('../background.png');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.projects::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.projects .container {
    position: relative;
    z-index: 2;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.project-img {
    width: 100%;
    height: 100%;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 58, 112, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-item:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-overlay p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Contact Section */
.contact {
    position: relative;
    background-image: url('../background.png');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding-bottom: 8rem;
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background-color: var(--white);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.contact-info {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 4rem;
}

.contact-info .section-title::after {
    background-color: var(--primary-green);
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-blue);
    color: var(--white);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--primary-green);
    transform: translateY(-5px);
}

.contact-details {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-form {
    padding: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: inherit;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 58, 112, 0.1);
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 2rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo img {
    height: 60px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-bottom {
    width: 100%;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: var(--white);
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.modal-image {
    height: 500px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.modal-info {
    padding: 3rem;
    overflow-y: auto;
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.modal-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 600;
}

.modal-meta span::before {
    content: '•';
    margin-right: 0.5rem;
    color: var(--primary-green);
}

.modal-info p {
    line-height: 1.8;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        height: 250px;
    }

    .modal-content {
        height: 80vh;
        overflow-y: auto;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        padding: 6rem 2rem;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        gap: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        color: var(--text-dark) !important;
        font-size: 1.25rem;
    }

    .navbar.scrolled .mobile-menu-btn {
        color: var(--text-dark);
    }

    .mobile-menu-btn {
        display: block;
        color: var(--text-dark);
        z-index: 1002;
    }

    .hero-content {
        padding: 2rem;
        border-radius: 1.5rem;
        margin: 0 1rem;
    }

    .hero {
        height: auto;
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }

    .section-inner {
        padding: 4rem 0;
    }

    .contact-info,
    .contact-form {
        padding: 2rem;
    }

    .lang-switcher {
        flex-direction: row;
        margin-left: 0;
        border-left: none;
        padding-left: 0;
        margin-top: 1rem;
        gap: 1.5rem;
    }

    .lang-btn img {
        height: 20px;
        width: 30px;
    }
}