/* Font Face */
@font-face {
    font-family: 'Grold Rounded';
    src: url('GroldRounded-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

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

body {
    font-family: 'Source Code Pro', monospace;
    background-color: #121212;
    color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1122px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 608px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0) 0%, #121212 100%);
    pointer-events: none;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-logo {
    width: 573px;
    height: 424px;
    object-fit: contain;
}

/* Tagline Section */
.tagline {
    padding: 0;
    margin: 0;
}

.hero-headline {
    font-family: 'Grold Rounded', sans-serif;
    font-size: 72px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 2.88px;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    padding: 0 20px;
    margin: 0;
}

/* Projects Section */
.projects {
    padding: 200px 0 100px;
    position: relative;
}

.projects-label {
    font-family: 'Grold Rounded', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.64px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.80);
    opacity: 0.6;
    text-align: center;
    margin-bottom: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 342px);
    gap: 48px;
    justify-content: center;
    perspective: 1000px;
}

.project-card {
    position: relative;
    width: 342px;
    height: 506px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    --glow-x: 50%;
    --glow-y: 50%;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle 200px at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 70%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 342 506' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='particleFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' /%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0 0 0 0.563'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23particleFilter)' opacity='0.7'/%3E%3C/svg%3E");
    background-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
    filter: blur(40px);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background:
        radial-gradient(circle 150px at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 1px;
}

.project-card:hover::after {
    opacity: 1;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    transform-style: preserve-3d;
    z-index: 1;
}

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

.card-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, rgba(18, 18, 18, 0.75) 0%, rgba(18, 18, 18, 0.00) 100%);
    pointer-events: none;
    z-index: 1;
}

.card-content {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.card-concept-label {
    font-family: 'Source Code Pro', monospace;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.60);
    text-transform: none;
}

.card-badge {
    position: absolute;
    top: 36px;
    left: 24px;
    display: inline-flex;
    padding: 5px 8px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border: 0.5px solid rgba(255, 255, 255, 0.10);
    background: #222;
    z-index: 2;
    font-family: 'Source Code Pro', monospace;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    color: #fff;
}

.card-button {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0.5px solid rgba(255, 255, 255, 0.10);
    background: #222;
    box-shadow: 0 14px 4px 0 rgba(0, 0, 0, 0.00), 0 9px 4px 0 rgba(0, 0, 0, 0.01),
                0 5px 3px 0 rgba(0, 0, 0, 0.04), 0 2px 2px 0 rgba(0, 0, 0, 0.07),
                0 1px 1px 0 rgba(0, 0, 0, 0.08), 0 -1px 5px 0 rgba(13, 12, 12, 0.25) inset,
                0 1px 6px 0 rgba(27, 27, 27, 0.13) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.card-button:hover {
    transform: scale(1.1);
}

.card-button svg {
    pointer-events: none;
}

.card-title {
    font-family: 'Grold Rounded', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0.96px;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    z-index: 1;
    width: 1122px;
    height: 506px;
    max-width: 90vw;
    max-height: 90vh;
    --glow-x: 50%;
    --glow-y: 50%;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle 200px at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 70%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 342 506' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='particleFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' /%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0 0 0 0.563'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23particleFilter)' opacity='0.7'/%3E%3C/svg%3E");
    background-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
    filter: blur(40px);
    border-radius: 24px;
}

.modal-content:hover::before {
    opacity: 1;
}

.modal-controls {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.modal-nav-combined {
    display: flex;
    padding: 11px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 40px;
    border: 0.5px solid rgba(255, 255, 255, 0.10);
    background: #121212;
    box-shadow: 0 14px 4px 0 rgba(0, 0, 0, 0.00), 0 9px 4px 0 rgba(0, 0, 0, 0.01),
                0 5px 3px 0 rgba(0, 0, 0, 0.04), 0 2px 2px 0 rgba(0, 0, 0, 0.07),
                0 1px 1px 0 rgba(0, 0, 0, 0.08), 0 -1px 5px 0 rgba(13, 12, 12, 0.25) inset,
                0 1px 6px 0 rgba(27, 27, 27, 0.13) inset;
    position: relative;
    overflow: hidden;
}

.modal-nav-caret {
    display: flex;
    width: 26px;
    height: 26px;
    padding: 0;
    justify-content: center;
    align-items: center;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.modal-nav-caret::before {
    content: '';
    position: absolute;
    top: -11px;
    bottom: -11px;
    background: transparent;
    transition: background 0.2s ease;
    z-index: -1;
}

.modal-nav-prev::before {
    left: -11px;
    right: -4px;
    border-radius: 40px 0 0 40px;
}

.modal-nav-next::before {
    right: -11px;
    left: -4px;
    border-radius: 0 40px 40px 0;
}

.modal-nav-caret:hover::before {
    background: #262525;
}

.modal-nav-caret svg {
    position: relative;
    z-index: 1;
}

.modal-close {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0.5px solid rgba(255, 255, 255, 0.10);
    background: #121212;
    box-shadow: 0 14px 4px 0 rgba(0, 0, 0, 0.00), 0 9px 4px 0 rgba(0, 0, 0, 0.01),
                0 5px 3px 0 rgba(0, 0, 0, 0.04), 0 2px 2px 0 rgba(0, 0, 0, 0.07),
                0 1px 1px 0 rgba(0, 0, 0, 0.08), 0 -1px 5px 0 rgba(13, 12, 12, 0.25) inset,
                0 1px 6px 0 rgba(27, 27, 27, 0.13) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.modal-close:hover {
    background: #262525;
}

.modal-close svg {
    position: relative;
    z-index: 1;
}

.modal-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 0 1px 0 rgba(255, 255, 255, 0.01), 0 0 1px 0 rgba(255, 255, 255, 0.06),
                0 0 1px 0 rgba(255, 255, 255, 0.20), 0 0 1px 0 rgba(255, 255, 255, 0.34);
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background:
        radial-gradient(circle 150px at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 1px;
}

.modal-content:hover .modal-card::before {
    opacity: 1;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

.modal-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, rgba(18, 18, 18, 0.75) 0%, rgba(18, 18, 18, 0.00) 100%);
    pointer-events: none;
    z-index: 1;
}

.modal-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    z-index: 2;
}

.modal-card-badge {
    display: inline-flex;
    padding: 5px 8px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border: 0.5px solid rgba(255, 255, 255, 0.10);
    background: #222;
    font-family: 'Source Code Pro', monospace;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    color: #fff;
}

.modal-card-logo {
    width: 296px;
    height: auto;
    display: block;
}

.modal-card-title {
    font-family: 'Grold Rounded', sans-serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 2.56px;
    text-transform: uppercase;
    color: #fff;
    margin: 24px 0;
}

.modal-card-description {
    width: 372px;
    color: #FFF;
    font-family: "Source Code Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

/* About Section */
.about {
    padding: 100px 0 0;
    text-align: center;
}

.about-icon {
    width: 125px;
    height: 48px;
    margin: 0 auto 16px;
    display: block;
}

.about-title {
    font-family: 'Grold Rounded', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1.28px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 60px;
}

.about-text {
    font-family: 'Source Code Pro', monospace;
    font-size: 18px;
    font-weight: 400;
    line-height: 140%;
    color: #fff;
    margin-bottom: 40px;
}

.about-text:last-child {
    margin-bottom: 80px;
}

.about::after {
    content: '';
    display: block;
    width: 136px;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 auto 80px;
}

/* CTA Section */
.cta {
    padding: 0 0 200px;
    text-align: center;
}

.cta-title {
    font-family: 'Grold Rounded', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0.96px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
}

.cta-highlight {
    color: #FF681A;
}

.cta-text {
    font-family: 'Source Code Pro', monospace;
    font-size: 18px;
    font-weight: 400;
    line-height: 140%;
    color: #fff;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: flex;
    height: 48px;
    padding: 13px 20px 15px 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 40px;
    border: 0.5px solid rgba(255, 255, 255, 0.10);
    background: #222;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 112 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='2' /%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0 0.24'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    box-shadow: 0 14px 4px 0 rgba(0, 0, 0, 0.00), 0 9px 4px 0 rgba(0, 0, 0, 0.01),
                0 5px 3px 0 rgba(0, 0, 0, 0.04), 0 2px 2px 0 rgba(0, 0, 0, 0.07),
                0 1px 1px 0 rgba(0, 0, 0, 0.08), 0 -1px 5px 0 rgba(13, 12, 12, 0.25) inset,
                0 1px 6px 0 rgba(27, 27, 27, 0.13) inset;
    color: #fff;
    font-family: 'Source Code Pro', monospace;
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-circle {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
}

/* Footer */
.footer {
    padding: 0 20px 8px;
    text-align: center;
}

.footer p {
    font-family: 'Source Code Pro', monospace;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

/* Tablet Styles */
@media (max-width: 1280px) and (min-width: 835px) {
    .hero-headline {
        font-size: 64px;
        letter-spacing: 2.56px;
    }

    .projects {
        overflow: visible;
    }

    .projects .container {
        max-width: none;
        padding: 0;
    }

    .projects-label {
        text-align: center;
        padding: 0 64px;
        margin-bottom: 60px;
    }

    .projects-scroll-wrapper {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 100px 0;
        margin-top: -100px;
        margin-bottom: -100px;
    }

    .projects-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

    .projects-grid {
        display: flex;
        flex-direction: row;
        gap: 40px;
        width: fit-content;
        grid-template-columns: none;
        justify-content: flex-start;
        padding: 0 64px;
        overflow: visible;
    }

    .modal-content {
        width: 754px;
        height: 506px;
    }
}

/* Mobile Styles */
@media (max-width: 834px) {
    .hero {
        height: 464px;
    }

    .hero-logo {
        width: 346px;
        height: 256px;
    }

    .hero-headline {
        font-size: 32px;
        letter-spacing: 1.28px;
    }

    .projects {
        padding: 120px 0;
        overflow: hidden;
    }

    .projects .container {
        max-width: none;
        padding: 0;
    }

    .projects-scroll-wrapper {
        position: relative;
        width: 100%;
        padding: 0 24px;
        overflow: hidden;
    }

    .projects-grid {
        position: relative;
        display: block;
        width: 100%;
        max-width: 342px;
        margin: 0 auto;
        perspective: 1200px;
        height: 506px;
    }

    .project-card {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 342px;
        margin: 0;
        transition: transform 0.484s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.363s ease, box-shadow 0.363s ease;
        transform-origin: center center;
        cursor: grab;
        touch-action: pan-y;
    }

    .project-card:active {
        cursor: grabbing;
    }

    /* Add subtle border to card edges */
    .project-card .card-inner {
        border: 0.5px solid rgba(255, 255, 255, 0.05);
    }

    /* When dragging */
    .project-card.dragging {
        transition: none;
        z-index: 40 !important;
    }

    /* When swiped away */
    .project-card.swiped-left {
        transform: translateX(-400px) rotateZ(-15deg) !important;
        opacity: 0 !important;
        pointer-events: none;
    }

    .project-card.swiped-right {
        transform: translateX(400px) rotateZ(15deg) !important;
        opacity: 0 !important;
        pointer-events: none;
    }

    .about {
        padding: 120px 0 0;
    }

    .about-title {
        font-size: 24px;
        letter-spacing: 0.96px;
    }

    .about-text {
        font-size: 16px;
    }

    .cta {
        padding: 0 0 200px;
    }

    .cta-title {
        font-size: 20px;
        letter-spacing: 0.8px;
    }

    .cta-text {
        font-size: 16px;
    }

    /* Mobile Modal - Full Screen */
    .modal-content {
        width: 100%;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        margin: 0;
    }

    .modal-card {
        border-radius: 0;
        height: 100%;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .modal-card-content {
        display: flex;
        width: 390px;
        height: 844px;
        padding: 32px;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        gap: 32px;
    }

    .modal-card-title {
        font-size: 48px;
        letter-spacing: 1.92px;
    }

    .modal-card-description {
        font-size: 16px;
    }

    .modal-card-logo {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .modal-controls {
        top: 16px;
        right: 16px;
    }

    /* Disable glow effects on mobile */
    .modal-content::before {
        display: none;
    }

    .modal-card::before {
        display: none;
    }
}
