/* 
  Blogger.com Clone - Futuristic Redesign
  Theme: Cyber-Premium / AI-Startup
  Inspiration: Linear, Vercel, Apple Vision Pro
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-base: #050505;
    --bg-surface: #0a0a0a;
    --bg-card: rgba(15, 15, 15, 0.4);
    
    --primary: #6366f1; /* Electric Indigo */
    --primary-glow: rgba(99, 102, 241, 0.3);
    --secondary: #ec4899; /* Cyber Pink */
    --secondary-glow: rgba(236, 72, 153, 0.3);
    --accent: #06b6d4; /* Neon Cyan */
    
    --text-main: #fcfcfc;
    --text-muted: #888888;
    --text-dim: #555555;
    
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);
    
    --gradient-linear: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-aurora: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--primary-glow) 0%, transparent 40%);
    
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Base Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Futuristic Background */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 40%),
        var(--bg-base);
    overflow: hidden;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.15;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out;
}

.cursor-follower {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: top 0.15s ease-out, left 0.15s ease-out;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.text-gradient {
    background: var(--gradient-linear);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

nav.scrolled {
    padding: 1rem 5%;
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 900;
    text-decoration: none;
    color: white;
    letter-spacing: -2px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: white;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.btn-futuristic {
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: white;
    color: black;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
}

.hero-title {
    font-size: 6rem;
    max-width: 1000px;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Blog Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 3rem;
    padding: 5rem 5%;
}

.blog-card-3d {
    perspective: 1000px;
}

.blog-card-inner {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    overflow: hidden;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.card-img-wrapper {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.blog-card-inner:hover .card-img-wrapper img {
    transform: scale(1.1) rotate(2deg);
}

.card-content {
    padding: 2.5rem;
}

.category-tag {
    padding: 0.4rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Dashboard Widgets */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    padding-top: 80px;
}

.sidebar-glass {
    border-right: 1px solid var(--glass-border);
    padding: 3rem;
    background: rgba(5, 5, 5, 0.3);
    backdrop-filter: blur(10px);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.stat-widget {
    padding: 2rem;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
}

/* Forms */
.input-futuristic {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    color: white;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.input-futuristic:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 4rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .sidebar-glass { display: none; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .card-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}

/* Scroll Animations */
[data-aos] {
    transition-property: transform, opacity;
}
