:root {
    --bg-color: #0f0a1a;
    --surface-color: #1c142b;
    --primary-color: #bb86fc;
    --secondary-color: #7c4dff;
    --text-main: #b3b3b3;
    --text-light: #ffffff;
    --transition-speed: 0.4s;
    --ease-premium: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kantumruy Pro', sans-serif;
    font-weight: 600;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeInPage 0.8s var(--ease-premium) forwards;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Typography */
h1, h2, h3 { color: var(--text-light); font-weight: 700; transition: color 0.3s ease; }
h1 { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1.2; letter-spacing: -1px; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; }
p { margin-bottom: 1rem; }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 10px 20px rgba(187, 134, 252, 0.2);
}
.btn-primary:hover {
    box-shadow: 0 15px 30px rgba(187, 134, 252, 0.4);
    transform: translateY(-5px) scale(1.05);
}

/* Navbar */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(15, 10, 26, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 1.5rem; font-weight: bold; color: var(--text-light); text-decoration: none; transition: transform 0.3s ease;}
.logo:hover { transform: scale(1.05); }
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 30px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.nav-links a:hover { color: var(--primary-color); transform: translateY(-2px); }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(124, 77, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
}
.hero-content {
    max-width: 600px;
}
.hero p { font-size: 1.2rem; margin-bottom: 2rem; }

/* Features Section */
.features { padding: 100px 0; background-color: var(--surface-color); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-card {
    background: rgba(15, 10, 26, 0.5);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(187, 134, 252, 0.05);
    transition: all 0.5s var(--ease-premium);
    backdrop-filter: blur(5px);
}
.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary-color);
    background: rgba(15, 10, 26, 0.8);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.2) rotate(5deg); }

/* Stats Section */
.stats { padding: 80px 0; text-align: center; }
.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}
.stat-item h3 { font-size: 3rem; color: var(--primary-color); margin-bottom: 5px; }

/* Contact Section */
.contact { padding: 100px 0; background-color: var(--surface-color); }
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(15, 10, 26, 0.8);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-light); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: var(--text-light);
    transition: all 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 0 4px rgba(187, 134, 252, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
#form-message { margin-top: 15px; text-align: center; font-weight: bold; }
.success { color: var(--primary-color); }
.error { color: #ff6b6b; }

/* Footer */
footer { padding: 40px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }

/* Animations */
.animate-hidden {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 1s var(--ease-premium), transform 1s var(--ease-premium);
    will-change: transform, opacity;
}
.animate-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* About & Strategy Section specific styles */
.about-dev { padding: 100px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.dev-profile { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.dev-image { width: 300px; height: 300px; border-radius: 30px; overflow: hidden; background: #2a3441; border: 2px solid var(--primary-color); flex-shrink: 0; transition: transform 0.5s var(--ease-premium); box-shadow: 0 10px 30px rgba(0,0,0,0.3);}
.dev-image:hover { transform: scale(1.03) rotate(-1deg); }
.dev-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%); transition: 0.8s var(--ease-premium); }
.dev-image:hover img { filter: grayscale(0%); transform: scale(1.1); }
.dev-info { flex: 1; min-width: 300px; }

.strategy-box { 
    background: rgba(187, 134, 252, 0.03); 
    border-left: 4px solid var(--primary-color); 
    padding: 30px; 
    border-radius: 0 20px 20px 0;
    margin-top: 30px;
}
.strategy-step { margin-bottom: 25px; display: flex; align-items: flex-start; gap: 20px; transition: transform 0.3s ease; }
.strategy-step:hover { transform: translateX(10px); }
.step-num { 
    background: var(--primary-color); 
    color: #000; 
    width: 30px; height: 30px; 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    font-weight: 800; flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(187, 134, 252, 0.3);
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .hero { text-align: center; }
    .hero-content { margin: 0 auto; }
    .dev-profile { flex-direction: column; text-align: center; }
}
