/* ============================================
   DENKLEM - Minimal Elevator Technology
   Clean & Modern Corporate Styles
   ============================================ */

/* ===========================================
   BASE STYLES
   =========================================== */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/* ===========================================
   HERO - LIGHT MINIMAL
   =========================================== */
.hero-light {
    background: linear-gradient(170deg, #F8F9FB 0%, #ffffff 60%, #f0f9ff 100%);
}

/* Logo filter: darken white logo for light backgrounds */
.logo-dark-mode {
    filter: brightness(0);
}

/* Hero Primary Button - Cyan fill */
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0A192F;
    background: #0EA5E9;
    border: 1.5px solid #0EA5E9;
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, background 0.3s ease;
}

.hero-btn-primary:hover {
    color: #0EA5E9;
    background: transparent;
}

/* Hero Secondary Button - Navy outline */
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0A192F;
    background: transparent;
    border: 1.5px solid rgba(10, 25, 47, 0.2);
    border-radius: 9999px;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.hero-btn-secondary:hover {
    color: #fff;
    background: #0A192F;
    border-color: #0A192F;
}

/* ===========================================
   SCROLL ANIMATIONS
   =========================================== */
.scroll-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fade-up.in-view,
.scroll-fade-left.in-view,
.scroll-fade-right.in-view,
.scroll-scale-in.in-view {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Staggered delays for card groups */
.scroll-delay-1 {
    transition-delay: 0.1s;
}

.scroll-delay-2 {
    transition-delay: 0.2s;
}

.scroll-delay-3 {
    transition-delay: 0.3s;
}

.scroll-delay-4 {
    transition-delay: 0.4s;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0A192F;
}

::-webkit-scrollbar-thumb {
    background: #0EA5E9;
    border-radius: 3px;
}

/* Selection */
::selection {
    background: #0EA5E9;
    color: white;
}

/* ===========================================
   PRELOADER
   =========================================== */
#preloader {
    transition: opacity 0.5s ease-out;
}

.glitch-logo.glitch-active {
    animation: smoothGlitch 0.08s ease-in-out;
}

@keyframes smoothGlitch {

    0%,
    100% {
        transform: translate(0);
    }

    25% {
        transform: translate(-2px, 1px);
        filter: brightness(1.1);
    }

    50% {
        transform: translate(2px, -1px);
    }

    75% {
        transform: translate(-1px, -1px);
    }
}

/* ===========================================
   NEON SVG CIRCUIT
   =========================================== */
@keyframes drawNeon {
    from {
        stroke-dashoffset: 1;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.drawing-circuit path,
.drawing-circuit circle,
.drawing-circuit rect {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: drawNeon 4s ease-out forwards;
    filter: drop-shadow(0 0 4px #0EA5E9) drop-shadow(0 0 10px #0EA5E9);
}

.svg-draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: svgDraw 2s ease-out forwards 0.5s;
}

@keyframes svgDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.svg-glow {
    filter: drop-shadow(0 0 4px rgba(14, 165, 233, 0.6));
}

/* ===========================================
   BUTTONS - OUTLINE STYLE WITH FILL HOVER
   =========================================== */

/* Primary Outline Button */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, border-color 0.3s ease;
    z-index: 1;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0EA5E9;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-outline:hover {
    color: #fff;
    border-color: #0EA5E9;
}

.btn-outline:hover::before {
    transform: scaleX(1);
}

/* Primary Fill Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0A192F;
    background: transparent;
    border: 1.5px solid #0EA5E9;
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0EA5E9;
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-primary:hover {
    color: #0EA5E9;
}

.btn-primary:hover::before {
    transform: scaleX(0);
}

/* Secondary Outline Button */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, border-color 0.3s ease;
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-secondary:hover {
    color: #0A192F;
    border-color: #fff;
}

.btn-secondary:hover::before {
    transform: scaleX(1);
}

/* ===========================================
   MARQUEE BANNER
   =========================================== */
.marquee-track {
    animation-duration: 60s !important;
}

@media (min-width: 1024px) {
    .marquee-track {
        animation-duration: 90s !important;
    }
}

/* ===========================================
   TEXT EFFECTS
   =========================================== */
.text-outline {
    -webkit-text-stroke: 1.5px #0A192F;
    color: transparent;
}

.reveal-text {
    overflow: hidden;
}

/* ===========================================
   CARDS - SERVICE CARDS WITH SPOTLIGHT
   =========================================== */
.service-card {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Spotlight Glow Effect for small service cards */
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(14, 165, 233, 0.15),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    box-shadow: 0 20px 40px -15px rgba(14, 165, 233, 0.2);
    border-color: #0EA5E9;
}

/* ===========================================
   MAIN SERVICE CARD - 3D TILT EFFECT
   =========================================== */

/* Perspective container — keeps the 3D card within layout bounds */
.main-card-perspective {
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

.main-service-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
    will-change: transform;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: box-shadow 0.5s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Spotlight for main card */
.main-service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(14, 165, 233, 0.15),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
    border-radius: inherit;
}

.main-service-card:hover::before {
    opacity: 1;
}

.main-service-card:hover {
    box-shadow: 0 20px 50px -10px rgba(14, 165, 233, 0.3);
}

/* ===========================================
   CUSTOM CURSOR
   =========================================== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #0EA5E9;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(14, 165, 233, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.custom-cursor-follower.expand {
    width: 50px;
    height: 50px;
    background-color: rgba(14, 165, 233, 0.1);
    border-color: #0EA5E9;
}

@media (max-width: 768px) {

    .custom-cursor,
    .custom-cursor-follower {
        display: none;
    }
}

/* Stat Card - Outline Style */
.stat-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(14, 165, 233, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* ===========================================
   GLASSMORPHISM
   =========================================== */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===========================================
   BACKGROUND PATTERNS
   =========================================== */
.bg-grid-pattern {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(14, 165, 233, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .text-outline {
        -webkit-text-stroke: 1px #0A192F;
    }

    .hero-badge-icon,
    .drawing-circuit {
        display: none;
    }
}

/* ===========================================
   ACCESSIBILITY
   =========================================== */


@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}