/* Import base CSS variables and theme */
:root {
  --font-size: 14px;
  --background: #ffffff;
  --foreground: oklch(0.145 0 0);
  --card: #ffffff;
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: #030213;
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.95 0.0058 264.53);
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --input: transparent;
  --input-background: #f3f3f5;
  --switch-background: #cbced4;
  --font-weight-bold: 750;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: oklch(0.708 0 0);
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --radius: 0.625rem;
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: #030213;
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.145 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: oklch(0.439 0 0);
  --font-weight-bold: 750;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --chart-1: oklch(0.488 0.243 264.376);
  --chart-2: oklch(0.696 0.17 162.48);
  --chart-3: oklch(0.769 0.188 70.08);
  --chart-4: oklch(0.627 0.265 303.9);
  --chart-5: oklch(0.645 0.246 16.439);
  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.488 0.243 264.376);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(0.269 0 0);
  --sidebar-ring: oklch(0.439 0 0);
}

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

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

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

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

h2 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

h3 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

h4 {
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

p {
  font-size: 1rem;
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background-color: var(--background);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  padding: 0 1.5rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 6rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 8rem;
  }
}

.scroll-indicator {
  margin-top: 2rem;
  opacity: 0.6;
}

.scroll-text {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.scroll-line {
  width: 1px;
  height: 4rem;
  background-color: var(--muted-foreground);
  opacity: 0.4;
  margin: 0 auto;
}

/* Content Section */
.content-section {
  min-height: 100vh;
  background-color: var(--background);
  color: var(--foreground);
}

.container {
  max-width: 42rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 6rem 1.5rem;
  }
}

.main-content > * + * {
  margin-top: 2rem;
}

/* Header */
.header > * + * {
  margin-top: 1rem;
}

.subtitle {
  color: var(--muted-foreground);
  max-width: 32rem;
}

/* Divider */
.divider {
  width: 3rem;
  height: 1px;
  background-color: var(--border);
}

/* About Section */
.about-section > * + * {
  margin-top: 1rem;
}

.about-content {
  color: var(--muted-foreground);
  max-width: 32rem;
}

.about-content > * + * {
  margin-top: 0.75rem;
}

/* Contact Section */
.contact-section > * + * {
  margin-top: 1rem;
}

.contact-links > * + * {
  margin-top: 0.5rem;
}

.contact-link {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: var(--border);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.contact-link:hover {
  color: var(--muted-foreground);
  text-decoration-color: var(--foreground);
}

.contact-links p {
  color: var(--muted-foreground);
}

/* Special Link */
.special-link {
  color: #ff9f43; /* warm orange */
  text-decoration: underline;
  text-decoration-color: rgba(255, 159, 67, 0.4);
  transition: color 0.2s ease, text-decoration-color 0.2s ease, text-shadow 0.2s ease;
}

.special-link:hover {
  color: #ffb866; /* lighter orange on hover */
  text-decoration-color: rgba(255, 184, 102, 0.8);
  text-shadow: 0 0 4px rgba(255, 184, 102, 0.6);
}

/* Images */
/* Class to make img fit horizontally on the screen */
.img-fit-horizontal {
  max-width: 100vw;  /* Max width = viewport width */
  width: 100%;       /* Try to take full available width */
  height: auto;      /* Maintain aspect ratio */
  display: block;    /* Avoid inline img spacing issues */
}

/* Additional class to center and allow shrinking */
.img-center-shrink {
  display: block;      /* Ensure block for margin auto */
  margin-left: auto;
  margin-right: auto;  /* center horizontally */
  max-width: 80vw;     /* Allow shrinking to 80% of viewport width */
  height: auto;        /* Maintain aspect ratio */
}

.img-additional-margin {
  margin-top: 10vh;
  margin-bottom: 10vh;
}

/* Footer */
.footer {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-text {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}
