:root {
    --primary-bg: #030a16;
    --secondary-bg: #0a192f;
    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* Background Animation */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #0a192f 0%, #030a16 100%);
}

.blob {
    position: absolute;
    filter: blur(90px);
    opacity: 0.5;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #1e3a8a;
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    bottom: 20%;
    right: -5%;
    animation-delay: -5s;
}

.blob-3 {
    width: 500px;
    height: 500px;
    background: #0f172a;
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }

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

.section {
    padding: 6rem 0;
    position: relative;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

.align-center {
    align-items: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(3, 10, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px;
    border-radius: 4px;
    display: block;
}

.logo-img-small {
    height: 75px;
    border-radius: 4px;
    display: inline-block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-hover);
}

.btn-nav {
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Language Switch */
.lang-switch {
    display: flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    overflow: hidden;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--accent-color);
    color: #fff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.book-cover {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.book-cover:hover {
    transform: scale(1.02) rotate(2deg);
}

/* Components */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-intro {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
}

.highlight-card {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.1) 0%, rgba(3, 10, 22, 0) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.full-width {
    grid-column: 1 / -1;
}

/* Author Cards */
.author-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
}

.author-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.author-icon {
    font-size: 1.5rem;
}

.author-card p {
    margin: 0;
    font-size: 0.95rem;
}

.author-card strong {
    color: #fff;
    display: block;
    margin-bottom: 0.2rem;
}

.icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Networks Animation */
.network-animation {
    position: relative;
    width: 100%;
    height: 300px;
    background: var(--glass-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.node {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-color);
}

.n1 { top: 20%; left: 20%; animation: pulse 2s infinite alternate; }
.n2 { top: 50%; left: 80%; animation: pulse 2s infinite alternate 0.5s; }
.n3 { top: 80%; left: 50%; animation: pulse 2s infinite alternate 1s; }
.n4 { top: 20%; left: 80%; animation: pulse 2s infinite alternate 1.5s; }
.n5 { top: 50%; left: 50%; animation: pulse 2s infinite alternate 0.2s; background: #fff; width: 20px; height: 20px; }

.lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 10px var(--accent-color); }
    100% { transform: scale(1.5); box-shadow: 0 0 25px var(--accent-color); }
}

/* Quote Box */
.quote-box {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    font-style: italic;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
}

/* Author Section */
.author-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    max-width: 50%;
    margin: 0 auto;
}

.author-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(3, 10, 22, 0.8), transparent);
    z-index: 1;
}

.author-img {
    width: 100%;
    display: block;
    filter: grayscale(20%);
    transition: var(--transition);
}

.author-img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #020617;
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

/* Responsive */
@media (max-width: 992px) {
    .title { font-size: 2.8rem; }
    .hero-container, .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
    .hero-image { order: -1; text-align: center; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(3, 10, 22, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        border-left: 1px solid var(--glass-border);
    }
    
    .nav-menu.open { right: 0; }
    
    .menu-toggle.open span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }
    
    .title { font-size: 2.2rem; }
    .section { padding: 4rem 0; }
    .book-cover { max-width: 280px; }
}
