:root {
    --primary-color: #ff8c00;
    --secondary-color: #ffa500;
    --accent-color: #ff6a00;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --extra-light: #fff9f0;
    --white: #ffffff;
    --max-width: 1200px;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

.btn {
    padding: 0.75rem 1.5rem;
    outline: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    white-space: nowrap;
    color: var(--white);
    background: var(--gradient);
    border-radius: 50px;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 140, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--gradient);
    color: var(--white);
}

/* Don't force all images to be 100% wide */
img {
    display: block;
    max-width: 100%;
    height: auto;
}


a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

html,
body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Montserrat", sans-serif;
    background-color: var(--extra-light);
    color: var(--text-dark);
}

section {
    padding: 5rem 1rem;
}

.section__container {
    max-width: var(--max-width);
    margin: auto;
}

.section__header {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 1rem;
}

.section__header span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section__description {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.8rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Navbar */
nav {
    position: fixed;
    width: 100%;
    z-index: 99;
    padding: 1.5rem 1rem;
    transition: 0.4s;
    background: rgba(255, 255, 255, 0.95);
}

nav.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: auto;
}

/* Navbar Logo */
.nav__logo {
    display: flex;
    align-items: center;
}

.nav__logo span {
    color: var(--primary-color);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav__links a {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
}

.nav__links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.nav__links a:hover::after,
.nav__links a.active::after {
    width: 100%;
}

.nav__menu__btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Hero Section */
.header__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 4rem;
    padding-top: 8rem;
    padding-bottom: 5rem;
}

.header__content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.header__content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.header__btns {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header__btns a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.header__image {
    position: relative;
}

.header__image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.header__image:hover img {
    transform: perspective(1000px) rotateY(0);
}

.floating__element {
    position: absolute;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.floating__element:nth-child(1) {
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: var(--gradient);
    opacity: 0.8;
}

.floating__element:nth-child(2) {
    bottom: 30px;
    right: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.7;
    animation-delay: 1s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Services Section */
.service {
    background-color: var(--white);
}

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

.service__card {
    padding: 2rem;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
}

.service__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-color);
}

.service__icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 18px;
    font-size: 2rem;
    color: var(--white);
}

.service__card:nth-child(1) .service__icon {
    background: var(--gradient);
}

.service__card:nth-child(2) .service__icon {
    background: linear-gradient(135deg, var(--accent-color), #ff8c00);
}

.service__card:nth-child(3) .service__icon {
    background: linear-gradient(135deg, #ffa500, #ff8c00);
}

.service__card:nth-child(4) .service__icon {
    background: linear-gradient(135deg, #ff8c00, #ff4500);
}

.service__card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service__card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* About Section */
.about__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 4rem;
}

.about__image {
    position: relative;
}

.about__image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about__content .section__header {
    text-align: left;
    margin-bottom: 2rem;
}

.about__list {
    display: grid;
    gap: 1.5rem;
}

.about__item {
    display: flex;
    gap: 1rem;
}

.about__item__icon {
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: var(--extra-light);
    font-size: 1.8rem;
    color: var(--primary-color);
}

.about__item__content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.about__item__content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Stats Section */
.stats {
    background: var(--gradient);
    color: var(--white);
}

.stats__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stats__item h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stats__item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Portfolio Section */
.portfolio {
    background-color: var(--white);
}

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

.portfolio__card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    position: relative;
}

.portfolio__card:hover {
    transform: translateY(-10px);
}

.portfolio__image {
    height: 250px;
    overflow: hidden;
}

.portfolio__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio__card:hover .portfolio__image img {
    transform: scale(1.1);
}

.portfolio__content {
    padding: 1.5rem;
}

.portfolio__content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.portfolio__content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.portfolio__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio__tag {
    padding: 0.25rem 0.75rem;
    background: var(--extra-light);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Testimonials */
.testimonials {
    background-color: var(--extra-light);
}

.swiper {
    width: 100%;
    padding: 2rem 0;
}

.testimonial__card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin: 0 auto;
}

.testimonial__text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial__text::before,
.testimonial__text::after {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
}

.testimonial__text::before {
    top: -20px;
    left: -15px;
}

.testimonial__text::after {
    content: '"';
    bottom: -50px;
    right: -15px;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial__author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial__author__info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.testimonial__author__info p {
    color: var(--text-light);
}

/* Contact Section */
.contact {
    background: var(--gradient);
    color: var(--white);
}

.contact .section__header {
    color: var(--white);
}

.contact .section__description {
    color: rgba(255, 255, 255, 0.9);
}

.contact__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.contact__form {
    display: grid;
    gap: 1.5rem;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form__group label {
    font-weight: 600;
}

.form__group input,
.form__group textarea {
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--white);
}

.contact__info {
    display: grid;
    gap: 2rem;
}

.contact__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact__icon {
    font-size: 1.5rem;
    color: var(--white);
}

.contact__details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact__details p {
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding-top: 5rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer__col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer__col h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient);
    border-radius: 10px;
}

.footer__logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer__logo span {
    color: var(--primary-color);
}

.footer__col p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer__socials {
    display: flex;
    gap: 1rem;
}

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

.footer__socials a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.footer__links {
    display: grid;
    gap: 1rem;
}

.footer__links a {
    color: var(--text-light);
    transition: 0.3s;
}

.footer__links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer__bar {
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 992px) {
    .stats__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section__header {
        font-size: 2rem;
    }

    .nav__links {
        display: none;
    }

    .nav__menu__btn {
        display: block;
    }

    .header__container,
    .about__container,
    .contact__container {
        grid-template-columns: 1fr;
    }

    .header__content {
        text-align: center;
    }

    .header__btns {
        justify-content: center;
    }

    .about__content .section__header {
        text-align: center;
    }

    .contact__info {
        order: -1;
    }
}

@media (max-width: 576px) {
    .stats__container {
        grid-template-columns: 1fr;
    }

    .service__grid,
    .portfolio__grid {
        grid-template-columns: 1fr;
    }

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

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu */
.mobile__menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile__menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile__menu .nav__links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile__menu .nav__links a {
    font-size: 1.5rem;
    font-weight: 600;
}

.close__btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--text-dark);
    background: none;
    border: none;
    cursor: pointer;
}

/* Logo sizing & alignment */
.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 55px;
    /* Bigger logo size */
    width: auto;
    object-fit: contain;
}

.nav__logo span {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
}

.nav__logo span span {
    /* the colored part of "LealtonSystems" */
    color: var(--primary-color);
}

/* Keep nav compact and consistent */
nav {
    position: fixed;
    width: 100%;
    z-index: 99;
    padding: 0.75rem 2rem;
    /* slightly tighter */
    transition: 0.4s;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
}

nav.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
}

/* Ensure items are centered vertically */
.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Prevent the button from wrapping awkwardly on medium widths */
.nav__links {
    flex-wrap: nowrap;
    gap: 2rem;
}


/* Force navbar logo size */
.logo-img {
    height: 180px;
    /* Increase this until you’re happy (try 80–100px) */
    width: auto;
    max-height: none;
    /* Remove restrictions */
}

.nav__logo {
    display: flex;
    align-items: center;
}

/* Adjust navbar height so it accommodates larger logo */
nav {
    padding: 0.5rem 2rem;
    min-height: 100px;
    /* Ensures nav bar doesn't crop logo */
}

/* ===== Mobile Nav (clean + organized) ===== */
.mobile__menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    justify-items: center;

    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);

    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease;
    padding: 1.25rem;
}

.mobile__menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* close button */
.close__btn {
    justify-self: end;
    font-size: 1.75rem;
    color: var(--text-dark);
    background: none;
    border: 0;
    cursor: pointer;
}

/* stack links vertically with separators */
.mobile__menu .nav__links {
    width: min(520px, 92vw);
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 1rem 0 1.25rem;
    padding: .25rem 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    overflow: hidden;
}

.mobile__menu .nav__links li a {
    display: block;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.mobile__menu .nav__links li+li a {
    border-top: 1px solid #eef2f7;
}

/* full-width CTA */
.mobile__menu .btn {
    width: min(520px, 92vw);
    justify-content: center;
    border-radius: 999px;
}

/* lock scroll when menu open */
body.menu-open {
    overflow: hidden;
}

/* make the top nav compact on small screens */
@media (max-width: 768px) {
    .logo-img {
        height: 64px;
    }

    /* tidy header logo on mobile */
    nav {
        padding: .5rem 1rem;
        min-height: 72px;
    }
}