* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: antiquewhite;
}

body {
    background: url(./photos/background.jpg) center / cover no-repeat;
    min-height: 100vh;
}


@media (hover: hover) and (pointer: fine) {
    body {
        background-attachment: fixed;
    }
}

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.75rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    z-index: 1000;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.logo {
    padding-top: 0.25rem;
}

.logo img {
    width: 50px;
}
.card img{
    float: center;
    width: 150px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
    align-items: center;
    justify-content: flex-end;
    padding-top: 0.25rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}


@media (max-width: 470px) {
    .nav {
        padding: 0.6rem 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 0.8rem;
        padding-top: 0.4rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
}


@media (hover: hover) and (pointer: fine) {
    .nav-links a:hover {
        text-decoration: underline;
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 1rem 2rem;
}


@media (max-width: 767px) {
    .container {
        padding-top: 8rem;
    }
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeUp 0.8s ease both;
}

.hero h1 {
    font-size: 1.9rem;
    margin-bottom: 1rem;
    background-image: url(./photos/animation.jpg);
    background-size: cover;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #f4a460, #cd8540);
    color: black;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        background: linear-gradient(135deg, #f5deb3, #e6a157);
        transform: translateY(-2px);
    }
}

.card {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 18px;
    padding: 1.4rem;
    margin-bottom: 2rem;
    animation: fadeUp 0.7s ease both;
}

.card h2 {
    margin-top: 0;
    color: rgb(236, 161, 118);
}

.card a {
    display: block;
    margin: 0.4rem 0;
    color: rgb(236, 161, 118);
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    }
}


#about {
    display: flex;
    flex-direction: column;
}

#about h2 {
    margin-bottom: 1rem;
}

#about .about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

#about p {
    flex: 1;
    margin: 0;
}

#about img {
    margin-right: 10rem;
    margin-left: 10rem;
    padding-bottom: 2rem;
    float: none;
    width: 120px;
    flex-shrink: 0;
}


@media (max-width: 767px) {
    #about .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    #about img {
        width: 100px;
        margin-top: 1rem;
    }
}

.grid {
    display: grid;
    gap: 1.6rem;
}

footer {
    text-align: center;
    font-size: 0.85rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 2.6rem;
    }

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


.services-grid {
    display: grid;
    gap: 1.8rem;
    margin-top: 2rem;
}

.service-card {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 18px;
    padding: 1.6rem;
    animation: fadeUp 0.7s ease both;
}

.service-card h2 {
    margin-top: 0;
    color: rgb(236, 161, 118);
}

@media (hover: hover) and (pointer: fine) {
    .service-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    }
}

.back-wrapper {
    text-align: center;
    margin: 3rem 0 1rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.portfolio {
    margin-top: 4rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 18px;
    padding: 1.6rem;
    animation: fadeUp 0.7s ease both;
    margin-bottom: 4rem;
}

.portfolio-title {
    cursor: pointer;
    color: rgb(236, 161, 118);
    transition: opacity 0.3s ease;
}

.videos-wrapper {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.6s ease;
}

.videos {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.videos video {
    width: 100%;
    border-radius: 14px;
}

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

@media (min-width: 768px) {
    .videos {
        grid-template-columns: repeat(2, 1fr);
    }
}


.portfolio.open .videos-wrapper {
    max-height: 2000px;

}

.portfolio.open .videos {
    opacity: 1;
    transform: translateY(0);
}


.card a {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.4px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.card a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #E6A157, #F5DEB3);
    transition: width 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {

    .card a:hover {
        color: #F5DEB3;
        transform: translateY(-2px);
    }

    .card a:hover::after {
        width: 100%;
    }
}

@media (hover: none) and (pointer: coarse) {

    .card a {
        font-weight: 600;
        letter-spacing: 0.6px;
        color: rgb(240, 190, 140)
    }
}
