@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-muted: #888888;
    --border-color: #333333;
    --accent-color: #ffffff;
    --grid-gap: 2rem;
    --container-width: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor or none if removed in JS */
}

/* Revert to auto cursor if custom cursor is disabled */
body {
    cursor: auto;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor - Keep if JS enables it */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
    display: block;
    /* Restored custom cursor */
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.serif {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--text-muted);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--grid-gap);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
nav {
    padding: 2rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    mix-blend-mode: difference;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0.92;
    transition: opacity 0.3s;
}

.logo img {
    height: 32px;
    width: auto;
    filter: invert(1);
}

.logo:hover {
    opacity: 1;
}

.menu-btn {
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid var(--text-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.menu-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.lang-switch {
    background: none;
    border: none;
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    margin-left: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: opacity 0.3s;
}

.lang-switch:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    /* Center text */
}

.hero-text {
    grid-column: 1 / -1;
    z-index: 2;
    margin: 0 auto;
}

.hero-sub {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* About Section */
.about {
    padding: 10rem 0;
    border-bottom: 1px solid var(--border-color);
}

.about-text {
    grid-column: 3 / 11;
    text-align: center;
}

.about-text p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

.stats {
    grid-column: 2 / 12;
    display: flex;
    justify-content: center;
    /* Center items */
    gap: 4rem;
    margin-top: 6rem;
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 2px;
}

/* Services / Cases */
.cases {
    padding: 10rem 0;
}

.cases-header {
    margin-bottom: 6rem;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center align */
    text-align: center;
}

/* Compact 3-Column Grid */
.case-list {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.case-item {
    display: flex;
    flex-direction: column-reverse;
    text-align: center;
    gap: 1.5rem;
    padding: 0;
    border: none;
    transition: transform 0.3s;
    text-decoration: none;
    /* Removed link underline */
    color: var(--text-color);
    /* Enforce white text color */
}

.case-item:hover {
    transform: translateY(-5px);
}

.case-item:hover .case-img img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.case-info {
    padding: 0;
    margin: 0 auto;
    width: 100%;
}

.case-img {
    width: 100%;
    height: 220px;
    /* Much smaller height */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.case-num {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--text-muted);
}

.case-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.case-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
    /* Center tags */
    margin-top: 1rem;
}

.tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

/* Contact / Footer */
.footer {
    padding: 6rem 0;
    background: #111;
    border-top: 1px solid var(--border-color);
}

.footer-main {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 3rem;
}

.footer-contact {
    grid-column: 1 / -1;
    text-align: center;
}

.big-link {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
    transition: transform 0.3s;
}

.big-link:hover {
    transform: translateX(20px);
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.copyright {
    grid-column: 1 / -1;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #444;
    text-align: center;
}

.icp-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.icp-link:hover {
    color: var(--text-color);
}

.contact-qr {
    width: 280px;
    /* Adjust size as needed, original image is likely typical QR size */
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem auto;
    display: block;
    /* Optional: Add a white border if it helps visibility on black, but the image seems white bg */
}

.contact-qr {
    width: 200px;
    /* Adjusted to be appropriately sized */
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem auto;
    display: block;
}

.contact-qr {
    width: 200px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem auto;
    display: block;
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .about-text {
        grid-column: 1 / -1;
    }

    .stats {
        flex-direction: column;
        gap: 3rem;
    }

    .case-item {
        gap: 2rem;
    }

    .case-img {
        height: 250px;
    }

    .footer-main,
    .footer-contact {
        grid-column: 1 / -1;
    }
}