/* ================================
   SHAHEENWORKS.COM — Base Styles
   ================================ */

:root {
  --color-bg:      #f5f2eb;
  --color-surface: #faf8f3;
  --color-border:  #d8d1c6;
  --color-dark:    #1f1b17;
  --color-text:    #1f1b17;
  --color-muted:   #635f59;
  --color-earth:   #7c6a4f;
  --color-red:     #c85a20;
  --color-gold:    #e8c87a;
  --color-primary: #0e6a67;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
}

/* ================================
   TOP BAR
   ================================ */

.top-bar {
  width: 100%;
  height: 3px;
  background: var(--color-red);
}

/* ================================
   HEADER
   ================================ */

header {
  padding: 20px 48px;
  display: flex;
  align-items: center;
  border-bottom: 0.5px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 242, 235, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-dark);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

nav ul a {
  text-decoration: none;
  color: var(--color-earth);
  font-size: 14px;
  letter-spacing: 0.08em;
}

nav ul a:hover {
  color: var(--color-red);
}

.theme-toggle {
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--color-primary);
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 3rem 4rem;
  background: var(--color-bg);
}

.hero-grid {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  margin: 0;
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: #0a5250;
}

.btn-ghost {
  border: 1.5px solid var(--color-border);
  color: var(--color-muted);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.character-panel {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-width: 380px;
  border-radius: 24px;
  background: linear-gradient(145deg, #1a3a4a 0%, #0e2535 50%, #1a2e1a 100%);
  box-shadow:
    0 0 60px rgba(14, 106, 103, 0.25),
    0 0 120px rgba(14, 106, 103, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.character-panel::before {
  content: '';
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(232, 168, 64, 0.3) 0%,
    rgba(14, 106, 103, 0.15) 50%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.character-panel spline-viewer {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 24px;
}

/* ================================
   SECTIONS — SHARED
   ================================ */

#apps, #notes, #about {
  padding: 80px 48px;
  border-top: 0.5px solid var(--color-border);
}

#apps h2, #notes h2, #about h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  font-style: normal;
  color: var(--color-dark);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ================================
   APP CARDS
   ================================ */

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-surface);
  border: 0.5px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-dark);
  transition: border-color 0.2s ease;
  min-width: 0;
}

.app-card:hover {
  border-color: var(--color-primary);
}

.app-screen {
  width: 100%;
  background: #0d1b2a;
  padding: 1.25rem;
  flex-shrink: 0;
}

.app-screen-inner {
  background: #111e2e;
  border-radius: 8px;
  overflow: hidden;
}

.app-screen-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: #0a1520;
  border-bottom: 0.5px solid #1e3040;
}

.app-screen-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0e6a67;
  flex-shrink: 0;
}

.app-screen-title {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #7090a8;
  flex: 1;
}

.app-screen-live {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #4caf82;
  letter-spacing: 0.05em;
}

.app-screen {
  width: 100%;
  background: #0d1b2a;
  padding: 1.25rem;
  flex-shrink: 0;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-screen-status {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  text-align: center;
}

.app-screen-status.safe {
  background: rgba(76, 175, 130, 0.12);
  color: #4caf82;
  border: 0.5px solid rgba(76, 175, 130, 0.3);
}

.app-screen-row {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #506070;
  text-align: center;
  display: flex;
  justify-content: space-around;
}

.app-info {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
}

.app-info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.app-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  font-style: normal;
  color: var(--color-dark);
}

.app-info p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-top: 0.4rem;
}

.app-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  border: 0.5px solid var(--color-primary);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}

.app-link {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--color-primary);
  margin-top: 0.75rem;
  display: block;
  letter-spacing: 0.02em;
}

/* ================================
   NOTES SECTION
   ================================ */

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.note-card {
  background: var(--color-surface);
  border: 0.5px solid var(--color-border);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.note-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
}

.note-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* ================================
   ABOUT SECTION
   ================================ */

#about {
  max-width: 100%;
}

.about-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  color: var(--color-muted);
  line-height: 1.8;
  max-width: 540px;
  margin-top: 1.5rem;
}

/* ================================
   FOOTER
   ================================ */

footer {
  padding: 64px 48px 32px;
  border-top: 0.5px solid var(--color-earth);
  margin-top: 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark);
  display: block;
  margin-bottom: 8px;
}

.footer-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-style: italic;
  color: var(--color-muted);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-earth);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.footer-links a:hover {
  color: var(--color-red);
}

.footer-bottom {
  border-top: 0.5px solid var(--color-gold);
  padding-top: 24px;
}

.footer-bottom p {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--color-muted);
  letter-spacing: 0.05em;
}

/* ================================
   KITE ANIMATION
   ================================ */

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

.kite-float {
  animation: kite-bob 3s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

/* ================================
   SCROLL FADE-IN
   ================================ */

.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0px);
}

/* ================================
   DARK MODE
   ================================ */

[data-theme="dark"] {
  --color-bg:      #161412;
  --color-surface: #1d1a17;
  --color-border:  #2e2a25;
  --color-dark:    #ece7de;
  --color-text:    #ece7de;
  --color-muted:   #9a9189;
  --color-earth:   #9a9189;
  --color-primary: #69aca8;
}

[data-theme="dark"] body {
  background-color: var(--color-bg);
  color: var(--color-text);
}

[data-theme="dark"] header {
  background: rgba(22, 20, 18, 0.75);
}

[data-theme="dark"] .app-card {
  background: var(--color-surface);
}

[data-theme="dark"] .note-card {
  background: var(--color-surface);
}

/* ================================
   BRISTI CARD SPECIFIC
   ================================ */

.bristi-dot {
  background: #2d8a4e;
}

.bristi-body {
  background: linear-gradient(160deg, #1a5c30 0%, #0e3d1e 100%);
}

.bristi-sun {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.bristi-status {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border-color: rgba(255,255,255,0.2);
}

.bristi-body .app-screen-row {
  color: #a8d5b5;
  justify-content: space-around;
}

/* ================================
   WORK SECTION
   ================================ */

#work {
  padding: 80px 48px;
  border-top: 0.5px solid var(--color-border);
}

#work h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  font-style: normal;
  color: var(--color-dark);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 0.5px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-dark);
  transition: border-color 0.2s ease;
  min-width: 0;
}

.work-card:hover {
  border-color: var(--color-primary);
}

.work-preview {
  width: 100%;
  background: #f8f9fa;
  border-bottom: 0.5px solid var(--color-border);
}

.work-preview-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  background: #ececec;
  border-bottom: 0.5px solid #ddd;
}

.work-preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0d0d0;
  flex-shrink: 0;
}

.work-preview-url {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #888;
  flex: 1;
  text-align: center;
}

.work-preview-screen {
  padding: 1.5rem 1.25rem;
  min-height: 140px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d3561 100%);
}

.work-preview-hero {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.work-preview-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  margin: 0;
}

.work-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.work-preview-tags span {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  border: 0.5px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 2px 8px;
}

.work-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.work-info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.work-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  font-style: normal;
  color: var(--color-dark);
}

.work-info p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-top: 0.4rem;
}

.work-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-earth);
  border: 0.5px solid var(--color-earth);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}

[data-theme="dark"] .work-card {
  background: var(--color-surface);
}

[data-theme="dark"] .work-preview {
  background: #1a1a1a;
}

[data-theme="dark"] .work-preview-bar {
  background: #222;
  border-color: #333;
}



/* ================================
   MOBILE
   ================================ */

@media (max-width: 768px) {

  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-right {
    order: -1;
  }

  .character-panel {
    aspect-ratio: 4 / 3;
    max-width: 100%;
  }

  header {
    padding: 16px 24px;
  }

  nav ul {
    gap: 16px;
  }

  #apps, #notes, #about {
    padding: 48px 24px;
  }

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

  #apps h2, #notes h2, #about h2 {
    font-size: 1.6rem;
  }

  footer {
    padding: 48px 24px 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    gap: 24px;
  }

}