/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #5c6bc0;
    --primary-dark: #3f51b5;
    --secondary: #7e57c2;
    --accent: #f093fb;
    --text-dark: #333;
    --text-light: #666;
    --text-muted: #888;
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --gradient-main: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-soft: linear-gradient(120deg, #a8edea 0%, #fed6e3 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
}

body {
    font-family: 'Noto Serif SC', 'Georgia', serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.8;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

/* ===== Navigation ===== */
.navbar {
    background: var(--bg-card);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.nav-logo span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
}

/* ===== Hero Section ===== */
.hero {
    background: var(--gradient-main);
    padding: 150px 20px 100px;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--gradient-accent);
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero .subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero .tagline {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Page Header ===== */
.page-header {
    background: var(--gradient-main);
    padding: 140px 20px 60px;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== Main Content ===== */
.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ===== Section Styles ===== */
.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    font-size: 1.8rem;
}

/* ===== Cards ===== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 35px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.card-title {
    font-size: 1.3rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.card-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.card-content {
    color: var(--text-light);
    line-height: 1.9;
}

.card-content ul {
    margin-top: 15px;
    padding-left: 20px;
}

.card-content li {
    margin-bottom: 8px;
}

/* ===== Badges & Tags ===== */
.badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background: var(--gradient-main);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
}

/* ===== Highlight Box ===== */
.highlight-box {
    background: var(--gradient-soft);
    padding: 30px;
    border-radius: var(--radius);
    margin: 25px 0;
}

/* ===== Quote ===== */
.quote {
    font-style: italic;
    color: var(--secondary);
    font-size: 1.3rem;
    text-align: center;
    padding: 40px;
    background: #f8f6ff;
    border-radius: var(--radius);
    border-left: 5px solid var(--secondary);
    margin: 40px 0;
}

.quote-author {
    display: block;
    margin-top: 15px;
    font-size: 1rem;
    opacity: 0.8;
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-main);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* ===== Grid Layout ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ===== Feature Cards (Homepage) ===== */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

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

/* ===== CTA Button ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    color: white;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* ===== Footer ===== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 50px 20px 30px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: white;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===== Contact Form ===== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-soft);
    border-radius: 50%;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .features {
        grid-template-columns: 1fr;
        margin-top: -30px;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .hero-avatar {
        width: 140px;
        height: 140px;
        font-size: 56px;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}
