/* ============================================
   DARK FUTURISTIC THEME - GLASSMORPHISM
   ============================================ */

/* CSS Variables - NAVY + GOLD THEME */
:root {
    --bg-primary: #0d1a2d;
    --bg-secondary: #152238;
    --bg-tertiary: #1a2744;
    --glass-bg: rgba(201, 162, 39, 0.02);
    --glass-border: rgba(201, 162, 39, 0.1);
    --glass-hover: rgba(201, 162, 39, 0.05);
    --accent-primary: #c9a227;
    --accent-secondary: #d4af37;
    --accent-tertiary: #e6c547;
    --accent-cyan: #c9a227;
    --accent-gradient: linear-gradient(135deg, #c9a227, #d4af37, #e6c547);
    --text-primary: #f8fafc;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --glow-primary: rgba(201, 162, 39, 0.15);
    --glow-secondary: rgba(212, 175, 55, 0.1);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201, 162, 39, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(212, 175, 55, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 0% 100%, rgba(230, 197, 71, 0.06), transparent);
    pointer-events: none;
    z-index: -1;
}

/* Glassmorphism Base */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px var(--glow-secondary);
}

/* Navbar Glass */
.navbar-glass {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Utilities */
.text-brand {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-brand {
    background: var(--accent-gradient);
}

.bg-brand:hover {
    opacity: 0.9;
    box-shadow: 0 0 15px var(--glow-primary);
}

/* Glow Effects */
.glow-box {
    box-shadow:
        0 0 20px var(--glow-primary),
        0 0 40px var(--glow-secondary),
        inset 0 0 60px rgba(201, 162, 39, 0.05);
}

.glow-text {
    text-shadow: 0 0 20px var(--glow-primary);
}

/* Card Styles */
.card-shadow {
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.card-glow {
    position: relative;
}

.card-glow::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: var(--accent-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(20px);
}

.card-glow:hover::before {
    opacity: 0.12;
}

/* Marquee */
.marquee-fade {
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: marquee-left 28s linear infinite;
}

.marquee-row {
    display: inline-flex;
    gap: 3rem;
    padding: 0.5rem 0;
}

@keyframes marquee-left {
    0% {
        transform: translateX(0);
    }

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

/* Inputs - Glass Style */
.input-field {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.input-field::placeholder {
    color: var(--text-muted);
}

.input-field:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    box-shadow:
        0 0 0 3px rgba(201, 162, 39, 0.15),
        0 0 20px rgba(201, 162, 39, 0.1);
    outline: none;
}

/* Buttons */
.btn-primary {
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--glow-primary);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Loader Animation */
.loader {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--accent-primary);
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Progress Bars */
.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.6s ease;
}

.progress-fill-gradient {
    background: var(--accent-gradient);
}

/* Feature Cards */
.feature-icon {
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.feature-icon-green {
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid rgba(201, 162, 39, 0.35);
}

.feature-icon-purple {
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.25);
}

/* Blog Cards */
.blog-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.blog-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.blog-card img {
    transition: transform 0.6s ease;
}

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

/* Tags/Badges */
.tag {
    background: rgba(201, 162, 39, 0.15);
    color: #e6c547;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.tag-green {
    background: rgba(201, 162, 39, 0.2);
    color: #e6c547;
    border-color: rgba(201, 162, 39, 0.4);
}

.tag-purple {
    background: rgba(201, 162, 39, 0.12);
    color: #d4af37;
    border-color: rgba(201, 162, 39, 0.25);
}

.tag-cyan {
    background: rgba(201, 162, 39, 0.1);
    color: #c9a227;
    border-color: rgba(201, 162, 39, 0.2);
}

/* Footer */
.footer-glass {
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animated Gradient Border */
.gradient-border {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 20px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--accent-gradient);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
    opacity: 1;
}

/* Floating Elements Animation */
@keyframes float {

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

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

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

/* Pulse Glow */
@keyframes pulse-glow {

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

    50% {
        box-shadow: 0 0 40px var(--glow-primary), 0 0 60px var(--glow-secondary);
    }
}

.pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .glass-card {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
}

/* Mobile Menu Animations */
.mobile-menu-enter {
    animation: slideDown 0.3s ease-out forwards;
}

.mobile-menu-exit {
    animation: slideUp 0.25s ease-in forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Menu items staggered animation */
.menu-item {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.menu-item.show {
    opacity: 1;
    transform: translateX(0);
}

.menu-item:nth-child(1) {
    transition-delay: 0.05s;
}

.menu-item:nth-child(2) {
    transition-delay: 0.1s;
}

.menu-item:nth-child(3) {
    transition-delay: 0.15s;
}

.menu-item:nth-child(4) {
    transition-delay: 0.2s;
}

.menu-item:nth-child(5) {
    transition-delay: 0.25s;
}

.menu-item:nth-child(6) {
    transition-delay: 0.3s;
}

.menu-item:nth-child(7) {
    transition-delay: 0.35s;
}

/* Hamburger icon animation */
.hamburger-icon {
    transition: transform 0.3s ease;
}

.hamburger-icon.rotate {
    transform: rotate(90deg);
}

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

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

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

/* Slide In Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

/* Slide In Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

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

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

/* Staggered Animation Delays */
.animate-delay-100 {
    transition-delay: 0.1s;
}

.animate-delay-200 {
    transition-delay: 0.2s;
}

.animate-delay-300 {
    transition-delay: 0.3s;
}

.animate-delay-400 {
    transition-delay: 0.4s;
}

.animate-delay-500 {
    transition-delay: 0.5s;
}

/* Animate from Left */
.animate-from-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-from-left.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Animate from Right */
.animate-from-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-from-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Scale Animation */
.animate-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* Faster animations on mobile */
@media (max-width: 768px) {
    .animate-on-scroll {
        transform: translateY(20px);
        transition: opacity 0.35s ease-out, transform 0.35s ease-out;
    }

    .animate-from-left {
        transform: translateX(-20px);
        transition: opacity 0.35s ease-out, transform 0.35s ease-out;
    }

    .animate-from-right {
        transform: translateX(20px);
        transition: opacity 0.35s ease-out, transform 0.35s ease-out;
    }

    .animate-scale {
        transition: opacity 0.35s ease-out, transform 0.35s ease-out;
    }

    .animate-delay-100 {
        transition-delay: 0.05s;
    }

    .animate-delay-200 {
        transition-delay: 0.1s;
    }

    .animate-delay-300 {
        transition-delay: 0.15s;
    }

    .animate-delay-400 {
        transition-delay: 0.2s;
    }

    .animate-delay-500 {
        transition-delay: 0.25s;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .animate-on-scroll,
    .animate-from-left,
    .animate-from-right,
    .animate-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .marquee-track {
        animation: none;
    }

    .float-animation,
    .pulse-glow {
        animation: none;
    }
}