:root {
    --bg-dark: #07090e;
    --bg-darker: #040508;
    --bg-card: rgba(20, 25, 38, 0.6);
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Light mode variables */
    --lm-bg: #f8fafc;
    --lm-bg-darker: #f1f5f9;
    --lm-card: #ffffff;
    --lm-text: #0f172a;
    --lm-text-muted: #475569;
    --lm-border: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
    background-color: var(--lm-bg-darker);
    color: var(--lm-text);
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.light-mode .glass {
    background: var(--lm-card);
    border: 1px solid var(--lm-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* Typography */
h1 { font-size: 4.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.1rem; max-width: 600px; }

body.light-mode p {
    color: var(--lm-text-muted);
}

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

body.light-mode .navbar {
    border-bottom: 1px solid var(--lm-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--accent);
    font-size: 1.6rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

body.light-mode .nav-links a {
    color: var(--lm-text);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

body.light-mode .theme-toggle-btn {
    color: var(--lm-text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary { 
    background-color: var(--primary); 
    color: white; 
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3); 
}
.btn-primary:hover { 
    background-color: var(--primary-hover); 
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4); 
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-light);
}

body.light-mode .btn-outline {
    border-color: var(--lm-border);
    color: var(--lm-text);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}

body.light-mode .btn-outline:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 5% 5rem;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    filter: blur(80px);
    opacity: 0.8;
}

.hero-content { 
    flex: 1; 
    max-width: 650px; 
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-buttons { 
    display: flex; 
    gap: 1rem; 
    margin-top: 2.5rem; 
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.hero-visual img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-visual img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Features Section */
.features {
    padding: 5rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.feature-card {
    padding: 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(99,102,241,0.1));
    color: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding-top: 8rem;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        margin-bottom: 4rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    h1 { font-size: 3.5rem; }
    .hero-visual img {
        transform: none;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
}

/* Footer & Developer Info */
footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 5% 2rem;
    margin-top: 5rem;
}
body.light-mode footer {
    background-color: var(--lm-bg-darker);
    border-top: 1px solid var(--lm-border);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}
.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
}
body.light-mode .footer-col h4 {
    color: var(--lm-text);
}
.footer-col p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 0.75rem;
}
.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.footer-col ul li a:hover {
    color: var(--primary);
}
body.light-mode .footer-col ul li a {
    color: var(--lm-text-muted);
}
body.light-mode .footer-col ul li a:hover {
    color: var(--primary);
}
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.social-links a {
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: color 0.3s;
}
.social-links a:hover {
    color: var(--primary);
}
body.light-mode .social-links a {
    color: var(--lm-text-muted);
}
body.light-mode .social-links a:hover {
    color: var(--primary);
}
.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
body.light-mode .footer-bottom {
    border-top: 1px solid var(--lm-border);
    color: var(--lm-text-muted);
}
