:root {
    --black: #1A1A19;
    --grey: #DFDFD9;
    --yellow: #EFD30B;
    --orange: #F9BE08;
    --white: #F9F8F4;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: Roboto, 'Open Sans', sans-serif;
    margin-bottom: 0px;
}

html {
    scroll-behavior: smooth;
}

section {
    padding: 4rem;
}

.yellow {
    color: var(--yellow);
}

header {
    padding: 2rem 0;
    position: relative;
    background-image: url(images/bg.png);
    background-position: center;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 0;
    margin: 0;
}

nav a {
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover {
    color: var(--yellow);
}

nav a:hover::after {
    width: 100%;
}

#hero-section {
    text-align: center;
    padding: 8rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

#hero-section h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease;
}

#hero-section h3 {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--grey);
    font-weight: 400;
    animation: fadeInUp 1s ease 0.2s;
}

a.cta {
    font-size: 1.2rem;
    display: inline-block;
    background-color: var(--yellow);
    color: var(--black);
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s;
    box-shadow: 0 4px 15px rgba(239, 211, 11, 0.3);
}

a.cta:hover {
    background-color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(249, 190, 8, 0.4);
}

#hero-section h5 {
    margin-top: 2rem;
    color: var(--grey);
    font-size: 1.2rem;
    animation: fadeInUp 1s ease 0.6s;
    font-weight: lighter;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #hero-section h1 {
        font-size: 2.5rem;
    }

    #hero-section h3 {
        font-size: 1.2rem;
    }

    nav ul {
        gap: 1.5rem;
    }

    nav a {
        font-size: 0.9rem;
    }
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    margin-top: 4rem;
    border: 1px solid var(--yellow);
    padding: 15px;
    border-radius: 32px;
    animation: float 2s ease-in-out infinite;
}

.scroll-down span {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.chevron {
    width: 20px;
    height: 4px;
    background: var(--yellow);
    transform: rotate(45deg);
    margin: 2px;
    transition: all 0.3s ease;
}

.chevron:nth-child(2) {
    transform: rotate(-45deg) translateX(2px);
}

.scroll-down:hover span {
    color: var(--orange);
}

.scroll-down:hover .chevron {
    background: var(--orange);
    transform: rotate(45deg) scale(1.2);
}

.scroll-down:hover .chevron:nth-child(2) {
    transform: rotate(-45deg) scale(1.2) translateX(2px);
}

@keyframes float {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -10px);
    }
}

@media (max-width:1200px) {
    .scroll-down {
        display: none;
    }
}

.slider-wrapper {
    overflow: hidden;
    position: relative;
    /* width: 100%; */
    max-width: 1200px;
    margin: 2rem auto;
}

.logos-slider {
    display: flex;
    animation: slide 15s linear infinite;
    width: max-content;
    gap: 60px;
}

@media (max-width:540px) {
    nav ul {
        gap: 0.5rem;
    }

    .logos-slider {
        gap: 20px;
    }
    .slider-wrapper {
        margin: 0;
        margin-bottom: 3rem;
    }
}
@media (max-width: 400px) {
    #hero-section h1 {
        font-size: 2rem;
    }
    #hero-section{
        padding:2rem 1rem;
    }
    a.cta{
        font-size: 1rem;
        padding: 15px 30px;
    }
    header{
        line-height: 1.5;
    }
}
.logo-item {
    flex-shrink: 0;
    padding: 0 2rem;
}

.logo-item img {
    width: 100px;
    height: 80px;
    display: block;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width:600px) {
    .logo-item img {
        width: 80px;
        height: 60px;
    }
}

.logos-slider:hover {
    animation-play-state: paused;
}

#projects {
    padding: 4rem 1rem;
    text-align: center;
}

#projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#projects img {
    width: 100%;
    max-width: 500px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--orange);
    padding: 1px;
}

#projects img:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 2px 2px 20px var(--orange);
    border-color: var(--yellow);
    scale: 1.02;
}

@media (max-width: 768px) {
    #projects {
        gap: 1.5rem;
        padding: 2rem 0.5rem;
    }

    #projects img {
        max-width: 300px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    #projects img {
        max-width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        border-radius: 10px;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#projects img {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

#projects img:nth-child(1) {
    animation-delay: 0.2s;
}

#projects img:nth-child(2) {
    animation-delay: 0.4s;
}

#projects img:nth-child(3) {
    animation-delay: 0.6s;
}

/* About Section Styles */
#about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--grey);
    margin-bottom: 2.5rem;
    position: relative;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    right: 10%;
    width: 80%;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
}

.about-wrapper-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    flex: none;
}

.about-wrapper-content>div:not(:last-child) {
    border-right: 1px solid var(--grey);
    padding-right: 10px;
}

.about-wrapper-content h3 {
    font-size: 1rem;
}

.about-wrapper-content h1 {
    font-size: 1.5rem;
    color: var(--yellow);
}

.about-image img {
    border-radius: 12px;
}

@media (max-width:1200px) {
    .about-image img {
        width: 300px;
    }
}

@media (max-width:1000px) {
    #about {
        align-items: flex-start;
        flex-direction: column;
    }

    .about-image {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

}

@media (max-width:730px) {
    .about-wrapper-content {
        display: grid;
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }

    .about-wrapper-content>div {
        border: 1px solid var(--white);
        padding: 1rem;
        border-radius: 12px;
    }

    section {
        padding: 1rem;
    }

    .about-wrapper-content>div:not(:last-child) {
        padding-right: none;
    }

}

@media (max-width:636px) {
    #about>div:first-child {
        width: 100%;
    }

    .about-wrapper-content {
        align-self: center;
        grid-template-columns: repeat(1, minmax(200px, 1fr));
    }
}

@media (max-width:500px) {

    #about h2 {
        font-size: 1.7rem;
    }

    .about-image img {
        width: 280px;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
}

#about h2 {
    display: inline-block;
}

section:is(#project-section, #testimonials, #contact) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.test-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

#testimonials img {
    max-width: 500px;
    min-width: 320px;
    width: 100%
}

#contact {
    text-align: center;
}

#contact p {
    font-size: 1.3rem;
    line-height: 1.7;
    width: 70%;
}

@media (max-width:1000px) {
    #testimonials img {
        max-width: 400px;
    }
}

@media (max-width:830px) {
    #testimonials img {
        width: 550px;
    }

    .test-wrapper {
        flex-direction: column;
    }

    #contact p {
        margin-bottom: 1rem;
        font-size: 1rem;
        line-height: 1.7;
        width: 100%;
    }
}

@media (max-width:500px) {
    #testimonials img {
        width: 450px;
    }

    #contact a.cta {
        font-size: 1rem;
    }
}

@media (max-width:480px) {
    #testimonials img {
        width: 350px;
    }
}

@media (max-width:350px) {
    #testimonials img {
        width: 320px;
    }
}

footer img {
    width: 30px;
    height: 30px;
}

footer {
    margin: 0 4rem;
    margin-top: 6rem;
    display: flex;
    justify-content: center;
    gap: 4rem;
    background-color: rgb(33, 32, 32);
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
}

footer div {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 0.5rem;
}

footer a {
    color: var(--grey);
    text-decoration: none;
}

@media (max-width:935px) {
    footer {
        margin: 0 0.5rem;
        margin-top: 3rem;
        padding: 1rem 2rem;
    }

    footer div a:last-child {
        display: none;
    }
}