:root {
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.92);
  --light: #edf2f8;
  --text: #152033;
  --muted: #1f2a3a;
  --border: rgba(21, 32, 51, 0.82);
  --accent: #2563c9;
  --primary: #1c2f4a;
  --nav: #2f2f2f;
  --gradient: linear-gradient(90deg, #2563c9 0%, #3ea1f2 100%);
  --shadow: 0 20px 60px rgba(17, 31, 52, 0.1);
  --radius-xl: 42px;
  --radius-lg: 32px;
  --radius-md: 22px;
  --container: min(1020px, calc(100vw - 72px));
  --nav-width: min(920px, calc(100vw - 72px));
  --content-width: min(820px, calc(100vw - 72px));
  --page-top-left: rgba(96, 149, 217, 0.08);
  --page-top-right: rgba(180, 203, 234, 0.12);
  --page-base: #ffffff;
  --nav-bg: rgba(33, 33, 33, 0.95);
  --button-bg: rgba(255, 255, 255, 0.88);
  --icon-fill: #1b2739;
  --input-text: #1f2a3a;
  --input-placeholder: #566274;
  --contact-icon-bg: #1b2739;
  --contact-icon-text: #ffffff;
  --portrait-bg:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.98), rgba(238, 244, 251, 0.94) 58%),
    linear-gradient(180deg, rgba(229, 238, 250, 0.98), rgba(213, 225, 242, 0.94));
  --portrait-ring: rgba(62, 161, 242, 0.42);
  --portrait-shadow-glow: rgba(62, 161, 242, 0.14);
  --portrait-glow: radial-gradient(circle, rgba(37, 99, 201, 0.16), transparent 60%);
  --project-preview-primary: linear-gradient(135deg, #2563c9 0%, #7cb8ff 100%);
  --project-preview-secondary: linear-gradient(135deg, #5d7cb5 0%, #1c2f4a 100%);
  --project-preview-tertiary: linear-gradient(135deg, #f2bb86 0%, #d98e4d 100%);
  --project-browser-bar: rgba(255, 255, 255, 0.55);
  --project-screen-light:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(232, 241, 255, 0.84)),
    repeating-linear-gradient(
      90deg,
      rgba(37, 99, 201, 0.1) 0 70px,
      rgba(255, 255, 255, 0.18) 70px 140px
    );
  --project-screen-dashboard:
    radial-gradient(circle at top right, rgba(62, 161, 242, 0.28), transparent 28%),
    linear-gradient(180deg, #102033 0%, #182944 100%);
  --project-screen-crypto:
    linear-gradient(180deg, rgba(13, 24, 38, 0.96), rgba(24, 41, 68, 0.92)),
    repeating-linear-gradient(
      90deg,
      rgba(62, 161, 242, 0.16) 0 82px,
      rgba(255, 255, 255, 0.04) 82px 164px
    );
}

body[data-theme="dark"] {
  --bg: #0c1220;
  --surface: rgba(17, 24, 39, 0.72);
  --light: #131c2e;
  --text: #f4f7fb;
  --muted: #b8c2d6;
  --border: rgba(125, 147, 184, 0.55);
  --accent: #79b8ff;
  --primary: #f4f7fb;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --page-top-left: rgba(46, 167, 255, 0.18);
  --page-top-right: rgba(157, 57, 255, 0.16);
  --page-base: #090f1b;
  --nav-bg: rgba(10, 15, 27, 0.9);
  --button-bg: rgba(12, 18, 32, 0.78);
  --icon-fill: #f4f7fb;
  --input-text: #d8deea;
  --input-placeholder: #98a5bf;
  --contact-icon-bg: #f4f7fb;
  --contact-icon-text: #0c1220;
  --portrait-bg:
    radial-gradient(circle at 50% 30%, rgba(31, 43, 66, 0.96), rgba(15, 22, 36, 0.94) 58%),
    linear-gradient(180deg, rgba(20, 28, 44, 0.96), rgba(10, 16, 28, 0.96));
  --portrait-ring: rgba(121, 184, 255, 0.65);
  --portrait-shadow-glow: rgba(66, 190, 255, 0.18);
  --portrait-glow: radial-gradient(circle, rgba(121, 184, 255, 0.24), transparent 60%);
  --project-preview-primary: linear-gradient(135deg, #3f5f93 0%, #79b8ff 100%);
  --project-preview-secondary: linear-gradient(135deg, #10182a 0%, #284570 100%);
  --project-preview-tertiary: linear-gradient(135deg, #3a4e73 0%, #7a95b9 100%);
  --project-browser-bar: rgba(255, 255, 255, 0.6);
  --project-screen-light:
    linear-gradient(180deg, rgba(26, 37, 58, 0.96), rgba(15, 24, 39, 0.92)),
    repeating-linear-gradient(
      90deg,
      rgba(121, 184, 255, 0.14) 0 70px,
      rgba(255, 255, 255, 0.04) 70px 140px
    );
  --project-screen-dashboard:
    radial-gradient(circle at top right, rgba(121, 184, 255, 0.3), transparent 28%),
    linear-gradient(180deg, #090f1b 0%, #131c2e 100%);
  --project-screen-crypto:
    linear-gradient(180deg, rgba(10, 15, 27, 0.96), rgba(18, 31, 53, 0.9)),
    repeating-linear-gradient(
      90deg,
      rgba(121, 184, 255, 0.16) 0 82px,
      rgba(255, 255, 255, 0.03) 82px 164px
    );
}

body[data-theme="ocean"] {
  --bg: #e6f7f8;
  --surface: rgba(255, 255, 255, 0.72);
  --light: #d5f0f3;
  --text: #103345;
  --muted: #466373;
  --border: rgba(16, 51, 69, 0.85);
  --accent: #008ba3;
  --primary: #103345;
  --shadow: 0 24px 60px rgba(16, 71, 89, 0.16);
  --page-top-left: rgba(0, 139, 163, 0.18);
  --page-top-right: rgba(0, 198, 180, 0.16);
  --page-base: #f4fcfd;
  --nav-bg: rgba(8, 60, 79, 0.92);
  --button-bg: rgba(255, 255, 255, 0.7);
  --icon-fill: #103345;
  --input-text: #21495c;
  --input-placeholder: #608193;
  --contact-icon-bg: #103345;
  --contact-icon-text: #ffffff;
  --gradient: linear-gradient(90deg, #008ba3 0%, #00c6b4 100%);
  --portrait-bg:
    radial-gradient(circle at 50% 30%, rgba(241, 254, 255, 0.98), rgba(211, 242, 246, 0.94) 58%),
    linear-gradient(180deg, rgba(189, 233, 238, 0.96), rgba(162, 220, 228, 0.94));
  --portrait-ring: rgba(0, 139, 163, 0.52);
  --portrait-shadow-glow: rgba(0, 198, 180, 0.18);
  --portrait-glow: radial-gradient(circle, rgba(0, 198, 180, 0.24), transparent 60%);
  --project-preview-primary: linear-gradient(135deg, #008ba3 0%, #63d7df 100%);
  --project-preview-secondary: linear-gradient(135deg, #0d5168 0%, #00a9c0 100%);
  --project-preview-tertiary: linear-gradient(135deg, #4dbfc1 0%, #008ba3 100%);
  --project-browser-bar: rgba(255, 255, 255, 0.58);
  --project-screen-light:
    linear-gradient(180deg, rgba(246, 254, 255, 0.96), rgba(220, 246, 248, 0.88)),
    repeating-linear-gradient(
      90deg,
      rgba(0, 139, 163, 0.1) 0 70px,
      rgba(255, 255, 255, 0.18) 70px 140px
    );
  --project-screen-dashboard:
    radial-gradient(circle at top right, rgba(0, 198, 180, 0.3), transparent 28%),
    linear-gradient(180deg, #103345 0%, #0f4c61 100%);
  --project-screen-crypto:
    linear-gradient(180deg, rgba(10, 63, 73, 0.96), rgba(9, 96, 108, 0.9)),
    repeating-linear-gradient(
      90deg,
      rgba(0, 198, 180, 0.16) 0 82px,
      rgba(255, 255, 255, 0.04) 82px 164px
    );
}

body[data-theme="forest"] {
  --bg: #e9f2eb;
  --surface: rgba(250, 253, 249, 0.82);
  --light: #d9e8dc;
  --text: #183126;
  --muted: #536a5f;
  --border: rgba(24, 49, 38, 0.82);
  --accent: #2f8f5b;
  --primary: #183126;
  --shadow: 0 24px 60px rgba(38, 78, 57, 0.16);
  --page-top-left: rgba(79, 151, 103, 0.18);
  --page-top-right: rgba(130, 186, 105, 0.16);
  --page-base: #f7fbf7;
  --nav-bg: rgba(21, 59, 42, 0.92);
  --button-bg: rgba(249, 252, 247, 0.74);
  --icon-fill: #183126;
  --input-text: #254636;
  --input-placeholder: #6d8578;
  --contact-icon-bg: #183126;
  --contact-icon-text: #ffffff;
  --gradient: linear-gradient(90deg, #2f8f5b 0%, #82ba69 100%);
  --portrait-bg:
    radial-gradient(circle at 50% 30%, rgba(250, 255, 250, 0.98), rgba(219, 237, 224, 0.94) 58%),
    linear-gradient(180deg, rgba(202, 226, 208, 0.96), rgba(176, 209, 187, 0.94));
  --portrait-ring: rgba(47, 143, 91, 0.52);
  --portrait-shadow-glow: rgba(130, 186, 105, 0.18);
  --portrait-glow: radial-gradient(circle, rgba(95, 171, 114, 0.24), transparent 60%);
  --project-preview-primary: linear-gradient(135deg, #2f8f5b 0%, #82ba69 100%);
  --project-preview-secondary: linear-gradient(135deg, #183126 0%, #316947 100%);
  --project-preview-tertiary: linear-gradient(135deg, #9cc76a 0%, #5ca06f 100%);
  --project-browser-bar: rgba(255, 255, 255, 0.58);
  --project-screen-light:
    linear-gradient(180deg, rgba(252, 255, 251, 0.96), rgba(228, 241, 226, 0.88)),
    repeating-linear-gradient(
      90deg,
      rgba(47, 143, 91, 0.1) 0 70px,
      rgba(255, 255, 255, 0.18) 70px 140px
    );
  --project-screen-dashboard:
    radial-gradient(circle at top right, rgba(130, 186, 105, 0.28), transparent 28%),
    linear-gradient(180deg, #183126 0%, #234533 100%);
  --project-screen-crypto:
    linear-gradient(180deg, rgba(18, 49, 38, 0.96), rgba(40, 88, 56, 0.9)),
    repeating-linear-gradient(
      90deg,
      rgba(130, 186, 105, 0.16) 0 82px,
      rgba(255, 255, 255, 0.04) 82px 164px
    );
}

body[data-theme="sunset"] {
  --bg: #fff2e6;
  --surface: rgba(255, 250, 245, 0.82);
  --light: #ffe5d1;
  --text: #4f2316;
  --muted: #8a5441;
  --border: rgba(79, 35, 22, 0.82);
  --accent: #e66a3c;
  --primary: #4f2316;
  --shadow: 0 24px 60px rgba(143, 82, 47, 0.16);
  --page-top-left: rgba(255, 154, 92, 0.2);
  --page-top-right: rgba(233, 97, 87, 0.18);
  --page-base: #fffaf5;
  --nav-bg: rgba(88, 40, 27, 0.92);
  --button-bg: rgba(255, 249, 244, 0.72);
  --icon-fill: #4f2316;
  --input-text: #6f3b2a;
  --input-placeholder: #a17363;
  --contact-icon-bg: #4f2316;
  --contact-icon-text: #fffaf5;
  --gradient: linear-gradient(90deg, #ff9a5c 0%, #e96157 100%);
  --portrait-bg:
    radial-gradient(circle at 50% 30%, rgba(255, 249, 242, 0.98), rgba(255, 226, 202, 0.94) 58%),
    linear-gradient(180deg, rgba(255, 205, 170, 0.96), rgba(248, 177, 149, 0.94));
  --portrait-ring: rgba(230, 106, 60, 0.55);
  --portrait-shadow-glow: rgba(233, 97, 87, 0.2);
  --portrait-glow: radial-gradient(circle, rgba(255, 154, 92, 0.28), transparent 60%);
  --project-preview-primary: linear-gradient(135deg, #ff9a5c 0%, #e96157 100%);
  --project-preview-secondary: linear-gradient(135deg, #7b331f 0%, #e66a3c 100%);
  --project-preview-tertiary: linear-gradient(135deg, #ffbe7a 0%, #d96a4e 100%);
  --project-browser-bar: rgba(255, 255, 255, 0.58);
  --project-screen-light:
    linear-gradient(180deg, rgba(255, 251, 247, 0.96), rgba(255, 232, 213, 0.88)),
    repeating-linear-gradient(
      90deg,
      rgba(230, 106, 60, 0.11) 0 70px,
      rgba(255, 255, 255, 0.18) 70px 140px
    );
  --project-screen-dashboard:
    radial-gradient(circle at top right, rgba(255, 154, 92, 0.3), transparent 28%),
    linear-gradient(180deg, #4f2316 0%, #7a3424 100%);
  --project-screen-crypto:
    linear-gradient(180deg, rgba(79, 35, 22, 0.96), rgba(143, 75, 54, 0.9)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 154, 92, 0.16) 0 82px,
      rgba(255, 255, 255, 0.04) 82px 164px
    );
}

body[data-theme="rose"] {
  --bg: #fff0f4;
  --surface: rgba(255, 248, 250, 0.84);
  --light: #ffe2ea;
  --text: #5a2333;
  --muted: #915d6d;
  --border: rgba(90, 35, 51, 0.8);
  --accent: #d85c88;
  --primary: #5a2333;
  --shadow: 0 24px 60px rgba(154, 77, 106, 0.16);
  --page-top-left: rgba(233, 122, 161, 0.18);
  --page-top-right: rgba(255, 182, 193, 0.18);
  --page-base: #fff8fa;
  --nav-bg: rgba(98, 37, 58, 0.92);
  --button-bg: rgba(255, 247, 249, 0.76);
  --icon-fill: #5a2333;
  --input-text: #7b4053;
  --input-placeholder: #b18492;
  --contact-icon-bg: #5a2333;
  --contact-icon-text: #fff8fa;
  --gradient: linear-gradient(90deg, #d85c88 0%, #f3a6b8 100%);
  --portrait-bg:
    radial-gradient(circle at 50% 30%, rgba(255, 251, 252, 0.98), rgba(255, 225, 234, 0.94) 58%),
    linear-gradient(180deg, rgba(255, 213, 225, 0.96), rgba(247, 189, 206, 0.94));
  --portrait-ring: rgba(216, 92, 136, 0.48);
  --portrait-shadow-glow: rgba(243, 166, 184, 0.22);
  --portrait-glow: radial-gradient(circle, rgba(233, 122, 161, 0.24), transparent 60%);
  --project-preview-primary: linear-gradient(135deg, #d85c88 0%, #f3a6b8 100%);
  --project-preview-secondary: linear-gradient(135deg, #7e314b 0%, #c95e83 100%);
  --project-preview-tertiary: linear-gradient(135deg, #f1b1c6 0%, #d67a9b 100%);
  --project-browser-bar: rgba(255, 255, 255, 0.58);
  --project-screen-light:
    linear-gradient(180deg, rgba(255, 252, 253, 0.96), rgba(255, 232, 239, 0.88)),
    repeating-linear-gradient(
      90deg,
      rgba(216, 92, 136, 0.1) 0 70px,
      rgba(255, 255, 255, 0.18) 70px 140px
    );
  --project-screen-dashboard:
    radial-gradient(circle at top right, rgba(243, 166, 184, 0.3), transparent 28%),
    linear-gradient(180deg, #5a2333 0%, #7b344a 100%);
  --project-screen-crypto:
    linear-gradient(180deg, rgba(90, 35, 51, 0.96), rgba(142, 70, 96, 0.9)),
    repeating-linear-gradient(
      90deg,
      rgba(243, 166, 184, 0.16) 0 82px,
      rgba(255, 255, 255, 0.04) 82px 164px
    );
}

body[data-theme="terminal"] {
  --bg: #07110b;
  --surface: rgba(7, 20, 12, 0.88);
  --light: #0d1c14;
  --text: #d8ffe7;
  --muted: #8ac9a3;
  --border: rgba(57, 255, 136, 0.26);
  --accent: #39ff88;
  --primary: #ecfff3;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --page-top-left: rgba(57, 255, 136, 0.08);
  --page-top-right: rgba(38, 180, 104, 0.08);
  --page-base: #030806;
  --nav-bg: rgba(3, 10, 6, 0.94);
  --button-bg: rgba(9, 24, 15, 0.9);
  --icon-fill: #39ff88;
  --input-text: #d8ffe7;
  --input-placeholder: #75a88b;
  --contact-icon-bg: #39ff88;
  --contact-icon-text: #041008;
  --gradient: linear-gradient(90deg, #39ff88 0%, #9bffbe 100%);
  --portrait-bg:
    radial-gradient(circle at 50% 30%, rgba(18, 42, 27, 0.98), rgba(7, 18, 11, 0.96) 58%),
    linear-gradient(180deg, rgba(10, 25, 16, 0.98), rgba(4, 11, 7, 0.98));
  --portrait-ring: rgba(57, 255, 136, 0.38);
  --portrait-shadow-glow: rgba(57, 255, 136, 0.16);
  --portrait-glow: radial-gradient(circle, rgba(57, 255, 136, 0.18), transparent 60%);
  --project-preview-primary: linear-gradient(135deg, #0a2415 0%, #39ff88 100%);
  --project-preview-secondary: linear-gradient(135deg, #030806 0%, #1f6b3e 100%);
  --project-preview-tertiary: linear-gradient(135deg, #153421 0%, #9bffbe 100%);
  --project-browser-bar: rgba(57, 255, 136, 0.4);
  --project-screen-light:
    linear-gradient(180deg, rgba(9, 23, 15, 0.96), rgba(5, 14, 8, 0.92)),
    repeating-linear-gradient(
      90deg,
      rgba(57, 255, 136, 0.14) 0 70px,
      rgba(255, 255, 255, 0.02) 70px 140px
    );
  --project-screen-dashboard:
    radial-gradient(circle at top right, rgba(57, 255, 136, 0.22), transparent 28%),
    linear-gradient(180deg, #07110b 0%, #0d1c14 100%);
  --project-screen-crypto:
    linear-gradient(180deg, rgba(4, 11, 7, 0.97), rgba(10, 28, 17, 0.92)),
    repeating-linear-gradient(
      90deg,
      rgba(57, 255, 136, 0.16) 0 82px,
      rgba(255, 255, 255, 0.02) 82px 164px
    );
}

body[data-theme="arcade"] {
  --bg: #14051f;
  --surface: rgba(24, 7, 38, 0.86);
  --light: #200c33;
  --text: #f8f1ff;
  --muted: #d2b7ea;
  --border: rgba(0, 246, 255, 0.28);
  --accent: #ff4fd8;
  --primary: #ffffff;
  --shadow: 0 24px 60px rgba(4, 0, 14, 0.5);
  --page-top-left: rgba(255, 79, 216, 0.14);
  --page-top-right: rgba(0, 246, 255, 0.14);
  --page-base: #090211;
  --nav-bg: rgba(13, 3, 24, 0.94);
  --button-bg: rgba(28, 8, 44, 0.9);
  --icon-fill: #00f6ff;
  --input-text: #f4eaff;
  --input-placeholder: #b893d6;
  --contact-icon-bg: #00f6ff;
  --contact-icon-text: #14051f;
  --gradient: linear-gradient(90deg, #00f6ff 0%, #ff4fd8 55%, #ffd84d 100%);
  --portrait-bg:
    radial-gradient(circle at 50% 30%, rgba(51, 18, 78, 0.98), rgba(19, 6, 31, 0.96) 58%),
    linear-gradient(180deg, rgba(32, 11, 51, 0.98), rgba(10, 3, 18, 0.98));
  --portrait-ring: rgba(0, 246, 255, 0.42);
  --portrait-shadow-glow: rgba(255, 79, 216, 0.22);
  --portrait-glow: radial-gradient(circle, rgba(255, 79, 216, 0.24), transparent 60%);
  --project-preview-primary: linear-gradient(135deg, #00f6ff 0%, #ff4fd8 72%, #ffd84d 100%);
  --project-preview-secondary: linear-gradient(135deg, #14051f 0%, #4c146f 100%);
  --project-preview-tertiary: linear-gradient(135deg, #35105a 0%, #00f6ff 100%);
  --project-browser-bar: rgba(0, 246, 255, 0.42);
  --project-screen-light:
    linear-gradient(180deg, rgba(37, 11, 56, 0.96), rgba(16, 4, 27, 0.92)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 79, 216, 0.16) 0 70px,
      rgba(0, 246, 255, 0.08) 70px 140px
    );
  --project-screen-dashboard:
    radial-gradient(circle at top right, rgba(255, 79, 216, 0.24), transparent 28%),
    radial-gradient(circle at bottom left, rgba(0, 246, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #14051f 0%, #220a35 100%);
  --project-screen-crypto:
    linear-gradient(180deg, rgba(13, 3, 24, 0.97), rgba(42, 11, 65, 0.92)),
    repeating-linear-gradient(
      90deg,
      rgba(0, 246, 255, 0.16) 0 82px,
      rgba(255, 79, 216, 0.08) 82px 164px
    );
}

body[data-theme="noir"] {
  --bg: #050505;
  --surface: rgba(16, 16, 16, 0.86);
  --light: #101010;
  --text: #f5f5f5;
  --muted: #b5b5b5;
  --border: rgba(255, 255, 255, 0.18);
  --accent: #f2f2f2;
  --primary: #ffffff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --page-top-left: rgba(255, 255, 255, 0.05);
  --page-top-right: rgba(255, 255, 255, 0.03);
  --page-base: #000000;
  --nav-bg: rgba(0, 0, 0, 0.96);
  --button-bg: rgba(20, 20, 20, 0.88);
  --icon-fill: #f5f5f5;
  --input-text: #ededed;
  --input-placeholder: #8f8f8f;
  --contact-icon-bg: #f5f5f5;
  --contact-icon-text: #050505;
  --gradient: linear-gradient(90deg, #f4f4f4 0%, #7d7d7d 100%);
  --portrait-bg:
    radial-gradient(circle at 50% 30%, rgba(44, 44, 44, 0.98), rgba(16, 16, 16, 0.96) 58%),
    linear-gradient(180deg, rgba(22, 22, 22, 0.98), rgba(3, 3, 3, 0.98));
  --portrait-ring: rgba(255, 255, 255, 0.3);
  --portrait-shadow-glow: rgba(255, 255, 255, 0.1);
  --portrait-glow: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 60%);
  --project-preview-primary: linear-gradient(135deg, #f4f4f4 0%, #7d7d7d 100%);
  --project-preview-secondary: linear-gradient(135deg, #050505 0%, #2b2b2b 100%);
  --project-preview-tertiary: linear-gradient(135deg, #808080 0%, #d8d8d8 100%);
  --project-browser-bar: rgba(255, 255, 255, 0.52);
  --project-screen-light:
    linear-gradient(180deg, rgba(36, 36, 36, 0.96), rgba(14, 14, 14, 0.92)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.11) 0 70px,
      rgba(255, 255, 255, 0.03) 70px 140px
    );
  --project-screen-dashboard:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #050505 0%, #171717 100%);
  --project-screen-crypto:
    linear-gradient(180deg, rgba(10, 10, 10, 0.97), rgba(34, 34, 34, 0.92)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.12) 0 82px,
      rgba(255, 255, 255, 0.02) 82px 164px
    );
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Poppins", "Segoe UI", sans-serif;
  position: relative;
  color: var(--text);
  background:
    radial-gradient(circle at top left, var(--page-top-left), transparent 22%),
    radial-gradient(circle at top right, var(--page-top-right), transparent 18%),
    linear-gradient(180deg, var(--page-base) 0%, var(--bg) 100%);
}

body[data-theme="terminal"]::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(57, 255, 136, 0.04) 0,
      rgba(57, 255, 136, 0.04) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.45;
  mix-blend-mode: screen;
  z-index: 0;
}

body[data-theme="arcade"]::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 246, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 79, 216, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.36;
  mix-blend-mode: screen;
  z-index: 0;
}

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

@keyframes driftGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate3d(0, -8px, 0) scale(1.04);
    opacity: 1;
  }
}

@keyframes shimmerGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: 100%;
  position: relative;
  z-index: 1;
}

main {
  width: 100%;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 26px 0 78px;
}

.experience-section {
  scroll-margin-top: 110px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 0;
  backdrop-filter: blur(10px);
}

.nav-pill {
  width: var(--nav-width);
  margin: 0 auto;
  padding: 8px 10px 8px 18px;
  border-radius: 999px;
  background: var(--nav-bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.brand-logo {
  display: block;
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-menu-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.theme-easter-egg {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: fit-content;
  max-width: min(100%, 720px);
  padding: 14px 16px;
  border-radius: 26px;
  background: var(--nav-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition:
    opacity 0.24s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.32s;
}

.nav-pill.show-theme-menu .theme-easter-egg {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition:
    opacity 0.24s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.theme-option {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.theme-option:hover,
.theme-option:focus-visible,
.theme-option.is-active {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.theme-menu-close {
  position: relative;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform 0.2s ease, background 0.2s ease;
}

.theme-menu-close:hover,
.theme-menu-close:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.theme-menu-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.theme-menu-close span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.theme-menu-close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-links a {
  font-size: 0.72rem;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--gradient);
  white-space: nowrap;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle-track {
  width: 50px;
  height: 28px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #d8def0 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease;
}

body[data-theme="dark"] .theme-toggle-track {
  background: rgba(46, 167, 255, 0.2);
  border-color: rgba(121, 184, 255, 0.35);
}

body[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(22px);
  background: linear-gradient(135deg, #79b8ff 0%, #c695ff 100%);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  gap: 5px;
  position: relative;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
  position: absolute;
  left: 4px;
  transform-origin: center;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.18s ease;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.nav-toggle span:nth-child(2) {
  transform: translateY(0);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: translateY(0) scaleX(0.7);
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.7fr);
  align-items: center;
  justify-content: center;
  width: var(--content-width);
  margin: 0 auto;
  gap: 36px;
  padding-top: 12px;
}

.hero-copy {
  max-width: 360px;
  justify-self: start;
}

.eyebrow,
.section-tag {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.45rem, 3.7vw, 3.55rem);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 500;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 4.2vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.role {
  margin-bottom: 18px;
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  font-weight: 500;
  background: var(--gradient);
  background-size: 180% 180%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerGradient 8s ease-in-out infinite;
}

.intro {
  margin-bottom: 22px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button-outline {
  border: 2px solid var(--border);
  background: var(--button-bg);
  color: var(--text);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.social-links a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}

.social-links svg {
  width: 23px;
  height: 23px;
  fill: var(--icon-fill);
}

.portrait {
  position: relative;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(235, 235, 235, 0.9)),
    radial-gradient(circle at top, rgba(46, 167, 255, 0.1), transparent 58%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portrait-circle {
  width: min(100%, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--portrait-bg);
  box-shadow:
    0 0 0 2px var(--portrait-ring),
    0 0 32px var(--portrait-shadow-glow),
    0 20px 60px rgba(21, 21, 21, 0.08);
}

.portrait-square {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 0.95;
  border-radius: 44px;
}

.portrait-glow {
  position: absolute;
  inset: auto 12% -20% 12%;
  height: 58%;
  background: var(--portrait-glow);
  filter: blur(22px);
  animation: driftGlow 8s ease-in-out infinite;
}

.portrait-inner {
  position: relative;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), rgba(245, 245, 245, 0.4)),
    linear-gradient(135deg, #202020 0%, #4c4c4c 100%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 -22px 50px rgba(0, 0, 0, 0.24);
}

.portrait-inner span {
  font-size: clamp(4rem, 8vw, 6.8rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  color: #ffffff;
}

.portrait-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.portrait-image-cutout {
  width: 92%;
  height: 92%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(16px);
  filter:
    brightness(0.95)
    contrast(0.95)
    saturate(0.94)
    drop-shadow(0 14px 20px rgba(0, 0, 0, 0.22));
}

body[data-theme="dark"] .portrait-circle,
body[data-theme="terminal"] .portrait-circle,
body[data-theme="arcade"] .portrait-circle,
body[data-theme="noir"] .portrait-circle {
  box-shadow:
    0 0 0 2px var(--portrait-ring),
    0 0 36px var(--portrait-shadow-glow),
    0 24px 64px rgba(0, 0, 0, 0.34);
}


.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(10px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.education-section {
  padding-top: 0;
}

.education-layout {
  width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(260px, 0.9fr);
  gap: 40px;
  align-items: center;
}

.education-copy {
  max-width: 560px;
  align-self: center;
}

.education-title {
  margin-bottom: 8px;
}

.education-intro {
  max-width: 46ch;
  margin-bottom: 26px;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
}

.skills-block h3 {
  margin-bottom: 18px;
  font-size: clamp(1.95rem, 3.4vw, 2.7rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.06em;
  color: var(--text);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 34px;
}

.skill-item {
  position: relative;
  padding-left: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  font-size: clamp(0.98rem, 1.3vw, 1.3rem);
  font-weight: 600;
  color: var(--text);
}

.skill-item::before {
  content: "\203A";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 2rem;
  line-height: 1;
  color: #57d8b4;
}

.education-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.education-placeholder {
  width: min(100%, 440px);
  aspect-ratio: 0.9;
  border-radius: 22px;
  border: 2px solid var(--border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(225, 229, 228, 0.92)),
    linear-gradient(180deg, rgba(214, 224, 236, 0.34), rgba(255, 255, 255, 0));
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.drawing-pad {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 16px;
}

.drawing-pad-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.snake-toolbar {
  align-items: flex-start;
}

.snake-heading {
  display: grid;
  gap: 4px;
}

.drawing-pad-label {
  margin-bottom: 0;
}

.drawing-pad-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.snake-score {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.snake-score[hidden] {
  display: none;
}

.drawing-pad-clear {
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.drawing-pad-clear:hover,
.drawing-pad-clear:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.78);
}

.drawing-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1)),
    linear-gradient(90deg, rgba(17, 17, 17, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, 0.03) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  touch-action: none;
  cursor: pointer;
}

.drawing-pad-hint {
  margin: 0;
  align-self: start;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.snake-panel {
  position: relative;
}

body[data-theme="forest"] .snake-panel {
  background:
    radial-gradient(circle at top, rgba(130, 186, 105, 0.08), transparent 40%),
    transparent;
}

body[data-theme="forest"] .drawing-canvas {
  border-color: rgba(24, 49, 38, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08)),
    linear-gradient(90deg, rgba(24, 49, 38, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(24, 49, 38, 0.05) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  box-shadow: inset 0 0 0 1px rgba(47, 143, 91, 0.05);
}

body[data-theme="forest"] .drawing-pad-clear {
  border-color: rgba(24, 49, 38, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

body[data-theme="forest"] .drawing-pad-clear:hover,
body[data-theme="forest"] .drawing-pad-clear:focus-visible {
  background: rgba(255, 255, 255, 0.9);
}

body[data-theme="dark"] .education-placeholder,
body[data-theme="terminal"] .education-placeholder,
body[data-theme="arcade"] .education-placeholder,
body[data-theme="noir"] .education-placeholder {
  background:
    linear-gradient(145deg, rgba(34, 40, 52, 0.98), rgba(13, 18, 28, 0.96)),
    linear-gradient(180deg, rgba(121, 184, 255, 0.08), rgba(255, 255, 255, 0));
}

body[data-theme="terminal"] .education-placeholder {
  background:
    linear-gradient(145deg, rgba(10, 25, 16, 0.98), rgba(4, 11, 7, 0.96)),
    linear-gradient(180deg, rgba(57, 255, 136, 0.1), rgba(255, 255, 255, 0));
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(57, 255, 136, 0.08);
}

body[data-theme="arcade"] .education-placeholder {
  background:
    linear-gradient(145deg, rgba(35, 11, 55, 0.98), rgba(11, 4, 19, 0.96)),
    linear-gradient(180deg, rgba(0, 246, 255, 0.12), rgba(255, 79, 216, 0.08));
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(0, 246, 255, 0.08);
}

body[data-theme="dark"] .drawing-canvas,
body[data-theme="terminal"] .drawing-canvas,
body[data-theme="arcade"] .drawing-canvas,
body[data-theme="noir"] .drawing-canvas {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
}

body[data-theme="dark"] .drawing-pad-clear,
body[data-theme="terminal"] .drawing-pad-clear,
body[data-theme="arcade"] .drawing-pad-clear,
body[data-theme="noir"] .drawing-pad-clear {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body[data-theme="dark"] .drawing-pad-clear:hover,
body[data-theme="dark"] .drawing-pad-clear:focus-visible,
body[data-theme="terminal"] .drawing-pad-clear:hover,
body[data-theme="terminal"] .drawing-pad-clear:focus-visible,
body[data-theme="arcade"] .drawing-pad-clear:hover,
body[data-theme="arcade"] .drawing-pad-clear:focus-visible,
body[data-theme="noir"] .drawing-pad-clear:hover,
body[data-theme="noir"] .drawing-pad-clear:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

body[data-theme="ocean"] .education-placeholder {
  background:
    linear-gradient(145deg, rgba(240, 252, 252, 0.98), rgba(213, 243, 247, 0.96)),
    linear-gradient(180deg, rgba(0, 198, 180, 0.12), rgba(255, 255, 255, 0));
}

body[data-theme="ocean"] .snake-panel {
  background:
    radial-gradient(circle at top, rgba(99, 215, 223, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(0, 139, 163, 0.05), transparent 60%);
}

body[data-theme="ocean"] .drawing-canvas {
  border-color: rgba(16, 51, 69, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(0, 139, 163, 0.04);
  cursor: pointer;
}

body[data-theme="ocean"] .drawing-pad-clear {
  border-color: rgba(16, 51, 69, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

body[data-theme="ocean"] .drawing-pad-clear:hover,
body[data-theme="ocean"] .drawing-pad-clear:focus-visible {
  background: rgba(255, 255, 255, 0.94);
}

body[data-theme="forest"] .education-placeholder {
  background:
    linear-gradient(145deg, rgba(248, 253, 248, 0.98), rgba(217, 234, 220, 0.96)),
    linear-gradient(180deg, rgba(130, 186, 105, 0.12), rgba(255, 255, 255, 0));
}

body[data-theme="sunset"] .education-placeholder {
  background:
    linear-gradient(145deg, rgba(255, 249, 243, 0.98), rgba(255, 228, 205, 0.96)),
    linear-gradient(180deg, rgba(233, 97, 87, 0.12), rgba(255, 255, 255, 0));
}

body[data-theme="sunset"] .snake-panel {
  background:
    radial-gradient(circle at top right, rgba(255, 190, 122, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(233, 97, 87, 0.08), transparent 64%);
}

body[data-theme="sunset"] .drawing-canvas {
  border-color: rgba(79, 35, 22, 0.12);
  background: linear-gradient(180deg, rgba(255, 245, 236, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(230, 106, 60, 0.05);
  cursor: pointer;
}

body[data-theme="sunset"] .drawing-pad-clear {
  border-color: rgba(79, 35, 22, 0.14);
  background: rgba(255, 249, 244, 0.82);
}

body[data-theme="sunset"] .drawing-pad-clear:hover,
body[data-theme="sunset"] .drawing-pad-clear:focus-visible {
  background: rgba(255, 252, 248, 0.96);
}

body[data-theme="arcade"] .snake-panel {
  background:
    radial-gradient(circle at top right, rgba(255, 79, 216, 0.2), transparent 44%),
    radial-gradient(circle at bottom left, rgba(0, 246, 255, 0.18), transparent 38%);
}

body[data-theme="arcade"] .drawing-canvas {
  border-color: rgba(0, 246, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 79, 216, 0.06), rgba(0, 246, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 79, 216, 0.05);
  cursor: crosshair;
}

body[data-theme="noir"] .snake-panel {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 70%);
}

body[data-theme="noir"] .drawing-canvas {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  cursor: default;
}

body[data-theme="rose"] .education-placeholder {
  background:
    linear-gradient(145deg, rgba(255, 250, 252, 0.98), rgba(255, 225, 234, 0.96)),
    linear-gradient(180deg, rgba(233, 122, 161, 0.12), rgba(255, 255, 255, 0));
}

.timeline,
.projects-grid {
  display: grid;
  gap: 22px;
}

.timeline {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  transition: transform 0.25s ease;
}

.timeline-dot {
  position: absolute;
  left: -22px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: white;
  border: 3px solid var(--accent);
  border-radius: 50%;
}

.info-card,
.project-card,
.contact-input {
  border: 2px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.info-card {
  min-height: 250px;
  padding: 34px 34px 30px;
  border-radius: var(--radius-lg);
}

.card-icon {
  margin-bottom: 26px;
  font-size: 2rem;
  font-weight: 600;
}

.info-card h3 {
  margin-bottom: 10px;
  font-size: 2rem;
  line-height: 1.08;
  font-weight: 500;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-meta {
  margin-bottom: 10px;
  font-size: 1.45rem;
  font-weight: 700;
}

.info-card p:last-child,
.project-card p {
  color: var(--muted);
  line-height: 1.7;
}

.timeline-content {
  background: var(--light);
  padding: 16px 18px;
  border-radius: 18px;
}

.timeline-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.timeline-company {
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0;
}

.timeline-description {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.55;
}

.projects-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: var(--content-width);
  margin: 0 auto;
}

.project-card {
  padding: 14px 14px 20px;
  border-radius: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(21, 21, 21, 0.12);
}

.project-preview {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 18px;
}

.project-preview.purple {
  background: var(--project-preview-primary);
}

.project-preview.dark {
  background: var(--project-preview-secondary);
}

.project-preview.amber {
  background: var(--project-preview-tertiary);
}

.browser-bar {
  width: 62px;
  height: 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--project-browser-bar);
}

.preview-screen {
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.preview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-light {
  background: var(--project-screen-light);
}

.preview-dashboard {
  background: var(--project-screen-dashboard);
}

.preview-crypto {
  background: var(--project-screen-crypto);
}

.project-card h3 {
  margin-bottom: 8px;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.project-card p {
  max-width: 30ch;
  margin: 0 auto 14px;
  font-size: 0.88rem;
  line-height: 1.58;
  flex: 1 1 auto;
}

.project-actions {
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}

.project-card-extra[hidden] {
  display: none;
}

.projects-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.projects-toggle {
  min-width: 138px;
}

body[data-theme="dark"] .projects-toggle,
body[data-theme="terminal"] .projects-toggle,
body[data-theme="arcade"] .projects-toggle,
body[data-theme="noir"] .projects-toggle {
  color: #ffffff;
}

.contact-section {
  padding-bottom: 92px;
}

.contact-form {
  width: var(--content-width);
  margin: 0 auto;
}

.contact-card {
  border: 2px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  border-radius: 26px;
  padding: 22px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.contact-field span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 2px solid rgba(127, 127, 127, 0.15);
  outline: 0;
  background: rgba(255, 255, 255, 0.52);
  color: var(--input-text);
  padding: 14px 16px;
  border-radius: 16px;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body[data-theme="dark"] .contact-field input,
body[data-theme="dark"] .contact-field textarea {
  background: rgba(9, 15, 27, 0.5);
  border-color: rgba(121, 184, 255, 0.16);
}

body[data-theme="terminal"] .contact-field input,
body[data-theme="terminal"] .contact-field textarea {
  background: rgba(5, 15, 9, 0.7);
  border-color: rgba(57, 255, 136, 0.16);
}

body[data-theme="arcade"] .contact-field input,
body[data-theme="arcade"] .contact-field textarea {
  background: rgba(18, 6, 29, 0.76);
  border-color: rgba(0, 246, 255, 0.18);
}

body[data-theme="noir"] .contact-field input,
body[data-theme="noir"] .contact-field textarea {
  background: var(--button-bg);
  border-color: rgba(255, 255, 255, 0.12);
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(46, 167, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(46, 167, 255, 0.08);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--input-placeholder);
}

.contact-field-message {
  margin-bottom: 0;
}

.contact-submit {
  margin-top: 18px;
  min-width: 132px;
  color: var(--text);
}

body[data-theme="dark"] .contact-submit {
  color: #ffffff;
}

body[data-theme="terminal"] .contact-submit {
  color: #ecfff3;
}

body[data-theme="arcade"] .contact-submit {
  color: #ffffff;
}

.site-footer {
  padding: 0 0 24px;
}

.contact-section .site-footer {
  width: 100%;
  padding-top: 24px;
  padding-bottom: 0;
}

.section-nav {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 24;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-nav-button {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.82);
  color: #ffffff;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.section-nav-button:hover,
.section-nav-button:focus-visible {
  transform: translateY(-2px);
  background: rgba(32, 32, 32, 0.92);
}

.section-nav-button[disabled] {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

body[data-theme="light"] .section-nav-button,
body:not([data-theme]) .section-nav-button {
  background: rgba(255, 255, 255, 0.9);
  color: #111111;
  border-color: rgba(17, 17, 17, 0.1);
}

body[data-theme="ocean"] .section-nav-button {
  background: rgba(8, 60, 79, 0.88);
}

body[data-theme="forest"] .section-nav-button {
  background: rgba(21, 59, 42, 0.88);
}

body[data-theme="terminal"] .section-nav-button {
  background: rgba(3, 12, 7, 0.92);
  color: #39ff88;
  border-color: rgba(57, 255, 136, 0.16);
}

body[data-theme="arcade"] .section-nav-button {
  background: rgba(17, 4, 28, 0.92);
  color: #00f6ff;
  border-color: rgba(0, 246, 255, 0.18);
}

body[data-theme="sunset"] .section-nav-button {
  background: rgba(88, 40, 27, 0.88);
}

body[data-theme="rose"] .section-nav-button {
  background: rgba(98, 37, 58, 0.88);
}

body[data-theme="terminal"] .drawing-pad-label,
body[data-theme="terminal"] .drawing-pad-hint,
body[data-theme="terminal"] .timeline-date {
  color: #7fffb1;
}

body[data-theme="arcade"] .drawing-pad-label,
body[data-theme="arcade"] .drawing-pad-hint,
body[data-theme="arcade"] .timeline-date {
  color: #ffd84d;
}

body[data-theme="terminal"] .role {
  text-shadow: 0 0 18px rgba(57, 255, 136, 0.22);
}

body[data-theme="arcade"] .role {
  text-shadow:
    0 0 10px rgba(0, 246, 255, 0.2),
    0 0 18px rgba(255, 79, 216, 0.18);
}

body[data-theme="terminal"] .nav-pill,
body[data-theme="terminal"] .project-card,
body[data-theme="terminal"] .contact-card,
body[data-theme="terminal"] .footer-shell,
body[data-theme="terminal"] .timeline-content {
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(57, 255, 136, 0.06);
}

body[data-theme="arcade"] .nav-pill,
body[data-theme="arcade"] .project-card,
body[data-theme="arcade"] .contact-card,
body[data-theme="arcade"] .footer-shell,
body[data-theme="arcade"] .timeline-content {
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(0, 246, 255, 0.06);
}

body[data-theme="terminal"] .theme-toggle-track {
  background: rgba(57, 255, 136, 0.12);
  border-color: rgba(57, 255, 136, 0.22);
}

body[data-theme="arcade"] .theme-toggle-track {
  background: rgba(0, 246, 255, 0.12);
  border-color: rgba(255, 79, 216, 0.24);
}

body[data-theme="terminal"] .theme-toggle-thumb {
  background: linear-gradient(135deg, #39ff88 0%, #c7ffd8 100%);
}

body[data-theme="arcade"] .theme-toggle-thumb {
  background: linear-gradient(135deg, #00f6ff 0%, #ff4fd8 100%);
}

body[data-theme="terminal"] .preview-dashboard {
  background:
    radial-gradient(circle at top right, rgba(57, 255, 136, 0.18), transparent 28%),
    linear-gradient(180deg, #07110b 0%, #0d1c14 100%);
}

body[data-theme="arcade"] .preview-dashboard {
  background:
    radial-gradient(circle at top right, rgba(255, 79, 216, 0.24), transparent 28%),
    radial-gradient(circle at bottom left, rgba(0, 246, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #14051f 0%, #220a35 100%);
}

body[data-theme="terminal"] .browser-bar {
  background: rgba(57, 255, 136, 0.28);
}

body[data-theme="arcade"] .browser-bar {
  background: rgba(0, 246, 255, 0.34);
}

@media (min-width: 981px) {
  .scene-section {
    min-height: calc(100vh - 88px);
    display: grid;
    align-items: center;
    scroll-margin-top: 92px;
  }

  .hero.scene-section {
    min-height: calc(100vh - 88px);
  }

  .contact-section.scene-section {
    align-content: center;
  }
}

.footer-shell {
  width: var(--content-width);
  margin: 0 auto;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-logo {
  display: block;
  height: 34px;
  width: auto;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.footer-copy {
  margin-bottom: 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 1120px) and (min-width: 861px) {
  :root {
    --container: min(980px, calc(100vw - 56px));
    --nav-width: min(880px, calc(100vw - 56px));
    --content-width: min(820px, calc(100vw - 72px));
  }

  .site-header {
    padding-top: 14px;
  }

  .nav-pill {
    padding: 8px 12px 8px 16px;
    gap: 8px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-cta {
    padding: 9px 16px;
    font-size: 0.74rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: minmax(240px, 0.95fr) minmax(280px, 0.85fr);
    gap: 28px;
    padding-top: 20px;
  }

  .hero-copy {
    max-width: 340px;
  }

  .portrait-circle {
    width: min(100%, 300px);
  }

  .education-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .education-media {
    display: none;
  }

  .projects-grid {
    gap: 18px;
  }

  .project-card {
    padding: 12px 12px 18px;
  }

  .preview-screen {
    height: 148px;
  }

  .contact-card {
    padding: 20px;
  }

  .footer-shell {
    padding: 14px 18px;
    gap: 14px;
  }
}

@media (max-width: 980px) {
  .scene-section {
    min-height: calc(100svh - 88px);
    display: grid;
    align-items: center;
    scroll-margin-top: 92px;
  }

  .contact-section.scene-section {
    align-content: center;
  }

  .hero,
  .projects-grid,
  .education-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 24px;
    text-align: center;
    gap: 30px;
    width: 100%;
  }

  .hero-media {
    display: flex;
    justify-content: center;
  }

  .hero-copy {
    justify-self: center;
    max-width: 480px;
  }

  .hero-actions,
  .social-links {
    justify-content: center;
  }

  .education-layout {
    gap: 30px;
  }

  .education-copy {
    max-width: 100%;
  }

  .education-placeholder {
    max-width: 460px;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding-top: 14px;
  }

  .nav-pill {
    position: relative;
    width: var(--container);
    padding: 14px 18px;
    border-radius: 34px;
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .theme-easter-egg {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: auto;
    justify-content: flex-start;
    margin-top: 0;
    padding: 14px 18px 16px;
    background: var(--nav-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    flex-wrap: wrap;
    display: flex;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
    transition:
      max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.24s ease,
      transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.34s;
    visibility: hidden;
  }

  .theme-menu-close {
    align-self: center;
    margin-left: 0;
    margin-right: 4px;
    margin-bottom: 0;
    order: -1;
  }

  .nav-pill.show-theme-menu .theme-easter-egg {
    max-height: 140px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition:
      max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.24s ease,
      transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0s;
  }

  .theme-easter-egg .theme-option {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    transition:
      opacity 0.22s ease,
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      background 0.2s ease;
  }

  .nav-pill.show-theme-menu .theme-option {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .nav-pill.show-theme-menu .theme-option:nth-child(1) {
    transition-delay: 40ms;
  }

  .nav-pill.show-theme-menu .theme-option:nth-child(2) {
    transition-delay: 80ms;
  }

  .nav-pill.show-theme-menu .theme-option:nth-child(3) {
    transition-delay: 120ms;
  }

  .nav-pill.show-theme-menu .theme-option:nth-child(4) {
    transition-delay: 160ms;
  }

  .nav-pill.show-theme-menu .theme-option:nth-child(5) {
    transition-delay: 200ms;
  }

  .nav-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 16px 18px 18px;
    border-radius: 28px;
    background: var(--nav-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 0.24s ease,
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.32s;
  }

  .nav-pill.is-open .nav-menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      opacity 0.24s ease,
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0s;
  }

  .nav-links,
  .nav-cta,
  .theme-toggle {
    display: flex;
    width: 100%;
  }

  .nav-links {
    position: static;
    left: auto;
    transform: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    opacity: 1;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
  }

  .nav-cta {
    justify-content: center;
    margin-top: 10px;
    min-height: 46px;
  }

  .theme-toggle {
    justify-content: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .theme-option {
    background: rgba(255, 255, 255, 0.12);
  }

  .section-nav {
    right: 16px;
    bottom: 16px;
  }

  .section-nav-button {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

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

  .contact-section {
    padding-bottom: 6px;
  }

  .contact-card {
    padding: 14px;
  }

  .contact-section .section-heading {
    margin-bottom: 20px;
  }

  .contact-field {
    margin-bottom: 10px;
  }

  .contact-field textarea {
    min-height: 76px;
  }

  .contact-section .site-footer {
    padding-top: 10px;
  }

  .contact-submit {
    margin-top: 10px;
  }

  .footer-shell {
    flex-direction: column;
    text-align: center;
    padding: 16px 18px;
    gap: 12px;
  }

  .footer-links {
    gap: 12px;
  }

  .footer-copy {
    text-align: center;
  }

  .hero {
    gap: 20px;
    padding-top: 18px;
  }

  .hero-copy {
    max-width: 420px;
  }

  .education-layout {
    gap: 24px;
  }

  .portrait-circle {
    width: min(100%, 280px);
  }

  .portrait-image-cutout {
    width: 90%;
    height: 90%;
  }


  h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .role {
    font-size: clamp(1.1rem, 4.8vw, 1.5rem);
    margin-bottom: 14px;
  }

  .intro {
    margin-bottom: 18px;
    font-size: 0.92rem;
    line-height: 1.6;
  }
}

@media (min-width: 700px) and (max-width: 860px) and (orientation: portrait) {
  :root {
    --container: min(760px, calc(100vw - 88px));
    --nav-width: min(700px, calc(100vw - 72px));
    --content-width: min(700px, calc(100vw - 72px));
  }

  .section {
    padding: 24px 0 68px;
  }

  .nav-pill {
    width: var(--nav-width);
    margin: 0 auto;
  }

  .nav-menu-panel {
    left: 50%;
    right: auto;
    width: var(--nav-width);
    transform: translate(-50%, -10px);
  }

  .theme-easter-egg {
    left: 50%;
    right: auto;
    width: var(--nav-width);
    transform: translate(-50%, -10px);
  }

  .nav-pill.show-theme-menu .theme-easter-egg {
    transform: translate(-50%, 0);
  }

  .nav-pill.is-open .nav-menu-panel {
    transform: translate(-50%, 0);
  }

  .hero {
    width: var(--content-width);
    max-width: var(--content-width);
    gap: 22px;
    padding-top: 20px;
  }

  .hero-copy {
    max-width: 480px;
  }

  .education-layout,
  .projects-grid,
  .contact-form,
  .footer-shell,
  .timeline {
    width: var(--content-width);
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
  }

  .education-layout {
    gap: 24px;
  }

  .education-copy {
    max-width: 100%;
  }

  .education-media {
    display: none;
  }

  .timeline {
    padding-left: 28px;
  }

  .timeline-dot {
    left: -18px;
  }

  .timeline-content {
    border-radius: 16px;
  }

  .projects-grid {
    width: min(100%, 700px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .project-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 12px 18px;
  }

  .project-preview {
    margin-bottom: 14px;
  }

  .preview-screen {
    height: 132px;
  }

  .project-card h3 {
    font-size: 1.22rem;
  }

  .project-card p {
    font-size: 0.82rem;
    margin-bottom: 12px;
  }

  .project-actions {
    gap: 6px;
  }

  .project-actions .button {
    min-width: 0;
    padding: 8px 12px;
    font-size: 0.74rem;
  }

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

  .footer-shell {
    flex-direction: column;
    text-align: center;
  }

  .footer-copy {
    text-align: center;
  }

}

@media (max-width: 699px) and (orientation: portrait) {
  .education-media {
    display: none;
  }
}

@media (max-width: 860px) and (orientation: landscape) and (max-height: 520px) {
  .site-header {
    padding-top: 10px;
  }

  .section {
    padding: 20px 0 46px;
  }

  .nav-pill {
    padding: 10px 14px;
    border-radius: 28px;
  }

  .nav-menu-panel {
    top: calc(100% + 8px);
    padding: 12px 14px 14px;
  }

  .theme-easter-egg {
    top: calc(100% + 8px);
    padding: 12px 14px 14px;
  }

  .nav-links {
    gap: 14px;
    padding: 0 0 8px;
  }

  .hero {
    grid-template-columns: minmax(180px, 0.72fr) minmax(280px, 1fr);
    gap: 18px;
    text-align: left;
    padding-top: 8px;
    min-height: auto;
  }

  .hero-media {
    display: flex;
    justify-content: center;
  }

  .hero-copy {
    justify-self: start;
    max-width: 360px;
  }

  .hero-actions,
  .social-links {
    justify-content: flex-start;
  }

  .portrait-circle {
    width: min(100%, 190px);
  }

  h1 {
    font-size: clamp(2rem, 5vw, 2.6rem);
  }

  .role {
    margin-bottom: 10px;
    font-size: 1rem;
  }

  .intro {
    margin-bottom: 14px;
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .education-section {
    padding-top: 20px;
  }

  .education-layout {
    gap: 18px;
  }

  .education-media {
    display: none;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .project-card {
    padding: 12px 12px 16px;
  }

  .preview-screen {
    height: 116px;
  }

  .contact-card {
    padding: 16px;
  }

  .site-footer {
    padding-bottom: 16px;
  }

  .footer-shell {
    padding: 14px 16px;
  }
}

@media (max-width: 560px) {
  :root {
    --container: min(100vw - 28px, 1180px);
  }

  .section {
    padding: 24px 0 62px;
  }

  .brand {
    max-width: 132px;
  }

  .brand-logo {
    height: 30px;
  }

  .theme-option {
    padding: 7px 12px;
    font-size: 0.68rem;
  }

  .section-nav {
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }

  .section-nav-button {
    width: 40px;
    height: 40px;
    font-size: 0.92rem;
  }

  .hero {
    gap: 16px;
    padding-top: 10px;
  }

  .portrait-circle {
    width: min(100%, 220px);
  }

  .portrait-image-cutout {
    width: 88%;
    height: 88%;
    transform: translateY(12px);
  }


  .hero-copy {
    max-width: 320px;
    margin: 0 auto;
  }

  .education-section {
    padding-top: 24px;
  }

  .education-layout {
    gap: 20px;
  }

  .education-media {
    display: none;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .skill-item {
    padding-left: 34px;
    min-height: 34px;
    font-size: 1.08rem;
  }

  .education-title {
    margin-bottom: 18px;
  }

  .education-intro {
    margin-bottom: 24px;
    max-width: 100%;
  }

  .skills-block h3 {
    margin-bottom: 20px;
  }

  .education-placeholder {
    aspect-ratio: 0.92;
    border-radius: 18px;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 0.88rem;
  }

  h1 {
    margin-bottom: 8px;
    font-size: clamp(1.9rem, 10vw, 2.5rem);
    line-height: 1;
  }

  .role {
    margin-bottom: 12px;
    font-size: 1.05rem;
  }

  .intro {
    margin-bottom: 16px;
    max-width: 30ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .hero-actions {
    gap: 10px;
    justify-content: center;
  }

  .hero-actions .button {
    width: auto;
    min-width: 132px;
  }

  .projects-toggle {
    width: auto;
    min-width: 118px;
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .social-links {
    margin-top: 14px;
    justify-content: center;
  }

  .social-links a {
    width: 28px;
    height: 28px;
  }

  .social-links svg {
    width: 20px;
    height: 20px;
  }

  .button {
    width: 100%;
  }

  .projects-toggle-wrap .projects-toggle {
    width: fit-content;
    min-width: 0;
    max-width: none;
    padding: 8px 14px;
    font-size: 0.78rem;
    flex: 0 0 auto;
  }

  .project-card h3,
  .info-card h3 {
    font-size: 1.7rem;
  }

  .contact-card {
    padding: 13px;
  }

  .contact-section .section-heading {
    margin-bottom: 16px;
  }

  .contact-field {
    gap: 6px;
    margin-bottom: 8px;
  }

  .contact-field textarea {
    min-height: 62px;
  }

  .site-footer {
    padding-bottom: 8px;
  }

  .footer-shell {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 14px 16px;
    gap: 10px;
  }

  .contact-submit {
    margin-top: 8px;
  }

  .footer-links {
    display: none;
  }

  .footer-copy {
    font-size: 0.8rem;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

