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

/* Responsive SVG styles */
svg {
    max-width: 100%;
    height: auto;
}

html {
    font-size: clamp(12px, 1.5vw, 14px);
    scroll-behavior: smooth;
}

body {
    font-family: 'Bricolage Grotesque', sans-serif;
    background-color: #1b1e2d;
    color: white;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Typography */
.hero-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 400;
    line-height: normal;
    color: white;
    max-width: min(1031px, 90vw);
    width: 100%;
    margin: 0;
}

.section-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 400;
    line-height: normal;
    color: white;
    margin-bottom: clamp(20px, 3vw, 40px);
}

.hero-subtitle {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 400;
    line-height: 1.875;
    color: #8f94aa;
    margin-bottom: clamp(20px, 3vw, 40px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(40px, 8vw, 40px) 0 0;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding-left: clamp(20px, 8vw, 100px);
    padding-right: clamp(20px, 8vw, 100px);
}

.logo {
    flex-shrink: 0;
    padding: 12px;
}

.nav-menu {
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 400;
    line-height: 0;
    color: #8f94aa;
    white-space: nowrap;
}

.nav-item.active {
    color: white;
}

.nav-item {
    font-family: 'Bricolage Grotesque', sans-serif;
    line-height: clamp(24px, 3vw, 30px);
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: white;
}

.nav-separator {
    color: #363a4c;
    margin: 0 8px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    gap: 4px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 1px;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 6px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -6px;
}

/* Main content container */
main {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding-left: clamp(20px, 8vw, 100px);
    padding-right: clamp(20px, 8vw, 100px);
}

/* Hero section */
.hero {
    padding: clamp(120px, 15vw, 200px) clamp(20px, 8vw, 100px) 0;
    margin-bottom: clamp(120px, 15vw, 230px);
}

.hero-links {
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 400;
    line-height: 0;
    color: #8f94aa;
    white-space: nowrap;
    margin-top: clamp(20px, 3vw, 40px);
}

.hero-link {
    font-family: 'Bricolage Grotesque', sans-serif;
    line-height: clamp(24px, 3vw, 30px);
    cursor: pointer;
    transition: color 0.3s ease;
}

.hero-link:hover {
    color: white;
}

/* Selected work section */
.selected-work {
    padding: 0 clamp(20px, 8vw, 100px);
    margin-bottom: clamp(120px, 15vw, 230px);
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
}

.work-card.large {
    width: 100%;
    min-width: 300px;
    max-width: 718px;
    height: clamp(400px, 50vw, 618px);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.work-cards-small {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: clamp(20px, 3vw, 40px);
    height: clamp(400px, 50vw, 618px); /* Match the large card height */
}

.work-card.small {
    width: 100%;
    min-width: 280px;
    max-width: 482px;
    height: calc((clamp(400px, 50vw, 618px) - clamp(20px, 3vw, 40px)) / 2); /* Half the large card height minus half the gap */
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.work-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.work-card-content {
    position: absolute;
    bottom: clamp(20px, 4vw, 40px);
    left: clamp(20px, 4vw, 40px);
    right: clamp(20px, 4vw, 40px);
    z-index: 2;
}

.work-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 400;
    line-height: clamp(24px, 3vw, 30px);
    color: white;
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.work-description {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 400;
    line-height: clamp(24px, 3vw, 30px);
    color: #8f94aa;
    cursor: pointer;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.work-description:hover {
    color: white;
}

/* About section */
.about {
    padding: 0 clamp(20px, 8vw, 100px);
    margin-bottom: clamp(120px, 15vw, 230px);
}

.about-grid {
    display: flex;
    gap: clamp(20px, 3vw, 40px);
    flex-wrap: wrap;
}

.about-content {
    flex: 1;
    min-width: 300px;
    max-width: 718px;
}

.about-intro {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 400;
    line-height: clamp(24px, 3vw, 30px);
    color: #8f94aa;
    margin-bottom: clamp(20px, 3vw, 40px);
}

.about-section {
    margin-bottom: clamp(20px, 3vw, 40px);
}

.about-section:last-child {
    margin-bottom: 0;
}

.section-subtitle {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 400;
    line-height: clamp(24px, 3vw, 30px);
    color: white;
    text-transform: uppercase;
    margin-bottom: clamp(15px, 2vw, 20px);
}

.about-section p {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 400;
    line-height: clamp(24px, 3vw, 30px);
    color: #8f94aa;
}

.principles-list,
.work-process-list {
    list-style: none;
}

.principles-list li,
.work-process-list li {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 400;
    line-height: clamp(24px, 3vw, 30px);
    color: #8f94aa;
    margin-bottom: 0;
    margin-left: clamp(20px, 2vw, 24px);
    position: relative;
}

.principles-list li::before,
.work-process-list li::before {
    content: "•";
    color: #8f94aa;
    position: absolute;
    left: clamp(-24px, -2vw, -20px);
}

.principles-list li strong,
.work-process-list li strong {
    color: white;
    font-weight: 700;
}

.work-process-list li strong {
    font-weight: 700;
}

.capabilities-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background-color: #232738;
    color: white;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 400;
    line-height: clamp(24px, 3vw, 30px);
    padding: clamp(2px, 0.5vw, 3px) clamp(12px, 2vw, 15px);
    border-radius: 50px;
    white-space: nowrap;
}

/* About sidebar */
.about-sidebar {
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 482px;
    width: 100%;
}

.contact-card {
    background-color: #232738;
    border-radius: 12px;
    padding: clamp(20px, 4vw, 40px);
    margin-bottom: clamp(20px, 3vw, 36px);
}

.contact-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 400;
    line-height: clamp(24px, 3vw, 30px);
    color: #8f94aa;
    text-transform: uppercase;
    margin-bottom: clamp(15px, 2vw, 20px);
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1b1e2d;
    border-radius: 6px;
    padding: 0 16px;
    min-height: 44px;
    margin-bottom: 16px;
    text-decoration: none;
    color: white;
    transition: background-color 0.3s ease;
}

.contact-item:hover {
    background-color: #2a2e3f;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item span {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 400;
    line-height: clamp(36px, 4vw, 40px);
    color: white;
    white-space: nowrap;
}

.cv-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-label {
    font-size: clamp(8px, 1vw, 10px) !important;
    color: #8f94aa !important;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Playground section */
.playground {
    padding: 0 clamp(20px, 8vw, 100px);
    margin-bottom: clamp(40px, 5vw, 60px);
}

.playground-grid {
    display: flex;
    gap: clamp(20px, 3vw, 40px);
    flex-wrap: wrap;
    justify-content: center;
}

.playground-card {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    height: clamp(400px, 50vw, 618px);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.playground-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playground-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.playground-card-content {
    position: absolute;
    bottom: clamp(20px, 4vw, 40px);
    left: clamp(20px, 4vw, 40px);
    right: clamp(20px, 4vw, 40px);
    z-index: 2;
}

/* Footer */
.footer {
    padding: 0 clamp(20px, 8vw, 100px) clamp(40px, 5vw, 60px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 400;
    line-height: clamp(24px, 3vw, 30px);
    color: #8f94aa;
    white-space: nowrap;
}

.footer-note {
    font-family: 'Bricolage Grotesque', 'Noto Sans', sans-serif;
    font-size: clamp(10px, 1.2vw, 12px);
    font-weight: 400;
    line-height: clamp(24px, 3vw, 30px);
    color: #8f94aa;
    white-space: nowrap;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    main {
        padding: 0 40px;
    }
    
    .nav {
        padding: 60px 40px 0;
    }
    
    .hero {
        padding: 150px 40px 0;
    }
    
    .selected-work,
    .about,
    .playground {
        padding: 0 40px;
    }
    
    .footer {
        padding: 0 40px 60px;
    }
}

@media screen and (max-width: 768px) {
    main {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .nav {
        padding-top: 40px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 0;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 20px;
        right: 20px;
        background-color: #232738;
        border-radius: 12px;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-separator {
        display: none;
    }
    
    .hero-links .nav-separator {
        display: inline;
    }
    
    .nav-item {
        padding: 15px 0;
        border-bottom: 1px solid #363a4c;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .hero {
        padding: 120px 20px 0;
        margin-bottom: 120px;
    }
    
    .selected-work,
    .about,
    .playground {
        padding: 0 20px;
        margin-bottom: 120px;
    }
    
    .footer {
        padding: 0 20px 40px;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .work-card.large {
        width: 100%;
        max-width: none;
        min-width: 100%;
        height: 300px;
    }
    
    .work-cards-small {
        grid-template-rows: auto auto;
        gap: 20px;
        height: auto;
    }
    
    .work-card.small {
        width: 100%;
        max-width: none;
        min-width: 100%;
        height: 250px;
    }
    
    .work-title,
    .work-description {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .playground-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .playground-card {
        width: 100%;
        max-width: none;
        min-width: 100%;
        height: 250px;
    }
    
    .about-grid {
        flex-direction: column;
    }
    
    .about-sidebar {
        max-width: 100%;
    }
    
    .playground-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .playground-card {
        width: 100%;
        max-width: none;
        min-width: 100%;
        height: 250px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    main {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .nav {
        padding-top: 20px;
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 0;
    }
    
    .nav-menu {
        left: 16px;
        right: 16px;
        padding: 16px;
    }
    
    .hero {
        padding: 100px 16px 0;
        margin-bottom: 80px;
    }
    
    .hero-title {
        font-size: clamp(28px, 8vw, 48px);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 12px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: clamp(20px, 6vw, 28px);
        margin-bottom: 20px;
    }
    
    .selected-work,
    .about,
    .playground {
        padding: 0 16px;
        margin-bottom: 80px;
    }
    
    .footer {
        padding: 0 16px 30px;
    }
    
    .work-card-content,
    .playground-card-content {
        bottom: 16px;
        left: 16px;
        right: 16px;
        padding-right: 16px;
    }
    
    .work-title,
    .work-description {
        font-size: 14px;
        line-height: 1.4;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .contact-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .about-intro {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 30px;
    }
    
    .about-section p,
    .principles-list li,
    .work-process-list li {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .tag {
        font-size: 12px;
        padding: 2px 12px;
    }
    
    .capabilities-tags,
    .experience-tags {
        gap: 3px;
    }
}

/* Hover effects */
.work-card {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-2px);
}

.playground-card {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.playground-card:hover {
    transform: translateY(-2px);
}