:root {
    --bg-color: #0d0d12;
    --card-bg: #1a1a24;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --gradient-main: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --glass-bg: rgba(26, 26, 36, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 12px;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Header */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 18, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
}


/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.card-image {
    height: 200px;
    background: #2a2a35;
    width: 100%;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-meta {
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
    display: block;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.card-excerpt {
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--accent-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Single Post */
.post-header {
    padding: 60px 0 40px;
    text-align: center;
}

.post-header h1 {
    font-size: 3rem;
    max-width: 900px;
    margin: 0 auto 20px;
}

.post-meta {
    color: var(--text-secondary);
    font-size: 1rem;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 80px;
    font-size: 1.125rem;
}

.post-content h2 {
    font-size: 2rem;
    margin-top: 50px;
    color: var(--text-primary);
}

.post-content p {
    margin-bottom: 24px;
    color: #c0c0c6;
}

.post-content a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-decoration-color: rgba(99, 102, 241, 0.3);
}

.cta-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--accent-primary);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin: 60px 0;
}

.cta-box h3 {
    margin-bottom: 15px;
}

/* Products Page - Big Boxes */
.products-container {
    padding: 80px 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.product-box {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: 400px;
    border-radius: 24px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.product-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-box:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-box:hover::before {
    opacity: 1;
}

.product-box h2 {
    font-size: 2.5rem;
    z-index: 1;
    margin-bottom: 15px;
}

.product-box p {
    color: var(--text-secondary);
    z-index: 1;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.product-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    z-index: 1;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 0;
}

.contact-info-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.info-item {
    margin-bottom: 30px;
}

.info-item h3 {
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Footer (Updated to match Sparrow) */
footer {
    background: #050507;
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    max-width: 300px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive */
/* Responsive */
@media (max-width: 900px) {

    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .products-container {
        flex-direction: column;
        align-items: center;
    }

    .product-box {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    /* Mobile Navigation */
    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 101;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        background-color: white;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: rgba(13, 13, 18, 0.98);
        width: 100%;
        height: 100vh;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
        z-index: 100;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        margin: 20px 0;
        font-size: 1.5rem;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Base Hamburger (Hidden on Desktop) */
.hamburger {
    display: none;
}