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

:root {
    --nav-height: 80px;
    --container-width: 1400px;

    /* Minimalist Monochromatic Theme */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --border-color: #EAEAEA;

    --color-black: #1A1A1A;
    --color-white: #FFFFFF;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Base custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #CCCCCC;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

/* Lenis */
html.lenis {
    height: auto;
}

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

.lenis.lenis-smooth [data-scroll-container] {
    overflow: hidden;
}

/* Navbar Floating Glassmorphism on Scroll */
.navbar-custom {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.navbar-custom.scrolled {
    margin-top: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    width: 95%;
    max-width: 1400px;
    left: 50%;
    transform: translateX(-50%);
}

/* Buttons */
.btn-solid-dark {
    background-color: var(--color-black);
    color: var(--color-white);
    border-radius: 9999px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.btn-solid-dark:hover {
    background-color: #333333;
    color: var(--color-white);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-black);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

/* Hero Section */
.hero-container {
    padding: 1rem;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    height: 75vh;
    min-height: 600px;
    width: 100%;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5rem;
}

@media (max-width: 768px) {
    .hero-overlay {
        width: 100%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
        padding: 0 2rem;
    }
}

/* Service Card */
.service-card .service-img-container {
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
    aspect-ratio: 1/1;
}

.service-card .service-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img-container img {
    transform: scale(1.05);
}

.service-number {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    z-index: 10;
}

.service-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    z-index: 5;
}

/* Portfolio Bento */
.portfolio-bento-item {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    display: block;
}

.portfolio-bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-bento-label {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 10;
    border-bottom: 1px solid white;
    padding-bottom: 2px;
}

.portfolio-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    z-index: 5;
}

.process-step.active .step-dot,
.mobile-process-step.active .step-dot {
    background-color: #1A1A1A;
    border-color: #FFFFFF;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.process-step.active .step-dot {
    transform: translate(-50%, -50%) scale(1.5);
}

.mobile-process-step.active .step-dot {
    transform: scale(1.5);
}

.process-step.active .step-number,
.mobile-process-step.active .step-number {
    opacity: 0.4;
    color: #1A1A1A;
}

.process-step.active .step-title,
.mobile-process-step.active .step-title {
    color: #1A1A1A;
}

.process-step.active .step-text,
.mobile-process-step.active .step-text {
    color: #666666;
}

/* Tech Stack Premium Absolute Gallery */
.tech-gallery {
    position: relative;
    width: 100%;
    height: 600px;
    margin-top: 3rem;
    /* Removed overflow: hidden to allow massive drop-shadows to bleed naturally */
}

.tech-gallery-item {
    position: absolute;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    background-color: transparent !important;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.06));
    will-change: transform, filter;
}

.tech-gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: transparent;
    border-radius: 20px;
    z-index: -2;
    -webkit-mask-image: radial-gradient(circle at 100% 0%, transparent 36.5px, black 37.5px, black 100%);
    mask-image: radial-gradient(circle at 100% 0%, transparent 36.5px, black 37.5px, black 100%);
    opacity: 1;
    transition: background-color 0.3s;
    pointer-events: none;
}

.tech-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    background-clip: padding-box;
    background-color: white;
    border-radius: 20px;
    z-index: -1;
    -webkit-mask-image: radial-gradient(circle at 100% 0%, transparent 38.5px, black 39.5px, black 100%);
    mask-image: radial-gradient(circle at 100% 0%, transparent 38.5px, black 39.5px, black 100%);
    pointer-events: none;
}

.tech-gallery-item:hover {
    transform: translate(-50%, -50%) scale(1.08) !important;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.15));
    background-color: transparent !important;
    z-index: 50 !important;
}

.tech-gallery-item:hover::before {
    background-color: #1A1A1A;
}

.tech-pos-center {
    left: 50%;
    top: 50%;
    width: 320px;
    height: 420px;
    opacity: 1;
    z-index: 40;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1.05);
    background-color: transparent !important;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.15));
}

.tech-pos-center::before {
    background-color: #1A1A1A;
}

.tech-pos-left-in {
    left: calc(50% - 320px);
    top: 50%;
    width: 240px;
    height: 320px;
    opacity: 1;
    z-index: 30;
    pointer-events: auto;
}

.tech-pos-right-in {
    left: calc(50% + 320px);
    top: 50%;
    width: 240px;
    height: 320px;
    opacity: 1;
    z-index: 30;
    pointer-events: auto;
}

.tech-pos-left-out-top {
    left: calc(50% - 570px);
    top: calc(50% - 90px);
    width: 180px;
    height: 140px;
    opacity: 1;
    z-index: 20;
    pointer-events: auto;
}

.tech-pos-left-out-bot {
    left: calc(50% - 570px);
    top: calc(50% + 90px);
    width: 180px;
    height: 140px;
    opacity: 1;
    z-index: 20;
    pointer-events: auto;
}

.tech-pos-right-out-top {
    left: calc(50% + 570px);
    top: calc(50% - 90px);
    width: 180px;
    height: 140px;
    opacity: 1;
    z-index: 20;
    pointer-events: auto;
}

.tech-pos-right-out-bot {
    left: calc(50% + 570px);
    top: calc(50% + 90px);
    width: 180px;
    height: 140px;
    opacity: 1;
    z-index: 20;
    pointer-events: auto;
}

.tech-pos-hidden-left {
    left: calc(50% - 800px);
    top: 50%;
    width: 180px;
    height: 140px;
    opacity: 0;
    z-index: 10;
}

.tech-pos-hidden-right {
    left: calc(50% + 800px);
    top: 50%;
    width: 180px;
    height: 140px;
    opacity: 0;
    z-index: 10;
}

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.title-text {
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.tech-pos-left-out-top .logo-img,
.tech-pos-left-out-bot .logo-img,
.tech-pos-right-out-top .logo-img,
.tech-pos-right-out-bot .logo-img,
.tech-pos-hidden-left .logo-img,
.tech-pos-hidden-right .logo-img {
    transform: scale(0.6);
}

.tech-pos-left-out-top .title-text,
.tech-pos-left-out-bot .title-text,
.tech-pos-right-out-top .title-text,
.tech-pos-right-out-bot .title-text,
.tech-pos-hidden-left .title-text,
.tech-pos-hidden-right .title-text {
    font-size: 14px;
    margin-top: 0.5rem;
}

.tech-pos-left-in .logo-img,
.tech-pos-right-in .logo-img {
    transform: scale(0.85);
}

.tech-pos-left-in .title-text,
.tech-pos-right-in .title-text {
    font-size: 16px;
    margin-top: 0.75rem;
}

.tech-pos-center .logo-img {
    transform: scale(1.3);
}

.tech-pos-center .title-text {
    font-size: 28px;
    margin-top: 1.5rem;
}

/* Responsive adjustments for mobile */
@media (max-width: 1024px) {
    .tech-gallery {
        height: 400px;
    }

    .tech-pos-center {
        width: 240px;
        height: 240px;
    }

    .tech-pos-left-in {
        left: 20%;
        width: 160px;
        height: 240px;
    }

    .tech-pos-right-in {
        left: 80%;
        width: 160px;
        height: 240px;
    }

    .tech-pos-left-out-top,
    .tech-pos-left-out-bot,
    .tech-pos-right-out-top,
    .tech-pos-right-out-bot {
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 640px) {
    .tech-gallery {
        height: 300px;
    }

    .tech-pos-center {
        width: 200px;
        height: 200px;
    }

    .tech-pos-left-in,
    .tech-pos-right-in {
        opacity: 0;
        pointer-events: none;
    }
}
@keyframes float-sprinkle {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
}

.animate-sprinkle {
    animation: float-sprinkle 4s ease-in-out infinite;
}


.tech-gallery-item:hover .animate-sprinkle {
    animation-name: pulse-sprinkle !important;
    animation-duration: 1s !important;
}

@keyframes pulse-sprinkle {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(3.5); opacity: 0; }
}


/* Custom Scrollbar for Modal Content */
#consultationModalContent::-webkit-scrollbar {
    width: 6px;
}
#consultationModalContent::-webkit-scrollbar-track {
    background: transparent; 
}
#consultationModalContent::-webkit-scrollbar-thumb {
    background: #EAEAEA; 
    border-radius: 10px;
}
#consultationModalContent::-webkit-scrollbar-thumb:hover {
    background: #CCCCCC; 
}
