/* ===============================
   COLORS
   =============================== */
:root {
    --primary: #4f46e5;
    --secondary: #06b6d4;
    --accent: #f97316;
    --dark: #0f172a;
}

/* ===============================
   GLOBAL
   =============================== */
body {
    margin: 0;
    font-family: "Georgia", serif;
    color: var(--dark);
}

/* ===============================
   HERO (FIXED AT TOP)
   =============================== */
.hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 340px;
    z-index: 1000;

    display: flex;
    align-items: center;

    background-image:
        linear-gradient(
            to right,
            rgba(15,23,42,0.95) 0%,
            rgba(15,23,42,0.85) 35%,
            rgba(15,23,42,0.60) 55%,
            rgba(15,23,42,0.20) 70%,
            rgba(15,23,42,0.00) 85%
        ),
        url("cover.png");

    background-size: cover;
    background-position: 90% 70%;
}

/* ===============================
   HEADER CONTENT
   =============================== */
.header {
    display: flex;
    align-items: center;
    padding: 0 60px;
}

/* Profile ring */
.profile {
    padding: 6px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary),
        var(--accent)
    );
}

.profile img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
}

/* ===============================
   NAME
   =============================== */
.name {
    margin-left: 40px;
}

.name h1 {
    margin: 0;
    font-size: 42px;
    color: white;
}

.name hr {
    margin: 10px 0;
    border: none;
    height: 3px;
    width: 70%;
    background: linear-gradient(
        to right,
        var(--secondary),
        var(--accent),
        transparent
    );
}

.tagline {
    color: #e5e7eb;
    margin: 0;
}

/* ===============================
   MENU
   =============================== */
.menu {
    margin-top: 340px;   /* push below hero */
    padding: 30px 60px;
    background: white;
}

.menu ul {
    list-style: none;       /* Removes the bullet points */
    padding: 0;             /* Removes the default list indentation */
    margin: 0;
    display: flex;          /* Places the items horizontally */
    flex-wrap: wrap;        /* Allows the boxes to wrap to the next line on small screens */
    gap: 15px;              /* Adds spacing between the rounded boxes */
}

.menu li {
    margin: 0;              /* Removes old vertical margins */
}

.menu a {
    text-decoration: none;
    font-size: 20px;
    color: white;
    background-color: #172554; /* Faded blue background */
    padding: 12px 24px;        /* Creates the box shape around the text */
    border-radius: 30px;       /* Makes the box fully rounded */
    display: inline-block;
    transition: all 0.3s ease;
}

.menu a:hover {
    color: white;
    background-color: #4f46e5; /* Slightly darker faded blue on hover so it feels interactive */
}

/* ===============================
   CONTENT
   =============================== */
.content {
    padding: 20px 60px 100px;  /* bottom space for footer */
}

.content section {
    margin-bottom: 40px;
}

.content h2 {
    color: var(--primary);
    border-bottom: 2px solid rgba(79,70,229,0.2);
    padding-bottom: 5px;
}

.content p {
    font-size: 18px;
    line-height: 1.7;
}

/* ===============================
   FOOTER (FIXED BOTTOM)
   =============================== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 60px;
    text-align: center;
    background: var(--dark);
    color: white;
    font-size: 14px;
}

.quote {
    font-style: italic;
    font-size: 13px;
    color: #cbd5e1;
}

/* ===============================
   MOBILE BALANCING (READABLE)
   =============================== */
@media (max-width: 768px) {

    .header,
    .menu,
    .content,
    .footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero {
        height: 260px;
    }

    .menu {
        margin-top: 260px;
    }

    .profile img {
        width: 90px;
        height: 90px;
    }

    .name h1 {
        font-size: 26px;
    }

    .content p {
        font-size: 16px;
    }
}

/* ===============================
   RESEARCH BOX LAYOUT (NO STRUCTURE CHANGE)
   =============================== */

/* container behaves like grid */
.content section > div {
    display: inline-block;
    width: 45%;
    vertical-align: top;
    margin: 10px 2%;

}

/* box style */
.research-title {
    cursor: pointer;
    font-weight: bold;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: 0.3s;
}

/* hover effect */
.research-title:hover {
    background: #e0f2fe;
    color: var(--primary);
}

/* content inside box */
.research-content {
    display: none;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #ffffff;
    font-size: 15px;
    color: #334155;
}

.software-box {
    display: inline-block;
    width: 48%;          /* makes 2 per row */
    margin: 10px 1%;
    padding: 18px;

    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;

    font-weight: bold;
    font-size: 18px;

    vertical-align: top;
    box-sizing: border-box;
}
