
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


/* =========================
   GLOBAL SETTINGS
========================= */

:root {
    --background: #050b18;
    --card: #0b1830;
    --blue: #168bff;
    --light-blue: #54b5ff;
    --white: #ffffff;
    --muted: #a9bad0;
    --border: rgba(84, 181, 255, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--white);

    background:
        radial-gradient(circle at 15% 20%, #102b52 0%, transparent 35%),
        radial-gradient(circle at 85% 80%, #071c3a 0%, transparent 35%),
        var(--background);

    overflow: hidden;
}


/* =========================
   HEADER
========================= */

.header {
    width: 100%;
    height: 75px;
    padding: 0 6%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: relative;
    z-index: 10;

    border-bottom: 1px solid rgba(84, 181, 255, 0.12);

    background: rgba(5, 11, 24, 0.85);
    backdrop-filter: blur(15px);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: 2px;
}

.logo span {
    color: var(--blue);
}

.navigation {
    display: flex;
    align-items: center;
    gap: 22px;
}

.navigation a {
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: 0.3s;
}

.navigation a:hover,
.navigation a.active {
    color: var(--light-blue);
}

.menu-toggle {
    display: none;
    color: white;
    background: transparent;
    border: none;
    font-size: 25px;
    cursor: pointer;
}


/* =========================
   MAIN PAGE SYSTEM
========================= */

main {
    height: calc(100vh - 120px);
    position: relative;
}

.page-panel {
    width: 100%;
    height: 100%;
    padding: 30px 6%;
    overflow-y: auto;
    animation: fadeIn 0.45s ease;
}

.page-panel[hidden] {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   HOME PAGE
========================= */

.home-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-content {
    width: 100%;
    max-width: 1100px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.home-text {
    max-width: 600px;
}

.intro {
    color: var(--light-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.home-text h1 {
    font-size: clamp(35px, 5vw, 60px);
    line-height: 1.15;
    margin-bottom: 15px;
}

.home-text h1 span,
.section-heading h1 span {
    color: var(--light-blue);
}

.home-text h2 {
    font-size: 20px;
    color: #c3d9f2;
    margin-bottom: 20px;
}

.description {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 30px;
}

.primary-btn {
    padding: 14px 22px;
    border: none;
    border-radius: 7px;

    background: linear-gradient(120deg, #0875e8, #36aaff);

    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.primary-btn span {
    margin-left: 10px;
}

.primary-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(22, 139, 255, 0.35);
}

.profile-container {
    width: 300px;
    height: 370px;
    flex-shrink: 0;
    position: relative;
}

.profile-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    border-radius: 20px;
    border: 2px solid var(--light-blue);

    position: relative;
    z-index: 1;
}

.profile-glow {
    position: absolute;
    inset: -15px;

    border-radius: 25px;

    background: linear-gradient(135deg, #0875e8, #54b5ff);

    filter: blur(35px);
    opacity: 0.25;
}


/* =========================
   SECTION HEADINGS
========================= */

.section-heading {
    text-align: center;
    margin-bottom: 30px;
}

.section-heading .intro {
    margin-bottom: 10px;
}

.section-heading h1 {
    font-size: clamp(27px, 4vw, 40px);
    margin-bottom: 10px;
}

.section-heading p:last-child {
    color: var(--muted);
    font-size: 13px;
}


/* =========================
   PERSONAL INFORMATION
========================= */

.about-card {
    max-width: 850px;
    margin: 35px auto;

    padding: 35px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: rgba(11, 24, 48, 0.8);

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.detail-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.detail-item span {
    display: block;
    color: var(--light-blue);
    font-size: 12px;
    margin-bottom: 8px;
}

.detail-item h3 {
    font-size: 15px;
    font-weight: 600;
}


/* =========================
   EDUCATION AND ACHIEVEMENTS
   FIT TO DESKTOP SCREEN
========================= */

.education-page {
    height: 100%;
    min-height: 0;

    overflow: hidden;

    padding: 14px 5% 10px;
}

.compact-heading {
    margin-bottom: 12px;
}

.compact-heading .intro {
    font-size: 10px;
    margin-bottom: 5px;
}

.compact-heading h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.compact-heading p:last-child {
    font-size: 11px;
}

.education-achievements {
    width: 100%;
    max-width: 1050px;

    height: calc(100% - 65px);

    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-column {
    min-height: 0;

    display: grid;

    grid-template-rows:
        28px
        repeat(4, minmax(0, 1fr));

    gap: 8px;
}

.info-column > h2 {
    color: var(--light-blue);
    font-size: 19px;
    margin: 0;
    align-self: center;
}

.info-card {
    min-height: 0;

    padding: 9px 13px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    overflow: hidden;

    border-radius: 10px;
    border: 1px solid var(--border);

    background: linear-gradient(
        135deg,
        rgba(16, 43, 82, 0.9),
        rgba(8, 20, 41, 0.95)
    );

    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-3px);
    border-color: var(--light-blue);

    box-shadow: 0 5px 20px rgba(22, 139, 255, 0.12);
}

.info-card h3 {
    font-size: 13px;
    margin-bottom: 4px;
}

.info-card p {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.card-number {
    display: block;
    color: var(--light-blue);
    font-size: 9px;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-card .year {
    display: block;
    color: var(--light-blue);
    font-size: 9px;
    margin-top: 4px;
}

.achievement-icon {
    display: block;
    font-size: 17px;
    margin-bottom: 4px;
}


/* =========================
   PROJECTS
========================= */

.project-grid {
    max-width: 1000px;
    margin: 35px auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project-card {
    padding: 28px;

    background: rgba(11, 24, 48, 0.85);

    border: 1px solid var(--border);
    border-radius: 16px;

    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--light-blue);
}

.project-icon {
    font-size: 35px;
    margin-bottom: 15px;
}

.project-card h2 {
    font-size: 19px;
    margin-bottom: 12px;
}

.project-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-link {
    color: var(--light-blue);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}


/* =========================
   FAMILY
========================= */

.family-card {
    max-width: 850px;
    margin: 30px auto;

    display: flex;
    align-items: center;
    gap: 35px;

    padding: 25px;

    background: rgba(11, 24, 48, 0.85);

    border: 1px solid var(--border);
    border-radius: 18px;
}

.family-image {
    width: 240px;
    height: 280px;
    flex-shrink: 0;
}

.family-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
}

.family-text h2 {
    color: var(--light-blue);
    font-size: 25px;
    margin-bottom: 15px;
}

.family-text p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}


/* =========================
   CONTACT
========================= */

.contact-grid {
    max-width: 850px;
    margin: 40px auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.contact-card {
    padding: 30px 20px;

    text-align: center;

    background: rgba(11, 24, 48, 0.85);

    border: 1px solid var(--border);
    border-radius: 15px;

    transition: 0.3s;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--light-blue);
}

.contact-card > span {
    font-size: 30px;
}

.contact-card h3 {
    margin: 12px 0;
}

.contact-card a {
    color: var(--light-blue);
    text-decoration: none;
    font-size: 12px;
    overflow-wrap: anywhere;
}


/* =========================
   FOOTER
========================= */

footer {
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-top: 1px solid rgba(84, 181, 255, 0.12);

    color: #8195ae;
    font-size: 10px;

    text-align: center;
    padding: 0 10px;
}


/* =========================
   SMALL DESKTOP SCREENS
========================= */

@media (max-height: 700px) and (min-width: 701px) {

    .education-page {
        padding-top: 7px;
    }

    .compact-heading {
        margin-bottom: 6px;
    }

    .compact-heading h1 {
        font-size: 23px;
    }

    .education-achievements {
        height: calc(100% - 48px);
        gap: 14px;
    }

    .info-column {
        grid-template-rows:
            22px
            repeat(4, minmax(0, 1fr));

        gap: 5px;
    }

    .info-card {
        padding: 5px 9px;
    }

    .info-card h3 {
        font-size: 11px;
    }

    .info-card p {
        font-size: 9px;
    }

    .info-card .year {
        font-size: 8px;
    }

}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) and (min-width: 701px) {

    .header {
        padding: 0 3%;
    }

    .navigation {
        gap: 11px;
    }

    .navigation a {
        font-size: 10px;
    }

    .profile-container {
        width: 250px;
        height: 310px;
    }

    .education-achievements {
        gap: 12px;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    body {
        overflow: auto;
    }

    .header {
        height: 70px;
        padding: 0 6%;
    }

    .menu-toggle {
        display: block;
    }

    .navigation {
        display: none;

        position: absolute;
        top: 70px;
        left: 0;

        width: 100%;
        padding: 20px;

        flex-direction: column;
        align-items: flex-start;
        gap: 20px;

        background: #08162c;

        border-bottom: 1px solid var(--border);
    }

    .navigation.show {
        display: flex;
    }

    .navigation a {
        font-size: 14px;
    }

    main {
        height: auto;
        min-height: calc(100vh - 115px);
    }

    .page-panel {
        min-height: calc(100vh - 115px);
        height: auto;

        padding: 30px 6%;

        overflow: visible;
    }

    .home-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .home-text {
        width: 100%;
    }

    .description {
        margin-left: auto;
        margin-right: auto;
    }

    .profile-container {
        width: 210px;
        height: 260px;
    }

    .about-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-card {
        padding: 25px;
    }

    /* Mobile education layout */
    .education-page {
        height: auto;
        min-height: calc(100vh - 115px);

        overflow: visible;
    }

    .education-achievements {
        height: auto;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .info-column {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .info-column > h2 {
        margin-bottom: 5px;
    }

    .info-card {
        min-height: 80px;
        padding: 13px;
    }

    .info-card h3 {
        font-size: 14px;
    }

    .info-card p {
        font-size: 11px;
    }

    .compact-heading h1 {
        font-size: 23px;
    }

    .project-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .family-card {
        flex-direction: column;
        text-align: center;
    }

    .family-image {
        width: 100%;
        max-width: 280px;
        height: 280px;
    }

    footer {
        height: 45px;
    }

                                 }
