/* --- CSS VARIABLES & RESET --- */
:root {
    --bg-dark: #050507;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(10, 10, 10, 0.6);
    --primary: #00f0ff;
    --secondary: #7000ff;
    --accent: #ff0055;
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glow-effect {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(112,0,255,0.2) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    backdrop-filter: blur(12px);
    background: var(--bg-glass);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    border-color: var(--primary);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0,240,255,0.08) 0%, rgba(0,0,0,0) 60%);
    z-index: -1;
    animation: pulse 8s infinite ease-in-out;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* --- GRID BENTO SECTION (Services) --- */
.section-padding { padding: 8rem 0; }

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: left;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.card:hover::after { opacity: 1; }

.card-large { grid-column: span 2; }
.card-tall { grid-row: span 2; }

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- STATS SECTION --- */
.stats-container {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 3rem 0;
    margin: 4rem 0;
}

.stat-item h2 {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--text-main);
}

.stat-item p {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- CTA --- */
.cta-section {
    background: linear-gradient(180deg, rgba(5,5,7,0) 0%, rgba(112,0,255,0.1) 100%);
    text-align: center;
    padding: 10rem 0;
}

/* --- BLOG STYLES --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Changed auto-fit to auto-fill */
    gap: 2rem;
}

.blog-card {
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
    display: block;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.blog-date {
    display: block;
    color: var(--primary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.blog-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.blog-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 2px;
}

/* --- BLOG POST STYLES --- */
.blog-post-container {
    padding-top: 150px;
    padding-bottom: 8rem;
}

.post-header {
    text-align: left; /* Changed from center to left */
    max-width: 800px;
    margin: 0 auto 6rem;
}

.back-link {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-link:hover { color: var(--primary); }

.post-date {
    display: block;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.post-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.post-content {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content p { margin-bottom: 2rem; color: #d0d0d0; }

.post-content h2, .post-content h3 {
    font-family: var(--font-heading);
    margin: 3rem 0 1.5rem;
    color: var(--text-main);
}

.post-content h2 { font-size: 2rem; }
.post-content h3 { font-size: 1.5rem; }

.post-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    color: #d0d0d0;
}

.post-content li { margin-bottom: 0.5rem; }

.post-content strong { color: var(--primary); }

.post-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 2rem;
    margin: 2rem 0;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-main);
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 4rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- ANIMATIONS --- */
@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .card-large, .card-tall { grid-column: auto; grid-row: auto; min-height: 250px; }
    .hero-content h1 { font-size: 3rem; }
    .stats-container { flex-direction: column; gap: 2rem; text-align: center; }
}