/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}

/* Typography */
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Theme Toggle - Floating Button */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px var(--shadow);
}

.nav-links {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 999;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  background-color: var(--bg-primary);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow);
}

.nav-link:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.theme-toggle:hover {
  background-color: var(--hover-bg);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.sun-icon {
  display: block;
}

.moon-icon {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: none;
}

[data-theme="dark"] .moon-icon {
  display: block;
}

/* Main Content */
.main-content {
  min-height: 100vh;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 4rem 2rem 2rem;
  position: relative;
}

/* Remove background dots - clean design */

@keyframes floralFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  25% {
    transform: translateY(-10px) rotate(1deg);
  }

  50% {
    transform: translateY(-5px) rotate(-1deg);
  }

  75% {
    transform: translateY(-15px) rotate(0.5deg);
  }
}

.animated-title {
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.typewriter {
  font-family: 'Courier New', monospace;
  color: var(--accent);
}

.cursor {
  animation: blink 1s infinite;
  color: var(--accent);
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.hire-button {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border: 2px solid var(--text-primary);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hire-button:hover {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

/* Main Showcase Layout */
.main-showcase {
  padding: 2rem;
  width: 100%;
}

.showcase-container {
  display: flex;
  gap: 2rem;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: center;
  min-height: 90vh;
  padding: 0 2rem;
}

.portfolio-column {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: none;
  min-width: 400px;
}

.demo-reel-container {
  flex: 0 0 700px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 2rem;
}

.video-container {
  width: 100%;
  position: relative;
}

.demo-reel {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--edge-shadow), 0 0 60px var(--shadow);
}

.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--bg-secondary);
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 150px;
}

.grid-item:hover {
  transform: scale(1.02);
  box-shadow: 0 0 0 1px var(--edge-shadow), 0 0 45px var(--shadow);
  z-index: 10;
}

.grid-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Large screen optimizations */
@media (min-width: 1400px) {
  .showcase-container {
    gap: 4rem;
    padding: 0 4rem;
  }

  .demo-reel-container {
    flex: 0 0 900px;
  }

  .portfolio-column {
    gap: 3rem;
    min-width: 500px;
  }
}

/* Hire Page */
.hire-page {
  padding: 2rem;
}

.page-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.three-column-layout {
  display: flex;
  gap: 2rem;
  max-width: 1800px;
  margin: 0 auto;
  align-items: flex-start;
}

.column {
  padding: 2rem;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 0 20px var(--shadow);
}

/* Responsive column sizing for better resume display */
.left-column {
  flex: 0 0 350px;
}

.middle-column {
  flex: 1;
  min-width: 0;
  max-width: 1000px; /* Keep middle column from getting too wide */
}

.right-column {
  flex: 0 0 350px;
}

.column h2 {
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.resume-container {
  position: relative;
  min-height: 700px;
}

.resume-container embed {
  height: 700px;
}

.resume-container embed {
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.pdf-fallback {
  display: none;
  text-align: center;
  padding: 2rem;
  background-color: var(--hover-bg);
  border-radius: 8px;
  border: 2px dashed var(--border-color);
}

.pdf-fallback a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.pdf-fallback a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (min-width: 1400px) {

  .left-column,
  .right-column {
    flex: 0 0 450px;
  }

  .resume-container {
    min-height: 800px;
  }

  .resume-container embed {
    height: 800px;
  }
}

/* Extra large screens */
@media (min-width: 1800px) {
  .demo-reel-container {
    flex: 0 0 1100px;
  }

  .portfolio-column {
    gap: 4rem;
    min-width: 600px;
  }

  .three-column-layout {
    max-width: 2000px;
    gap: 3rem;
  }

  .left-column,
  .right-column {
    flex: 0 0 500px;
  }
}

@media (max-width: 1400px) {
  .showcase-container {
    gap: 2rem;
    padding: 0 2rem;
  }

  .demo-reel-container {
    flex: 0 0 600px;
  }

  .portfolio-column {
    gap: 1.5rem;
    min-width: 400px;
  }
}

@media (max-width: 1200px) {
  .showcase-container {
    gap: 1.5rem;
    max-width: 95vw;
  }

  .demo-reel-container {
    flex: 0 0 min(40vw, 500px);
  }
}

@media (max-width: 1024px) {
  .showcase-container {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .portfolio-column {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    width: 100%;
  }

  .demo-reel-container {
    order: -1;
    flex: none;
    width: 100%;
    max-width: 600px;
  }

  .video-container {
    max-width: 100%;
  }

  .three-column-layout {
    flex-direction: column;
    gap: 2rem;
  }

  .left-column,
  .middle-column,
  .right-column {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .theme-toggle {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }

  .nav-links {
    top: 15px;
    left: 15px;
  }

  .nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .main-showcase {
    padding: 1.5rem 1rem;
  }

  .portfolio-column {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 600px;
    width: 100%;
  }

  .hire-page {
    padding: 1rem;
    padding-top: 4rem; /* Add top padding to avoid nav overlap */
  }

  .page-title {
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .column {
    padding: 1.5rem;
  }

  .resume-container {
    min-height: 400px;
  }

  .resume-container embed {
    height: 400px;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .showcase-container {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .portfolio-column {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
    max-width: 400px;
    width: 100%;
    order: 1; /* Move portfolio below demo reel */
  }

  .demo-reel-container {
    order: 0;
    width: 100%;
    max-width: 400px;
  }

  .column {
    padding: 1rem;
  }

  .theme-toggle {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .nav-links {
    top: 10px;
    left: 10px;
  }

  .nav-link {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }

  .hire-page {
    padding: 0.5rem;
    padding-top: 3.5rem; /* Increase top padding for smaller screens */
  }

  .page-title {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .resume-container {
    min-height: 300px;
  }

  .resume-container embed {
    height: 300px;
    width: 100%;
    max-width: 100%;
  }

  .theme-toggle svg {
    width: 18px;
    height: 18px;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .nav-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }

  .hire-page {
    padding: 0.25rem;
    padding-top: 3rem;
  }

  .page-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .column {
    padding: 0.75rem;
  }

  .resume-container {
    min-height: 250px;
  }

  .resume-container embed {
    height: 250px;
  }
}

/* Clean background - no dots */

/* Subtle floral borders for columns */
.column {
  position: relative;
  overflow: hidden;
}

/* Removed decorative floral borders from columns */

/* Enhanced button styling with floral touch */
.hire-button {
  position: relative;
  overflow: hidden;
}

.hire-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right,
      transparent 0%,
      var(--bg-primary) 20%,
      transparent 25%,
      var(--bg-primary) 30%,
      transparent 35%,
      var(--bg-primary) 65%,
      transparent 70%,
      var(--bg-primary) 75%,
      transparent 100%);
  transition: left 0.5s ease;
  opacity: 0.3;
}

.hire-button:hover::before {
  left: 100%;
}

/* Grid item floral enhancement */
.grid-item::before {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background: radial-gradient(ellipse 8px 4px, var(--bg-primary) 40%, transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.grid-item:hover::before {
  opacity: 0.6;
}

/* Smooth transitions for all interactive elements */
.nav-link,
.grid-item,
.hire-button,
.theme-toggle,
.column {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced focus states with floral inspiration */
.grid-item:focus,
.hire-button:focus,
.theme-toggle:focus,
.nav-link:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow:
    0 0 0 1px var(--bg-primary),
    0 0 0 3px var(--accent),
    0 4px 12px var(--shadow);
}

/* Subtle text shadows for depth */
.animated-title {
  text-shadow: 0 2px 4px var(--shadow);
}

.page-title {
  text-shadow: 0 1px 2px var(--shadow);
}

/* Enhanced video container styling */
.video-container {
  position: relative;
}

.video-container::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg,
      var(--text-primary) 0%,
      transparent 1%,
      transparent 99%,
      var(--text-primary) 100%);
  opacity: var(--floral-opacity);
  border-radius: 12px;
  z-index: -1;
}