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

:root {
    --bg: #080808;
    --panel: #262626;
    --panel-soft: #1a1a1a;
    --text: #ffffff;
    --muted: #c7c7c7;
    --accent: #ff004f;
    --accent-soft: #b54769;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: "Poppins", sans-serif;
}

img {
    max-width: 100%;
}

a,
button {
    font: inherit;
}

.container {
    padding: 10px 10%;
}

#header {
    width: 100%;
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.55)), url(images/black_background.png);
    background-size: cover;
    background-position: center;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 10px;
}

.logo {
    width: 125px;
    display: block;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: "";
    width: 0;
    height: 3px;
    background: var(--accent);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: width 0.35s;
}

nav ul li a:hover::after,
nav ul li a:focus-visible::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--text);
    cursor: pointer;
    font-size: 25px;
}

.header-text {
    max-width: 760px;
    margin-top: 15%;
}

.eyebrow {
    color: var(--muted);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
}

.header-text h1 {
    color: var(--text);
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.08;
    margin-bottom: 18px;
}

.header-text h1 span,
.role-line span {
    color: var(--accent);
}

.hero-summary,
.role-line {
    color: var(--muted);
    font-size: 20px;
    line-height: 1.6;
    max-width: 680px;
}

.role-line {
    min-height: 32px;
    margin-top: 8px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-actions .btn {
    margin: 0;
}

#about {
    padding: 90px 0 50px;
    color: var(--muted);
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 36px;
}

.about-col-1 {
    flex: 1 1 300px;
    max-width: 420px;
}

.about-col-1 img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.about-col-2 {
    flex: 1 1 520px;
}

.about-col-2 > p {
    line-height: 1.7;
    margin-bottom: 14px;
}

.sub-title {
    font-size: clamp(40px, 5vw, 60px);
    line-height: 1.1;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
}

.section-intro {
    color: var(--muted);
    max-width: 780px;
    line-height: 1.7;
    margin-top: -4px;
}

.tab-titles {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 26px 0 34px;
}

.tab-links {
    color: var(--muted);
    background: transparent;
    border: 0;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    padding: 0 0 10px;
}

.tab-links::after {
    content: "";
    width: 0;
    height: 3px;
    background-color: var(--accent);
    position: absolute;
    left: 0;
    bottom: 0;
    transition: width 0.35s;
}

.tab-links.active-link {
    color: var(--text);
}

.tab-links.active-link::after {
    width: 60%;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

.tab-contents ul li {
    list-style: none;
    margin: 14px 0;
    line-height: 1.55;
}

.tab-contents ul li span {
    color: var(--accent-soft);
    font-size: 15px;
    font-weight: 600;
}

#services {
    padding: 45px 0;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.services-list article {
    background: var(--panel);
    padding: 40px;
    min-height: 330px;
    border-radius: 10px;
    transition: background 0.35s, transform 0.35s;
}

.services-list article i {
    color: var(--accent);
    font-size: 48px;
    margin-bottom: 30px;
    transition: color 0.35s;
}

.services-list article h2 {
    color: var(--text);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 15px;
}

.services-list article p {
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

.services-list article:hover {
    background-color: var(--accent);
    transform: translateY(-8px);
}

.services-list article:hover i {
    color: var(--text);
}

#portfolio {
    padding: 55px 0;
}

.work-list {
    color: var(--text);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.work {
    min-height: 500px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    background: var(--panel-soft);
}

.work img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.layer {
    color: var(--text);
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.55), var(--accent));
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 0 34px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}

.layer h3 {
    font-size: 24px;
    font-weight: 600;
}

.layer p {
    line-height: 1.55;
}

.project-tags {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.work:hover img,
.work:focus-within img {
    transform: scale(1.07);
}

.work:hover .layer,
.work:focus-within .layer {
    height: 100%;
}

.project-placeholder {
    display: flex;
    min-height: 500px;
}

.project-placeholder .layer {
    position: static;
    height: auto;
    min-height: 500px;
    background: var(--panel);
}

.btn {
    display: inline-block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid var(--accent);
    padding: 14px 44px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.35s, transform 0.35s;
}

.btn:hover,
.btn:focus-visible {
    background: var(--accent);
    transform: translateY(-2px);
}

.btn.btn2 {
    background: var(--accent);
}

#contact {
    padding: 60px 0 40px;
}

.contact-left {
    flex: 1 1 300px;
}

.contact-right {
    flex: 1 1 520px;
}

.contact-left p {
    color: var(--text);
    margin-top: 24px;
}

.contact-left p i {
    color: var(--accent);
    margin-right: 15px;
    font-size: 25px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: color 0.35s, transform 0.35s;
}

.social-icons a:hover,
.social-icons a:focus-visible {
    color: var(--accent);
    transform: translateY(-5px);
}

.contact-right form {
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: var(--panel);
    padding: 15px;
    margin: 15px 0;
    color: var(--text);
    font-size: 18px;
    border-radius: 6px;
}

form input:focus,
form textarea:focus {
    box-shadow: 0 0 0 2px var(--accent);
}

form button.btn2 {
    border: 0;
    cursor: pointer;
    margin-top: 20px;
}

#msg {
    color: #61b752;
    margin-top: -35px;
    display: block;
}

.copyright {
    color: var(--text);
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: var(--panel);
    font-weight: 300;
    margin-top: 20px;
}

@media only screen and (max-width: 900px) {
    .container {
        padding: 10px 7%;
    }

    .header-text {
        margin-top: 22%;
    }
}

@media only screen and (max-width: 600px) {
    #header {
        min-height: 100svh;
        background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.65)), url(images/black_background.png);
    }

    .logo {
        width: 110px;
    }

    .header-text {
        margin-top: 16%;
    }

    .eyebrow {
        font-size: 16px;
    }

    .header-text h1 {
        font-size: 38px;
    }

    .hero-summary,
    .role-line {
        font-size: 16px;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
        padding: 13px 20px;
    }

    .nav-toggle {
        display: block;
    }

    nav ul {
        background: var(--accent);
        position: fixed;
        top: 0;
        right: -220px;
        width: 220px;
        height: 100vh;
        padding-top: 58px;
        z-index: 2;
        transition: right 0.35s;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    nav ul li a::after {
        background: var(--text);
    }

    .nav-close {
        position: absolute;
        top: 22px;
        left: 25px;
    }

    .sub-title {
        font-size: 40px;
    }

    .about-col-1,
    .about-col-2,
    .contact-left,
    .contact-right {
        flex-basis: 100%;
    }

    .about-col-1 {
        margin-bottom: 10px;
    }

    .about-col-2 {
        font-size: 14px;
    }

    .tab-titles {
        gap: 18px;
    }

    .tab-links {
        font-size: 16px;
    }

    .services-list,
    .work-list {
        gap: 24px;
        margin-top: 32px;
    }

    .services-list article {
        min-height: auto;
        padding: 30px;
    }

    .work {
        min-height: auto;
    }

    .work img {
        min-height: 300px;
    }

    .project-placeholder,
    .project-placeholder .layer {
        min-height: 300px;
    }

    .layer {
        position: static;
        height: auto;
        min-height: 210px;
        padding: 28px;
        border-radius: 0 0 10px 10px;
        background: var(--panel);
    }

    .work:hover img,
    .work:focus-within img {
        transform: none;
    }

    .btn {
        display: block;
        text-align: center;
    }

    #msg {
        margin-top: 10px;
    }

    .copyright {
        font-size: 14px;
    }
}
