/* ===== PAGE-SPECIFIC STYLES ===== */

/* Maintenance Section */
.maintenance {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 5rem 10rem 5rem 10rem;
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeIn 3s ease forwards;
    opacity: 0;
    position: relative;
}

.maintenance-content {
    text-align: center;
    color: #e0e7ff;
    transform: scale(0.9, 0.9)
}

.maintenance-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: Fraunces, 'Fraunces Fallback', 'Rock Salt', 'Rock Salt Fallback', serif;
}

.maintenance-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
}

.maintenance-icon {
    margin-top: 2rem;
}

.maintenance-icon img {
    width: 180px;
    height: auto;
}

/* Archive Section */
.archive {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 2rem 50rem 2rem;
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeIn 3s ease forwards;
    opacity: 0;
    position: relative;
}

.archive-content {
    text-align: center;
    color: #e0e7ff;
}

.archive-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: Fraunces, 'Fraunces Fallback', 'Rock Salt', 'Rock Salt Fallback', serif;
}

.archive-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
}

.archive-icon {
    margin-top: 2rem;
}

.archive-icon img {
    width: 100px;
    height: auto;
}

/* Privacy Page */
.privacy-main {
    padding: 4rem 2rem;
    min-height: calc(100vh - 160px);
}

/* Founder Profile Page */
.founder-main {
    padding: 4rem 2rem;
    min-height: calc(100vh - 160px);
}

.privacy-title {
    font-size: 3rem;
    color: #e0e7ff;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.last-updated {
    color: #94a3b8;
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
}

.privacy-section {
    margin-bottom: 2rem;
}

.privacy-section h2 {
    color: #e0e7ff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.privacy-section p {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.privacy-section ul {
    color: #cbd5e1;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Left align main content sections, except disclaimers */
.privacy-section:not(.disclaimer) {
    text-align: left;
}

.privacy-section.disclaimer {
    text-align: center;
}

/* Work With Us Page */
.work-main {
    padding: 4rem 2rem;
    min-height: calc(100vh - 160px);
}

.work-title {
    font-size: 3rem;
    color: #e0e7ff;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.work-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.work-section {
    margin-bottom: 0.5rem;
    max-width: 600px;
}

.work-section h2 {
    color: #e0e7ff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.work-section p {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.work-section ul {
    color: #cbd5e1;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.work-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.work-section dl {
    margin: 1rem 0;
}

.work-section dt {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.work-section dd {
    margin-left: 0;
    margin-bottom: 1rem;
    padding-left: 0;
}

.work-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1rem 0;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.work-table th, .work-table td {
    padding: 1rem;
    text-align: center;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    vertical-align: middle;
}

.work-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: bold;
    vertical-align: middle;
}

.work-table td {
    background: rgba(255, 255, 255, 0.05);
}

.work-table th:first-child, .work-table td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.work-table tr:first-child th, .work-table tr:first-child td {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.work-table tr:last-child th, .work-table tr:last-child td {
    border-bottom: none;
}

.work-table th:last-child, .work-table td:last-child {
    border-right: none;
}

.work-table th, .work-table td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    text-align: center;
    color: #cbd5e1;
}

.work-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

.position-title {
    text-align: center;
    font-size: 2rem;
    color: #10b981;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Rock Salt', 'Rock Salt Fallback', cursive;
}

/* Center the application form */
#applicationForm {
    max-width: 600px;
    margin: 0 auto;
}

/* Education Cards */
.education-cards {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.education-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    width: 250px;
    height: 250px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.education-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #e0e7ff;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.card-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
    text-align: center;
}

.education-card:hover .card-hover {
    opacity: 1;
}

.card-hover .pill {
    margin-bottom: 1rem;
}

.card-hover p {
    color: #e0e7ff;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Q-Map Modal */
.map-container {
    margin: 2rem 0;
    height: 300px;
}

.map-split {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.map-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-text {
    font-size: 1.25rem;
    font-weight: 600;
}

.map-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #e0e7ff;
    padding: 1rem;
    z-index: 1000;
}

.address-text {
    font-size: 0.9rem;
}

.map {
    height: 300px;
    width: 100%;
}

/* ===== RESPONSIVE DESIGN FOR PAGES ===== */

/* Responsive Design for Privacy Page */
@media (max-width: 768px) {
    .privacy-main {
        padding: 2rem 1rem;
    }

    .privacy-title {
        font-size: 2rem;
    }

    .privacy-content {
        padding: 2rem;
    }

    .privacy-section h2 {
        font-size: 1.25rem;
    }

    .privacy-section p,
    .privacy-section li {
        font-size: 0.9rem;
    }

    .last-updated {
        font-size: 0.8rem;
    }
}

/* Responsive Design for Work Page */
@media (max-width: 768px) {
    .work-main {
        padding: 2rem 1rem;
    }

    .work-title {
        font-size: 2rem;
    }

    .work-content {
        padding: 2rem;
    }

    .work-section h2 {
        font-size: 1.25rem;
    }

    .work-section p,
    .work-section li {
        font-size: 0.9rem;
    }

    .work-table th,
    .work-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .position-title {
        font-size: 1.5rem;
    }
}

/* Galaxy S9+ and similar devices (320px width) */
@media (max-width: 320px) {
    .work-main {
        padding: 1rem 0.25rem;
    }

    .work-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .work-content {
        padding: 1rem;
        margin: 0 0.25rem;
    }

    .work-section {
        margin-bottom: 1rem;
    }

    .work-section h2 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.25rem;
    }

    .work-section p,
    .work-section li {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    .work-section ul {
        padding-left: 1rem;
    }

    .work-section li {
        margin-bottom: 0.25rem;
    }

    .work-table {
        font-size: 0.75rem;
        margin: 0.75rem 0;
    }

    .work-table th,
    .work-table td {
        padding: 0.25rem;
        font-size: 0.7rem;
    }

    .position-title {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    #applicationForm {
        max-width: 100%;
    }
}