* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --dark: #0f172a;
    --dark-secondary: #1e293b;
    --dark-tertiary: #334155;
    --light: #f8fafc;
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    right: 20px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(4.png);
    background-size: cover;
    background-position: 70% 30%;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Page Header */
.page-header {
    background: url(123.png);
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.3);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Intro Section */
.intro-section {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-secondary) 100%);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.intro-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.intro-card:hover::before {
    left: 100%;
}

.intro-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
    border-color: var(--primary);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.intro-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Tech Comparison */
.tech-comparison {
    background: var(--dark-secondary);
}

.comparison-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.comparison-card {
    background: var(--dark);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.comparison-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.comparison-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.comparison-card h3 {
    font-size: 1.8rem;
    padding: 1.5rem;
    background: var(--gradient-1);
    color: white;
    text-align: center;
}

.tech-list {
    list-style: none;
    padding: 2rem;
}

.tech-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.tech-list li:last-child {
    border-bottom: none;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

/* Stats Section */
.stats-section {
    background: var(--dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.stat-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(180deg, var(--dark-secondary) 0%, var(--dark) 100%);
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cta-card {
    padding: 2.5rem;
    background: var(--dark);
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: block;
}

.cta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
    border-color: var(--primary);
}

.cta-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.cta-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Content Layout */
.content-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.content-main {
    background: var(--dark-secondary);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.content-block {
    margin-bottom: 3rem;
}

.content-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-lg);
}

.info-box {
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.info-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
}

.info-box.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
}

.code-block {
    background: var(--dark);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin: 1.5rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.code-block code {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Sidebar */
.sidebar-card {
    background: var(--dark);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 2rem;
    position: sticky;
    top: 100px;
}

.sidebar-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.sidebar-card ul {
    list-style: none;
}

.sidebar-card li {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    color: var(--text-secondary);
}

.sidebar-card li:last-child {
    border-bottom: none;
}

/* Practices Grid */
.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.practice-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.practice-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--gradient-1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
}

.practice-card h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.4rem;
}

/* Best Practices Summary */
.best-practices-summary {
    margin-top: 4rem;
    background: var(--dark);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.summary-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.summary-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

/* Author Page */
.author-layout {
    max-width: 900px;
    margin: 0 auto;
}

.author-card {
    background: var(--dark-secondary);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.author-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.avatar-icon {
    font-size: 4rem;
}

.author-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.author-title {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.author-description {
    margin: 2rem 0;
}

.author-description p {
    margin-bottom: 1.5rem;
}

.author-description ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-secondary);
}

.tech-stack,
.project-info {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.tech-stack h3,
.project-info h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.project-info ul {
    list-style-position: inside;
    color: var(--text-secondary);
}

.project-info li {
    padding: 0.5rem 0;
}

/* Footer */
.footer {
    background: var(--dark);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    margin-top: 4rem;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-year {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-card {
        position: static;
    }
    
    .comparison-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        padding: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .intro-grid,
    .stats-grid,
    .cta-grid,
    .practices-grid {
        grid-template-columns: 1fr;
    }
    
    .content-main {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}
