:root {
    --primary-color: #D4AF37;
    --secondary-color: #0a1f44;
    --accent-color: #7c8ea0;
    --text-dark: #1e293b;
    --text-medium: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --light-blue: #f0f6ff;
    --card-white: #ffffff;
    --border-light: #e2e8f0;
    --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05),
                  0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 20px 25px -5px rgba(0, 0, 0, 0.05),
                  0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

body {
    background: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
}

section {
    padding: 5rem 7%;
    background-color: var(--white);
}

section.bg-light-blue {
    background-color: var(--light-blue);
}

.heading {
    font-size: 4rem;
    color: var(--text-dark);
    padding-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

.heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
}

.heading span {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 1.2rem 3.5rem;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
    font-size: 1.6rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    color: #000;
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.lang-switcher {
    display: flex;
    gap: 0.8rem;
    margin-left: 2rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--primary-color);
    color: #000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 7%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #071433;
    flex-wrap: wrap;
}

.header-top .social a {
    font-size: 1.4rem;
    padding: 0.5rem;
    margin-left: 0.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    color: #000;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.header-top .contact-info {
    font-size: 1.2rem;
    color: #ccc;
}

.header-top .contact-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.header-main {
    background: #071433;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 7%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header-main.active {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: rgba(7, 20, 51, 0.95);
    backdrop-filter: blur(10px);
}

.header-main .logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.header-main .logo .main {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.2;
}

.header-main .logo .main .valoris {
    color: var(--primary-color);
}

.header-main .logo .main .nexus {
    color: #fff;
}

.header-main .logo .tagline {
    font-size: 1rem;
    letter-spacing: 1px;
    color: #C0C0C0;
    border-top: 1px solid var(--primary-color);
    margin-top: 0.3rem;
    padding-top: 0.3rem;
}

.header-main .navbar a {
    font-size: 1.6rem;
    color: #fff;
    margin: 0 1.5rem;
    position: relative;
    font-weight: 500;
    text-decoration: none;
}

.header-main .navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.header-main .navbar a:hover::after,
.header-main .navbar a.active::after {
    width: 100%;
}

.header-main .navbar a.active {
    color: var(--primary-color);
}

#menu {
    font-size: 2.5rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 0.8rem;
    cursor: pointer;
    display: none;
    background: transparent;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
}

.menu-item {
    position: relative;
    display: inline-block;
}

.menu-link {
    cursor: pointer;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background: #071433;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.submenu a {
    display: block;
    padding: 1.2rem 1.5rem;
    color: #ccc;
    font-size: 1.4rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    margin: 0;
}

.submenu a:last-child {
    border-bottom: none;
}

.submenu a:hover {
    color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
    padding-left: 2rem;
}

.menu-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-link::after {
    content: '▼';
    font-size: 0.8rem;
    margin-left: 0.5rem;
    color: var(--primary-color);
}

/* ================= HOME ================= */
.home {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(10, 31, 68, 0.88), rgba(7, 20, 51, 0.92)),
                url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}

.home .content {
    max-width: 70rem;
}

.home .content h3 {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.home .content p {
    font-size: 1.8rem;
    line-height: 1.8;
    color: #f0f0f0;
    padding: 1.5rem 0;
}

/* ================= ABOUT ================= */
.about .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5rem;
}

.about .row .image {
    flex: 1 1 40rem;
    position: relative;
}

.about .row .image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    z-index: -1;
    border-radius: 10px;
}

.about .row .image img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.about .row .content {
    flex: 1 1 50rem;
}

.about .row .content h3 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about .row .content p {
    font-size: 1.6rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ================= SERVICES / AREAS / PROJECTS / BLOGS ================= */
.services .box-container,
.areas .box-container,
.projects .box-container,
.blogs .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
}

.services .box,
.areas .box,
.projects .box,
.blogs .box {
    background: var(--card-white);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.services .box:hover,
.areas .box:hover,
.projects .box:hover,
.blogs .box:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.services .box i,
.areas .box i {
    font-size: 4.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.services .box h3,
.areas .box h3,
.projects .box .content h3,
.blogs .box .content .link {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.services .box p,
.areas .box p,
.projects .box .content p,
.blogs .box .content p {
    font-size: 1.5rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* ---------------- PROJECTS ---------------- */
.projects .box .image {
    height: 22rem;
    overflow: hidden;
}

.projects .box .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.projects .box:hover .image img {
    transform: scale(1.05);
}

.projects .box .content {
    padding: 2rem;
    text-align: center;
}

/* ---------------- STATS ---------------- */
.stats .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: 3rem;
    text-align: center;
}

.stats .box {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.stats .box:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.stats .box i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.stats .box h2 {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stats .box p {
    font-size: 1.6rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ================= CAROUSEL / PARTNERS ================= */
.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 5rem;
}

.carousel-wrapper {
    overflow: hidden;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.partner-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin: 0.5rem;
}

.partner-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.partner-card .logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    display: block;
    background: #f9fafb;
    border-radius: 50%;
    padding: 1rem;
}

.partner-card h4 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.partner-card span {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* ---------------- CAROUSEL BUTTONS ---------------- */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 2.4rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.carousel-button:hover {
    background: var(--primary-color);
    color: #000;
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.dot {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ---------------- BLOGS ---------------- */
.blogs .box .image {
    height: 20rem;
    overflow: hidden;
}

.blogs .box .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blogs .box:hover .image img {
    transform: scale(1.1);
}

.blogs .box .content .link {
    text-decoration: none;
    display: block;
}

.blogs .box .content .link:hover {
    color: var(--primary-color);
}

.blogs .box .content .icon {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-light);
}

/* ================= CONTACT ================= */
.contact form {
    max-width: 90rem;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.contact form .inputBox {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact form .inputBox .input {
    flex: 1 1 40rem;
}

.contact form .inputBox .input span {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.6rem;
    color: var(--text-dark);
    font-weight: 500;
}

.contact form .inputBox .input input,
.contact form .inputBox .input select,
.contact form .inputBox .input textarea {
    width: 100%;
    background: #f9fafb;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.2rem;
    font-size: 1.6rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.contact form .inputBox .input input:focus,
.contact form .inputBox .input select:focus,
.contact form .inputBox .input textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.contact form .inputBox .input textarea {
    height: 15rem;
    resize: vertical;
}

/* ================= INSTITUTIONAL ================= */
.institutional .alvara-box {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
}

.institutional .alvara-box h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.institutional .alvara-box p {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-medium);
}

.institutional .alvara-box strong {
    color: var(--primary-color);
}

/* ================= FOOTER ================= */
.footer {
    background: #050f27;
    padding-top: 5rem;
     max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem 2rem 2rem;
}

.footer .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
    padding-left: 2rem;
}

.footer .box h4 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    padding: 2rem;
    padding-left: 1rem;
    
}

.footer .box h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    
   
}

.footer .box a,
.footer .box p {
    display: block;
    font-size: 1.4rem;
    color: #ccc;
    padding: 0.8rem 0;
    text-decoration: none;
    transition: var(--transition);
}

.footer .box a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer .box a i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 2rem;
}

.footer .credit {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.4rem;
    color: #ccc;
    
   
}

.footer .credit span {
    color: var(--primary-color);
}

/* ================= MEDIA QUERIES ================= */
@media (max-width: 991px) {
    html {
        font-size: 55%;
    }

    section {
        padding: 3rem 5%;
    }

    .carousel-container {
        padding: 0 3rem;
    }
}

@media (max-width: 768px) {
    #menu {
        display: flex;
    }

    .header-main .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #071433;
        border-top: 1px solid var(--primary-color);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .header-main .navbar.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .header-main .navbar a,
    .header-main .navbar .menu-item > .menu-link {
        display: block;
        margin: 1rem 2rem;
        text-align: center;
    }

    .menu-item {
        display: block;
        position: static;
    }

    .submenu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: rgba(212, 175, 55, 0.05);
        border: none;
        box-shadow: none;
    }

    .menu-item.active .submenu {
        display: block;
    }

    .menu-link::after {
        display: none;
    }

    .home .content h3 {
        font-size: 4rem;
    }

    .header-top .contact-info {
        display: none;
    }

    .stats .box h2 {
        font-size: 3rem;
    }

    .carousel-button {
        width: 3rem;
        height: 3rem;
        font-size: 1.8rem;
    }

    .carousel-container {
        padding: 0 2rem;
    }

    .lang-switcher {
        margin-left: 0;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .heading {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .carousel-slide {
        flex: 0 0 50%;
    }
}

@media (min-width: 1024px) {
    .carousel-slide {
        flex: 0 0 33.333%;
    }
}