/* RoboGenie Website Styles */
/* Design: White background, minimal, clean, education-focused */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.7;
    font-size: 16px;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    height: 70px;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.25rem;
}

.nav-logo-img {
    height: 64px;
    width: auto;
}

.nav-logo-text {
    color: #1a1a1a;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #2c5f8d;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Scroll margin for sections behind sticky nav */
section {
    scroll-margin-top: 90px;
}

/* ===== Typography ===== */
h1, h2, h3 {
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #2c5f8d;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1a3a5a;
}

/* ===== Layout Containers ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 8rem 0;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    margin-top: 70px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-image.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-text-panel {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 12px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.hero-headline {
    margin: 0 0 1.5rem 0;
    color: #1a1a1a;
}

.hero-text {
    margin: 0 0 2rem 0;
    font-size: 1.2rem;
    color: #333;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.hero-cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #2c5f8d;
    text-decoration: none;
    border: 2px solid #2c5f8d;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.hero-cta:hover {
    background: #2c5f8d;
    color: #ffffff;
    transform: translateY(-2px);
}

.cta-button {
    display: inline-block;
    background-color: #2c5f8d;
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(44, 95, 141, 0.25), 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
}

.cta-button:hover {
    background-color: #1a3a5a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(44, 95, 141, 0.4), 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* ===== Section Intro Text ===== */
.section-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    color: #4a4a4a;
}

/* ===== Why RoboGenie Section ===== */
.why-robogenie {
    background-color: #fafafa;
}

.why-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.why-intro {
    position: sticky;
    top: 2rem;
}

.why-intro h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.why-description {
    color: #4a4a4a;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.why-principles {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.principle {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.principle:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.principle h3 {
    color: #2c5f8d;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.principle p {
    color: #3a3a3a;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* ===== Before vs After Transformation Section ===== */
.transformation {
    background-color: #fafafa;
}

.transformation h2 {
    text-align: center;
}

.transformation-grid {
    max-width: 900px;
    margin: 3rem auto 0;
}

.transformation-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.before-header {
    text-align: center;
    color: #6a6a6a;
}

.after-header {
    text-align: center;
    color: #2c5f8d;
}

.transformation-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.transformation-row:last-child {
    border-bottom: none;
}

.before, .after {
    padding: 1rem;
    border-radius: 4px;
}

.before {
    background-color: #f5f5f5;
    color: #6a6a6a;
}

.after {
    background-color: #e8f0f7;
    color: #1a3a5a;
    font-weight: 500;
}

/* ===== Programs Section ===== */
.programs {
    background-color: #ffffff;
    position: relative;
    z-index: 1;
}

.programs h2 {
    text-align: center;
}

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

.program-card {
    background-color: #ffffff;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.program-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #2c5f8d;
}

.program-card.highlight {
    border: 2px solid #2c5f8d;
}

.program-image {
    width: 100%;
    height: 160px;
    object-fit: contain;
    object-position: center;
    display: block;
    opacity: 0.9;
    background-color: #f8f8f8;
}

.program-name {
    color: #2c5f8d;
    margin: 1.5rem 2rem 1rem 2rem;
}

.program-outcome {
    font-size: 1.05rem;
    color: #1a1a1a;
    font-weight: 500;
    margin: 0 2rem 1rem 2rem;
    line-height: 1.5;
}

.program-details {
    color: #6a6a6a;
    font-size: 0.95rem;
    margin: 0 2rem 0.75rem 2rem;
}

.program-grade {
    font-weight: 500;
}

.program-separator {
    margin: 0 0.5rem;
}

.program-focus {
    font-style: italic;
}

.program-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 2rem 1.5rem 2rem;
}

.tool-badge {
    display: inline-block;
    background-color: #f0f0f0;
    color: #6a6a6a;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 12px;
    border: 1px solid #d5d5d5;
}

/* ===== Student Work Gallery ===== */
.gallery {
    background-color: #ffffff;
}

.gallery h2 {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: block;
}

.gallery-caption {
    margin-top: 0.75rem;
    text-align: center;
    color: #6a6a6a;
    font-size: 0.9rem;
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ffffff;
    padding: 1rem 0;
    font-size: 1rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: #cccccc;
}

/* ===== Differentiation Statement Section ===== */
.differentiation {
    background-color: #fafafa;
    padding: 4rem 0;
}

.statement-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
    background-color: #ffffff;
    border: 2px solid #2c5f8d;
    border-radius: 8px;
}

.statement {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== Contact Section ===== */
.contact {
    background-color: #ffffff;
    text-align: center;
}

.contact h2 {
    margin-bottom: 1rem;
}

.contact-info {
    max-width: 600px;
    margin: 2rem auto 0;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-info a {
    color: #2c5f8d;
    font-weight: 500;
}

.social-links {
    margin-top: 2rem;
}

.social-link {
    display: inline-block;
    margin: 0 1rem;
    font-weight: 500;
    color: #2c5f8d;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: #1a3a5a;
}

/* QR Code Section */
.qr-code-section {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.qr-code {
    width: 180px;
    height: 180px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 0.5rem;
    background: #ffffff;
}

.qr-code-label {
    font-size: 0.9rem;
    color: #6a6a6a;
    margin: 0;
}

/* Founder Section */
.founder-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e5e5;
}

.founder-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.founder-photo img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.founder-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.founder-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.founder-role {
    font-size: 0.95rem;
    color: #6a6a6a;
    font-weight: 400;
    margin: 0;
}

.founder-text p {
    margin: 0;
    line-height: 1.7;
    color: #1a1a1a;
}

/* ===== Footer ===== */
.footer {
    background-color: #fafafa;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #e5e5e5;
}

.footer p {
    margin-bottom: 0.5rem;
    color: #6a6a6a;
    font-size: 0.95rem;
}

.footer a {
    color: #2c5f8d;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav {
        height: 60px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .nav-logo-img {
        height: 52px;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    section {
        padding: 3rem 0;
    }

    .hero {
        padding: 4rem 0;
        min-height: 400px;
        margin-top: 60px;
    }

    .hero-content {
        padding-top: 1rem;
    }

    .hero-text {
        font-size: 1.05rem;
    }

    .hero-text-panel {
        padding: 2rem 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .cta-button,
    .hero-cta {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .hero-overlay {
        background: transparent;

    .transformation-header,
    .transformation-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .before-header,
    .after-header {
        text-align: left;
        padding: 0.5rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .why-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .why-intro {
        position: static;
    }

    .why-intro h2 {
        font-size: 1.75rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .statement {
        font-size: 1.2rem;
    }

    .founder-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .founder-photo {
        display: flex;
        justify-content: center;
    }

    .founder-photo img {
        width: 110px;
        height: 110px;
    }

    .founder-text {
        text-align: center;
    }

    .lightbox {
        padding: 20px;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: #ffffff;
        flex-direction: column;
        padding: 2rem 0;
        gap: 0;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
    }

    .nav-link:hover {
        background-color: #f8f8f8;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .hero-text-panel {
        padding: 1.75rem 1.25rem;
    }

    .hero-buttons {
        gap: 0.625rem;
    }

    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .hero-cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .gallery-item img {
        height: 200px;
    }
}
