/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #0f0f1a;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

p {
    color: #e0e0e0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffed4e;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffed4e, #fff200);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.btn-hero {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    padding: 18px 36px;
    font-size: 1.2rem;
}

.btn-hero:hover {
    background: linear-gradient(135deg, #f7931e, #ff6b35);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4);
}

.btn-section {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    margin: 2rem auto;
    display: block;
    text-align: center;
    max-width: 300px;
}

.btn-section:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

/* Header */
.header {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #e0e0e0;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffd700;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffd700;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e1b4b, #312e81, #7c3aed);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

/* Main Content */
.main-content {
    padding: 80px 0;
}

.content-section {
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2rem;
}

.text-content {
    max-width: 100%;
}

.image-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.content-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.content-image:hover {
    transform: translateY(-5px);
}

.inline-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 1.5rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Lists */
ul, ol {
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

ul li, ol li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

ol li {
    font-weight: 500;
}

/* FAQ Section */
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

/* Footer */
.footer {
    background: #000;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.footer-content {
    text-align: center;
}

.footer-info p {
    color: #ccc;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.footer-links a {
    color: #ffd700;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
}

.last-updated, .author-info {
    font-size: 0.85rem;
    color: #999;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .image-content {
        order: -1;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 15, 26, 0.98);
        padding: 2rem;
        gap: 1rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    p, .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .btn-hero {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .content-section {
        margin-bottom: 3rem;
        padding: 1.5rem 0;
    }
    
    .inline-image {
        max-width: 100%;
    }
    
    .content-image {
        max-width: 250px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links a {
        display: inline-block;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 80px 0 50px;
    }
    
    .btn-hero {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .content-image {
        max-width: 200px;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem;
    }
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll offset for fixed header */
section[id] {
    scroll-margin-top: 100px;
}

/* Loading state for images */
img {
    transition: opacity 0.3s ease;
}

img[src=""] {
    opacity: 0.3;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

img[src=""]:before {
    content: 'Image placeholder';
    color: #999;
    font-size: 0.9rem;
}
.author-bio {
    background-color: #f9f9f9;
    padding: 40px 0;
    border-top: 1px solid #ddd;
    margin-top: 40px;
}

.author-container {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.author-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ccc;
}

.author-text {
    flex: 1;
    min-width: 250px;
}

.author-text h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: #222;
}

.author-text p {
    margin-top: 10px;
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}