:root {
    --bg-dark: #050505;
    --accent: #00f2ff;
    --accent-secondary: #7000ff;
    --text-main: #ffffff;
    --text-dim: #b0b0b0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-primary: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Cursor */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out;
}

/* Header & Nav */
header {
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
}

.icon-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
}

.hero-content {
    max-width: 600px;
}

h1 {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 2rem;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 450px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.cta-btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary));
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn.secondary {
    background: var(--glass);
    border: 1px solid var(--glass-border);
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.2);
}

.hero-image-container {
    position: relative;
    width: 500px;
    height: 500px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.15) 0%, transparent 70%);
    filter: blur(40px);
}

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

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

/* Product Grid */
.products {
    padding: 10rem 10%;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 5px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.product-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.4s, border-color 0.4s;
    backdrop-filter: blur(10px);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.product-img-box {
    width: 100%;
    height: 250px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.price {
    color: var(--accent);
    font-weight: 600;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
    backdrop-filter: blur(15px);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.panel-content {
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-btn {
    font-size: 3rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.search-input-wrapper input {
    width: 100%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    outline: none;
}

.search-input-wrapper input:focus {
    border-color: var(--accent);
}

.results-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 1rem;
}

/* Code Result Style */
.algo-card {
    background: #0f0f0f;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.algo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.copy-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: var(--accent);
    color: black;
}

.copy-btn.copied {
    border-color: #00ff88;
    color: #00ff88;
}

.algo-meta {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
}

.question-text {
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.explanation-text {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.4;
}

.code-block {
    background: #121212;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #e0e0e0;
    overflow-x: auto;
    white-space: pre;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
