
main {
    padding-bottom: 60px;
}

* {
    transition: 0.25s ease;
}

.cta {
    padding: 10px 20px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.highlight-card, .project-card {
    background: white;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
}

/* Global Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* ===========================
   UNIVERSAL NAV RESET
=========================== */
nav, nav * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===========================
   BASE NAV (DESKTOP + TABLET)
=========================== */
nav {
    width: 100%;
    background: #111;
    color: white;
    display: flex;
    flex-wrap: wrap;        /* Allows wrapping without breaking layout */
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    gap: 16px;
}

/* Logo */
nav .logo {
    font-weight: 900;
    font-size: 20px;
    color: white;
}

/* Navigation Links */
nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 16px;
    flex-shrink: 0;         /* Prevent squishing */
}

nav a:hover {
    background: #333;
}

/* ===========================
   MOBILE NAV (Under 600px)
=========================== */
@media (max-width: 600px) {

    nav {
        justify-content: center;
        gap: 12px;
        padding: 12px 10px;
    }

    /* Logo gets its own clean row */
    nav .logo {
        flex-basis: 100%;
        text-align: center;
        font-size: 22px;
        margin-bottom: 4px;
    }

    /* Links stay in a perfect row */
    nav a {
        font-size: 14px;
        padding: 8px 10px;
        flex-grow: 0;
        flex-shrink: 0;
    }
}




/* Hero Section */
.hero {
    text-align: center;
    padding: 120px 20px 80px;
    background: white;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 25px;
    color: #444;
}

.cta {
    padding: 12px 24px;
    background: #111;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
}

.cta:hover {
    background: #333;
}

/* Highlights */
.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 40px 20px;
}

.highlight-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
}

/* Project Page */
.projects-list {
    padding: 40px 20px;
}

.project-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}


.project-card h2 {
    margin-top: 0;
}

.project-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.project-card a:hover {
    background: #333;
}

/* About Page */
.about {
     max-width: 750px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 25px 20px 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.about p {
    line-height: 1.6;
    margin-top: 15px;
    font-size: 1.03rem;
    margin-bottom: 16px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}


.about h1 {
    margin-top: 0;
    font-size: 2.1rem;
    margin-bottom: 20px;
}

.about p:last-of-type {
    margin-bottom: 10px;
}


.playground-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.playground-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f7f7f7;
    padding: 18px;
    border-radius: 10px;
}

.playground-card textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: inherit;
}

.playground-card button {
    padding: 8px 14px;
    background: #0077ff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.playground-card button:hover {
    background: #005fcc;
}

.playground-card pre {
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    font-size: 13px;
    background: #eee;
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
    white-space: pre-wrap;
}
@media (max-width: 600px) {
    .playground-card pre {
        font-size: 12px;
        padding: 8px;
        max-width: 100%;
        overflow-wrap: break-word;
        white-space: pre-wrap;
        word-break: break-word;
    }
}


.contact {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 25px 50px 25px;
}

.contact-intro {
    font-size: 1.05rem;
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-details p {
    margin: 6px 0;
    font-size: 1.05rem;
}

.contact-details a {
    color: #0073e6;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-btn {
    background: black;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

.contact-btn:hover {
    background: #333;
}



footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

pre {
    background: #f0f0f0;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
    font-size: 14px;
    white-space: pre-wrap; 
}

.projects-list .project-card pre {
    margin-left: 0;
    margin-right: 0;
}



.inline-test {
    margin-top: 18px;
    padding: 15px;
    border-radius: 8px;
    background: #f7f7f7;
}

.inline-test h3 {
    margin-top: 0;
    font-size: 16px;
}

.inline-test input,
.inline-test textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: inherit;
}

.inline-test button {
    padding: 8px 14px;
    background: #0077ff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.inline-test button:hover {
    background: #005fcc;
}

.inline-test pre {
    margin-top: 10px;
    font-size: 13px;
}


.example-label {
    font-weight: bold;
    margin-bottom: 6px;
    display: block;
}

#rag-examples {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.hint {
    font-size: 13px;
    color: #555;
    margin-top: 8px;
}

.profile-photo {
    width: 200px;
    height: auto;
    border-radius: 10px;
    display: block;
     margin: 10px auto 45px auto;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    border: none;
}


