/* ========================================
   MICROBOTSS - FUTURISTIC KIDS TECH THEME
   Design System & Core Styles
   ======================================== */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Primary Colors */
    --primary: #1800AD;
    --primary-light: #3320D4;
    --primary-dark: #0f0070;
    --primary-rgb: 24, 0, 173;

    /* Secondary Colors */
    --secondary: #FEB600;
    --secondary-light: #FFD54F;
    --secondary-dark: #C49000;
    --secondary-rgb: 254, 182, 0;

    /* Neon Accents */
    --neon-blue: #4D7CFF;
    --neon-purple: #A855F7;
    --neon-cyan: #22D3EE;
    --neon-pink: #F472B6;

    /* Backgrounds */
    --bg-dark: #0a0a1a;
    --bg-dark-2: #12122a;
    --bg-light: #f8f9ff;
    --bg-gradient: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0f0f2f 100%);

    /* Text Colors */
    --text-light: #ffffff;
    --text-dark: #1a1a2e;
    --text-muted: #a0a0c0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--neon-purple) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, #FF9500 100%);
    --gradient-hero: linear-gradient(135deg, #1800AD 0%, #4D7CFF 50%, #A855F7 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow-primary: 0 0 30px rgba(24, 0, 173, 0.5);
    --shadow-glow-secondary: 0 0 30px rgba(254, 182, 0, 0.5);
    --shadow-glow-neon: 0 0 40px rgba(77, 124, 255, 0.4);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-modal: 1000;
    --z-preloader: 9999;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* ===== UTILITY CLASSES ===== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.section-dark {
    background: var(--bg-dark);
}

.section-gradient {
    background: var(--bg-gradient);
}

.section-light {
    background: var(--bg-light);
    color: var(--text-dark);
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-secondary {
    color: var(--secondary);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(254, 182, 0, 0.15);
    border: 1px solid var(--secondary);
    border-radius: var(--radius-full);
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

/* ===== NAVIGATION DROPDOWN ===== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropdown>a::after {
    content: '';
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    margin-left: 4px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover>a::after {
    transform: rotate(-135deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #D7D7D7;
    border: none;
    border-radius: 12px;
    min-width: 220px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    list-style: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    overflow: hidden;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.85rem 1.5rem;
    color: #191939;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
    color: #ffffff;
    background: #FEB600;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: var(--shadow-glow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(24, 0, 173, 0.7);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--text-dark);
    box-shadow: var(--shadow-glow-secondary);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(254, 182, 0, 0.7);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--text-dark);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary);
    box-shadow: var(--shadow-glow-neon);
}

/* Button Glow Animation */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* ===== CARDS ===== */
.card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-hero);
    opacity: 0;
    transition: var(--transition-base);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(77, 124, 255, 0.3);
    box-shadow: var(--shadow-glow-neon);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    box-shadow: var(--shadow-glow-primary);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.card-text {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== GLASS MORPHISM ===== */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.glass-dark {
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== GRID LAYOUTS ===== */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== FLOATING ELEMENTS ===== */
.floating {
    animation: floating 3s ease-in-out infinite;
}

.floating-slow {
    animation: floating 6s ease-in-out infinite;
}

.floating-reverse {
    animation: floating-reverse 4s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes floating-reverse {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(20px) rotate(-5deg);
    }
}

/* ===== GLOW EFFECTS ===== */
.glow-primary {
    box-shadow: var(--shadow-glow-primary);
}

.glow-secondary {
    box-shadow: var(--shadow-glow-secondary);
}

.glow-neon {
    box-shadow: var(--shadow-glow-neon);
}

.glow-pulse {
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(77, 124, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(77, 124, 255, 0.6), 0 0 60px rgba(168, 85, 247, 0.3);
    }
}

/* ===== BACKGROUND PATTERNS ===== */
.bg-grid {
    background-image:
        linear-gradient(rgba(77, 124, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 124, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.bg-dots {
    background-image: radial-gradient(rgba(77, 124, 255, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
}

.bg-circles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: -1;
}

.bg-circles span {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: circle-float 20s linear infinite;
}

@keyframes circle-float {
    0% {
        transform: translateY(100vh) scale(0);
    }

    100% {
        transform: translateY(-100vh) scale(1);
    }
}

/* ===== WAVE BACKGROUND ===== */
.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.wave-bg svg {
    position: absolute;
    bottom: 0;
    width: 200%;
    animation: wave 15s linear infinite;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: var(--z-preloader);
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-robot {
    width: 120px;
    height: 120px;
    position: relative;
    animation: robot-bounce 1s ease-in-out infinite;
}

.preloader-text {
    margin-top: 2rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes robot-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ===== COUNTER ANIMATION ===== */
.counter-box {
    text-align: center;
    padding: 2rem;
}

.counter-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.counter-label {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ===== BADGE ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    background: rgba(254, 182, 0, 0.15);
    border: 1px solid var(--secondary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
}

.badge-primary {
    background: rgba(24, 0, 173, 0.15);
    border-color: var(--primary-light);
    color: var(--neon-blue);
}

/* ===== ICON WRAPPER ===== */
.icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    color: var(--text-light);
    box-shadow: var(--shadow-glow-primary);
    transition: var(--transition-base);
}

.icon-wrapper:hover {
    transform: scale(1.1) rotate(5deg);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ===== SELECTION STYLE ===== */
::selection {
    background: var(--secondary);
    color: var(--text-dark);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ===== IMAGE STYLES ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header ISO Logo */
.header-iso-logo {
    height: 45px;
    width: auto;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

@media (max-width: 767.98px) {
    .header-iso-logo {
        height: 35px;
        margin-left: 5px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo img:first-child {
    height: 50px;
}

@media (max-width: 767.98px) {
    .logo img:first-child {
        height: 40px;
    }
}

.img-rounded {
    border-radius: var(--radius-lg);
}

.img-glow {
    box-shadow: var(--shadow-glow-neon);
}

/* ===== LIST STYLES ===== */
.list-check {
    list-style: none;
}

.list-check li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.list-check li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* ===== DIVIDER ===== */
.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--primary), transparent);
    margin: 3rem 0;
}

/* ===== TOOLTIP ===== */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 0.5rem 1rem;
    background: var(--bg-dark-2);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal.active,
.reveal.visible,
.reveal-left.active,
.reveal-left.visible,
.reveal-right.active,
.reveal-right.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}