@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

.launcher-page {
    --launcher-font-title: 'Barlow Condensed', 'Be Vietnam Pro', sans-serif;
    --launcher-font-body: 'Be Vietnam Pro', sans-serif;
    --launcher-bg: #111111;
    --launcher-accent: #c2e9fb;
    --launcher-accent-2: #a1c4fd;
    --launcher-accent-3: #fcb69f;
    --launcher-text: #ffffff;
    --launcher-muted: #bcbcbc;
    --launcher-line: rgba(255, 255, 255, 0.1);
    
    background-color: var(--launcher-bg);
    color: var(--launcher-text);
    font-family: var(--launcher-font-body);
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle Ambient Noise Overlay */
.launcher-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: #313131;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Typography Overrides with Vietnamese Support */
.launcher-page h1, 
.launcher-page h2 {
    font-family: var(--launcher-font-title);
    text-transform: uppercase;
    color: var(--launcher-text);
    font-weight: 700;
}

.launcher-page h3 {
    font-family: var(--launcher-font-body);
    letter-spacing: 6px;
    color: var(--launcher-text);
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 2rem;
}

.launcher-page p {
    font-size: 1rem;
    color: var(--launcher-muted);
    line-height: 1.6;
}

/* Custom Cursor */
.launcher-page.has-custom-cursor,
.launcher-page.has-custom-cursor a,
.launcher-page.has-custom-cursor button,
.launcher-page.has-custom-cursor .single_project {
    cursor: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-ring {
    width: 100px;
    height: 100px;
    background: #fff;
    opacity: 0.3;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) scale(0.2);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, background-color 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cursor-ring svg.cursor-arrow {
    opacity: 0;
    width: 28px;
    height: 28px;
    transform: scale(0.6) rotate(45deg);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cursor-ring.is-hovering {
    opacity: 0.15;
    transform: translate(-50%, -50%) scale(0.7);
    background: #fff;
}

.cursor-ring.active-project {
    opacity: 1;
    background-color: #ffffff;
    transform: translate(-50%, -50%) scale(1);
}

.cursor-ring.active-project svg.cursor-arrow {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

@media screen and (max-width: 1024px) {
    .cursor-dot, .cursor-ring {
        display: none !important;
    }
    .launcher-page.has-custom-cursor {
        cursor: auto !important;
    }
}

/* Header & Navigation Styling */
.launcher-page header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 50px;
    background: rgba(17, 17, 17, 0.85);
    border-bottom: 1px solid var(--launcher-line);
    backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease;
}

.launcher-page header.hide-navbar {
    transform: translateY(-100%);
}

.launcher-page .logo {
    font-family: var(--launcher-font-title);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--launcher-text);
    text-shadow: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.launcher-page nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.launcher-page nav ul li {
    display: inline-block;
}

.launcher-page nav ul li a {
    font-family: var(--launcher-font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--launcher-text);
    opacity: 0.7;
    padding: 8px 30px;
    transition: opacity 0.35s ease;
    text-decoration: none;
}

.launcher-page nav ul li a:hover,
.launcher-page nav ul li a.active {
    opacity: 1;
    color: var(--launcher-text);
}

/* Dropdown Menu */
.launcher-page .nav-dropdown {
    position: relative;
}

.launcher-page .nav-dropdown-content {
    display: none;
    position: absolute;
    background-color: #151515;
    min-width: 520px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.8);
    z-index: 101;
    border-radius: 8px;
    border: 1px solid var(--launcher-line);
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
}

.launcher-page .nav-dropdown-content a {
    color: var(--launcher-text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    letter-spacing: 0;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    text-align: left;
    opacity: 0.8;
}

.launcher-page .nav-dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    opacity: 1;
}

.launcher-page .nav-dropdown-content.multi-column {
    width: min(92vw, 760px);
    min-width: min(92vw, 560px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    padding: 14px;
}

.launcher-page .nav-dropdown-content.multi-column a {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.15;
}

.launcher-page .nav-dropdown-content.multi-column a i {
    margin-right: 0 !important;
    width: 20px !important;
    text-align: center;
}

.launcher-page .nav-dropdown-content.multi-column a span {
    min-width: 0;
}

.launcher-page .nav-dropdown:hover .nav-dropdown-content.multi-column {
    display: grid;
}

/* Mobile Toggle */
.launcher-page .nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--launcher-line);
    color: var(--launcher-text);
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: 4px;
}

/* Main Wrapper */
.launcher-main {
    max-width: 100%;
    padding: 0;
    margin-top: 60px;
}

/* Hero Section */
.launcher-page .portfolio-hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 80px 40px;
    box-sizing: border-box;
    overflow: hidden;
}

.launcher-page .hero-heading-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    will-change: transform, opacity;
}

.launcher-page .portfolio-hero h1.split-wave-title {
    font-family: var(--launcher-font-title);
    font-size: clamp(2.8rem, 9.5vw, 11rem);
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    /* GPU compositing — smooth 45x scale zoom, no flicker */
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Character Wave Loading Spans */
.launcher-page .char-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    position: relative;
    flex-shrink: 0;
}

.launcher-page .char-inner {
    display: inline-block;
    /* Static gradient per char — NO animation to avoid flicker during zoom */
    background: linear-gradient(135deg, var(--launcher-accent) 0%, var(--launcher-accent-2) 50%, var(--launcher-accent-3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(115%);
    opacity: 0;
    will-change: transform, opacity;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.launcher-page .char-inner.is-revealed {
    transform: translateY(0%);
    opacity: 1;
}

.launcher-page .title-icon-img {
    height: 0.72em;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    transform: translateY(-0.06em);
    margin: 0 0.02em;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.launcher-page .hero-grid {
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 700px;
    margin: 40px auto 0 auto;
}

.launcher-page .hero-lead {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--launcher-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Rotating Text Circle (Bottom Left of Hero Only) */
.launcher-page .circular_text--container {
    position: absolute;
    bottom: 40px;
    left: 40px;
    width: 100px;
    height: 100px;
    z-index: 10;
    pointer-events: none;
    animation: rotateText 15s linear infinite;
}

.launcher-page .circular_text--container svg {
    width: 100%;
    height: 100%;
}

.launcher-page .circular_text--container path {
    fill: none;
}

.launcher-page .circular_text--container text {
    fill: rgba(255, 255, 255, 0.6);
}

/* Outlined Marquee */
.launcher-page .marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 40px 0;
    border-top: 1px solid var(--launcher-line);
    border-bottom: 1px solid var(--launcher-line);
    background-color: #111111;
}

.launcher-page .marquee-track {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.launcher-page .marquee-track span {
    font-family: var(--launcher-font-title);
    font-size: clamp(2.5rem, 6vw, 6rem);
    text-transform: uppercase;
    padding: 0 40px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
    letter-spacing: 2px;
}

/* Capabilities (Intro Layout) */
.launcher-page .intro-layout {
    max-width: 1400px;
    margin: 160px auto;
    padding: 0 50px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.launcher-page .intro-layout h2 {
    font-family: var(--launcher-font-title);
    font-size: clamp(2.5rem, 5.5vw, 5.5rem);
    line-height: 1.0;
    font-weight: 700;
    margin: 0;
    letter-spacing: -1px;
}

.launcher-page .capability-list {
    display: flex;
    flex-direction: column;
}

.launcher-page .capability-list article {
    border-bottom: 1px solid var(--launcher-line);
    padding: 35px 0;
    position: relative;
    padding-left: 50px;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.launcher-page .capability-list article:first-child {
    border-top: 1px solid var(--launcher-line);
}

.launcher-page .capability-list article span {
    position: absolute;
    left: 0;
    top: 38px;
    font-family: var(--launcher-font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--launcher-muted);
}

.launcher-page .capability-list article strong {
    font-family: var(--launcher-font-title);
    font-size: 2.2rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.launcher-page .capability-list article:hover strong {
    color: var(--launcher-accent-2);
}

.launcher-page .capability-list article p {
    margin: 0;
    font-size: 15px;
    color: var(--launcher-muted);
    line-height: 1.6;
}

/* Screenshot Deck Cards Section */
.launcher-page .home_portfolio--wrapper {
    max-width: 1400px;
    margin: 160px auto;
    padding: 0 50px;
    position: relative;
}

.launcher-page .featured_projects {
    display: flex;
    flex-direction: column;
    gap: 8vh;
    padding-bottom: 10vh;
}

.launcher-page .single_project {
    width: 100%;
    height: 78vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 12vh;
    border-radius: 16px;
    border: 1px solid var(--launcher-line);
    background-color: #161616;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    transition: transform 0.4s ease;
}

/* Single Top-Right Tag */
.launcher-page .card-tag-top-right {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 10;
    padding: 10px 22px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--launcher-font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Full Image View Container */
.launcher-page .single_project .project_picture--container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
}

.launcher-page .single_project .project_picture--container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.launcher-page .single_project:hover .project_picture--container img {
    transform: scale(1.02);
}

/* Closing Panel (Emanuele CTA Style) */
.launcher-page .cta_footer--container {
    width: 100%;
    min-height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--launcher-accent-2) 0%, #1e3a5f 100%);
    z-index: 1;
    overflow: hidden;
    padding: 100px 50px;
    box-sizing: border-box;
    margin-top: 100px;
}

.launcher-page .cta_footer--container .cta--container {
    max-width: 1400px;
    width: 100%;
    position: relative;
    text-align: center;
    z-index: 3;
}

.launcher-page .cta_footer--container .cta--container .title {
    font-family: var(--launcher-font-title);
    font-size: clamp(3.5rem, 11vw, 12rem);
    color: #ffffff;
    text-transform: uppercase;
    line-height: 0.85;
    margin-bottom: 50px;
    font-weight: 800;
}

/* Lovely Button Styling */
.launcher-page .lovely_button {
    font-family: var(--launcher-font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    background-color: #111111;
    padding: 20px 42px;
    border-radius: 99px;
    position: relative;
    display: inline-block;
    color: #ffffff;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: color 0.5s cubic-bezier(0.77, 0, 0.175, 1), border-color 0.5s ease;
    text-decoration: none;
    overflow: hidden;
}

.launcher-page .lovely_button .text {
    position: relative;
    z-index: 5;
    transition: color 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.launcher-page .lovely_button::before {
    content: '';
    background-color: #ffffff;
    width: 12px;
    height: 12px;
    display: block;
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.launcher-page .lovely_button:hover {
    border-color: #ffffff;
}

.launcher-page .lovely_button:hover .text {
    color: #111111;
}

.launcher-page .lovely_button:hover::before {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transform: none;
    border-radius: 0;
}

/* Footer Wrapper */
.launcher-page .footer--wrapper {
    padding: 60px 50px 0 50px;
    width: 100%;
    max-width: 1400px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 80px;
    position: relative;
    z-index: 3;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.launcher-page .footer--wrapper .col {
    width: 33%;
    font-family: var(--launcher-font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.launcher-page .footer--wrapper .col .other-links {
    text-align: center;
}

.launcher-page .footer--wrapper .col .other-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 8px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.launcher-page .footer--wrapper .col .other-links a:hover {
    color: #ffffff;
}

.launcher-page .footer--wrapper .col:nth-child(3) {
    text-align: right;
}

/* Keyframe Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes rotateText {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsiveness */
@media screen and (max-width: 1150px) {
    .launcher-page header {
        padding: 20px 30px;
    }
    .launcher-page nav ul li a {
        padding: 8px 15px;
    }

    .launcher-page .nav-dropdown-content.multi-column {
        width: min(92vw, 680px);
        min-width: min(92vw, 520px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .launcher-page .portfolio-hero {
        padding: 80px 30px;
    }
    .launcher-page .intro-layout {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 0 30px;
        margin: 100px auto;
    }
    .launcher-page .home_portfolio--wrapper {
        padding: 0 30px;
        margin: 100px auto;
    }
    .launcher-page .single_project {
        height: 65vh;
    }
    .launcher-page .footer--wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }
    .launcher-page .footer--wrapper .col {
        width: 100%;
        text-align: center !important;
    }
}

@media screen and (max-width: 768px) {
    .launcher-page .nav-toggle {
        display: block;
    }
    
    .launcher-page nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #111;
        padding: 20px;
        border-bottom: 1px solid var(--launcher-line);
    }
    
    .launcher-page nav.show {
        display: block;
    }
    
    .launcher-page nav ul {
        flex-direction: column;
        align-items: stretch;
    }
    
    .launcher-page nav ul li a {
        display: block;
        text-align: center;
        padding: 12px;
    }

    .launcher-page .nav-dropdown-content.multi-column {
        width: 100%;
        min-width: 0;
        grid-template-columns: 1fr;
    }

    .launcher-page .nav-dropdown-content.multi-column a {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        text-align: left;
    }
    
    .launcher-page .single_project {
        height: 55vh;
    }
    
    .launcher-page .card-tag-top-right {
        top: 15px;
        right: 15px;
        padding: 6px 14px;
        font-size: 11px;
    }
    
    .launcher-page .cta_footer--container {
        padding: 80px 20px;
    }
}
