/* =========================================================
   AAYUSH RIJAL — PORTFOLIO
   Clean professional cybersecurity portfolio
   ========================================================= */

:root {
    --black: #111111;
    --dark: #181818;
    --white: #ffffff;
    --off-white: #f5f5f3;
    --grey: #666666;
    --light-grey: #dddddd;
    --border: #d8d8d8;
    --accent: #174ea6;

    --max-width: 1180px;
}


/* =========================================================
   RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
}

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

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


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

.container {
    width: min(90%, var(--max-width));
    margin: 0 auto;
}

.section {
    padding: 110px 0;
}

.section-light {
    background: var(--off-white);
}

.section-dark {
    background: var(--dark);
    color: var(--white);
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--accent);
}

.section-dark .section-label {
    color: #ffffff;
}

.section-title {
    max-width: 760px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 55px;
}


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

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    width: min(92%, var(--max-width));
    height: 74px;
    margin: 0 auto;

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

.logo {
    width: 42px;
    height: 42px;

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

    background: var(--black);
    color: var(--white);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: bold;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

nav a:hover {
    opacity: 0.55;
}


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

.hero {
    min-height: calc(100vh - 74px);

    display: flex;
    align-items: center;

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

.hero-container {
    width: min(90%, var(--max-width));
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: center;

    padding: 90px 0;
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 25px;
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(64px, 9vw, 120px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -4px;
    margin-bottom: 28px;
}

.hero h2 {
    max-width: 650px;

    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 500;
    line-height: 1.25;

    margin-bottom: 25px;
}

.hero-description {
    max-width: 650px;

    color: var(--grey);
    font-size: 17px;
    line-height: 1.8;

    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 24px;

    border: 1px solid var(--black);

    font-size: 13px;
    font-weight: 700;

    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.social-links a {
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid var(--black);
    padding-bottom: 3px;
}

.hero-image {
    display: flex;
    justify-content: flex-end;
}

.image-frame {
    width: min(100%, 430px);
    border: 1px solid var(--black);
    padding: 10px;
    background: var(--white);
}

.image-frame img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 100px;
}

.about-grid > div:first-child {
    max-width: 700px;
}

.about-grid p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.65;
    margin-bottom: 25px;
}

.about-details {
    border-top: 1px solid var(--black);
}

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

    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item span {
    color: var(--grey);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-item strong {
    font-size: 15px;
}


/* =========================================================
   SKILLS
   ========================================================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--black);
    border-left: 1px solid var(--black);
}

.skill-card {
    min-height: 220px;

    padding: 30px;

    border-right: 1px solid var(--black);
    border-bottom: 1px solid var(--black);

    background: var(--white);
}

.skill-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 400;
    margin-bottom: 15px;
}

.skill-card p {
    color: var(--grey);
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   EXPERIENCE
   ========================================================= */

.timeline {
    border-top: 1px solid var(--black);
}

.timeline-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 60px;

    padding: 45px 0;

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

.timeline-date {
    font-size: 13px;
    font-weight: 700;
    color: var(--grey);
}

.timeline-content h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content li {
    color: var(--grey);
    font-size: 15px;
    margin-bottom: 12px;
}


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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;

    background: var(--black);
    border: 1px solid var(--black);
}

.project-card {
    min-height: 350px;

    background: var(--white);

    padding: 35px;

    display: flex;
    flex-direction: column;
}

.project-number {
    font-size: 12px;
    color: var(--grey);
    margin-bottom: 45px;
}

.project-card h3 {
    max-width: 500px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.15;

    margin-bottom: 18px;
}

.project-card p {
    max-width: 550px;

    color: var(--grey);
    font-size: 14px;
    line-height: 1.75;

    margin-bottom: 30px;
}

.project-tags {
    margin-top: auto;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    padding: 6px 10px;

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

    font-size: 11px;
    font-weight: 600;
}

.github-projects {
    margin-top: 30px;
}

.github-projects a {
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid var(--black);
    padding-bottom: 5px;
}


/* =========================================================
   EDUCATION
   ========================================================= */

.education-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 50px;

    padding: 35px 0;

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

.education-card:last-child {
    border-bottom: 1px solid var(--border);
}

.education-year {
    font-size: 12px;
    font-weight: 700;
    color: var(--grey);
    letter-spacing: 1px;
}

.education-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 12px;
}

.education-card p {
    max-width: 700px;
    color: var(--grey);
    font-size: 15px;
}


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

.contact-container {
    min-height: 500px;

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

.contact-text {
    max-width: 650px;

    color: #cfcfcf;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.6;

    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.contact-links a {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 3vw, 36px);

    border-bottom: 1px solid #777;

    transition: border-color 0.2s ease;
}

.contact-links a:hover {
    border-color: var(--white);
}


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

footer {
    background: var(--black);
    color: #bbbbbb;

    border-top: 1px solid #333;
}

.footer-container {
    min-height: 90px;

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

    font-size: 12px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 11px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-image {
        justify-content: flex-start;
    }

    .image-frame {
        width: min(100%, 360px);
    }

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

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}


@media (max-width: 650px) {

    .section {
        padding: 80px 0;
    }

    .nav-container {
        height: auto;
        min-height: 70px;
        padding: 12px 0;
    }

    nav {
        display: none;
    }

    .hero h1 {
        font-size: 64px;
        letter-spacing: -2px;
    }

    .hero-container {
        padding: 70px 0;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .education-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-container {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 25px 0;
        text-align: center;
    }

}