/* =========================================================
   STUDENT RECORDS MANAGER
   AUconnection Digital Hub
   Main Website + Student Manager
   ========================================================= */


/* =========================
   GLOBAL RESET
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #172033;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select {
    font-family: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}


/* =========================
   HEADER
   ========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e5eaf2;
    backdrop-filter: blur(10px);
}

.nav-container {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
}

.brand h2 {
    color: #0756a3;
    font-size: 20px;
    line-height: 1.1;
}

.brand span {
    color: #697386;
    font-size: 12px;
    display: block;
    margin-top: 3px;
}

nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

nav a {
    color: #3c4758;
    font-size: 13px;
    font-weight: 600;
    transition: 0.25s ease;
}

nav a:hover {
    color: #0756a3;
}


/* =========================
   HERO
   ========================= */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #064f99 0%,
        #0873c9 55%,
        #0a8bd8 100%
    );
    color: #ffffff;
    padding: 95px 0 105px;
}

.hero::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    right: -170px;
    top: -160px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    left: -150px;
    bottom: -170px;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    gap: 70px;
}

.hero-text {
    max-width: 720px;
}

.academic-branding {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.academic-logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #ffffff;
    padding: 4px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.academic-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.academic-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.academic-text strong {
    font-size: 14px;
    letter-spacing: 0.3px;
}

.academic-text span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.84);
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #dcefff;
    margin-bottom: 17px;
}

.hero h1 {
    font-size: clamp(44px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero h1 span {
    display: block;
    color: #c8ebff;
}

.hero-description {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: 0.25s ease;
    cursor: pointer;
}

.btn-primary {
    background: #ffffff;
    color: #0756a3;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}


/* =========================
   HERO CARD
   ========================= */

.hero-card {
    width: 100%;
    max-width: 360px;
    justify-self: end;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    color: #172033;
    box-shadow: 0 30px 60px rgba(0, 35, 80, 0.28);
    transform: rotate(1.5deg);
}

.window-bar {
    height: 38px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 15px;
    background: #f1f4f8;
    border-bottom: 1px solid #e5e9ef;
}

.window-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #b9c4d2;
}

.hero-card-content {
    padding: 40px 32px;
}

.mini-icon {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f4ff;
    color: #0756a3;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 22px;
}

.hero-card h3 {
    font-size: 21px;
    margin-bottom: 8px;
}

.hero-card p {
    color: #697386;
    font-size: 14px;
    margin-bottom: 24px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef9f2;
    color: #277342;
    padding: 8px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #35a65c;
}


/* =========================
   GENERAL SECTIONS
   ========================= */

.section {
    padding: 100px 0;
}

.section-light {
    background: #f6f9fc;
}

.section-dark {
    background: #0b2038;
    color: #ffffff;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 55px;
}

.section-label {
    display: inline-block;
    color: #0873c9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 13px;
}

.section-dark .section-label {
    color: #78c8f5;
}

.section-heading h1,
.section-heading h2 {
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 17px;
}

.section-heading p {
    color: #687487;
    font-size: 16px;
    line-height: 1.8;
}

.section-dark .section-heading p {
    color: #b8c6d6;
}


/* =========================
   PROJECT INFO CARDS
   ========================= */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.info-card {
    background: #ffffff;
    border: 1px solid #e3e9f0;
    border-radius: 14px;
    padding: 30px;
    transition: 0.25s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: #b9d9f3;
    box-shadow: 0 18px 35px rgba(17, 57, 91, 0.08);
}

.card-number {
    color: #0873c9;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 22px;
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.info-card p {
    color: #697386;
    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   STUDENT MANAGER
   ========================================================= */

.manager-panel {
    background: #ffffff;
    border: 1px solid #dfe7ef;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(19, 54, 86, 0.08);
}


/* =========================
   MANAGER FORM
   ========================= */

.manager-form {
    padding: 35px;
    border-bottom: 1px solid #e5ebf1;
}

.manager-form h3,
.records-panel h3 {
    font-size: 22px;
    color: #172033;
}

.form-description {
    color: #738095;
    font-size: 14px;
    margin-top: 4px;
    margin-bottom: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    color: #344052;
    font-size: 13px;
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #d5dee8;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    outline: none;
    font-size: 14px;
    transition: 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #0873c9;
    box-shadow: 0 0 0 3px rgba(8, 115, 201, 0.10);
}

.form-group input::placeholder {
    color: #9aa5b4;
}


/* =========================
   SEARCH
   ========================= */

.search-box {
    margin-bottom: 25px;
    padding: 20px;
    background: #f6f9fc;
    border: 1px solid #e2e8ef;
    border-radius: 10px;
}

.search-box .form-group {
    max-width: 700px;
}


/* =========================
   MANAGER BUTTONS
   ========================= */

.manager-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.manager-primary {
    background: #0756a3;
    color: #ffffff;
}

.manager-primary:hover {
    background: #06477f;
    transform: translateY(-2px);
}

.manager-update {
    background: #0873c9;
    color: #ffffff;
}

.manager-update:hover {
    background: #0665ae;
    transform: translateY(-2px);
}

.manager-clear {
    background: #eef2f6;
    color: #475569;
    border-color: #d8e0e8;
}

.manager-clear:hover {
    background: #e1e7ee;
}


/* =========================
   STATUS
   ========================= */

.manager-status {
    margin-top: 18px;
    padding: 11px 14px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #5b6879;
    font-size: 13px;
    border: 1px solid #e1e7ee;
}

.manager-status.success {
    background: #eef9f2;
    color: #287345;
    border-color: #ccebd7;
}

.manager-status.error {
    background: #fff1f1;
    color: #b42323;
    border-color: #f0caca;
}


/* =========================
   RECORDS
   ========================= */

.records-panel {
    padding: 35px;
}

.records-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.records-header p {
    color: #7a8697;
    font-size: 13px;
    margin-top: 3px;
}

.records-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.small-btn {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 7px;
    border: 1px solid #cfd9e4;
    background: #ffffff;
    color: #0756a3;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.small-btn:hover {
    background: #edf6fd;
    border-color: #a9cde9;
}


/* =========================
   TABLE
   ========================= */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e1e7ee;
    border-radius: 10px;
}

table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    background: #ffffff;
}

thead {
    background: #f3f7fa;
}

th {
    padding: 14px 12px;
    text-align: left;
    color: #445164;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #dde5ed;
    white-space: nowrap;
}

td {
    padding: 14px 12px;
    color: #4d596a;
    font-size: 13px;
    border-bottom: 1px solid #edf1f5;
    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #f8fbfd;
}

.empty-records {
    text-align: center;
    padding: 40px 20px;
    color: #8b96a5;
}


/* =========================
   TABLE ACTIONS
   ========================= */

.action-buttons {
    display: flex;
    gap: 6px;
}

.table-action {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #d5dee8;
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.table-action.edit {
    color: #0756a3;
    border-color: #bdd7ec;
}

.table-action.edit:hover {
    background: #edf6fd;
}

.table-action.delete {
    color: #b42323;
    border-color: #efcccc;
}

.table-action.delete:hover {
    background: #fff1f1;
}


/* =========================
   REQUIREMENTS
   ========================= */

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.requirement-card {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    transition: 0.25s ease;
}

.requirement-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

.requirement-number {
    display: block;
    color: #78c8f5;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 20px;
}

.requirement-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.requirement-card p {
    color: #b8c6d6;
    font-size: 14px;
    line-height: 1.8;
}


/* =========================
   ARCHITECTURE
   ========================= */

.architecture {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.architecture-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: min(100%, 420px);
    margin: 0 auto;
    padding: 20px 25px;
    background: #ffffff;
    border: 1px solid #dce5ee;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(21, 53, 84, 0.06);
}

.architecture-box strong {
    color: #0756a3;
    font-size: 17px;
}

.architecture-box span {
    color: #6e7989;
    font-size: 13px;
}

.architecture-line {
    color: #0873c9;
    font-size: 28px;
    font-weight: 700;
    padding: 8px 0;
}

.architecture-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.manager-box {
    background: #edf7ff;
    border-color: #bcdff7;
}

.gui-box {
    background: #0756a3;
    border-color: #0756a3;
}

.gui-box strong,
.gui-box span {
    color: #ffffff;
}


/* =========================
   FEATURES
   ========================= */

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 900px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 13px;
    background: #ffffff;
    border: 1px solid #e2e8ef;
    border-radius: 10px;
    padding: 17px 20px;
    color: #344052;
    font-size: 14px;
    font-weight: 600;
}

.feature span {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f5ed;
    color: #27804a;
    font-size: 13px;
    font-weight: 800;
}


/* =========================
   DEVELOPER
   ========================= */

.developer-section {
    background: linear-gradient(
        135deg,
        #0756a3 0%,
        #0873c9 100%
    );
    color: #ffffff;
    padding: 80px 0;
    overflow: hidden;
}

.developer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.developer-profile {
    display: flex;
    align-items: center;
    gap: 28px;
}

.developer-photo-wrap {
    width: 125px;
    height: 125px;
    flex-shrink: 0;
    padding: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.developer-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffffff;
}

.developer-info {
    max-width: 650px;
}

.developer-info .section-label {
    color: #c7eaff;
}

.developer-info h2 {
    font-size: 35px;
    line-height: 1.15;
    margin-bottom: 6px;
}

.developer-role {
    color: #d5edff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.developer-info > p:not(.developer-role) {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.developer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.developer-tags span {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.developer-badge {
    width: 135px;
    height: 135px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
}


/* =========================
   PROJECT LINKS
   ========================= */

.links-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    background: #f5f8fb;
    border: 1px solid #e1e8ef;
    border-radius: 16px;
    padding: 45px;
}

.links-box h2 {
    font-size: 30px;
    margin-bottom: 8px;
}

.links-box p {
    color: #687487;
    font-size: 14px;
}

.links-box .hero-buttons {
    margin-top: 0;
}

.links-box .btn-primary {
    background: #0756a3;
    color: #ffffff;
}

.links-box .btn-primary:hover {
    background: #06477f;
}


/* =========================
   FOOTER
   ========================= */

footer {
    background: #071525;
    color: #ffffff;
    padding: 30px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-content > div {
    display: flex;
    flex-direction: column;
}

.footer-content strong {
    font-size: 16px;
}

.footer-content span {
    color: #7f90a5;
    font-size: 11px;
    margin-top: 2px;
}

.footer-content p {
    color: #8f9bad;
    font-size: 11px;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1000px) {

    nav {
        gap: 12px;
    }

    nav a {
        font-size: 11px;
    }

    .hero-content {
        gap: 45px;
    }

    .requirements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 900px) {

    .nav-container {
        min-height: 72px;
    }

    .hero {
        padding: 75px 0 85px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-card {
        justify-self: start;
        transform: none;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .developer-content {
        align-items: flex-start;
    }

    .developer-badge {
        display: none;
    }

    .links-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .records-header {
        align-items: flex-start;
        flex-direction: column;
    }
}


@media (max-width: 700px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: auto;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .architecture-row {
        grid-template-columns: 1fr;
    }

    .manager-form,
    .records-panel {
        padding: 25px 20px;
    }

    .records-actions {
        width: 100%;
    }

    .small-btn {
        flex: 1;
    }
}


@media (max-width: 600px) {

    .container {
        width: min(92%, 520px);
    }

    .site-header {
        position: relative;
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 17px 0;
        gap: 15px;
    }

    nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        gap: 18px;
    }

    nav a {
        white-space: nowrap;
        font-size: 12px;
    }

    .hero {
        padding: 60px 0 70px;
    }

    .academic-branding {
        align-items: flex-start;
    }

    .academic-logo {
        width: 47px;
        height: 47px;
    }

    .hero h1 {
        font-size: 45px;
        letter-spacing: -1.5px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .section {
        padding: 70px 0;
    }

    .section-heading {
        margin-bottom: 38px;
    }

    .manager-buttons {
        flex-direction: column;
    }

    .manager-buttons .btn {
        width: 100%;
    }

    .search-box {
        padding: 16px;
    }

    .developer-section {
        padding: 65px 0;
    }

    .developer-profile {
        flex-direction: column;
        align-items: flex-start;
    }

    .developer-photo-wrap {
        width: 110px;
        height: 110px;
    }

    .developer-info h2 {
        font-size: 30px;
    }

    .links-box {
        padding: 30px 24px;
    }

    .links-box h2 {
        font-size: 25px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}