/* ============================================================
   ADAM ELWAN — adamelwan.com
   Clean, minimal. One column. No noise.
   ============================================================ */


/* ===========================
   RESET & BASE
   Clear browser defaults so we start from scratch.
   box-sizing: border-box means padding is included
   in an element's width — avoids annoying layout math.
=========================== */

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

html {
    scroll-behavior: smooth; /* smooth scrolling when nav links are clicked */
}

/* ===========================
   PAGE FADE-IN
   The whole page fades up on load.
   @keyframes defines the motion;
   the animation rule on body fires it once.
=========================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: fadeUp 0.5s ease both;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* -apple-system etc. are fallbacks if Inter doesn't load */
    font-size: 16px;
    line-height: 1.7;
    color: #111111;
    background: #ffffff;
    -webkit-font-smoothing: antialiased; /* crisper text on Mac/iOS */
}


/* ===========================
   LAYOUT
   max-width + margin: auto = centred column.
   700px is the sweet spot for readable text.
   padding: 0 24px gives breathing room on small screens.
=========================== */

nav, main, footer {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
    border-bottom: 1px solid #eeeeee;
}

section:last-child {
    border-bottom: none;
}


/* ===========================
   NAVIGATION
=========================== */

nav {
    display: flex;               /* side by side */
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    padding-bottom: 32px;
}

.nav-name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111111;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-size: 14px;
    color: #666666;
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav-links a:hover {
    color: #111111;
}


/* ===========================
   HERO
=========================== */

#hero {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Headshot — circular crop, face centred */
.headshot {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 38%; /* pulls focus toward the face */
    display: block;
    margin-bottom: 28px;
}

/* Status line — the "Currently: ..." indicator above the name */
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666666;
    margin-bottom: 24px;
}

/* The pulsing green dot */
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: pulse 2.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

#hero h1 {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.03em; /* tight tracking on large type looks sharper */
    line-height: 1.1;
    margin-bottom: 20px;
    color: #111111;
}

.hero-sub {
    font-size: 18px;
    color: #444444;
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-links {
    display: flex;
    gap: 12px;
}

.hero-links a {
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

/* Primary button — solid black (LinkedIn) */
.hero-links a:first-child {
    background: #111111;
    color: #ffffff;
}

.hero-links a:first-child:hover {
    background: #333333;
}

/* Secondary buttons — outline (CV download, Get in touch) */
.hero-links a:not(:first-child) {
    border: 1px solid #dddddd;
    color: #111111;
}

.hero-links a:not(:first-child):hover {
    border-color: #999999;
}


/* ===========================
   SECTION HEADINGS
   Small-caps labels — common in minimal design.
   Looks like a label, not a title.
=========================== */

h2 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #aaaaaa;
    margin-bottom: 36px;
}

h2.section-sub {
    margin-top: 64px;
}


/* ===========================
   PROSE (about and contact paragraphs)
=========================== */

.prose p {
    font-size: 16px;
    color: #333333;
    margin-bottom: 18px;
    max-width: 600px;
}

.prose p:last-child {
    margin-bottom: 0;
}


/* ===========================
   EXPERIENCE & EDUCATION ENTRIES
=========================== */

.entries {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 16px;
}

.entry-org {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 2px;
}

.entry-role {
    display: block;
    font-size: 14px;
    color: #666666;
}

.entry-date {
    font-size: 13px;
    color: #aaaaaa;
    white-space: nowrap;  /* stops the date wrapping onto two lines */
    margin-top: 2px;
    flex-shrink: 0;       /* won't get squished if org name is long */
}

.entry ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.entry ul li {
    font-size: 15px;
    color: #444444;
    padding-left: 18px;
    position: relative;
    line-height: 1.6;
}

/* Custom bullet — a quiet dash instead of the default dot */
.entry ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: #cccccc;
}

.entry-note {
    font-size: 14px;
    color: #999999;
}


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

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 28px;
}

.contact-links a {
    font-size: 16px;
    color: #111111;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.contact-links a:hover {
    color: #888888;
}


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

footer {
    padding-top: 40px;
    padding-bottom: 48px;
}

footer p {
    font-size: 13px;
    color: #cccccc;
}


/* ===========================
   RESPONSIVE — mobile adjustments
   Below 600px the layout needs to compress.
=========================== */

@media (max-width: 600px) {

    #hero h1 {
        font-size: 36px;
    }

    .hero-sub {
        font-size: 16px;
    }

    /* Stack the date below the org/role on small screens */
    .entry-header {
        flex-direction: column;
        gap: 2px;
    }

    .entry-date {
        order: -1; /* date moves to top of the entry on mobile */
    }

    .nav-links {
        gap: 16px;
    }

}
