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

:root {
    --black: #fafafa;
    --white: #000000;
    --gray: #a0a0a0;
    --border: #1a1a1a;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(to bottom, #000000 0%, #000000 60%, #020414 100%);
    background-attachment: fixed;
    color: var(--black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    color: var(--black);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--gray);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
    position: relative;
    display: inline-block;
    padding-bottom: 24px;
    padding-left: 36px;
    padding-right: 32px;
}

.hero-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-top: 3px solid var(--black);
    border-left: 3px solid var(--black);
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-bottom: 3px solid var(--black);
    border-right: 3px solid var(--black);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    color: var(--gray);
    max-width: 600px;
    letter-spacing: 0.01em;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* Portfolio Section */
.portfolio {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 3rem;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.portfolio-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.portfolio-header p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray);
    font-weight: 300;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
}

.portfolio-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    cursor: pointer;
}

.portfolio-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-image {
    width: 100%;
    background: var(--border);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 200;
    color: var(--gray);
    transition: background 0.3s ease;
    overflow: hidden;
    position: relative;
    min-height: 200px;
}

.portfolio-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image {
    background: #2a2a2a;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-item h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.portfolio-item p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--gray);
    font-weight: 300;
    line-height: 1.6;
}

/* Team Section */
.team {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 3rem;
}

.team-header {
    text-align: center;
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.team-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.team-header p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray);
    font-weight: 300;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}

.team-member {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.team-member.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--border);
    margin: 0 auto 2rem;
    transition: background 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member:hover .team-photo {
    background: #2a2a2a;
}

.team-member h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.team-role {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--gray);
    font-weight: 300;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    color: var(--gray);
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.8;
}

/* Principle Section */
.principle {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 8rem 3rem;
    margin: 8rem 0;
}

.principle-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.principle-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.principle-text {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 300;
    line-height: 1.6;
    font-style: italic;
    color: var(--black);
}

/* Contact Section */
.contact {
    padding: 8rem 3rem 12rem;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.contact-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray);
    margin-bottom: 3rem;
    font-weight: 300;
}

.contact-email {
    display: inline-block;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--black);
    text-decoration: none;
    border-bottom: 1px solid var(--black);
    padding-bottom: 0.25rem;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-email:hover {
    color: var(--gray);
    border-color: var(--gray);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 6rem 3rem 3rem;
    background: var(--white);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
    font-weight: 300;
}

.footer-description {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    font-weight: 300;
}

.footer-heading {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.footer-nav,
.footer-contact-list,
.footer-company-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-company-list li {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
}

.footer-link {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--black);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray);
}

.footer-copyright {
    font-weight: 300;
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-separator {
    color: var(--gray);
    opacity: 0.5;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow: hidden;
}

.modal.active {
    display: block;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.modal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    z-index: 10000;
}

.modal-close {
    position: fixed;
    top: 2rem;
    right: 3rem;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--black);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close::before {
    content: '×';
    transition: transform 0.3s ease;
}

.modal-close:hover {
    background: var(--border);
}

.modal-close:hover::before {
    transform: rotate(90deg);
}

.modal-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 3rem;
}

.modal-header {
    text-align: center;
    margin-bottom: 6rem;
}

.modal-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.modal-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--gray);
    font-weight: 300;
}

.modal-images {
    margin-bottom: 6rem;
    display: grid;
    gap: 3rem;
}

.modal-image {
    width: 100%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray);
    min-height: 300px;
}

.modal-image img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-description {
    max-width: 800px;
    margin: 0 auto;
}

.modal-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray);
    line-height: 1.8;
    font-weight: 300;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-content {
        padding: 1.5rem 2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .hero {
        padding: 2rem;
    }

    .portfolio {
        padding: 6rem 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .team {
        padding: 6rem 2rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .principle {
        padding: 6rem 2rem;
        margin: 6rem 0;
    }

    .contact {
        padding: 6rem 2rem 10rem;
    }

    .footer {
        padding: 4rem 2rem 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 3rem;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-separator {
        display: none;
    }

    .modal-close {
        top: 1.5rem;
        right: 2rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 6rem 2rem;
    }

    .modal-header {
        margin-bottom: 4rem;
    }

    .modal-images {
        margin-bottom: 4rem;
    }
}

/* Smooth scrolling for fade-in elements */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
