/* ============================================
   MYPRO SOLUSINDO INFORMATIKA - CUSTOM CSS
   Premium Design System
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
    --red-primary: #C41E3A;
    --red-vivid: #FF2D55;
    --red-dark: #8B0000;
    --red-glow: rgba(196, 30, 58, 0.4);
    --red-glow-vivid: rgba(255, 45, 85, 0.3);
    --bg-dark: #080810;
    --bg-surface: #0F0F1A;
    --bg-card: #141420;
    --bg-card-hover: #1A1A2E;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B8;
    --text-muted: #606080;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-red: rgba(196, 30, 58, 0.3);
    --font-main: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --ease-premium: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s var(--ease-premium);
    --transition-base: 0.4s var(--ease-premium);
    --transition-slow: 0.7s var(--ease-premium);
    --shadow-red: 0 0 30px rgba(196, 30, 58, 0.4), 0 0 60px rgba(196, 30, 58, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* ---- Base Reset ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 5px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--red-primary), var(--red-vivid));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-vivid);
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--red-glow), 0 0 40px var(--red-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--red-glow-vivid), 0 0 80px var(--red-glow-vivid), 0 0 120px rgba(196, 30, 58, 0.1);
    }
}

@keyframes glowPulseText {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(255, 45, 85, 0.5);
    }

    50% {
        text-shadow: 0 0 40px rgba(255, 45, 85, 0.9), 0 0 80px rgba(255, 45, 85, 0.4);
    }
}

@keyframes float {

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

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

@keyframes floatSlow {

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

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

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

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

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

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes drawLine {
    from {
        stroke-dashoffset: 1000;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes logoGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(196, 30, 58, 0.6)) drop-shadow(0 0 30px rgba(196, 30, 58, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(255, 45, 85, 0.9)) drop-shadow(0 0 60px rgba(255, 45, 85, 0.5));
    }
}

@keyframes logoScale {
    0% {
        transform: scale(0.5) rotate(-10deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.08) rotate(2deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes progressFill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

@keyframes loaderExit {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.05);
        pointer-events: none;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

@keyframes slideCarousel {
    from {
        transform: translateX(0);
    }

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

@keyframes textReveal {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0% 0 0);
    }
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: rgba(196, 30, 58, 0.3);
    }

    50% {
        border-color: rgba(255, 45, 85, 0.7);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navSlideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes glitchEffect {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-3px, 3px);
    }

    40% {
        transform: translate(-3px, -3px);
    }

    60% {
        transform: translate(3px, 3px);
    }

    80% {
        transform: translate(3px, -3px);
    }

    100% {
        transform: translate(0);
    }
}

@keyframes morphGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes scanLine {
    0% {
        top: -5%;
    }

    100% {
        top: 105%;
    }
}

/* ============================================
   MODALS
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #141420;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.open .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--red-primary);
    transform: rotate(90deg);
}


/* Premium Modal Styles (Product & Project) */
.modal-content.product-modal-content,
.modal-content.project-modal-content {
    width: 95%;
    height: 90%;
    max-width: none;
    max-height: none;
    transform: scale(0.95) translateY(20px);
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-overlay.open .modal-content.product-modal-content,
.modal-overlay.open .modal-content.project-modal-content {
    transform: scale(1) translateY(0);
}

.project-modal-visual {
    background: radial-gradient(circle at 50% 50%, #1a0505 0%, #000000 100%);
}

.stagger-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.modal-overlay.open .stagger-fade-up {
    opacity: 1;
    transform: translateY(0);
}

.stagger-fade-up:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-fade-up:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-fade-up:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-fade-up:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-fade-up:nth-child(5) {
    transition-delay: 0.5s;
}

/* Magnetic Button */
.magnetic-btn {
    transition: transform 0.2s ease;
}

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

.legal-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-text ul {
    list-style-type: disc;
    padding-left: 20px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(ellipse at center, #12051A 0%, #080810 60%, #000000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium);
}

#loading-screen.exit {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}

.loader-logo-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.loader-logo-wrap img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    animation: logoScale 1s var(--ease-bounce) forwards, logoGlow 2s ease-in-out 1s infinite;
    border-radius: 16px;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    background: conic-gradient(from 0deg, var(--red-vivid), transparent 60%) border-box;
    -webkit-mask: linear-gradient(black, black) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(black, black) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: rotateGlow 2s linear infinite;
}

.loader-ring-outer {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 1px solid rgba(196, 30, 58, 0.2);
    animation: rotateGlow 4s linear infinite reverse;
}

.loader-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: white;
    margin-bottom: 8px;
    animation: fadeInUp 0.6s 0.5s var(--ease-premium) both;
}

.loader-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s 0.7s var(--ease-premium) both;
}

.loader-progress-wrap {
    width: 240px;
    animation: fadeInUp 0.6s 0.9s var(--ease-premium) both;
}

.loader-progress-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--red-primary), var(--red-vivid));
    border-radius: 10px;
    animation: progressFill 2.2s var(--ease-smooth) forwards;
    box-shadow: 0 0 10px var(--red-vivid);
}

.loader-progress-text {
    text-align: right;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 0.1em;
}

/* Scan line effect on loader */
.loader-scanline {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.4), transparent);
    animation: scanLine 3s linear infinite;
    pointer-events: none;
}

/* ============================================
   NAVIGATION
   ============================================ */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-premium);
    animation: navSlideIn 0.6s 0.3s var(--ease-premium) both;
}

#navbar.scrolled {
    background: rgba(8, 8, 16, 0.95);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Reduced backdrop-filter for performance */
@media (min-width: 768px) {
    #navbar.scrolled {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s var(--ease-bounce);
}

.nav-logo:hover img {
    transform: scale(1.1) rotate(-5deg);
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
}

.nav-logo-text span {
    color: var(--red-vivid);
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red-primary), var(--red-vivid));
    border-radius: 2px;
    transition: width 0.3s var(--ease-premium);
}

.nav-link:hover {
    color: white;
}

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

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

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

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--red-primary), var(--red-vivid));
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s var(--ease-premium);
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--red-vivid), #FF6B8A);
    opacity: 0;
    transition: opacity 0.3s var(--ease-premium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.6), 0 0 40px rgba(255, 45, 85, 0.2);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* Ripple effect */
.btn-primary .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease-premium);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */


/* ============================================
   PROJECT VISUALS (Industry Specific)
   ============================================ */

/* Government: City Grid & Radar */
.visual-gov {
    background:
        linear-gradient(rgba(220, 38, 38, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 38, 38, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    perspective: 1000px;
    transform: rotateX(20deg) scale(1.2);
    animation: gridMove 20s linear infinite;
}

.visual-gov::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.2), transparent 60%);
    animation: pulseRadar 4s infinite;
}

/* Fintech: Data Streams */
.visual-fintech {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.2) 100%);
}

.visual-fintech::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 20%;
    width: 2px;
    height: 200%;
    background: linear-gradient(to bottom, transparent, #3b82f6, transparent);
    animation: dataStream 3s infinite linear;
}

.visual-fintech::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 80%;
    width: 2px;
    height: 200%;
    background: linear-gradient(to bottom, transparent, #60a5fa, transparent);
    animation: dataStream 5s infinite linear 1s;
}

/* Healthcare: EKG Pulse */
.visual-health {
    background: linear-gradient(90deg, #000, #052e16, #000);
}

.visual-health::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
    box-shadow: 0 0 10px #22c55e;
    animation: ekgPulse 3s infinite ease-in-out;
}

/* Commerce: Activity Burst */
.visual-commerce {
    background: radial-gradient(circle at bottom, #581c87 0%, transparent 70%);
}

.visual-commerce::before,
.visual-commerce::after {
    content: '';
    position: absolute;
    bottom: -20px;
    width: 20px;
    height: 20px;
    background: rgba(192, 132, 252, 0.3);
    border-radius: 50%;
    animation: bubbleRise 4s infinite ease-in;
}

.visual-commerce::after {
    left: 30%;
    width: 10px;
    height: 10px;
    animation-duration: 6s;
    animation-delay: 1s;
}

@keyframes gridMove {
    0% {
        transform: rotateX(20deg) scale(1.2) translateY(0);
    }

    100% {
        transform: rotateX(20deg) scale(1.2) translateY(40px);
    }
}

@keyframes pulseRadar {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes dataStream {
    0% {
        transform: translateY(-50%);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(50%);
        opacity: 0;
    }
}

@keyframes ekgPulse {
    0% {
        width: 0;
        left: 0;
        opacity: 0;
    }

    50% {
        width: 100%;
        left: 0;
        opacity: 1;
    }

    100% {
        width: 0;
        left: 100%;
        opacity: 0;
    }
}

@keyframes bubbleRise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-500px) scale(0);
        opacity: 0;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.from-left {
    transform: translateX(-50px);
}

.animate-on-scroll.from-right {
    transform: translateX(50px);
}

.animate-on-scroll.scale-in {
    transform: scale(0.9);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}

.stagger-7 {
    transition-delay: 0.7s;
}

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

#hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s var(--ease-premium);
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 8s var(--ease-smooth);
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(8, 8, 16, 0.85) 0%,
            rgba(8, 8, 16, 0.6) 50%,
            rgba(140, 0, 0, 0.15) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(196, 30, 58, 0.15);
    border: 1px solid rgba(196, 30, 58, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--red-vivid);
    text-transform: uppercase;
    margin-bottom: 24px;
    width: fit-content;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red-vivid);
    animation: glowPulse 1.5s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--red-primary), var(--red-vivid), #FF8FA3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glowPulseText 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Hero indicators */
.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s var(--ease-premium);
}

.hero-dot.active {
    width: 28px;
    border-radius: 4px;
    background: var(--red-vivid);
    box-shadow: 0 0 10px var(--red-vivid);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    animation: float 2s ease-in-out infinite;
}

/* 7. Team Section (Enterprise) */
.team-card-enterprise {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card-enterprise:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.btn-icon-social {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-icon-social:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #ef4444;
    border-color: rgba(220, 38, 38, 0.3);
    transform: translateY(-2px);
}

.scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--red-vivid), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red-vivid);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--red-primary), var(--red-vivid));
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-title .accent {
    background: linear-gradient(135deg, var(--red-primary), var(--red-vivid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
}

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */

.glass-card {
    background: rgba(20, 20, 32, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-premium);
}

.glass-card:hover {
    background: rgba(26, 26, 46, 0.8);
    border-color: var(--border-red);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card), 0 0 30px rgba(196, 30, 58, 0.1);
}

/* ============================================
   STATS
   ============================================ */

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, white, var(--red-vivid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.service-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    transition: all 0.5s var(--ease-premium);
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red-primary), var(--red-vivid));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-premium);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.08) 0%, transparent 70%);
    transition: all 0.5s var(--ease-premium);
}

.service-card:hover {
    border-color: var(--border-red);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(196, 30, 58, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    bottom: -20px;
    right: -20px;
    width: 300px;
    height: 300px;
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.2), rgba(255, 45, 85, 0.1));
    border: 1px solid rgba(196, 30, 58, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 28px;
    transition: all 0.4s var(--ease-bounce);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.4), rgba(255, 45, 85, 0.2));
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.3);
}

/* ============================================
   PROJECT CARDS
   ============================================ */

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all 0.4s var(--ease-premium);
    cursor: pointer;
}

/* Image Scale - Subtle */
.project-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.project-card:hover .project-card-img {
    transform: scale(1.04);
}

/* Overlay - Always visible but subtle */
.project-card-overlay {
    position: absolute;
    inset: 0;
    /* Idle: Subtle gradient to ensure text readability */
    background: linear-gradient(to top,
            rgba(8, 8, 16, 0.8) 0%,
            rgba(8, 8, 16, 0.2) 40%,
            transparent 100%);
    opacity: 1;
    /* Always visible */
    transition: all 0.4s var(--ease-premium);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

/* Hover: Darker text background for description readability */
.project-card:hover .project-card-overlay {
    background: linear-gradient(to top,
            rgba(8, 8, 16, 0.95) 0%,
            rgba(8, 8, 16, 0.6) 50%,
            transparent 100%);
    backdrop-filter: blur(2px);
}

/* Content Container */
.project-card-content {
    width: 100%;
    transform: translateY(12px);
    /* Push down slightly in idle */
    transition: transform 0.4s var(--ease-premium);
}

.project-card:hover .project-card-content {
    transform: translateY(0);
    /* Move up to reveal description */
}

/* Labels & Title - Idle State */
.project-card-tag {
    display: inline-block;
    margin-bottom: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.project-card-title {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    /* ~20px */
    line-height: 1.3;
    margin-bottom: 4px;
    opacity: 0.7;
    /* Idle opacity */
    transition: all 0.3s ease;
}

/* Hover State - Full Opacity */
.project-card:hover .project-card-tag,
.project-card:hover .project-card-title {
    opacity: 1;
}

/* Description - Hidden in Idle */
.project-card-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    /* 14px */
    line-height: 1.5;
    margin-top: 8px;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s var(--ease-premium);
    transform: translateY(10px);
}

.project-card:hover .project-card-desc {
    height: auto;
    /* Allow growth, though max-height is safer for transition, auto works with opacity fade visual */
    max-height: 100px;
    /* Approximate max height */
    opacity: 1;
    margin-top: 12px;
    transform: translateY(0);
}

.project-card:hover {
    border-color: var(--border-red);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(196, 30, 58, 0.1);
}

/* ============================================
   TEAM CARDS
   ============================================ */

.team-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all 0.4s var(--ease-premium);
    text-align: center;
    padding: 32px 24px;
}

.team-card:hover {
    border-color: var(--border-red);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(196, 30, 58, 0.1);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(196, 30, 58, 0.4);
    margin: 0 auto 16px;
    transition: all 0.4s var(--ease-bounce);
}

.team-card:hover .team-avatar {
    border-color: var(--red-vivid);
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.5);
    transform: scale(1.08);
}

.team-card-director {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1), rgba(20, 20, 32, 0.9));
    border-color: rgba(196, 30, 58, 0.3);
}

.team-card-director .team-avatar {
    width: 120px;
    height: 120px;
    border-width: 4px;
    border-color: var(--red-primary);
}

.team-role-badge {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(196, 30, 58, 0.15);
    border: 1px solid rgba(196, 30, 58, 0.3);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--red-vivid);
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

.product-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 40px 36px;
    transition: all 0.5s var(--ease-premium);
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at top right, rgba(196, 30, 58, 0.06) 0%, transparent 60%);
    transition: opacity 0.5s;
    opacity: 0;
}

.product-card:hover {
    border-color: var(--border-red);
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(196, 30, 58, 0.1);
}

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

.product-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--red-primary), var(--red-vivid));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.4);
    transition: all 0.4s var(--ease-bounce);
}

.product-card:hover .product-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 36px rgba(196, 30, 58, 0.6);
}

/* ============================================
   CONTACT FORM
   ============================================ */

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-input {
    width: 100%;
    padding: 18px 20px 8px;
    background: rgba(20, 20, 32, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.95rem;
    font-family: var(--font-main);
    outline: none;
    transition: all 0.3s var(--ease-premium);
}

.form-input:focus {
    border-color: var(--red-primary);
    background: rgba(26, 26, 46, 0.9);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15), 0 0 20px rgba(196, 30, 58, 0.1);
}

.form-label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s var(--ease-premium);
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
    top: 10px;
    font-size: 0.7rem;
    color: var(--red-vivid);
    letter-spacing: 0.05em;
}

textarea.form-input {
    min-height: 140px;
    resize: vertical;
    padding-top: 24px;
}

textarea.form-input~.form-label {
    top: 20px;
    transform: none;
}

textarea.form-input:focus~.form-label,
textarea.form-input:not(:placeholder-shown)~.form-label {
    top: 8px;
    font-size: 0.7rem;
}

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

footer {
    background: linear-gradient(180deg, var(--bg-surface) 0%, #050508 100%);
    border-top: 1px solid var(--border-subtle);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--red-vivid);
}

/* ============================================
   BACKGROUND DECORATIONS
   ============================================ */

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(196, 30, 58, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 30, 58, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.bg-glow-red {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.15) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(40px);
}

/* ============================================
   MOBILE MENU
   ============================================ */

#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(8, 8, 16, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-premium);
}

#mobile-menu.open {
    transform: translateX(0);
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s var(--ease-premium);
}

.mobile-nav-link:hover {
    color: var(--red-vivid);
    transform: translateX(10px);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.gradient-text {
    background: linear-gradient(135deg, var(--red-primary), var(--red-vivid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-red {
    animation: glowPulse 2s ease-in-out infinite;
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--red-primary), var(--red-vivid));
    border-radius: 2px;
    margin: 20px 0;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid rgba(196, 30, 58, 0.2);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--red-vivid);
    letter-spacing: 0.05em;
}

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .service-card {
        padding: 32px 24px;
    }

    .product-card {
        padding: 28px 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
}

/* Utility for 3D Carousel */
.perspective-1000 {
    perspective: 1000px;
}

/* 2. Text Reveal (Word-by-word) */
@keyframes revealWord {
    0% {
        transform: translateY(110%);
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.reveal-word {
    display: inline-block;
    transform: translateY(110%);
    /* Start hidden below */
    opacity: 0;
    animation: revealWord 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    will-change: transform, opacity;
}

/* Hero Animations */
@keyframes scanLine {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(200%);
        opacity: 0;
    }
}

.animate-scanLine {
    animation: scanLine linear infinite;
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.3;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

@keyframes bounceSubtle {

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

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

.animate-bounce-subtle {
    animation: bounceSubtle 2s infinite ease-in-out;
}