@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Font Faces - Using CDN with fallbacks */
@font-face {
    font-family: 'ES Rebond Grotesque TRIAL';
    src: url('https://cdn.prod.website-files.com/66fd97be4bc82e6bc51c7d05/66fdd16cfb404b03bc60ec97_ESRebondGrotesque-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ES Rebond Grotesque TRIAL';
    src: url('https://cdn.prod.website-files.com/66fd97be4bc82e6bc51c7d05/66fdd16de4ff1c309a98e5c4_ESRebondGrotesque-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ES Rebond Grotesque TRIAL';
    src: url('https://cdn.prod.website-files.com/66fd97be4bc82e6bc51c7d05/66fdd16c5b83c45ce23d9e4f_ESRebondGrotesque-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ES Rebond Grotesque TRIAL';
    src: url('https://cdn.prod.website-files.com/66fd97be4bc82e6bc51c7d05/66fdd16ccc74c20d60a33965_ESRebondGrotesque-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --color-bg: #FFFFFF;
    --color-secondary-bg: #f3efe7;
    --color-text: #24252c;
    --color-text-secondary: #111111;
    --color-border: #e7e5e4;
    --font-heading: 'ES Rebond Grotesque TRIAL', 'Inter', sans-serif;
    --font-body: 'ES Rebond Grotesque TRIAL', 'Inter', sans-serif;
}

/* Custom text selection color */
::selection {
    background-color: var(--color-secondary-bg);
    color: var(--color-text);
}

::-moz-selection {
    background-color: var(--color-secondary-bg);
    color: var(--color-text);
}

html {
    scroll-behavior: smooth;
}

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

/* ============================================ */
/* HEADER */
/* ============================================ */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px 0px 40px;
    position: relative;
    background: var(--color-bg);
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 40px;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-container {
    background: var(--color-secondary-bg);
    border-radius: 100px;
    padding: 3px;
}

.nav-pill {
    display: flex;
    gap: 3px;
}

.nav-link {
    padding: 8px 20px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link.active {
    background: white;
}

.nav-link:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

.contact-info {
    text-align: right;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 20px;
    color: var(--color-text);
    opacity: 0.7;
}

.contact-info p {
    margin: 0;
}

.contact-info a {
    color: inherit;
    text-decoration: none;
}

/* ============================================ */
/* HERO SECTION */
/* ============================================ */

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 40px 0px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 600;
    line-height: normal;
    color: var(--color-text);
    margin-bottom: 24px;
}

.hero-title .word {
    display: inline-block;
    opacity: 0;
    filter: blur(10px);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 32px;
    font-weight: 400;
    line-height: 40px;
    color: var(--color-text);
    opacity: 0.7;
}

.hero-subtitle .subtitle-word {
    display: inline-block;
    opacity: 0;
    filter: blur(10px);
}

/* ============================================ */
/* CUSTOM CURSOR */
/* ============================================ */

.custom-cursor {
    position: fixed;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #000000;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.custom-cursor.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ============================================ */
/* CLICK SPARK EFFECT */
/* ============================================ */

click-spark {
    --click-spark-color: #000000;
}

/* ============================================ */
/* APPS CAROUSEL SECTION */
/* ============================================ */

.apps-carousel-section {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 80px 0 100px 0;
    margin-top: 80px;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.apps-carousel-wrapper {
    width: 100%;
    height: 100%;
}

.carousel-container {
    display: flex;
    gap: 40px;
    padding: 0 40px;
    will-change: transform;
    width: max-content;
    cursor: none;
    user-select: none;
}

.app-card {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex-shrink: 0;
    white-space: normal;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.card-arrow {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    background: #000000;
    border-radius: 100px;
    padding: 12px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
    color: #ffffff;
}

.app-card:hover .card-arrow {
    opacity: 1;
    transform: scale(1);
}

.app-image {
    width: 450px;
    height: 600px;
    border-radius: 80px;
    overflow: hidden;
    position: relative;
    background: var(--color-secondary-bg);
    pointer-events: none;
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.app-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
}

.input-display {
    background: rgba(93, 159, 191, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 16px 24px;
    color: white;
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 28px;
}

.app-description {
    max-width: 400px;
    pointer-events: none;
}

.app-description h3 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: normal;
    color: #1c1c29;
    margin-bottom: 16px;
    white-space: normal;
}

.app-description p {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    color: #1c1c29;
    white-space: normal;
}

/* ============================================ */
/* WORK CAROUSEL SECTION */
/* ============================================ */

.work-carousel-section {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 80px 0 100px 0;
    margin-top: 80px;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.work-carousel-wrapper {
    width: 100%;
    height: 100%;
}

.work-carousel-container {
    display: flex;
    gap: 40px;
    padding: 0 40px;
    will-change: transform;
    width: max-content;
    cursor: none;
    user-select: none;
}

.work-card {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex-shrink: 0;
    white-space: normal;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.work-image {
    width: 450px;
    height: 600px;
    border-radius: 80px;
    overflow: hidden;
    position: relative;
    background: var(--color-secondary-bg);
    pointer-events: none;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.work-description {
    max-width: 400px;
    pointer-events: none;
}

.work-description h3 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: normal;
    color: #1c1c29;
    margin-bottom: 16px;
    white-space: normal;
}

.work-description p {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    color: #1c1c29;
    white-space: normal;
}

/* ============================================ */
/* ABOUT SECTION */
/* ============================================ */

.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
    padding: 400px 40px;
}

.about-content {
    max-width: 980px;
    text-align: center;
}

.about-text {
    font-family: var(--font-body);
    font-size: 60px;
    font-weight: 400;
    line-height: normal;
    color: var(--color-text);
}

.about-text .text-word {
    display: inline;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.about-image-container {
    width: 100%;
    max-width: 1720px;
}

.about-image {
    width: 100%;
    height: 977px;
    border-radius: 100px;
    overflow: hidden;
    background: var(--color-secondary-bg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================ */
/* EXPERTISE SECTION */
/* ============================================ */

.expertise-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
    padding: 100px 40px 0px 40px;
}

.expertise-content {
    max-width: 980px;
    text-align: center;
}

.expertise-intro {
    font-family: var(--font-body);
    font-size: 60px;
    font-weight: 400;
    line-height: normal;
    color: var(--color-text);
}

.expertise-intro .text-word {
    display: inline;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.expertise-intro .highlight {
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-position: from-font;
}

.expertise-categories {
    background: #fff6f0;
    border-radius: 100px;
    padding: 100px;
    width: 100%;
    max-width: 1720px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.category-item {
    background: #f1e7db;
    border-radius: 999px;
    padding: 12px 20px 12px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-label {
    font-family: var(--font-body);
    font-size: 40px;
    font-weight: 400;
    line-height: 60px;
    color: #000000;
}

.category-icon {
    background: #ead8bf;
    border-radius: 100px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    width: 32px;
    height: 32px;
}

/* ============================================ */
/* SUPERIC SECTION */
/* ============================================ */

.superic-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 400px 40px;
}

.superic-content {
    max-width: 980px;
    text-align: center;
}

.superic-content p {
    font-family: var(--font-body);
    font-size: 60px;
    font-weight: 400;
    line-height: normal;
    color: var(--color-text);
    margin-bottom: 0;
}

.superic-content .text-word {
    display: inline;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

/* ============================================ */
/* FOOTER SECTION */
/* ============================================ */

.footer-section {
    padding: 0 0 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 100px;
    width: 100%;
}

.footer-hero-image {
    width: 800px;
    height: 368px;
    border-radius: 100px;
    overflow: hidden;
    background: var(--color-secondary-bg);
}

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

.footer-title {
    font-family: var(--font-heading);
    font-size: 80px;
    font-weight: 500;
    line-height: 80px;
    color: #000000;
    text-align: center;
    max-width: 980px;
    margin: 0;
}

.footer-title .text-word {
    display: inline-block;
    opacity: 0;
    filter: blur(10px);
}

.footer-actions {
    display: flex;
    gap: 32px;
    align-items: center;
}

.footer-btn-primary {
    background: #0c0a09;
    color: white;
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-btn-primary:hover {
    background: #1c1917;
    transform: scale(1.05);
}

.footer-social-btn {
    width: 48px;
    height: 48px;
    border-radius: 11px;
    background: var(--color-secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-btn:hover {
    background: #e7e5e4;
    transform: scale(1.1);
}

.footer-bottom {
    width: 1720px;
    max-width: calc(100% - 80px);
}

.footer-divider {
    width: 100%;
    height: 60px;
    margin-bottom: 40px;
    cursor: default;
    position: relative;
}

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

.footer-bottom-content p {
    font-family: var(--font-body);
    font-size: 20px;
    color: #716f6f;
    width: 250px;
    margin: 0;
}

.footer-copyright {
    text-align: left;
}

.footer-location {
    text-align: center;
}

.footer-time {
    text-align: right;
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

@media (max-width: 1400px) {
    .header {
        padding: 20px 40px 0px 40px;
    }
    
    .about-section,
    .expertise-section,
    .superic-section {
        padding: 300px 40px;
    }
    
    .expertise-categories {
        padding: 60px;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }
    
    .hero-subtitle {
        font-size: 24px;
        line-height: 32px;
    }
    
    .about-text,
    .expertise-intro,
    .superic-content p {
        font-size: 40px;
    }
    
    .app-image {
        width: 380px;
        height: 500px;
        border-radius: 60px;
    }
    
    .work-image {
        width: 380px;
        height: 500px;
        border-radius: 60px;
    }
    
    .footer-title {
        font-size: 56px;
        line-height: 64px;
    }
    
    .category-label {
        font-size: 32px;
        line-height: 48px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 24px;
        padding: 24px;
    }
    
    .profile-image {
        width: 80px;
        height: 80px;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 6px 16px;
    }
    
    .contact-info {
        text-align: center;
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 20px;
        line-height: 28px;
    }
    
    .apps-carousel-section {
        padding: 60px 0 60px 24px;
    }
    
    .app-card {
        gap: 20px;
    }
    
    .app-image {
        width: 300px;
        height: 400px;
        border-radius: 40px;
    }
    
    .app-description h3 {
        font-size: 28px;
    }
    
    .app-description p {
        font-size: 18px;
        line-height: 24px;
    }
    
    .about-section,
    .expertise-section,
    .superic-section {
        padding: 120px 24px;
        gap: 60px;
    }
    
    .about-text,
    .expertise-intro,
    .superic-content p {
        font-size: 28px;
    }
    
    .about-image {
        height: 500px;
        border-radius: 40px;
    }
    
    .expertise-categories {
        padding: 40px 24px;
        gap: 16px;
    }
    
    .category-item {
        padding: 8px 12px 8px 24px;
    }
    
    .category-label {
        font-size: 20px;
        line-height: 32px;
    }
    
    .category-icon {
        width: 48px;
        height: 48px;
    }
    
    .category-icon img {
        width: 24px;
        height: 24px;
    }
    
    .work-carousel {
        padding-left: 24px;
    }
    
    .work-image {
        width: 300px;
        height: 400px;
        border-radius: 40px;
    }
    
    .footer-section {
        padding: 0 24px 40px;
    }
    
    .footer-content-wrapper {
        padding: 60px 24px;
    }
    
    .footer-hero-image {
        width: 100%;
        max-width: 100%;
        height: 200px;
        border-radius: 40px;
    }
    
    .footer-title {
        font-size: 40px;
        line-height: 48px;
        max-width: 100%;
    }
    
    .footer-actions {
        gap: 16px;
    }
    
    .footer-btn-primary {
        font-size: 18px;
        padding: 10px 20px;
    }
    
    .footer-social-btn {
        width: 40px;
        height: 40px;
    }
    
    .footer-social-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .footer-bottom {
        width: 100%;
        padding: 0 24px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-bottom-content p {
        width: 100%;
        text-align: center !important;
        font-size: 16px;
    }
}

/* ============================================ */
/* V2 GRID LAYOUT OVERRIDES */
/* ============================================ */

/* Apps Grid Section */
.apps-grid-section {
    padding: 80px;
}

.apps-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 450px);
    gap: 80px;
    justify-content: center;
}

.app-card {
    cursor: pointer;
    transform-origin: center center;
    will-change: transform;
}

/* Work Grid Section */
.work-grid-section {
    padding: 80px;
}

.work-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 450px);
    gap: 80px;
    justify-content: center;
}

.work-card {
    cursor: pointer;
    transform-origin: center center;
    will-change: transform;
}

/* V2 Responsive adjustments */
@media (max-width: 1600px) {
    .apps-grid-container,
    .work-grid-container {
        grid-template-columns: repeat(2, 450px);
    }
}

@media (max-width: 1100px) {
    .apps-grid-container,
    .work-grid-container {
        grid-template-columns: 450px;
    }
}

@media (max-width: 600px) {
    .apps-grid-section,
    .work-grid-section {
        padding: 40px 20px;
    }
    
    .apps-grid-container,
    .work-grid-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .app-image,
    .work-image {
        height: auto;
        width: 100%;
        border-radius: 80px;
    }
    
    .app-description h3,
    .work-description h3 {
        font-size: 28px;
    }
    
    .app-description p,
    .work-description p {
        font-size: 18px;
        line-height: 26px;
    }
    
    .card-arrow {
        top: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
        padding: 8px;
    }
}
