:root {
    --bg-main: #f2f2f2;
    --bg-card: #ffffff;
    --border-dark: #111111;
    --text-main: #111111;
    --text-muted: #555555;
    --shadow-soft: 0 10px 25px rgba(0,0,0,0.08);
}

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

body {
    font-family: "Space Grotesk", sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
}

/* ================= PAGE + CONTAINER ================= */
.page {
    padding: 80px 6vw;
}

.container {
    max-width: 1100px;   /* THIS fixes stretched look */
    margin: 0 auto;
}

/* ================= TOP BAR ================= */
.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    border-bottom: 3px solid var(--border-dark);
    padding: 14px 6vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-weight: 700;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
}

/* ================= CARD BASE ================= */
.card {
    background: var(--bg-card);
    margin-bottom: 70px;
    padding: 40px;
    border: 3px solid var(--border-dark);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

/* ================= WINDOW BAR ================= */
.window-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.window-bar span {
    width: 12px;
    height: 12px;
    border: 2px solid var(--border-dark);
    border-radius: 50%;
}

/* ================= HERO ================= */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.1rem;
    margin-bottom: 14px;
}

.hero-text p {
    max-width: 520px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.hero-actions {
    margin-top: 24px;
}

/* HERO META */
.hero-meta {
    border-left: 2px solid var(--border-dark);
    padding-left: 24px;
    font-size: 0.9rem;
}

.hero-meta div {
    margin-bottom: 16px;
}

.hero-meta strong {
    display: block;
    font-weight: 600;
}

.hero-meta span {
    color: var(--text-muted);
}

/* ================= BUTTON ================= */
.btn {
    border: 2px solid var(--border-dark);
    padding: 10px 24px;
    margin-right: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    display: inline-block;
}

.btn:hover {
    background: var(--border-dark);
    color: #fff;
}

/* ================= ABOUT ================= */
.profile-grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 32px;
    align-items: center;
}

.profile-img img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--border-dark);
    object-fit: cover;
}

.profile-content p {
    max-width: 600px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ================= HEADINGS ================= */
.card h2 {
    font-size: 1.7rem;
    margin-bottom: 22px;
}

/* ================= PROJECTS ================= */
.project {
    border-top: 2px solid var(--border-dark);
    padding-top: 22px;
    margin-top: 22px;
}

.project h3 {
    margin-bottom: 6px;
}

.meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* ================= TWO COLUMN ================= */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* ================= SKILLS ================= */
.skills-group {
    margin-bottom: 22px;
}

.skills-group h4 {
    font-size: 0.85rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chips span {
    border: 2px solid var(--border-dark);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ================= EDUCATION ================= */
.edu {
    border-top: 2px solid var(--border-dark);
    padding-top: 18px;
    margin-top: 18px;
}

/* ================= AWARDS ================= */
.awards {
    list-style: none;
}

.awards li {
    border-top: 2px solid var(--border-dark);
    padding: 16px 0;
    font-weight: 600;
}

/* ================= FOOTER ================= */
.site-footer {
    width: 100%;
    margin-top: 80px;
    padding: 32px 0;
    text-align: center;
    border-top: 3px solid var(--border-dark);
    background: var(--bg-main);
    font-weight: 600;
}


/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-meta {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid var(--border-dark);
        padding-top: 18px;
        margin-top: 24px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .two-col {
        grid-template-columns: 1fr;
    }
}

.card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.12);
}

.window {
    border: 2px solid var(--border-dark);
    padding: 22px;
    margin-top: 28px;
    box-shadow: 4px 4px 0 var(--border-dark);
    transition: transform 0.25s ease;
}

.window:hover {
    transform: translate(-4px, -4px);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border-dark);
    padding: 6px 10px;
    font-size: 1rem;
    cursor: pointer;
}
body.dark {
    --bg-main: #0e0e0e;
    --bg-card: #151515;
    --border-dark: #ffffff;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
}
.theme-toggle {
    background: none;
    border: 2px solid var(--border-dark);
    padding: 6px 10px;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 20px;
}
body.dark {
    --bg-main: #0e0e0e;
    --bg-card: #161616;
    --border-dark: #ffffff;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
}
body {
    transition: background 0.3s ease, color 0.3s ease;
}

/* ================= FORM STYLES ================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    width: 420px;
}

/* Inputs */
input {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 2px solid var(--border-dark);
    background: var(--bg-card);
    color: var(--text-main);
    font-family: inherit;
}

/* Error messages */
.error {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #d60000;
}

/* Form buttons */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.demo-link {
    margin-left: 6px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* ================= CONTACT LINKS ================= */
.contact-links {
    margin-top: 18px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.contact-links a {
    font-weight: 600;
    text-decoration: underline;
    color: var(--text-main);
}

.contact-links a:hover {
    opacity: 0.7;
}

/* ================= CONTACT ICON LINKS ================= */
.contact-links {
    margin-top: 18px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-main);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-icon:hover {
    opacity: 0.7;
}
