/* ── Boris's design system ── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

:root {
  --font-primary: 'Roboto', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
  --color-bg-light: #f3f4f6;
  --color-bg-dark: #1f2937;
  --color-primary: #3b82f6;
  --color-secondary: #ef4444;
  --color-accent: #f59e0b;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --transition-fast: 0.2s ease-in-out;
  --hero-bg: linear-gradient(135deg, #3b82f6, #ef4444);
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-light);
  color: var(--color-bg-dark);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.navbar {
  background-color: var(--color-primary);
  padding: var(--spacing-md);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: var(--hero-bg);
  color: #fff;
  font-size: 2rem;
  font-family: var(--font-secondary);
}

.btn-primary, .btn-secondary {
  border: none;
  border-radius: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: var(--font-secondary);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

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

.btn-secondary {
  background-color: var(--color-secondary);
  color: #fff;
}

.btn-primary:hover {
  background-color: darken(var(--color-primary), 10%);
}

.btn-secondary:hover {
  background-color: darken(var(--color-secondary), 10%);
}

.card {
  background-color: #fff;
  border-radius: var(--spacing-sm);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: var(--spacing-lg);
  transition: transform var(--transition-fast);
}

.card:hover {
  transform: translateY(-var(--spacing-xs));
}

.footer {
  background-color: var(--color-bg-dark);
  color: #fff;
  padding: var(--spacing-md);
  text-align: center;
}

.dark-theme {
  --color-bg-light: #1f2937;
  --color-bg-dark: #f3f4f6;
  --color-primary: #2563eb;
  --color-secondary: #dc2626;
  background-color: var(--color-bg-light);
  color: var(--color-bg-dark);
}

.smooth-hover {
  transition: all var(--transition-fast);
}

/* ── Project styles ── */
/* style.css for hello-world-gradient */

/* ===== CSS Variables ===== */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.6);
  --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-speed: 0.3s;
  --shadow-soft: 0 10px 40px rgba(102, 126, 234, 0.3);
  --shadow-glow: 0 0 60px rgba(240, 147, 251, 0.4);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--primary-gradient);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ===== Animated Background ===== */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--primary-gradient);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

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

/* Floating orbs decoration */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(102, 126, 234, 0.6);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(240, 147, 251, 0.5);
  bottom: -50px;
  right: -50px;
  animation-delay: -5s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(245, 87, 108, 0.4);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes floatOrb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(-30px, -20px) scale(1.02);
  }
}

/* ===== Main Content Container ===== */
main {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  text-align: center;
}

/* ===== Hero Section ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* ===== Title Styling ===== */
.title {
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
  text-shadow: var(--shadow-glow);
  margin-bottom: 1.5rem;
  animation: titleFadeIn 1.2s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes titleFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title-highlight {
  display: inline-block;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.title-highlight::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  right: 0;
  height: 0.15em;
  background: var(--secondary-gradient);
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineGrow 0.8s ease-out 0.8s forwards;
}

@keyframes underlineGrow {
  to {
    transform: scaleX(1);
  }
}

/* ===== Subtitle ===== */
.subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: subtitleFadeIn 1s ease-out 0.5s forwards;
}

@keyframes subtitleFadeIn {
  to {
    opacity: 1;
  }
}

/* ===== Decorative Elements ===== */
.decorative-line {
  width: 100px;
  height: 4px;
  background: var(--secondary-gradient);
  border-radius: 2px;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: lineFadeIn 0.8s ease-out 0.3s forwards;
}

@keyframes lineFadeIn {
  to {
    opacity: 1;
  }
}

/* ===== Button Styles ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #667eea;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  animation: buttonFadeIn 0.8s ease-out 1s forwards;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4);
  background: #ffffff;
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

@keyframes buttonFadeIn {
  to {
    opacity: 1;
  }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  margin-left: 1rem;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Card Styles ===== */
.card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  transition: all var(--transition-speed) ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ===== Navbar (if needed) ===== */
nav,
header,
.navbar,
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Footer ===== */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  z-index: 10;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.footer a:hover {
  color: var(--text-primary);
}

/* ===== Utility Classes ===== */
.smooth-hover {
  transition: all var(--transition-speed) ease;
}

.dark-theme {
  --primary-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* ===== Sparkle Effect ===== */
.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .title {
    font-size: clamp(2.5rem, 15vw, 5rem);
  }
  
  .subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .btn-primary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  
  .btn-secondary {
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .orb-1 {
    width: 200px;
    height: 200px;
  }
  
  .orb-2 {
    width: 150px;
    height: 150px;
  }
  
  .orb-3 {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  main {
    padding: 20px 15px;
  }
  
  .title {
    font-size: 2.5rem;
  }
  
  .decorative-line {
    width: 60px;
  }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .background-animation {
    animation: none;
  }
  
  .orb {
    animation: none;
  }
}

/* ===== Focus States ===== */
.btn-primary:focus,
.btn-secondary:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

/* ===== Selection ===== */
::selection {
  background: rgba(240, 147, 251, 0.4);
  color: white;
}