@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --primary: #dc143c;
  --primary-dark: #b01030;
  --dark: #0a0a0a;
  --dark-light: #1a1a1a;
  --gray: #888;
  --light: #f5f5f5;
  --white: #fff;
}

html {
  font-size: 10px;
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark);
  color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

section {
  padding: 8rem 0;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--primary);
}

.section-subtitle {
  font-size: 1.6rem;
  color: var(--gray);
  text-align: center;
  margin-bottom: 5rem;
}

/* ===================== Navigation ===================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 2rem 0;
  transition: all 0.3s ease;
}

#header.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  padding: 1.5rem 0;
  backdrop-filter: blur(10px);
}

#header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  font-size: 1.4rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  transition: color 0.3s ease;
}

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

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

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: var(--white);
  transition: all 0.3s ease;
}

/* ===================== Hero Section ===================== */
#hero {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url(./img/nhla-1-optimized.jpg);
  background-size: cover;
  background-position: top center;
  position: relative;
  z-index: 1;
}

#hero::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 100%);
  z-index: -1;
}

.hero-content {
  text-align: left;
  max-width: 800px;
  padding: 0 2rem;
}

#hero h1 {
  display: block;
  width: fit-content;
  font-size: 5rem;
  font-weight: 700;
  position: relative;
  color: var(--white);
  opacity: 0;
  animation: smoothFadeUp 1.2s ease-out forwards;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

#hero h1:nth-child(1) {
  animation-delay: 0.3s;
}

#hero h1:nth-child(2) {
  animation-delay: 0.6s;
}

#hero h1:nth-child(3) {
  animation-delay: 0.9s;
}

#hero h1 span {
  color: var(--primary);
  display: inline;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: var(--gray);
  margin-top: 2rem;
  opacity: 0;
  animation: smoothFadeUp 1.2s ease-out forwards;
  animation-delay: 1.3s;
}

.hero-cta {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  opacity: 0;
  animation: smoothFadeUp 1.2s ease-out forwards;
  animation-delay: 1.6s;
}

.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* ===================== About Section ===================== */
#about {
  background-color: var(--dark-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 5px;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary);
  border-radius: 5px;
  z-index: -1;
}

.about-text h3 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
}

.about-text h3 span {
  color: var(--primary);
}

.about-text p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 2rem;
}

.about-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}

.role-tag {
  padding: 0.8rem 1.5rem;
  background-color: var(--dark);
  border: 1px solid var(--primary);
  border-radius: 3px;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--light);
}

/* ===================== Services Section ===================== */
#services {
  background-color: var(--dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.service-card {
  background-color: var(--dark-light);
  padding: 4rem 3rem;
  border-radius: 5px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
}

.service-icon {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.service-card h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.service-card p {
  font-size: 1.4rem;
  line-height: 1.7;
  color: var(--gray);
}

/* ===================== Skills Section ===================== */
#skills {
  background-color: var(--dark-light);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.skill-category h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
  color: var(--light);
}

.skill-item::before {
  content: '▹';
  color: var(--primary);
}

/* ===================== Projects Section ===================== */
#projects {
  background-color: var(--dark);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.project-card {
  background-color: var(--dark-light);
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(220, 20, 60, 0.1);
}

.project-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, var(--dark-light) 100%);
}

.project-placeholder {
  font-size: 6rem;
  z-index: 1;
}

.project-content {
  padding: 2.5rem;
}

.project-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-content p {
  font-size: 1.4rem;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 2rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tech-tag {
  padding: 0.5rem 1rem;
  background-color: var(--dark);
  border-radius: 3px;
  font-size: 1.1rem;
  color: var(--primary);
}

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

.project-links a {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--light);
  transition: all 0.3s ease;
  padding: 0.8rem 1.8rem;
  border: 1px solid var(--primary);
  border-radius: 3px;
  display: inline-block;
}

.project-links a:hover {
  color: var(--white);
  background-color: var(--primary);
  transform: translateX(5px);
}

.project-links .btn-live {
  background-color: var(--primary);
  color: var(--white);
}

.project-links .btn-live:hover {
  background-color: var(--primary-dark);
}

.project-links .btn-github {
  background-color: transparent;
  color: var(--light);
  border-color: var(--gray);
}

.project-links .btn-github:hover {
  background-color: var(--dark);
  border-color: var(--primary);
  color: var(--primary);
}

.project-status {
  font-size: 1.3rem;
  color: var(--gray);
  font-style: italic;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--gray);
  border-radius: 3px;
  display: inline-block;
}

/* ===================== Contact Section ===================== */
#contact {
  background-color: var(--dark-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-info h3 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
}

.contact-info p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  background-color: var(--dark);
  border: 1px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.contact-item-text h4 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.contact-item-text p {
  font-size: 1.4rem;
  color: var(--gray);
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 1.4rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 1.2rem;
  background-color: var(--dark);
  border: 1px solid #333;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  color: var(--white);
  transition: border-color 0.3s ease;
}

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

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 3px;
  font-size: 1.4rem;
  text-align: center;
  display: none;
}

.form-status.success {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  display: block;
}

.form-status.error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  display: block;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===================== Footer ===================== */
#footer {
  background-color: var(--dark);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 3rem;
  border-bottom: 1px solid #222;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
}

.footer-logo span {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 2rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: var(--dark-light);
  border: 1px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
}

.footer-bottom p {
  font-size: 1.3rem;
  color: var(--gray);
}

/* ===================== Keyframes ===================== */
@keyframes smoothFadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================== Responsive ===================== */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .about-roles {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 9px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--dark-light);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

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

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

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

  #hero h1 {
    font-size: 3.5rem;
  }

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

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

  .contact-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .skills-container {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
