:root {
    --maxw: 1500px;
    --r-lg: 28px;
    --pad-x: clamp(20px, 4vw, 56px);
    --pad-y: clamp(18px, 3.5vw, 52px);
}

/* Dark theme */
html[data-theme="dark"] {
    --bg: #0d1117;
    --panel: #161b22;
    --soft-1: #21262d;
    --soft-2: #1c2128;

    --text: #e6edf3;
    --muted: #8b949e;
    --muted-2: #6e7681;

    --line: #30363d;
}

/* Light theme */
html[data-theme="light"] {
    --bg: #ffffff;
    --panel: #ffffff;
    --soft-1: #f5f5f5;
    --soft-2: #eeeeee;

    --text: #111111;
    --muted: #555555;
    --muted-2: #777777;

    --line: #dadada;
}

/* Smooth theme transitions */
body, .frame, .btn, .project, .skill, .tech-tag, .logo, .theme-toggle {
    transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.7;
}

/* Page wrapper */
.page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 72px var(--pad-x);
}

/* Subtle background geometry (like the reference) */
.bg-blob {
    position: absolute;
    inset: auto;
    border-radius: 999px;
    background: var(--soft-1);
    opacity: 0.55;
    filter: blur(0px);
    pointer-events: none;
}

.blob-1 {
    width: 780px;
    height: 780px;
    left: 50%;
    top: 52%;
    transform: translate(-45%, -45%);
}

.blob-2 {
    width: 420px;
    height: 420px;
    right: -120px;
    top: 120px;
    background: var(--soft-2);
    opacity: 0.35;
}

.blob-3 {
    width: 260px;
    height: 260px;
    left: -80px;
    bottom: 80px;
    background: var(--soft-1);
    opacity: 0.3;
}

.blob-4 {
    width: 180px;
    height: 180px;
    left: 38%;
    top: -60px;
    background: var(--soft-2);
    opacity: 0.4;
}

.blob-5 {
    width: 320px;
    height: 320px;
    right: 12%;
    bottom: -100px;
    background: var(--soft-1);
    opacity: 0.25;
}

/* Outline rings */
.bg-ring {
    position: absolute;
    border-radius: 999px;
    border: 1px solid var(--line);
    opacity: 0.35;
    pointer-events: none;
}

.ring-1 {
    width: 600px;
    height: 600px;
    left: -200px;
    top: -180px;
}

.ring-2 {
    width: 440px;
    height: 440px;
    right: -140px;
    bottom: 60px;
}

.ring-3 {
    width: 240px;
    height: 240px;
    left: 55%;
    top: 60%;
}

.cross {
    position: absolute;
    width: 14px;
    height: 14px;
    opacity: 0.5;
    pointer-events: none;
}
.cross::before,
.cross::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 1px;
    background: var(--line);
    transform: translate(-50%, -50%);
}
.cross::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.cross.c1 { left: 10%; top: 14%; }
.cross.c2 { right: 8%; top: 22%; }
.cross.c3 { right: 10%; bottom: 18%; }

/* Frame (main card) */
.frame {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--pad-y) var(--pad-x);
}

/* Top meta line (optional like the reference) */
.meta {
    display: flex;
    gap: 18px;
    align-items: baseline;
    color: var(--muted-2);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

/* Header / nav */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 44px;
}

.logo {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--text);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 22px;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.nav a {
    color: var(--muted-2);
    text-decoration: none;
    padding: 6px 2px;
}
.nav a:hover { color: var(--text); }

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted-2);
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--muted); }

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(28px, 6vw, 76px);
    align-items: center;
}

h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 4.6vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.sub {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 16px;
    max-width: 52ch;
}

.btn-row {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 18px 0 30px;
}

.btn {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    background: var(--soft-1);
    color: var(--text);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}
.btn:hover { border-color: #6e7681; }

.links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted-2);
}
.links a {
    color: var(--muted-2);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.links a:hover {
    color: var(--text);
    border-bottom-color: var(--line);
}

.copy-email {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    outline: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: 13px;
    color: var(--muted-2);
    cursor: pointer;
    display: inline;
    vertical-align: baseline;
}
.copy-email:hover { color: var(--text); border-bottom-color: var(--line); }
.copy-email:focus { outline: none; }
.copy-email.copied { color: var(--text); }

/* Hero visual */
.visual {
    display: grid;
    place-items: center;
    min-height: 360px;
}

.profile-circle {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 1px solid var(--line);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-14px); }
}


/* Sections */
.sections {
    margin-top: 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
}

.section h2 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.section p { margin: 0; color: var(--muted); }

.project-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.project-list li { list-style: none; }

.project {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px;
  background: var(--soft-1);
  text-decoration: none;
  color: var(--text);
  transition: transform 120ms ease, border-color 120ms ease;
}

.project:hover {
  transform: translateY(-2px);
  border-color: #6e7681;
}

.project-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

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

.project .desc {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.arrow {
  color: var(--muted-2);
  font-size: 14px;
}

.project:hover .arrow {
  color: var(--text);
}


/* Right column wrapper — keeps About + Currently learning close together */
.right-col {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-self: start;
}

/* Currently learning section */
.learning-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.learning-list li {
    color: var(--muted);
    padding-left: 20px;
    position: relative;
}

.learning-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--muted-2);
}

/* Skills section */
.skills {
    margin-top: 42px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.skill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    max-width: 520px;
}

.skill {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    color: var(--muted);
    background: var(--soft-1);
}


/* Footer contact row */
.contact-row {
    margin-top: 46px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted-2);
}

/* Responsive */
@media (max-width: 900px) {
    .container { padding-top: 44px; }
    .hero { grid-template-columns: 1fr; }
    .visual { min-height: 300px; }
    .sections { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .header {
        flex-wrap: wrap;
        gap: 12px 0;
    }

    /* Nav drops to its own full-width row, centered */
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 16px;
    }

    /* Theme toggle stays on the first row, pushed to the right */
    .theme-toggle {
        margin-left: auto;
    }

    .profile-circle {
        width: 220px;
        height: 220px;
    }

    .visual { min-height: 220px; }
}

