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

:root {
  --primary-color: white; /* #2563eb */
  --secondary-color: grey; /* #1e293b */
  --text-color: #f8f8ff; /* #333 */
  --bg-color: #212020; /* #f8fafc */
  --black: black; /* #ffffff */
  --gray-light: grey; /* #e2e8f0 */
  --white: white; /* #64748b */
  --transition: all 0.3s ease;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: var(--black);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--black);
  padding: 120px 0 80px;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  transition: var(--transition);
  font-weight: 500;
}

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

.btn-primary:hover {
  background: var(--gray-light);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--black);
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.submit-btn {
  background-color: var(--white);
  color: var(--black);
  font-weight: 600;
}

.submit-btn:hover {
  background-color: var(--gray-light);
  color: var(--white);
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

/* About Section */
.about {
  background: var(--black);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.skills {
  font-weight: 600;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.skills-list li {
  background: var(--gray-light);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skills-list li i {
  color: var(--primary-color);
}

/* Projects Section */
.projects {
  background: var(--bg-color);
}

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

.project-card {
  background: var(--black);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px 2px white;
}

.img-wrapper {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  padding: 2rem;
}

.project-info h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.project-info p {
  margin-bottom: 1.5rem;
  color: var(--white);
}

.project-links {
  display: flex;
  gap: 1rem;
}

/* Contact Section */
.contact {
  background: var(--black);
  text-align: center;
}

.contact-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--white);
}

.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--secondary-color);
  color: var(--black);
  text-align: center;
  padding: 2rem 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--black);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

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

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

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

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

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Add spacing for fixed navbar */
body {
  padding-top: 70px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.tech-tag {
  background-color: var(--gray-light);
  color: var(--text-color);
  padding: 0.4rem 0.65rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.heart {
  color: #e74c3c;
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
}

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

/* Icon styles in buttons */
.btn i {
  margin-right: 0.5rem;
}

.nav-links a.active {
  color: var(--primary-color);
  position: relative;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-color);
}

/* TODO: Add floating contact button styles during workshop */

.floating-contact-btn {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--black);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.floating-contact-btn.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

/* TODO: Add email modal styles during workshop */

.email-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.email-modal.active {
  display: flex;
}

.modal-content {
  background: var(--black);
  border: 2px solid var(--white);
  border-radius: 10px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--white);
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--text-color);
}

.modal-content h3 {
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: 1.5rem;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-content input,
.modal-content textarea {
  padding: 0.75rem;
  border: 2px solid var(--gray-light);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.modal-content input:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.modal-content textarea {
  resize: vertical;
  min-height: 100px;
}

.modal-content .btn {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
}
