/* --- 1. LOCAL FONT REGISTRATION --- */

/* Normal (Text) Weight - mapped to font-weight: 400 */
@font-face {
    font-family: 'Myriad Set Pro';
    src: url('../fonts/Myriad-Set-Pro/v2/myriad-set-pro_text.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* SemiBold Weight - mapped to font-weight: 600 */
@font-face {
    font-family: 'Myriad Set Pro';
    src: url('../fonts/Myriad-Set-Pro/v2/myriad-set-pro_semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* Bold Weight - mapped to font-weight: 700 */
@font-face {
    font-family: 'Myriad Set Pro';
    src: url('../fonts/Myriad-Set-Pro/v2/myriad-set-pro_bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* --- 2. GLOBAL RESETS --- */
body {
    overflow-x: hidden;
    /* Force the body to use the new font */
    font-family: 'Myriad Set Pro', sans-serif;
}

/* --- 3. NAVIGATION --- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #F26620;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- 4. ANIMATIONS --- */

/* Living Gradient */
.living-gradient {
    background-size: 200% auto;
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Floating Cards */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating-card {
    animation: float 6s ease-in-out infinite;
    transition: transform 0.1s ease-out;
}

.floating-card:hover {
    z-index: 50 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

/* Delays */
.delay-1 {
    animation-delay: 0s;
}

.delay-2 {
    animation-delay: 1s;
}

.delay-3 {
    animation-delay: 2s;
}

.delay-4 {
    animation-delay: 3s;
}

.delay-5 {
    animation-delay: 4s;
}

/* Marquee Scroll */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

/* --- 5. MOBILE NAVIGATION --- */

/* The Menu Overlay (Hidden state) */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    transform: translateY(-100%);
    /* Hidden above screen */
    opacity: 1 !important;
}

/* Open state */
#mobile-menu.open {
    transform: translateY(0);
    /* Slide down */
}

/* Hamburger Line Animations */
.hamburger-line {
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

/* Rotate Top Line */
.menu-active .line-1 {
    transform: translateY(6px) rotate(45deg);
}

/* Hide Middle Line */
.menu-active .line-2 {
    opacity: 0;
}

/* Rotate Bottom Line */
.menu-active .line-3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* --- BRUTALIST 3D CUBE --- */
.scene {
    width: 200px;
    height: 200px;
    perspective: 800px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 10s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    /* Or Myriad Set Pro */
    font-weight: 900;
    font-size: 2rem;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Positioning Faces */
.front {
    transform: rotateY(0deg) translateZ(100px);
}

.right {
    transform: rotateY(90deg) translateZ(100px);
}

.back {
    transform: rotateY(180deg) translateZ(100px);
}

.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.top {
    transform: rotateX(90deg) translateZ(100px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotateCube {
    from {
        transform: rotateX(-15deg) rotateY(0deg);
    }

    to {
        transform: rotateX(-15deg) rotateY(360deg);
    }
}

/* Text Stroke Utility */
.text-stroke-2 {
    -webkit-text-stroke: 2px black;
}

/* --- UTILITIES --- */
.living-gradient {
    background-size: 200% auto;
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* --- MANIFESTO TRANSITION --- */
#manifesto {
    transition: transform 0.1s linear, opacity 0.1s linear;
    /* Initial state handled by JS/CSS interaction */
}

/* 1. The Hard Shadow (No blur, solid offset) */
.brutal-card {
    border: 3px solid #000;
    box-shadow: 6px 6px 0px 0px #000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

.group:hover .brutal-card {
    transform: translate(-2px, -2px) rotate(0deg) !important;
    box-shadow: 10px 10px 0px 0px #F26620;
}

/* 2. Tilted Marquee */
.marquee-strip {
    transform: rotate(-2deg) scale(1.05);
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
    background: #fff;
}

/* 3. CSS 3D CUBE (The "Zing" Element) */
.scene {
    width: 100px;
    height: 100px;
    perspective: 600px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: spin 8s infinite linear;
}

.face {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 3px solid black;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: monospace;
    font-size: 1.5rem;
}

.front {
    transform: rotateY(0deg) translateZ(50px);
    background: #F26620;
    color: white;
}

.back {
    transform: rotateY(180deg) translateZ(50px);
    background: #0076BD;
    color: white;
}

.right {
    transform: rotateY(90deg) translateZ(50px);
    background: white;
    color: black;
}

.left {
    transform: rotateY(-90deg) translateZ(50px);
    background: black;
    color: white;
}

.top {
    transform: rotateX(90deg) translateZ(50px);
    background: white;
}

.bottom {
    transform: rotateX(-90deg) translateZ(50px);
    background: black;
}

@keyframes spin {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* 4. Floating Animation */
.float-y {
    animation: floatY 4s ease-in-out infinite;
}

@keyframes floatY {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* --- SERVICES PAGE SPECIFICS --- */

/* 1. SIDEBAR NAVIGATION */
.service-nav-item {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.5;
    filter: grayscale(100%);
}

.service-nav-item.active {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(242, 102, 32, 0.3);
    border-color: #F26620;
}

/* 2. NEO-BRUTALIST TAGS (Marketing Section) */
.brut-tag {
    background: #fff;
    border: 2px solid #000;
    box-shadow: 4px 4px 0px #000;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.1s;
}

.brut-tag:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #F26620;
}

/* 3. BLUEPRINT GRID (Infrastructure Section) */
.bg-blueprint {
    background-color: #f0f4f8;
    background-image:
        linear-gradient(#0076BD 1px, transparent 1px),
        linear-gradient(90deg, #0076BD 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
}

.bg-blueprint::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 20%, #f0f4f8 100%);
}

/* 4. READ MORE BUTTON (Minimal Animated) */
.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.btn-read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.btn-read-more:hover::after {
    width: 100%;
}

.btn-read-more:hover .arrow-icon {
    transform: translateX(4px);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

/* 5. DARK MODE TERMINAL (Dev Section) */
.terminal-card {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid #333;
    box-shadow: 0 0 30px rgba(0, 118, 189, 0.1);
}

/* --- MULTI-UNIVERSE UTILITIES --- */

/* 1. Fluid Blobs (For Design Page) */
.fluid-blob {
    animation: blobBounce 10s infinite ease-in-out;
}

@keyframes blobBounce {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* 2. Marquee Text (For Marketing Page) */
.marquee-text {
    animation: scrollText 20s linear infinite;
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* 3. Reveal on Scroll (General) */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- UNIVERSAL DOCK UTILITIES --- */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Active State Styling (Auto-applied by JS below) */
.dock-item.active {
    background-color: #F3F4F6;
    /* Gray-100 */
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.dock-item.active svg {
    color: #F26620;
    /* Brand Orange */
    transform: scale(1.1);
}

.service-checkbox:checked+div {
    border-color: #F26620;
    background-color: rgba(242, 102, 32, 0.1);
    box-shadow: 0 0 20px rgba(242, 102, 32, 0.2);
}

.service-checkbox:checked+div .check-icon {
    opacity: 1;
    transform: scale(1);
}

/* Floating Astronaut/Character Animation */
.float-character {
    animation: floatChar 6s ease-in-out infinite;
}

@keyframes floatChar {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

/* 1. APP STYLE (Cyber/Dark) */
.card-app {
    background: #050505;
    color: white;
    border: 1px solid #333;
}

.card-app:hover {
    border-color: #0076BD;
    box-shadow: 0 0 30px rgba(0, 118, 189, 0.2);
}

/* 2. BRANDING STYLE (Paper/Tactile) */
.card-brand {
    background: #fff;
    transform: rotate(-1deg);
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card-brand::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: -5px;
    bottom: -5px;
    background: #f3f4f6;
    z-index: -1;
    transform: rotate(2deg);
}

/* 3. MARKETING STYLE (Brutalist) */
.card-mktg {
    background: #F26620;
    border: 4px solid black;
    box-shadow: 8px 8px 0px black;
    color: white;
}

.card-mktg:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px black;
}

/* Filter Transition */
.portfolio-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    opacity: 1;
}

.portfolio-item.hidden-item {
    transform: scale(0.8);
    opacity: 0;
    position: absolute;
    /* Remove from flow */
    pointer-events: none;
}

.ping-slow {
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Map Grayscale Filter */
.map-frame iframe {
    filter: grayscale(100%) invert(92%) contrast(85%);
    transition: filter 0.5s;
}

.map-frame:hover iframe {
    filter: grayscale(0%);
}