:root {
    --primary-color: #a6808c;
    --secondary-color: #706677;
    --dkaccent-color: #d6cfcb;
    --ltaccent-color: #ccb7ae;
    --heading-color: #565264;
    --text-color: #565264;
    --bg-light: #ffffff;
    --footer-bg: #706677;


}

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

html {
    scroll-behavior: smooth;
}


body {
    font-family: '', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1,
h2,
h3 {
    font-family: "Domine", serif;
    color: var(--heading-color);
}

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

/* Header & Nav */

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-flow: row wrap;
    padding: 25px 10px;
}


.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--heading-color);
    width: 8%;
}

.logo img {
    width: 100%;
}

nav a {
    margin: 0 12px;
    text-decoration: none;
    color: var(--bg-light);
    font-size: 1rem;
}

.center-nav {
    margin-right: 7vw;
}



.btn-primary {
    /* background-color: var(--primary-color); */
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.5s;
    background: linear-gradient(90deg, var(--c1, #c89aa9), var(--c2, #a6808c) 51%, var(--c1, #c99ba9)) var(--x, 0)/ 200%;
    /* margin-left: 8vw; */
}

.btn-primary:hover {
    --x: 100%;
}

.btn-1 {
    --c1: #a6808c;
    --c2: #c094a2;
}

.solid {
    color: #fff;
    background-color: #565264;
    position: fixed;
    width: 100%;
    /* Apply the sticky positioning */
    top: 0;
    /* Stick the element to the top of the viewport */
    z-index: 100;
    /* Ensure the navbar is above other content */
    transition: background-color 1s ease;
    /* Smooth transition */
    /* Add other styling like text color, padding, etc. */
}

header {
    background-color: #56526400;
    transition: background-color 1s ease;
}

#topdog {
    scroll-margin-top: 11rem;
}

#experience {
    scroll-margin-top: 7rem;
}

#services {
    scroll-margin-top: 9rem;
}

#platforms {
    scroll-margin-top: 9rem;
}

.plat-wrap {
    display: flex;
    justify-content: space-evenly;
}

.plat-img {
    display: block;
    margin: 70px auto;
    width: 70%
}

.plat-img img {
    width: 100%;
}

.provide-logos {
    display: flex;
    justify-content: space-evenly;
    margin: 3rem 0;
}

.provide-logos img {
    width: 15%;
}

nav a {
    position: relative;
    display: inline-block;
}

nav span a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #e5c9f6, #ffffff);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-out;

}

nav span a::before {
    top: -5px;
    transform-origin: left;
}

/* Dropdown */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 270px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}


nav span a:hover::after {
    transform: scaleX(1);
}

.footer-left .logo {
    margin: 0px auto;
}

.footer-left p {
    text-align: center;
    font-size: 16px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
        url('images/nia-header-background.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: white;
}

.hero h1 {
    color: #ffffff;
    font-size: 3.5rem;
    margin-bottom: 10px;
    margin-top: 10vh;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 60px;
}

.pill-btn {
    background-color: var(--secondary-color);
    border: none;
    color: white;
    padding: 21px 40px;
    border-radius: 25px;
    margin: 0 5px;
    cursor: pointer;
    text-decoration: none;
}

.pill-btn:hover {
    background-color: #565264
}

/* Experience */
.experience {
    padding: 80px 20px;
}

/* Services */

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.service-item h3 {
    margin-bottom: 15px;
}

/* Experience Sections */
.exp-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.exp-row.reverse {
    flex-direction: row-reverse;
}

.exp-img {
    width: 40%;
}

.exp-text {
    width: 60%;
}

.exp-img img {
    width: 100%;
    max-width: 500px;
    display: block;
}

.exp-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.stat {
    display: block;
    font-family: 'Domine', serif;
    font-size: 3rem;
    color: #b194b1;
    margin-top: 20px;
}

/*Platforms*/
.platforms {
    margin-top: 80px;
}

.platforms p {
    text-align: center;
}


/* Contact Form */
.divider {
    border: 0;
    border-top: 1px dashed #ccc;
    margin: 40px 0;
}

.contact-section {
    text-align: center;
    padding-bottom: 80px;
}

.contact-section h2 {
    font-size: 3rem;
}

.contact-subtext {
    margin-bottom: 40px;
}

.form-card {
    border: 1px solid #ddd;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 10px;
    margin: 20px 0 10px 0;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

.btn-submit {
    background-color: #a38995;
    color: white;
    border: none;
    padding: 10px 40px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #706677;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: #ccc;
    padding: 40px 0;
    font-size: 0.8rem;
}

.footer-right {
    width: 80%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-right nav a {
    display: block;
    color: #ccc;
    margin: 5px 0;
}

.footer-right nav {
    display: flex;
    gap: 15px;
}

.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    width: clamp(40px, 6vw, 45px);
    height: clamp(40px, 6vw, 45px);
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* background: rgba(255, 255, 255, 0.6); */
    cursor: pointer;
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
    display: block;
    width: 30px;
    height: 2px;
    background: #fff;
    position: relative;
    content: "";
    transition: transform 0.25s ease, top 0.25s ease, background 0.25s ease;
    transform-origin: center;
}

.hamburger span::before {
    position: absolute;
    top: -6px;
}

.hamburger span::after {
    position: absolute;
    top: 6px;
}

.rotate-icon {
    display: inline-block;
    transition: transform 0.5s ease-in-out;
    margin-right: 5px;
}

.rotate-icon:hover {
    transform: rotate(90deg);
}


.dropdown:hover .rotate-icon {
    transform: rotate(90deg);
}

.btn-1:hover .rotate-icon {
    transform: rotate(90deg);
}

@media (min-width: 769px) and (max-width: 846px) {
    .center-nav {
        margin-right: 0vw;
    }
}

/* Responsive */
@media (max-width: 768px) {

    .services-grid,
    .exp-row,
    .exp-row.reverse {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .hero {
        height: 100vh;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    nav>span {
        display: flex;
        flex-direction: column;
        width: 100%;
    }



    .nav-bar {
        /* flex-direction: column; */
        padding: 20px;
        animation: slideInDown;
        animation-duration: 1s;
    }

    .btn-primary {
        margin: 20px auto;
        width: 50%;
        animation: bounceIn;
        animation-duration: 2s;
    }

    nav a {
        margin: 0 3px;
        font-size: 1.5rem;
    }

    .dropdown-content {
        position: relative;
    }

    .logo {
        width: 20%;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-top: 1vh;
    }

    .hero .subtitle {
        font-size: .9rem;
    }

    .pill-btn {
        padding: 16px 10px;
        font-size: .8rem;
        font-weight: 600;
    }

    .exp-text {
        width: 100%;
    }

    .exp-img {
        width: 100%;
    }

    .mobileflip1 {
        order: 1;
    }

    .mobileflip2 {
        order: 2;
    }

    .exp-text h2 {
        font-size: 2rem;
        text-align: center;
    }

    .exp-img img {
        margin: 0px auto;
    }

    .section-title {
        font-size: 2rem;

    }

    .service-item h3,
    p {
        text-align: center;
    }

    .plat-wrap {
        flex-direction: column;
    }

    .plat-img {
        margin: 10px auto;
        width: 70%;
    }

    .contact-section h2 {
        font-size: 2rem;
    }

    .stat {
        font-size: 1.8rem;
        text-align: center;
    }

    .provide-logos {
        flex-direction: column;
    }

    .provide-logos img {
        width: 50%;
        display: block;
        margin: 0px auto;
    }

    .form-row {
        flex-direction: column;
    }

    .btn-submit {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-left .logo {
        margin: 0px auto;
        display: block;
    }

    .footer-right {
        width: 100%;
        display: block;
    }

    .footer-right nav {
        flex-direction: column;
    }

    .footer-right nav a {
        margin: 0px auto;
    }

    .menu-toggle:checked~.menu {
        padding: 1.5rem 0;
        opacity: 1;
        pointer-events: auto;
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .menu-toggle:checked~.hamburger span {
        background: transparent;
    }

    .menu-toggle:checked~.hamburger span::before {
        top: 0;
        transform: rotate(45deg);
    }

    .menu-toggle:checked~.hamburger span::after {
        top: 0;
        transform: rotate(-45deg);
    }

}

@media (max-width: 350px) {
    .pill-btn {
        font-size: .7rem;
    }
}