/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #0b0b0b;
    background: #fff;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header Styles */
header {
    background: #004282;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo-section h1 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-section .logo {
    height: 40px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #e0e0e0;
}

.mobile-only {
    display: none;
}

.header-actions {
    margin-left: auto;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: #000;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: #000;
}

/* Main Content */
main {
    background: #fff;
}

.section {
    padding: 3rem 1rem;
    border-bottom: 1px solid #eee;
}

.section h2 {
    color: #0047b3;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #555;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8)), url('../img/A\ vibrant\ 4k\ illustr.png') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    border-bottom: none;
    overflow: hidden;
    position: relative;
    min-height: 600px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}



.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    color: white;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero .btn {
    margin-top: 0;
    padding: 20px 60px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(238, 125, 32, 0.4);
}

/* Feature Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: #fafafa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    color: #fff;
}

.feature-card h3 {
    color: #0047b3;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: #666;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ee7d20;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.feature-link:hover {
    gap: 0.75rem;
}

/* Button Styles */
.btn {
    background: #ee7d20;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 0 auto;
    text-transform: uppercase;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(238, 125, 32, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* Output Display */
.output {
    margin-top: 30px;
    padding: 20px;
    background: #e8f4f8;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    min-height: 60px;
    display: none;
}

.output.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Container */
.form-container {
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-container h2 {
    color: #0047b3;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-container iframe {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

/* Custom Form Styles */
.custom-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.custom-form .btn {
    width: 100%;
    margin-top: 10px;
}

.form-status {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.form-status.loading {
    background: #e3f2fd;
    color: #1976d2;
}

.form-status.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.form-status.error {
    background: #ffebee;
    color: #c62828;
}

/* Footer Styles */
footer {
    background: #004282;
    color: white;
    padding: 2rem 1rem;
}

footer h3 {
    color: white;
    margin-bottom: 0.5rem;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.social {
    margin: 1rem 0;
    display: flex;
    gap: 1rem;
}

.social a {
    color: #fff;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social a:hover {
    background: #ee7d20;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(238, 125, 32, 0.4);
}

.social a svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
/* Tablet and below */
@media (max-width: 1024px) {
    .header-content {
        padding: 0.75rem 1rem;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 2.5rem 1rem;
    }

    .hero {
        padding: 4rem 1.5rem;
    }

    .hero-image {
        max-width: 500px;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.15rem;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    header {
        height: 80px;
    }

    .header-content {
        height: 80px;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 100;
        padding-top: 80px;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    nav ul li a {
        display: block;
        padding: 1rem 1.5rem;
        color: #333;
        transition: background 0.3s ease;
    }

    nav ul li a:hover {
        background: #f5f5f5;
    }

    /* Show Library only in hamburger menu on mobile */
    nav ul li:has(a[href="library.html"]):not(.mobile-only) {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .header-actions {
        display: flex;
        margin-left: 0;
        margin-right: 0.5rem;
    }

    .header-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .logo-section h1 {
        font-size: 1.2rem;
    }

    .logo-section .logo {
        height: 50px !important;
        width: auto;
    }

    .hero {
        padding: 0 0 3rem 0;
    }

    .hero-image {
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        margin: 0 0 2rem 0;
        box-shadow: none;
    }

    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .hero .btn {
        padding: 14px 35px;
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .header-content {
        padding: 0.5rem;
    }

    .logo-section h1 {
        font-size: 1rem;
    }

    .logo-section .logo {
        height: 30px;
    }

    .header-actions .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .hero {
        padding: 0 0 2.5rem 0;
    }

    .hero-image {
        margin-bottom: 1.5rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }

    .hero .btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .section {
        padding: 2rem 0.75rem;
    }

    .section h2 {
        font-size: 1.3rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }

    nav {
        width: 80%;
    }
}
