:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent-gold: #d4af37;
    --accent-cyan: #00f2ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Grain Effect */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 10;
}

/* Honeycomb Texture */
.honeycomb-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Larger hexagons, golden stroke */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='150' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23d4af37' stroke-opacity='0.4' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 42px 75px;
    pointer-events: none;
    z-index: 2;
    /* Backlit effect */
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.2));
    /* Only visible near the spotlight */
    -webkit-mask-image: radial-gradient(circle at var(--x, 50%) var(--y, 50%), black 0%, transparent 60%);
    mask-image: radial-gradient(circle at var(--x, 50%) var(--y, 50%), black 0%, transparent 60%);
    transition: mask-image 0.1s ease-out, -webkit-mask-image 0.1s ease-out;
}

.honeycomb-overlay.ripple {
    animation: honeycombRipple 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes honeycombRipple {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes touchPulse {

    0%,
    100% {
        --x: 20%;
        --y: 20%;
    }

    25% {
        --x: 80%;
        --y: 30%;
    }

    50% {
        --x: 70%;
        --y: 80%;
    }

    75% {
        --x: 20%;
        --y: 70%;
    }
}

.touch-mode .spotlight,
.touch-mode .honeycomb-overlay {
    animation: touchPulse 20s infinite linear;
}

/* Dynamic Spotlight */
.spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(212, 175, 55, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
    transition: background 0.1s ease-out;
}

.hero {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 5%;
    background: radial-gradient(circle at center, rgba(15, 15, 15, 0.5) 0%, var(--bg-color) 100%);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo span {
    font-weight: 300;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.hero-content {
    max-width: 800px;
}

.title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.premium-button {
    position: relative;
    background: transparent;
    border: 1px solid var(--glass-border);
    padding: 1.2rem 3rem;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.premium-button:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.2);
}

.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    pointer-events: none;
}

.premium-button:hover .button-glow {
    width: 300px;
    height: 300px;
}

.footer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1.5s ease forwards;
}

.slide-up {
    opacity: 0;
    animation: slideUp 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* Chatbot Styles */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: black;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.chat-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.chat-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.chat-container.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.bot-status {
    width: 10px;
    height: 10px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
}

.chat-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.chat-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.chat-close:hover {
    color: white;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Custom Scrollbar for Messages */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.message {
    max-width: 85%;
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: messageIn 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    align-self: flex-start;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 2px;
}

.message.user {
    align-self: flex-end;
    background: var(--accent-gold);
    color: black;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

.chat-input-area {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.8rem;
}

#chatInput {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    color: white;
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.3s ease;
}

#chatInput:focus {
    border-color: var(--accent-gold);
}

#chatSend {
    background: transparent;
    border: none;
    color: var(--accent-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

#chatSend:hover {
    transform: translateX(3px) scale(1.1);
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.option-btn {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent-gold);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background: var(--accent-gold);
    color: black;
}