/* General Styles */
body {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background: #f7f9fb;
    color: #222;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: center;
}

p, li {
    font-size: 1.15rem;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2e4376;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.btn:hover {
    background: #1a237e;
}

/* Header Styles */
header {
    background: #f7f9fb;
    padding-top: 20px;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.logo-corner {
    max-width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-right: 18px;
    box-shadow: 0 2px 8px rgba(46,67,118,0.1);
    background: #fff;
    object-fit: contain;
    border: 2px solid #fff;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #1a237e;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(46,67,118,0.12);
    margin: 20px auto 32px auto;
    max-width: 600px;
    color: #fff;
}

.header-content h1 {
    color: #fff;
    text-shadow: 0 2px 8px rgba(46,67,118,0.1);
}

.header-desc {
    color: #e0e0e0;
    text-align: center;
    max-width: 480px;
}

/* Navbar Styles */
.navbar {
    max-width: 900px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-radius: 16px;
    padding: 0 12px;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    font-size: 18px;
    padding: 14px 24px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    margin: 0 8px;
    display: block;
}

.nav-item:hover, .nav-item.active {
    background: #0077ff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,119,255,0.1);
}

/* Section Styles */
.section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin: 32px auto;
    padding: 32px 40px;
}

/* Project Cards */
.project-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    max-width: 250px;
}

.project-img {
    max-width: 100px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 15px;
}

.card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.card a {
    margin-top: 10px;
}

/* YouTube Section */
.youtube-channels {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
.youtube-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2em;
}

.channel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1em;
    width: 220px;
    min-width: 180px;
}

.qr-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 0.5em;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.channel-label {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 0.3em;
    text-align: center;
}

.channel-desc {
    font-size: 0.95em;
    color: #555;
    text-align: center;
}

.channel-link {
    font-size: 1.2rem;
    font-weight: 500;
    color: #0077ff;
    text-decoration: none;
}

/* Book Preview */
.book-cover-img {
    max-width: 150px;
    height: auto;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact-bg {
    position: relative;
    background: #2e4376;
    color: #fff;
    min-height: 480px;
    overflow: hidden;
    padding: 60px 20px;
}

.contact-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://indigo-holy-alpaca-940.mypinata.cloud/ipfs/bafybeihw2s2upn3nefkmplzk6en32galoq6hrnj2uhwwnf663xijgejige') center/cover no-repeat;
    opacity: 0.18;
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 2;
    background: #fff;
    color: #222;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(46,67,118,0.1);
    padding: 2em;
    max-width: 420px;
    margin: 2em auto;
}

.contact-content h2 {
    color: #2e4376;
}

#contactForm label {
    display: block;
    margin-top: 1em;
    font-weight: 500;
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 0.7em;
    margin-top: 0.5em;
    border-radius: 8px;
    border: 1px solid #dbe2ef;
    font-size: 1em;
}

#contactForm button {
    margin-top: 1.5em;
    padding: 0.8em 2em;
    border-radius: 8px;
    background: #2e4376;
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

#message-display {
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
}

#message-display.error {
    color: #d32f2f;
    background: #ffcccc;
}

#message-display.success {
    color: #388e3c;
    background: #ccffcc;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #1a237e;
    color: #fff;
    border-radius: 16px 16px 0 0;
    margin-top: 32px;
}

/* Media Queries for smaller screens */
@media (max-width: 768px) {
    .nav-list {
        flex-wrap: wrap;
    }
    .nav-item {
        padding: 10px 12px;
        font-size: 16px;
    }
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .project-cards {
        flex-direction: column;
        align-items: center;
    }
    .card {
        max-width: 90%;
    }
}