@charset "utf-8";

/* ================================================
   ADI ATRASH — UNIFIED STYLESHEET
   ================================================ */

@font-face {
    font-family: 'font1';
    src: url('cmu.sans-serif-medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --calmblue: #a9bbcf;
    --darkblue: #656f7a;
    --text: #333;
    --text-light: #555;
    --text-muted: #9ca3af;
    --accent: #458ff7;
    --border: #e8e8e8;
    --bg: #fff;
    --max-width: 720px;
}

/* === Reset & base === */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    font-family: 'ui-sans-serif', system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: normal;
    color: var(--text);
}

p {
    margin: 0;
    font-size: 1.6rem;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

li {
    font-size: 1.5rem;
}

img {
    max-width: 100%;
    display: block;
}


/* === Layout === */

#container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}


/* === Header === */

#header {
    display: flex;
    align-items: center;
    padding: 28px 0 20px;
}

.nametl {
    margin: 0;
    font-size: 2rem;
    flex-shrink: 0;
}

.nametl a {
    font-family: 'font1', Arial, sans-serif;
    color: var(--text);
    font-weight: 500;
    -webkit-text-stroke: 0.4px var(--text);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.abt {
    font-size: 1.4rem;
    color: var(--text-muted);
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.abt:hover {
    color: var(--text);
    background: #f5f5f5;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 10px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.avatar:hover {
    opacity: 1;
}


/* === Hero section (index page) === */

.hero {
    padding: 56px 0 40px;
    text-align: center;
}

.pfp {
    width: 120px;
    height: 120px;
    margin: 0 auto 28px;
}

.pfp img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.headline {
    font-size: 2.8rem;
    line-height: 1.35;
    color: var(--text);
    text-align: center;
    margin-bottom: 28px;
    font-family: 'ui-sans-serif', system-ui, -apple-system, sans-serif;
}

.intro {
    font-size: 1.6rem;
    color: var(--text-light);
    line-height: 1.8;
    text-align: left;
}


/* === Gradient text === */

.one {
    background: linear-gradient(135deg, #E91878, #FC8829);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.two {
    background: linear-gradient(135deg, #02A9C1, #24D91C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.three {
    background: linear-gradient(135deg, #931DE7, #118BF5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* === Blog entries === */

#bottom {
    padding: 40px 0;
}

.blghd {
    margin-bottom: 20px;
}

.blghd h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
}

.blogentry {
    display: grid;
    grid-template-columns: 130px 1fr;
    grid-template-rows: auto auto;
    gap: 6px 20px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.blogentry:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.thumbimg {
    grid-row: 1 / span 2;
    grid-column: 1;
    width: 130px;
    height: 90px;
    overflow: hidden;
    border-radius: 6px;
}

.thumbimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbhdr {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.blogttl {
    padding: 0;
}

.blogttl a {
    color: var(--text);
}

.blogttl h3 {
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--text);
    transition: text-decoration-color 0.2s;
}

.blogttl a:hover h3 {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

.date {
    padding: 0;
    flex-shrink: 0;
}

.date h5 {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
    margin: 0;
}

.thumbtxt {
    grid-column: 2;
    grid-row: 2;
}

.thumbtxt h4 {
    margin: 0;
    font-size: 1.35rem;
    color: #777;
    font-weight: 400;
    line-height: 1.5;
}


/* === About page === */

#yap {
    padding-top: 20px;
}

#yap p,
#bottom p {
    font-size: 1.65rem;
    color: var(--text-light);
    line-height: 1.85;
    text-align: left;
}


/* === Courses page === */

#courses {
    padding: 24px 0;
}

.bla {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

#container123 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    text-align: left;
}

.physics1, .maths, .eng, .misc {
    font-size: 1.7rem;
    font-weight: 600;
    background: linear-gradient(135deg, #931DE7, #118BF5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 6px;
}

.sub_list {
    color: var(--text-light);
}

.sub_list li {
    font-size: 1.35rem;
    text-align: left;
    padding: 3px 0;
    line-height: 1.5;
}

#headerc {
    padding-top: 24px;
    text-align: left;
}

#headerc h1 {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
}


/* === Resume / CV === */

.cv-summary {
    text-align: left;
    font-size: 1.6rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-top: 12px;
}

.cv-section {
    margin-top: 44px;
}

.cv-section-title {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--calmblue);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
    margin-bottom: 24px;
    text-align: left;
}

.cv-entry {
    display: grid;
    grid-template-columns: 1fr 140px;
    column-gap: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.cv-entry-main {
    grid-column: 1;
}

.cv-entry-date {
    grid-column: 2;
    text-align: right;
    font-size: 1.25rem;
    color: #aaa;
    padding-top: 3px;
    white-space: nowrap;
}

.cv-org {
    font-size: 1.65rem;
    color: var(--text);
    font-weight: 600;
    margin: 0 0 2px 0;
}

.cv-role {
    font-size: 1.35rem;
    color: var(--darkblue);
    font-weight: 400;
    margin: 0 0 8px 0;
}

.cv-desc {
    font-size: 1.35rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-weight: normal;
}

.cv-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.cv-skill {
    font-size: 1.25rem;
    color: var(--darkblue);
    background: #f0f4f8;
    border-radius: 4px;
    padding: 4px 12px;
}

.cv-entry-single {
    margin-bottom: 28px;
    text-align: left;
}

ul.cv-desc {
    list-style: disc;
    padding-left: 1.4em;
    margin: 0;
}

ul.cv-desc li {
    font-size: 1.35rem;
    color: #666;
    line-height: 1.6;
    font-weight: normal;
    margin-bottom: 4px;
}


/* === Footer nav === */

#nav {
    margin-top: 56px;
    text-align: center;
}

#nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px 0;
}

#nav li {
    display: inline-block;
    color: var(--accent);
    border-radius: 2em;
    font-size: 1.35rem;
    transition: color 0.25s, background 0.25s;
}

#nav a {
    display: inline-block;
    padding: 6px 16px;
    font-weight: 400;
}

#nav li:hover {
    color: #fff;
    background: var(--accent);
}


/* === Footer === */

#footer {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    padding: 12px 0 36px;
}


/* === Responsive === */

@media (max-width: 640px) {
    #container {
        padding: 0 16px;
    }

    .headline {
        font-size: 2.2rem;
    }

    .pfp {
        width: 96px;
        height: 96px;
    }

    .blogentry {
        grid-template-columns: 90px 1fr;
        gap: 6px 12px;
    }

    .thumbimg {
        width: 90px;
        height: 72px;
    }

    .thumbhdr {
        flex-direction: column;
        gap: 2px;
    }

    #container123 {
        grid-template-columns: 1fr;
    }

    .cv-entry {
        grid-template-columns: 1fr;
    }

    .cv-entry-date {
        grid-column: 1;
        text-align: left;
        padding-top: 0;
        margin-bottom: 4px;
    }

    .cv-skills {
        justify-content: flex-start;
    }
}
