/* Basic Page Setup */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #0b1528;
    color: white;
    overflow-x: hidden;
}

/* ================= Header / Navbar Styling ================= */
header {
    background-color: #0b1a30;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-dot {
    width: 24px;
    height: 24px;
    background-color: #5ce1b6;
    border-radius: 50%;
}

.logo-text {
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: white;
}

nav {
    display: flex;
    align-items: center;
    gap: 10px; 
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 6px;
}

nav a:hover, nav a.active {
    color: #5ce1b6;
    background-color: rgba(92, 225, 182, 0.08);
}

.auth-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Profile Icon Button Styling */
.profile-icon {
    width: 48px;
    height: 48px;
    background-color: #cbd5e1;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.profile-icon:hover {
    background-color: #5ce1b6;
}

.profile-icon svg {
    width: 22px;
    height: 22px;
    fill: #475569;
}

.sign-in-btn {
    background-color: #4a7c74;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.sign-in-btn:hover {
    background-color: #5ce1b6;
    color: #0b1a30;
}

/* ================= LOGGED-IN PROFILE DROPDOWN ================= */
.profile-dropdown-container {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 48px;
    background-color: #ffffff;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    padding: 10px 0;
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-header {
    padding: 8px 16px;
    color: #0b1a30;
    display: flex;
    flex-direction: column;
}

.dropdown-header strong {
    font-size: 0.95rem;
}

.dropdown-sub {
    font-size: 0.8rem;
    color: #64748b;
}

.dropdown-menu hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 6px 0;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
    color: #4a7c74;
}

.logout-item {
    color: #ef4444;
}

.logout-item:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

/* ================= MODAL & FORM STYLING ================= */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 26, 48, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #ffffff;
    padding: 30px 28px;
    border-radius: 24px;
    width: 90%;
    max-width: 380px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 26px;
    font-weight: bold;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #0b1a30;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #0b1a30;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
}

.form-group {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
}

.form-group input {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
    color: #1e293b;
}

.form-group input:focus {
    border-color: #5ce1b6;
}

.modal-submit-btn {
    background-color: #4a7c74;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 25px;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    margin-top: 10px;
}

.modal-submit-btn:hover {
    background-color: #5ce1b6;
    color: #0b1a30;
}

.modal-signup-prompt {
    margin-top: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.modal-signup-prompt p {
    color: #64748b;
    margin: 0;
}

#go-to-signup, #go-to-signin {
    color: #4a7c74;
    text-decoration: none;
    font-weight: 700;
    margin-left: 4px;
}

#go-to-signup:hover, #go-to-signin:hover {
    color: #5ce1b6;
    text-decoration: underline;
}

/* Hero Section with Automatic 4-Image Slideshow */
.hero {
    background-size: cover;
    background-position: center;
    min-height: 350px; 
    width: 100%;
    border-bottom: 5px solid #000000;
    /* Runs a 16-second loop (4 seconds per image) */
    animation: heroSlideshow 16s infinite ease-in-out;
}

/* Automatic Keyframe Image Transition */
@keyframes heroSlideshow {
    0%, 20% {
        background-image: linear-gradient(rgba(11, 26, 48, 0.4), rgba(11, 26, 48, 0.4)), url('image1.png');
    }
    25%, 45% {
        background-image: linear-gradient(rgba(11, 26, 48, 0.4), rgba(11, 26, 48, 0.4)), url('image2.gif');
    }
    50%, 70% {
        background-image: linear-gradient(rgba(11, 26, 48, 0.4), rgba(11, 26, 48, 0.4)), url('image3.gif');
    }
    75%, 95% {
        background-image: linear-gradient(rgba(11, 26, 48, 0.4), rgba(11, 26, 48, 0.4)), url('image4.jpg');
    }
    100% {
        background-image: linear-gradient(rgba(11, 26, 48, 0.4), rgba(11, 26, 48, 0.4)), url('image1.png');
    }
}

/* ===== SECTION SUBTITLE ===== */
.section-sub {
    text-align: center;
    color: #cbd5e1;
    font-size: 1.05rem;
    margin-top: -10px;
    margin-bottom: 40px;
    font-weight: 500;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    background: #64efbc;
    padding: 70px 30px;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.2rem;
    color: #0a0f1e;
    margin-bottom: 8px;
    font-weight: 800;
}

.how-it-works .section-sub {
    color: #0a271d;
    font-weight: 600;
}

.icons-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 25px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ENLARGED ROBOT & STEP ICONS */
.step-icon {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 3.8rem;
}

.step-icon img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.step-card:hover .step-icon img {
    transform: scale(1.1) translateY(-4px);
}

.step-card h3 {
    color: #0f172a;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: #0d1424;
    padding: 60px 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 100%;
    text-align: center;
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
}

.stat-item {
    padding: 15px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #64efbc;
    margin-bottom: 5px;
}

.stat-label {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 600;
}

/* ===== Z-PATTERN SECTION ===== */
.z-pattern-section {
    background: #0a0f1e;
    padding: 80px 30px;
}

.z-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.z-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.z-row.reverse {
    flex-direction: row-reverse;
}

.z-text {
    flex: 1;
}

.z-text h2 {
    color: #f8fafc;
    font-size: 2.2rem;
    margin-bottom: 18px;
    line-height: 1.25;
    font-weight: 700;
}

.z-text p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 22px;
}

.z-text ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.z-text li {
    color: #5ce1b6;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.z-text li::before {
    content: '✓';
    font-weight: bold;
    background: #1e293b;
    color: #5ce1b6;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.z-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.z-real-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.z-real-image:hover {
    transform: scale(1.02);
}

/* ===== FEATURES SECTION ===== */
.features-section {
    background: #080c17;
    padding: 80px 30px;
}

.features-container {
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.features-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 800;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    margin-top: 20px;
}

.feature-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    border-color: #5ce1b6;
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(92, 225, 182, 0.12);
}

/* ENLARGED ROBOT & FEATURE ICONS */
.feature-icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 3.2rem;
}

.feature-icon img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon img {
    transform: scale(1.12) rotate(2deg);
}

.feature-card h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #0d1424, #111827);
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
    padding: 80px 30px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 800;
}

.cta-section p {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 35px;
}

.cta-btn {
    background: linear-gradient(135deg, #64efbc, #3ecf8e);
    color: #0a0f1e;
    border: none;
    padding: 16px 42px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 25px rgba(100, 239, 188, 0.25);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(100, 239, 188, 0.35);
}

/* ===== FOOTER ===== */
footer {
    background: #0d1424;
    border-top: 1px solid #1e293b;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 60px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 12px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #64efbc;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 22px 30px;
    text-align: center;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

/* ===== FULL RESPONSIVE DESIGN (LAPTOP & MOBILE) ===== */
@media (max-width: 1024px) {
    .icons-container,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: center;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    nav a {
        padding: 6px 12px;
        font-size: 0.88rem;
    }

    .how-it-works,
    .features-section,
    .z-pattern-section,
    .cta-section {
        padding: 50px 20px;
    }

    .how-it-works h2,
    .features-section h2,
    .z-text h2,
    .cta-section h2 {
        font-size: 1.75rem;
    }

    .icons-container,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 20px;
    }

    .stat-number {
        font-size: 2.1rem;
    }

    .z-row, 
    .z-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 35px;
    }

    .z-text li {
        justify-content: flex-start;
        text-align: left;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-brand .logo-container {
        justify-content: center;
    }
    
}


/* ===== ABOUT / MISSION / TEAM / TIMELINE SECTIONS (moved from home.php inline styles) ===== */
/* Section Wrappers */
.about-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 20px;
}
.section-label {
    color: #5ce1b6;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 15px;
}
.section-desc {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 650px;
}
.divider {
    border: none;
    border-top: 1px solid #1e293b;
    margin: 40px 0;
}

/* Mission Section */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.mission-image-box {
    background: #111827;
    border: 2px dashed #1e293b;
    border-radius: 16px;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.85rem;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.mission-image-box .placeholder-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.4;
}
.mission-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}
.mission-point {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.point-icon {
    width: 40px;
    height: 40px;
    background: rgba(92,225,182,0.1);
    border: 1px solid rgba(92,225,182,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.point-title {
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
    font-size: 0.95rem;
}
.point-desc {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.team-card {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.25s;
}
.team-card:hover {
    border-color: #5ce1b6;
    transform: translateY(-4px);
}
.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 18px;
    border: 3px solid #1e293b;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #5ce1b6;
    position: relative;
}
.team-name {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 4px;
}
.team-matrix {
    font-size: 0.78rem;
    color: #5ce1b6;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.team-role {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-bottom: 14px;
}
.team-badge {
    display: inline-block;
    background: rgba(92,225,182,0.1);
    border: 1px solid rgba(92,225,182,0.2);
    color: #5ce1b6;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Supervisor Card */
.supervisor-card {
    background: linear-gradient(135deg, rgba(92,225,182,0.06), rgba(59,130,246,0.04));
    border: 1px solid rgba(92,225,182,0.2);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
}
.sv-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5ce1b6, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #0a0f1e;
    flex-shrink: 0;
    border: 3px solid rgba(92,225,182,0.3);
}
.sv-label {
    font-size: 0.75rem;
    color: #5ce1b6;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.sv-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 6px;
}
.sv-title {
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* Timeline */
.timeline {
    position: relative;
    margin-top: 40px;
    padding-left: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #5ce1b6, #3b82f6, transparent);
}
.timeline-item {
    position: relative;
    padding: 0 0 35px 30px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #5ce1b6;
    border: 3px solid #0a0f1e;
    box-shadow: 0 0 0 2px #5ce1b6;
}
.timeline-date {
    font-size: 0.75rem;
    color: #5ce1b6;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.timeline-title {
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 5px;
}
.timeline-desc {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Responsive Queries for added sections */
@media (max-width: 900px) {
    .mission-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .supervisor-card { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
    .team-grid { grid-template-columns: 1fr; }
}