/* ========================================
   KINGWINS - Premium Corporate Website
   Custom Styles
   ======================================== */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Alexandria', sans-serif;
}

body {
    font-weight: 400;
    line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

button {
    font-weight: 600;
}
html {
    scroll-behavior: smooth;
}

body {
    /* font-family: 'Manrope', sans-serif; */
    background: #F6F7F9;
    color: #1F2937;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* .inconsolata-400 {
  font-family: "Inconsolata", monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
} */

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

::-webkit-scrollbar-track {
    background: #F6F7F9;
}

::-webkit-scrollbar-thumb {
    background: #1F2937;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0F172A;
}

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

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Delays */
.animate-on-scroll.visible.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.visible.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.visible.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.visible.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.visible.delay-5 { transition-delay: 0.5s; }
.animate-on-scroll.visible.delay-6 { transition-delay: 0.6s; }
.animate-on-scroll.visible.delay-7 { transition-delay: 0.7s; }
.animate-on-scroll.visible.delay-8 { transition-delay: 0.8s; }

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

.hero-bg {
    transition: transform 0.1s linear;
    will-change: transform;
}

.hero-stat-card {
    animation: float 3s ease-in-out infinite;
}

/* Hero Stats Responsive */
@media (min-width: 1024px) and (max-width: 1279px) {
    .hero-stat-card {
        min-width: 180px;
        padding: 1rem;
    }
    .hero-stat-card .stat-val {
        font-size: 1.5rem;
    }
}

@media (min-width: 1280px) and (max-width: 1535px) {
    .hero-stat-card {
        min-width: 200px;
    }
}

@media (min-width: 1536px) {
    .hero-stat-card {
        min-width: 220px;
    }
}

/* Mobile CTA Fix */
@media (max-width: 374px) {
    .hero-cta-primary,
    .hero-cta-secondary {
        font-size: 0.95rem;
        padding: 0.875rem 1.25rem;
    }
}

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

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple .ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

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

.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) ;
    backdrop-filter: blur(24px) ;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08) ;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) ;
}


.nav-link {
    color: #0F172A;
    transition: color 0.3s ease;
}

nav#navbar:not(.nav-scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.95);
}

nav#navbar.nav-scrolled .nav-link {
    color: #0F172A;
}


.nav-scrolled .nav-link:hover {
    color: #1F2937 ;
}

.nav-scrolled .nav-logo-text {
    color: #1F2937 ;
}


.nav-scrolled .nav-sub {
    color: #6B7280 ;
}

/* Mobile Menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: #FFFFFF;
}


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

.mobile-link,
.mobile-menu a {
    color: #0F172A;
}

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

.product-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 32px 64px -16px rgba(31, 41, 55, 0.2);
}


.product-card:hover .product-img {
    transform: scale(1.08);
}

.product-img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-overlay {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* ========================================
   STAT CARDS
   ======================================== */

.stat-card {
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(31, 41, 55, 0.08);
}

/* ========================================
   WHY CHOOSE US CARDS
   ======================================== */

.why-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -12px rgba(31, 41, 55, 0.12);
}


.why-card:hover .why-icon {
    background: #1F2937;
    color: white;
    transform: scale(1.1);
}

.why-icon {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================
   APPLICATION CARDS
   ======================================== */

.app-card {
    transition: all 0.4s ease;
}

.app-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px -8px rgba(31, 41, 55, 0.1);
}


.app-card:hover .app-icon {
    background: #1F2937;
    color: white;
}

.app-icon {
    transition: all 0.3s ease;
}

/* ========================================
   CERTIFICATION CARDS
   ======================================== */

.cert-card {
    transition: all 0.4s ease;
}

.cert-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -8px rgba(31, 41, 55, 0.12);
}


/* ========================================
   MAP PLACEHOLDER
   ======================================== */

.map-container {
    background: linear-gradient(135deg, #e8ecf1, #d1d8e0);
    position: relative;
    overflow: hidden;
}


.map-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 60% 40%, rgba(31, 41, 55, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(107, 122, 141, 0.1) 0%, transparent 40%);
}

/* ========================================
   GRID PATTERN BACKGROUND
   ======================================== */

.grid-pattern {
    background-color: #F6F7F9;
    background-image:
        linear-gradient(rgba(31, 41, 55, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 41, 55, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ========================================
   FORM INPUTS
   ======================================== */

.form-input:focus {
    border-color: #1F2937;
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.06);
}


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

.float-badge {
    animation: float 3s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #6B7280, #1F2937);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(to left, transparent, rgba(31, 41, 55, 0.06), transparent);
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .no-print {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .glass {
        background: white;
        -webkit-backdrop-filter: none;
        -moz-backdrop-filter: none;
        -o-backdrop-filter: none;
        backdrop-filter: none;
    }

}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid #1F2937;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #1F2937;
    outline-offset: 2px;
}

/* Skip to main content */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1F2937;
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
    border-radius: 0 0 8px 0;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Smooth color transitions for theme switching */
body, nav, section, footer, div, span, p, h1, h2, h3, h4, h5, h6,
a, button, input, textarea, select, label, li, ul, ol {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

