/* CSS Variables */
:root {
    --display-font: "Libre Baskerville", Georgia, "Times New Roman", serif;
    --font-family: var(--display-font);
    --underline-thickness: 2px;
    --page-bg: #cecece;
    --accent-green: #03c100;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--page-bg);
    color: #000000;
    overflow-x: hidden;
}

/* Container layout */
.container {
    display: flex;
    min-height: 100vh;
}

/* Content area */
.content {
    flex: 1;
    padding: 48px 48px 80px 48px;
    max-width: 1512px;
    margin: 0 auto;
}

/* Shape hero */
.shape-hero {
    margin-bottom: 64px;
}

.shape-hero__grid {
    position: relative;
    width: 100%;
    aspect-ratio: 1416 / 1091;
    border: 3px solid #000000;
    overflow: hidden;
}

.shape-hero__grid::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 50%;
    width: 3px;
    background-color: #000000;
    transform: translateX(-1.5px);
    z-index: 1;
}

.shape-hero__heading {
    position: absolute;
    top: 7.3%;
    left: 50%;
    z-index: 3;
    width: min(72%, 920px);
    transform: translateX(-50%) translateX(clamp(-18px, -1.06vw, -8px));
    font-family: var(--display-font);
    font-size: clamp(56px, 6.35vw, 96px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.01em;
    text-align: center;
}

.shape-hero__accent {
    position: absolute;
    top: 47%;
    left: 6.1%;
    z-index: 0;
    width: 87.8%;
    height: 33%;
    background-color: var(--accent-green);
}

.shape-hero__image {
    position: absolute;
    top: 34.3%;
    left: 50%;
    z-index: 2;
    width: 33.9%;
    max-width: 480px;
    height: auto;
    transform: translateX(-50%);
    filter:
        drop-shadow(0 0 24px rgba(3, 193, 0, 0.82))
        drop-shadow(0 0 58px rgba(3, 193, 0, 0.72))
        drop-shadow(0 0 116px rgba(3, 193, 0, 0.58));
}

/* Introduction section */
.intro {
    margin-bottom: 80px;
}

.intro__heading {
    font-family: var(--display-font);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 120px;
    letter-spacing: -0.01em;
}

/* Works section */
.works {
    margin-bottom: 180px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 40px;
}

.works .intro__heading {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

/* Work card */
.work-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.work-card:hover {
    opacity: 0.8;
}

.work-card__logo {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    aspect-ratio: 1 / 1;
}

.work-card__logo--rope {
    background-color: #C9A227;
}

.work-card__logo--minin {
    background-color: #d3d3d3;
}

.work-card__logo--atolls {
    background-color: #000000;
}

.work-card__logo--igraal {
    background-color: #ff5722;
}

.work-card__logo--behance {
    background-color: #0057ff;
}

.work-card__logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

.work-card__description {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #000000;
}

/* Contact section */
.contact__heading {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
}

.contact {
    display: block;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #000000;
    text-decoration: none;
    margin-bottom: 40px;
    transition: opacity 0.2s ease;
}

.contact:hover {
    opacity: 0.7;
}

/* Tablet breakpoint (768px - 1023px) */
@media screen and (max-width: 1023px) {
    .content {
        padding: 40px 40px 60px 40px;
        max-width: none;
    }

    .shape-hero {
        margin-bottom: 56px;
    }

    .shape-hero__heading {
        width: min(78%, 760px);
        font-size: clamp(48px, 8vw, 76px);
    }

    .works {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 30px;
    }

    .intro__heading,
    .work-card__description,
    .contact__heading,
    .contact {
        font-size: 40px;
    }
}

/* Mobile breakpoint (below 768px) */
@media screen and (max-width: 767px) {
    .container {
        flex-direction: column;
    }

    .content {
        padding: 24px 24px 40px 24px;
        max-width: none;
    }

    .shape-hero {
        margin-bottom: 48px;
    }

    .shape-hero__grid {
        aspect-ratio: auto;
        min-height: clamp(500px, 142vw, 720px);
    }

    .shape-hero__heading {
        top: 38px;
        width: calc(100% - 28px);
        font-size: clamp(38px, 12vw, 64px);
        line-height: 1.08;
    }

    .shape-hero__accent {
        top: 47%;
        left: 0;
        width: 100%;
        height: 28%;
    }

    .shape-hero__image {
        top: 33%;
        width: min(72%, 330px);
    }

    .intro {
        margin-bottom: 60px;
    }

    .intro__heading,
    .work-card__description,
    .contact__heading,
    .contact {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .works {
        margin-bottom: 60px;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .work-card__logo {
        padding: 30px;
    }
}

/* Small mobile optimization */
@media screen and (max-width: 400px) {
    .content {
        padding: 20px 20px 32px 20px;
    }

    .shape-hero__grid {
        min-height: 500px;
    }

    .shape-hero__heading {
        top: 34px;
    }

    .intro__heading,
    .work-card__description,
    .contact__heading,
    .contact {
        font-size: 28px;
    }

    .contact__email {
        word-break: break-all;
    }
}
