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

:root {
  /* Blue-Green Gradient Color System */
  --primary-hue: 185;
  --primary-500: hsl(var(--primary-hue), 70%, 45%);
  --primary-600: hsl(var(--primary-hue), 70%, 35%);
  --primary-foreground: hsl(0, 0%, 100%);

  --background: hsl(222, 47%, 11%);
  --foreground: hsl(210, 40%, 98%);

  --muted: hsl(217, 33%, 17%);
  --muted-foreground: hsl(215, 20%, 65%);

  --card: hsl(222, 47%, 11%);
  --card-foreground: hsl(210, 40%, 98%);

  --border: hsl(217, 33%, 17%);
  --accent: hsl(217, 33%, 17%);

  --radius: 0.5rem;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("wilmington-delaware-cityscape.jpg");
  background-size: cover;
  background-position: center;
  display: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 5rem 0;
  opacity: 0;
  transform: translateY(2rem);
  animation: fadeInUp 1s ease-out forwards;
}

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

.hero-text {
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-name {
  display: block;
  color: white;
}

.hero-role {
  display: block;
  margin-top: 0.5rem;
  background: linear-gradient(to right, hsl(210, 70%, 55%), hsl(160, 70%, 45%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-text-stroke: 2px white;
  paint-order: stroke fill;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 2rem;
}

.hero-social a {
  color: white;
  transition: color 0.3s ease;
}

.hero-social a:hover {
  color: var(--primary-500);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--primary-600);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: white;
  border-color: white;
}

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

.btn-icon {
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Sections */
.section {
  padding: 6rem 1rem;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
  line-height: 1.6;
}

/* About Section */
.about-section {
  background-color: rgba(255, 255, 255, 0.02);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-content p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* Skills Section */
.skills-section {
  background-color: var(--background);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-card {
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  transition: all 0.3s ease;
}

.skill-card:hover {
  background-color: rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: rgba(var(--primary-hue), 70%, 45%, 0.1);
  color: var(--primary-500);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
  background-color: var(--primary-500);
  color: white;
}

.skill-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.skill-card p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--muted);
  color: var(--muted-foreground);
}

/* Projects Section */
.projects-section {
  background-color: rgba(255, 255, 255, 0.02);
}

.projects-header {
  margin-bottom: 3rem;
}

.carousel-wrapper {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  height: 100%;
  animation: infiniteScroll 40s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-280px * 3 - 1.5rem * 3));
  }
}

.project-card {
  position: relative;
  width: 280px;
  height: 100%;
  flex-shrink: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay .btn {
  transform: translateY(1rem);
  transition: all 0.3s ease 0.05s;
}

.project-card:hover .project-overlay .btn {
  transform: translateY(0);
}

/* Contact Section */
.contact-section {
  background-color: rgba(255, 255, 255, 0.02);
}

.contact-content {
  text-align: center;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.contact-buttons .btn {
  width: 100%;
  max-width: 300px;
}

.contact-footer {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

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

/* Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(2rem);
  transition: all 0.7s ease;
}

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

/* Responsive Design */
@media (min-width: 640px) {
  .contact-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-buttons .btn {
    width: auto;
  }
}

@media (min-width: 768px) {
  .hero-video {
    display: block;
  }

  .hero-image {
    display: none;
  }

  .hero-title {
    font-size: 4.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 3rem;
  }
}

@media (max-width: 767px) {
  .hero-video {
    display: none;
  }

  .hero-image {
    display: block;
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
