:root {
  --maroon: #8b1538;
  --maroon-dark: #6b0f2b;
  --cream: #fff8f0;
  --dark: #1a1a1a;
  --gray: #4a4a4a;
  --light-gray: #f5f5f5;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* HERO SECTION */
.hero {
  background-color: var(--dark);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: var(--maroon);
  border-radius: 50%;
  opacity: 0.1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-text {
  z-index: 2;
}

.hello {
  font-size: 1.2rem;
  color: var(--maroon);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.tagline {
  color: var(--maroon);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

.hero-description {
  color: #b0b0b0;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 35px;
  max-width: 500px;
}

.cta-button {
  display: inline-block;
  background-color: var(--maroon);
  color: var(--white);
  padding: 16px 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  background-color: var(--maroon-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 21, 56, 0.4);
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image .profile-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 4px;
  box-shadow: 20px 20px 0 var(--maroon);
  transition: transform 0.3s ease;
  display: block;
}

.hero-image:hover .profile-img {
  transform: translate(-5px, -5px);
}

/* SECTIONS */
.skills-section,
.projects-section {
  padding: 100px 0;
}

.skills-section {
  background-color: var(--light-gray);
}

.projects-section {
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 5px;
  background-color: var(--maroon);
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 4px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.skill-card:hover {
  border-left-color: var(--maroon);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.skill-icon {
  font-size: 3rem;
  color: var(--maroon);
  margin-bottom: 20px;
}

.skill-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark);
}

.skill-card ul {
  list-style: none;
}

.skill-card ul li {
  padding: 8px 0;
  color: var(--gray);
  font-size: 0.95rem;
  position: relative;
  padding-left: 20px;
}

.skill-card ul li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--maroon);
  font-size: 1.2rem;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.project-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  position: relative;
  display: block;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--maroon);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 1;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card h3 {
  padding: 25px 25px 10px;
  color: var(--dark);
  font-size: 1.3rem;
  font-weight: 700;
}

.project-card p {
  padding: 0 25px 25px;
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
}

/* FOOTER */
footer {
  background-color: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 50px 40px;
}

footer p {
  margin: 10px 0;
  color: #b0b0b0;
}

footer a {
  color: var(--maroon);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--white);
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1001;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--maroon);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  transition: all 0.3s ease;
  line-height: 1;
}

.modal-close:hover {
  background: var(--maroon-dark);
  transform: rotate(90deg);
}

.modal-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 8px 8px 0 0;
}

.modal-body {
  padding: 40px;
}

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--dark);
}

.modal-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 30px;
}

.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.tech-tag {
  background: var(--light-gray);
  color: var(--dark);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #e0e0e0;
}

.modal-link {
  display: inline-block;
  background-color: var(--maroon);
  color: var(--white);
  padding: 14px 32px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-link:hover {
  background-color: var(--maroon-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 21, 56, 0.4);
}

/* Make project cards clickable */
.project-card {
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-description {
    margin: 0 auto 35px;
  }

  .hero-image .profile-img {
    max-width: 350px;
    margin: 0 auto;
  }

  h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .container {
    padding: 0 20px;
  }

  .hero-content {
    padding: 40px 20px;
  }

  h2 {
    font-size: 2rem;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-image .profile-img {
    box-shadow: 15px 15px 0 var(--maroon);
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .modal-body {
    padding: 30px 20px;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-image {
    height: 200px;
  }
}
