@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --color-bg: #f3f4f6;
    --color-text: #111827;
    --color-accent: #007676;
    /* Darker cyan/teal for better contrast on light bg */
    --color-glow: rgba(0, 118, 118, 0.6);
    /* More visible glow on light bg */
    --text-shadow: 0 0 2px var(--color-glow);
    /* Minimal glow for light mode */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
}

:root.dark {
    --color-bg: #0a0a0a;
    --color-text: #ffffff;
    --color-accent: #00ffff;
    --color-glow: rgba(0, 255, 255, 0.6);
    --text-shadow: 0 0 10px var(--color-glow), 0 0 20px var(--color-glow);
    /* Strong glow for dark mode */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
}

/* Custom Utilities for Brand Colors */
.text-brand-accent {
    color: var(--color-accent);
}

.bg-brand-accent {
    background-color: var(--color-accent);
}

.border-brand-accent {
    border-color: var(--color-accent);
}

.bg-brand-dark {
    background-color: #0a0a0a;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    position: relative;
}

/* Global Hexagon Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill-opacity='0.03' fill='%23000000' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 60px 104px;
    pointer-events: none;
}

.dark body::before {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill-opacity='0.03' fill='%23ffffff' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Text Selection */
::selection {
    background: var(--color-accent);
    color: #000;
}

/* Glow Effects */
.glow-text {
    text-shadow: var(--text-shadow);
}

.glow-box {
    box-shadow: 0 0 15px var(--color-glow);
    transition: all 0.3s ease;
}

.glow-box:hover {
    box-shadow: 0 0 25px var(--color-accent), inset 0 0 10px var(--color-glow);
    border-color: var(--color-accent);
}

.glow-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--color-glow);
}

.glow-btn:hover {
    box-shadow: 0 0 20px var(--color-accent);
    transform: translateY(-2px);
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* Loader */
.loader {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--color-accent);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Input Autofill Fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
    -webkit-text-fill-color: white !important;
}

:root:not(.dark) input:-webkit-autofill,
:root:not(.dark) input:-webkit-autofill:hover,
:root:not(.dark) input:-webkit-autofill:focus,
:root:not(.dark) input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #e5e7eb inset !important;
    /* gray-200 */
    -webkit-text-fill-color: #111827 !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.animate-gradient {
    background-size: 200% auto;
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

/* Floating Animations for Hero Elements */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatDelayed {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float-slow {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: floatDelayed 5s ease-in-out infinite;
    animation-delay: 2s;
}

.animate-ping-slow {
    animation: ping 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* SVG Line Animation */
.animate-dash {
    stroke-dasharray: 10;
    animation: dash 5s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -100;
    }
}

/* Funnel Drop Animation */
.animate-drop {
    animation: drop 3s infinite;
}

@keyframes drop {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}