@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --brand-white: #0012;
    --brand-yellow: #FFD700;
    --brand-black: #000000;
    --brand-gold: #FFD700;
    --brand-silver: #C0C0C0;
    --brand-charcoal: #36454F;
    --brand-cream: #FFFDD0;
    --brand-shadow: #2F2F2F;
}

.hc-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}
.hc-navbar a { color: var(--brand-navy); text-decoration: none; }
.hc-navbar .brand { color: var(--brand-navy); font-weight: 700; }
.hc-btn-primary { background: var(--brand-green); color: #fff; padding: .5rem .9rem; border-radius: .5rem; }
.hc-btn-primary:hover { filter: brightness(0.95); }

.hc-badge-pro { background: var(--brand-gold); color: #0f172a; border-radius: .4rem; padding: .15rem .45rem; font-size: .75rem; font-weight: 600; }

/* Premium Card Designs */
.hc-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.hc-card:hover::before {
    left: 100%;
}

.hc-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Enterprise Card Variants */
.card-enterprise {
    background: linear-gradient(135deg,
        rgba(255,255,255,0.98) 0%,
        rgba(248,250,252,0.95) 50%,
        rgba(255,255,255,0.98) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.card-enterprise::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-indigo), var(--brand-purple));
    border-radius: 2.2rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-enterprise:hover::after {
    opacity: 1;
}

.card-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.card-neumorph {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow:
        8px 8px 16px rgba(163, 177, 198, 0.6),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
    border: none;
}

.card-neumorph:hover {
    box-shadow:
        12px 12px 24px rgba(163, 177, 198, 0.8),
        -12px -12px 24px rgba(255, 255, 255, 0.9),
        inset 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.card-gradient-border {
    position: relative;
    background: white;
    border-radius: 2rem;
}

.card-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, var(--brand-green), var(--brand-cyan), var(--brand-purple));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.card-morphing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.5s ease;
    position: relative;
}

.card-morphing:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: rotateY(10deg) rotateX(10deg);
}

/* Premium Button Styles */
.btn-premium {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-indigo) 50%, var(--brand-purple) 100%);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 25px rgba(99, 102, 241, 0.3),
        0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-premium::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;
}

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

.btn-premium:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 20px 40px rgba(99, 102, 241, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Advanced Hover Effects */
.hover-3d {
    transition: transform 0.3s ease;
}

.hover-3d:hover {
    transform: perspective(1000px) rotateX(10deg) rotateY(-10deg) translateZ(20px);
}

.hover-magnetic {
    transition: transform 0.3s ease;
}

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

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

/* Premium Layout Components */
.section-premium {
    position: relative;
    overflow: hidden;
}

.section-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.content-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Enterprise Typography */
.text-premium {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glass {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hc-gradient-bg {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-indigo) 50%, var(--brand-purple) 100%);
}

.hc-glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Vibrant Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-indigo) 100%);
}

.gradient-success {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-emerald) 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-amber) 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-violet) 100%);
}

.gradient-hero {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-indigo) 30%, var(--brand-purple) 70%, var(--brand-pink) 100%);
}

.gradient-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Animated Backgrounds */
.animated-bg {
    background: linear-gradient(-45deg, var(--brand-navy), var(--brand-indigo), var(--brand-purple), var(--brand-pink));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

/* Floating Elements */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

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

/* Pulse Effects */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
    to { box-shadow: 0 0 30px rgba(59, 130, 246, 0.6), 0 0 40px rgba(59, 130, 246, 0.3); }
}

/* Interactive Elements */
.interactive-card {
    position: relative;
    overflow: hidden;
}

.interactive-card::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;
}

.interactive-card:hover::before {
    left: 100%;
}

/* Modern Button Styles */
.btn-gradient {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-emerald) 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--brand-green);
    color: var(--brand-green);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--brand-green);
    color: white;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-pulse-slow {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--brand-navy);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #374151;
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.marquee-content:hover {
    animation-play-state: paused;
}

/* Ensure marquee items don't wrap and have proper spacing */
.marquee-content > * {
    flex-shrink: 0;
    margin-right: 3rem;
    display: inline-flex;
    align-items: center;
}

/* Duplicate content for seamless loop */
.marquee-content::after {
    content: attr(data-content);
    display: inline-flex;
    white-space: nowrap;
    margin-left: 3rem;
}

/* Focus states for accessibility */
.hc-btn-primary:focus,
.hc-btn-secondary:focus {
    outline: 2px solid var(--brand-green);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--brand-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.marquee-container {
    overflow: hidden;
    position: relative;
}

.marquee-content {
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

/* New Hero Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.animate-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
    animation-delay: 2s;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

/* Enhanced Glass Effects */
.hc-glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Interactive Elements */
.hover-3d {
    transition: all 0.3s ease;
}

.hover-3d:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover-magnetic {
    transition: all 0.3s ease;
}

.hover-magnetic:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.3);
}

.hover-float {
    transition: all 0.3s ease;
}

.hover-float:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.2);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

/* Premium Card Styles */
.card-enterprise {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.card-neumorph {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Premium Button */
.btn-premium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.3);
}

.btn-premium:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

/* Content Grid Premium */
.content-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

/* Section Premium */
.section-premium {
    position: relative;
    padding: 5rem 0;
}

/* Interactive Card */
.interactive-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.interactive-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Pulse Glow Effect */
.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    }
    to {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.2);
    }
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column;
    }

    .mobile-full-width {
        width: 100%;
    }

    .mobile-text-center {
        text-align: center;
    }

    .mobile-padding {
        padding: 1rem;
    }

    .mobile-margin {
        margin: 1rem 0;
    }

    /* Mobile Navigation */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

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

    /* Mobile Cards */
    .mobile-card {
        margin: 0.5rem;
        border-radius: 1rem;
        padding: 1rem;
    }

    /* Mobile Typography */
    .mobile-heading {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .mobile-subheading {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }

    /* Mobile Buttons */
    .mobile-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    /* Mobile Grid */
    .mobile-grid-1 {
        grid-template-columns: 1fr;
    }

    .mobile-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Mobile Spacing */
    .mobile-space-y-4 > * + * {
        margin-top: 1rem;
    }

    .mobile-space-y-6 > * + * {
        margin-top: 1.5rem;
    }
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 1024px) {
    .tablet-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tablet-padding {
        padding: 2rem;
    }

    .tablet-text {
        font-size: 0.875rem;
    }
}

/* Touch-Friendly Interactions */
@media (hover: none) and (pointer: coarse) {
    .touch-target {
        min-height: 44px;
        min-width: 44px;
    }

    .touch-padding {
        padding: 0.75rem;
    }

    /* Remove hover effects on touch devices */
    .hover-lift:hover,
    .hover-3d:hover,
    .hover-magnetic:hover,
    .hover-float:hover,
    .hover-glow:hover {
        transform: none;
        box-shadow: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .retina-border {
        border-width: 0.5px;
    }

    .retina-shadow {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-float,
    .animate-float-delayed,
    .animate-fade-in-up,
    .animate-gradient,
    .animate-pulse-slow {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .dark-mode-bg {
        background-color: #1f2937;
    }

    .dark-mode-text {
        color: #f9fafb;
    }

    .dark-mode-border {
        border-color: #374151;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .print-break {
        page-break-before: always;
    }

    .print-text {
        color: black !important;
        background: white !important;
    }
}

/* Landscape Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .landscape-mobile {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .landscape-hide {
        display: none;
    }
}

/* Accessibility Enhancements */
@media (prefers-contrast: high) {
    .high-contrast {
        border: 2px solid;
    }

    .high-contrast-text {
        font-weight: bold;
    }
}

/* Focus Visible */
.focus-visible:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Safe Area (iPhone X and newer) */
@supports (padding: max(0px)) {
    .safe-area {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-top: max(1rem, env(safe-area-inset-top));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Text Premium */
.text-premium {
    background: linear-gradient(135deg, #1e293b, #334155, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
