:root {
  --bg: #06101f;
  --bg2: #081a2f;
  --text: #f5f7fb;
  --muted: #9eb0c7;
  --line: rgba(255,255,255,.12);
  --glass: rgba(8, 22, 40, .66);
  --glass-strong: rgba(7, 18, 34, .88);
  --accent: #5fc1ff;
  --accent2: #7de7ff;
  --mint: #2ed8b6;
  --shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 18%, rgba(29,99,171,.19), transparent 28%),
    radial-gradient(circle at 20% 50%, rgba(71,107,187,.14), transparent 30%),
    linear-gradient(180deg, #07182d 0%, #06101e 46%, #030914 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(2,7,15,.42) 78%, rgba(1,4,10,.9) 100%);
  pointer-events: none;
  z-index: -2;
}

.shell { width: min(1480px, calc(100% - 88px)); margin: 0 auto; }
.glass {
  background: rgba(10, 27, 49, .62);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 40px rgba(0,0,0,.25);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.glass-panel {
  background: linear-gradient(180deg, rgba(11,28,49,.91), rgba(7,19,35,.84));
  border: 1px solid rgba(190,220,255,.19);
  box-shadow: var(--shadow);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.noise { position: fixed; inset: 0; opacity: .06; pointer-events: none; z-index: 30; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E"); }
.stars { position: fixed; inset: 0; z-index: -4; pointer-events: none; }
.stars-a { background-image: radial-gradient(#fff 0.7px, transparent .8px); background-size: 52px 52px; opacity: .35; }
.stars-b { background-image: radial-gradient(#7acaff 0.7px, transparent .8px); background-size: 83px 83px; background-position: 17px 31px; opacity: .25; }
.aurora { position: fixed; border-radius: 999px; filter: blur(90px); z-index: -3; opacity: .22; }
.aurora-a { width: 440px; height: 220px; background: #296cc1; right: 5%; top: 16%; transform: rotate(-18deg); }
.aurora-b { width: 380px; height: 180px; background: #5b4cff; left: 20%; top: 45%; transform: rotate(12deg); opacity: .11; }
.mountains { position: fixed; width: 100%; left: 0; bottom: -2px; height: 47vh; object-fit: cover; object-position: bottom; z-index: -2; opacity: .88; }

.topbar {
  height: 116px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 20;
}
.brand { color: white; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; justify-self: start; }
.brand-mark { font-size: 31px; font-weight: 800; letter-spacing: -.06em; }
.brand-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 15px var(--accent); }
.nav { display: flex; gap: 48px; }
.nav a { color: #dce5f0; text-decoration: none; font-size: 14px; position: relative; padding: 14px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 2px; border-radius: 9px; background: var(--accent); box-shadow: 0 0 12px var(--accent); transform: scaleX(0); transition: .25s ease; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.search-trigger { justify-self: end; color: #cbd8e8; border-radius: 14px; height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.search-trigger kbd, .command-input-row kbd { color: #a9b8c9; font: 500 12px/1 Inter; border: 0; }
.search-icon { font-size: 24px; transform: rotate(-15deg); }
.search-label { display: none; }

.hero { min-height: 760px; display: grid; grid-template-columns: .83fr 1.17fr; align-items: center; gap: 42px; position: relative; z-index: 2; padding-top: 24px; }
.hero-copy { padding-bottom: 70px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .31em; color: #c1d4ea; margin-bottom: 18px; }
.hero h1 { margin: 0; font-size: clamp(76px, 7vw, 128px); line-height: .9; letter-spacing: -.075em; font-weight: 800; }
.hero h1 span { background: linear-gradient(180deg, #f8fbff 0%, #a7c1df 100%); background-clip: text; -webkit-background-clip: text; color: transparent; text-shadow: 0 15px 45px rgba(93,160,225,.08); }
.hero-copy p { color: #b2c4d9; font-size: clamp(18px, 1.55vw, 27px); line-height: 1.45; margin: 28px 0 32px; }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.primary-btn, .secondary-btn { height: 62px; border-radius: 22px; display: inline-flex; align-items: center; gap: 20px; padding: 0 28px; font-weight: 700; font-size: 16px; border: 1px solid rgba(255,255,255,.16); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.primary-btn { background: #f8fbff; color: #0b1320; box-shadow: 0 8px 30px rgba(188,219,255,.18); }
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(188,219,255,.3); }
.secondary-btn { background: rgba(255,255,255,.06); color: #e9f1f9; cursor: pointer; }
.secondary-btn:hover { background: rgba(255,255,255,.1); }

.workspace { min-height: 600px; position: relative; }
.window { position: absolute; border-radius: 22px; overflow: hidden; transition: opacity .25s ease, transform .25s ease; }
.window.minimized { opacity: 0; transform: translateY(18px) scale(.94); pointer-events: none; }
.window-head { height: 62px; display: flex; align-items: center; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.07); user-select: none; }
.drag-handle { cursor: grab; }
.drag-handle:active { cursor: grabbing; }
.traffic { display: flex; gap: 8px; margin-right: 18px; }
.traffic i { width: 13px; height: 13px; border-radius: 50%; background: #ff605c; }
.traffic i:nth-child(2) { background: #ffbd44; }
.traffic i:nth-child(3) { background: #00ca4e; }
.window-title { font-weight: 650; color: #eef5fd; }
.window-spacer { flex: 1; }
.mini-btn, .dots-btn, .back-btn { background: transparent; border: 0; color: #a9b9ca; cursor: pointer; font-size: 18px; }
.mini-btn { margin-left: auto; }
.dots-btn { letter-spacing: 2px; }
.back-btn { font-size: 35px; line-height: 1; }

.explorer-window { width: 360px; height: 480px; left: 0; top: 38px; z-index: 2; }
.explorer-body { padding: 18px; height: calc(100% - 62px); display: flex; flex-direction: column; }
.folders { display: grid; gap: 7px; }
.folder-btn { border: 0; background: transparent; color: #d7e3f0; height: 48px; border-radius: 10px; display: flex; align-items: center; gap: 12px; padding: 0 12px; cursor: pointer; text-align: left; font-size: 14px; transition: .2s ease; }
.folder-btn::before { content: ""; width: 20px; height: 15px; border-radius: 3px; background: linear-gradient(180deg, #57c6ff, #1d83dd); box-shadow: 0 3px 12px rgba(60,174,255,.22); position: relative; }
.folder-btn:hover, .folder-btn.active { background: rgba(113,177,240,.13); box-shadow: inset 0 0 0 1px rgba(154,205,255,.12); }
.drive-card { margin-top: auto; padding: 16px 12px 2px; border-top: 1px solid rgba(255,255,255,.08); color: #b9c9d9; }
.drive-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.drive-row strong { display: block; font-size: 13px; color: #dbe6f2; }
.drive-row small { display: block; margin-top: 2px; font-size: 10px; }
.drive-icon { font-size: 25px; }
.storage { height: 5px; background: rgba(255,255,255,.09); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.storage span { display: block; width: 25%; height: 100%; background: linear-gradient(90deg, #2aaeff, #5bd8ff); }
.drive-card > small { font-size: 10px; color: #7f95ab; }

.preview-window { width: min(620px, calc(100% - 250px)); min-width: 460px; right: 0; top: 96px; z-index: 4; }
.project-frame { padding: 0 18px 20px; }
.project-visual { height: 252px; border-radius: 16px; overflow: hidden; position: relative; background: linear-gradient(135deg, #205c9b 0%, #153b63 46%, #0b233d 100%); border: 1px solid rgba(255,255,255,.08); }
.project-visual.theme-cctv { background: linear-gradient(135deg, #19394c, #0e202a 52%, #08151c); }
.project-visual.theme-desktop { background: linear-gradient(135deg, #4d315e, #261a38 50%, #121223); }
.project-visual.theme-network { background: linear-gradient(135deg, #0d5257, #0b2b38 50%, #061722); }
.project-visual.theme-payment { background: linear-gradient(135deg, #3b4f85, #1e2c56 50%, #10182f); }
.visual-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 24px 24px; opacity: .28; }
.visual-label { position: absolute; top: 16px; right: 18px; font-size: 10px; letter-spacing: .2em; color: rgba(255,255,255,.62); }
.visual-screen { position: absolute; width: 72%; height: 72%; left: 14%; top: 20%; background: rgba(5,13,22,.82); border: 1px solid rgba(255,255,255,.14); border-radius: 12px 12px 4px 4px; box-shadow: 0 22px 36px rgba(0,0,0,.28); display: grid; grid-template-columns: 24% 1fr; padding: 10px; gap: 10px; transform: perspective(900px) rotateX(3deg); }
.screen-sidebar { border-radius: 7px; background: linear-gradient(180deg, rgba(85,168,255,.28), rgba(255,255,255,.035)); }
.screen-content { display: grid; grid-template-rows: 28px 1fr 45px; gap: 8px; }
.screen-stat-row { display: flex; gap: 6px; }
.screen-stat-row i { flex: 1; border-radius: 5px; background: rgba(91,185,255,.2); }
.screen-chart { border-radius: 7px; background: linear-gradient(180deg, rgba(77,159,233,.25), rgba(255,255,255,.03)); position: relative; overflow: hidden; }
.screen-chart::after { content: ""; position: absolute; width: 130%; height: 60%; left: -10%; top: 32%; border-top: 2px solid #58c8ff; border-radius: 50%; transform: rotate(-7deg); box-shadow: 0 -15px 30px rgba(85,197,255,.14); }
.screen-table { border-radius: 6px; background: repeating-linear-gradient(180deg, rgba(255,255,255,.08) 0 4px, transparent 4px 11px); }
.project-meta { padding: 18px 4px 0; }
.project-kicker { font-size: 10px; font-weight: 700; letter-spacing: .16em; color: #6bc9ff; }
.project-meta h2 { margin: 7px 0 8px; font-size: 25px; letter-spacing: -.035em; }
.project-meta p { margin: 0 0 13px; color: #99adc3; font-size: 13px; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { font-size: 10px; color: #b8cce0; padding: 6px 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; }
.project-actions { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
.open-project { color: #44e1c0; background: rgba(30,214,180,.11); border: 1px solid rgba(47,227,191,.26); height: 42px; padding: 0 16px; border-radius: 10px; display: inline-flex; align-items: center; text-decoration: none; font-size: 13px; font-weight: 700; }
.more-project { width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #d9e6f2; cursor: pointer; }

.desktop-footer { min-height: 146px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; padding-bottom: 38px; position: relative; z-index: 4; }
.clock-block { display: flex; flex-direction: column; gap: 4px; color: #dce7f2; }
.clock-block strong { font-size: 31px; font-weight: 500; letter-spacing: -.04em; }
.clock-block span { color: #a5b5c7; font-size: 13px; }
.dock { border-radius: 24px; padding: 10px; display: flex; gap: 8px; }
.dock button { width: 58px; height: 58px; border: 0; border-radius: 15px; color: white; cursor: pointer; font-size: 17px; font-weight: 800; background: linear-gradient(180deg, #2788d6, #15579b); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 20px rgba(0,0,0,.22); transition: .18s ease; }
.dock button:nth-child(2) { background: linear-gradient(180deg, #116b99, #092a46); color: #5bd5ff; }
.dock button:nth-child(3) { background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); border: 5px solid rgba(255,255,255,.16); }
.dock button:nth-child(4) { background: linear-gradient(180deg, #7339cf, #3a176d); }
.dock button:nth-child(5) { background: linear-gradient(180deg, #48bbff, #1f79bd); }
.dock button:hover { transform: translateY(-7px) scale(1.05); }
.motto { justify-self: end; color: #a8bacd; font-size: 12px; line-height: 1.28; padding-left: 18px; position: relative; }
.motto i { position: absolute; top: 0; left: 0; width: 1px; height: 64px; background: linear-gradient(180deg, #65d7ff, transparent); }

.content-section { padding: 100px 0; position: relative; z-index: 8; }
.projects-section { margin-top: 40px; }
.section-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: end; margin-bottom: 52px; }
.section-head h2, .about-card h2, .contact-card h2 { margin: 0; font-size: clamp(44px, 5vw, 76px); line-height: .97; letter-spacing: -.06em; }
.section-head > p { color: #9eb1c6; line-height: 1.65; max-width: 500px; justify-self: end; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { min-height: 340px; padding: 24px; border-radius: 22px; background: rgba(7,18,33,.68); border: 1px solid rgba(255,255,255,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 20px 50px rgba(0,0,0,.16); backdrop-filter: blur(18px); transition: transform .25s ease, border-color .25s ease, background .25s ease; cursor: pointer; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-6px); border-color: rgba(102,196,255,.28); background: rgba(10,26,46,.8); }
.card-no { color: #5ec7ff; font-size: 12px; letter-spacing: .18em; }
.card-icon { margin: 36px 0 42px; width: 72px; height: 72px; border-radius: 20px; border: 1px solid rgba(255,255,255,.1); display: grid; place-items: center; font-weight: 800; font-size: 22px; background: linear-gradient(135deg, rgba(56,158,225,.27), rgba(255,255,255,.03)); }
.project-card h3 { font-size: 23px; margin: auto 0 9px; letter-spacing: -.03em; }
.project-card p { color: #8fa5bb; margin: 0 0 16px; font-size: 13px; line-height: 1.55; }
.card-tags { color: #6ccfff; font-size: 11px; }
.about-card { border-radius: 28px; padding: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.about-copy > p { color: #a9bbce; font-size: 17px; line-height: 1.75; margin-top: 2px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 50px; gap: 12px; }
.about-stats div { padding: 18px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.03); }
.about-stats strong, .about-stats span { display: block; }
.about-stats strong { font-size: 25px; }
.about-stats span { margin-top: 4px; color: #869db3; font-size: 11px; }
.contact-card { min-height: 340px; border-radius: 30px; padding: 64px; background: linear-gradient(135deg, rgba(31,100,156,.36), rgba(9,27,47,.78) 45%, rgba(8,19,34,.9)); border: 1px solid rgba(128,197,255,.14); display: flex; align-items: center; justify-content: space-between; gap: 30px; }

.command-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(2,8,16,.48); backdrop-filter: blur(8px); display: grid; place-items: start center; padding-top: 12vh; }
.command-backdrop[hidden] { display: none; }
.command-palette { width: min(650px, calc(100% - 32px)); border-radius: 18px; overflow: hidden; }
.command-input-row { height: 68px; padding: 0 18px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid rgba(255,255,255,.08); }
.command-input-row > span { font-size: 26px; }
.command-input-row input { flex: 1; height: 50px; background: transparent; border: 0; outline: 0; color: white; font-size: 16px; }
.command-results { padding: 8px; max-height: 360px; overflow: auto; }
.command-item { display: flex; align-items: center; gap: 13px; border-radius: 11px; padding: 12px; cursor: pointer; color: #dfe9f4; }
.command-item:hover, .command-item.active { background: rgba(90,170,235,.12); }
.command-item small { color: #7f96ac; display: block; margin-top: 3px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 120; padding: 12px 18px; border-radius: 12px; background: rgba(8,20,35,.92); border: 1px solid rgba(255,255,255,.12); color: #dce9f5; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .shell { width: min(1100px, calc(100% - 48px)); }
  .hero { grid-template-columns: 1fr; padding-top: 80px; }
  .hero-copy { max-width: 700px; padding-bottom: 0; }
  .workspace { min-height: 640px; }
  .explorer-window { left: 7%; }
  .preview-window { right: 4%; }
  .desktop-footer { padding-top: 20px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .shell { width: min(760px, calc(100% - 28px)); }
  .topbar { height: 86px; grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .search-trigger { grid-column: 2; }
  .hero { padding-top: 40px; min-height: auto; gap: 60px; }
  .hero h1 { font-size: clamp(64px, 18vw, 100px); }
  .hero-copy p { font-size: 18px; }
  .workspace { min-height: 800px; }
  .explorer-window { width: 86%; left: 0; top: 0; height: 430px; }
  .preview-window { width: 88%; min-width: 0; right: 0; top: 260px; }
  .desktop-footer { grid-template-columns: 1fr auto; margin-top: 20px; }
  .motto { display: none; }
  .dock { justify-self: end; }
  .dock button { width: 48px; height: 48px; }
  .section-head, .about-card { grid-template-columns: 1fr; }
  .section-head > p { justify-self: start; }
  .project-grid { grid-template-columns: 1fr; }
  .about-card { padding: 36px 24px; gap: 28px; }
  .contact-card { flex-direction: column; align-items: flex-start; padding: 42px 28px; }
}

@media (max-width: 520px) {
  .topbar { padding-top: 10px; }
  .search-trigger kbd { display: none; }
  .hero-actions { align-items: stretch; }
  .primary-btn, .secondary-btn { height: 54px; border-radius: 18px; padding: 0 20px; }
  .workspace { min-height: 760px; }
  .explorer-window { width: 96%; }
  .preview-window { width: 96%; top: 245px; }
  .project-visual { height: 205px; }
  .visual-screen { width: 82%; left: 9%; }
  .desktop-footer { display: flex; flex-direction: column-reverse; align-items: center; gap: 18px; padding-bottom: 30px; }
  .clock-block { align-items: center; }
  .dock { width: 100%; justify-content: center; }
  .dock button { width: 46px; height: 46px; }
  .content-section { padding: 70px 0; }
  .about-stats { grid-template-columns: 1fr; }
}
