:root {
    --primary: #6366f1;
    --secondary: #a855f7;
    --accent: #2dd4bf;
    --dark: #0f172a;
    --light: #f8fafc;
    --text: #334155;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --glass: rgba(255, 255, 255, 0.7);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

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

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

.logo-dot {
    width: 12px;
    height: 12px;
    background: var(--gradient);
    border-radius: 50%;
    display: inline-block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    position: relative;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent),
                radial-gradient(circle at bottom left, rgba(168, 85, 247, 0.1), transparent);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(40px);
    opacity: 0.4;
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -100px;
    right: -50px;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    bottom: -50px;
    left: -50px;
}

/* Blog Article */
.blog-section {
    padding: 4rem 0;
}

.main-article {
    background: var(--white);
    padding: 4rem;
    border-radius: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.article-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-meta {
    font-size: 0.875rem;
    color: #94a3b8;
}

.article-body {
    font-size: 1.125rem;
    color: var(--text);
    max-width: 800px;
    margin: 0 auto;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h3 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
}

.anchor-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    transition: all 0.3s;
}

.anchor-link:hover {
    background: var(--primary);
    color: var(--white);
}

.quote-box {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--gradient);
    border-radius: 1.5rem;
    color: var(--white);
    position: relative;
}

.quote-box blockquote {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 600;
    text-align: center;
}

/* Features Section */
.features {
    padding: 6rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.icon-shape {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
}

.circle { border-radius: 50%; }
.square { border-radius: 12px; }
.triangle { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-info p {
    color: #94a3b8;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobile menu hidden by default */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 { font-size: 2.5rem; }
    .main-article { padding: 2rem; }
    .article-header h2 { font-size: 1.75rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

/* Additional Styles for Subpages */
.small-hero {
    padding: 4rem 0;
}

.small-hero h1 {
    font-size: 3rem;
}

/* Mobile Menu Toggle Animation */
.menu-toggle span.open:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle span.open:nth-child(2) {
    opacity: 0;
}

.menu-toggle span.open:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-toggle span {
    transition: all 0.3s;
}
