* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background-color: #210b10;
  background-image:
    linear-gradient(rgba(194, 55, 68, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194, 55, 68, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 50% 20%, rgba(126, 29, 42, 0.72), transparent 44%),
    radial-gradient(circle at 76% 72%, rgba(101, 24, 35, 0.58), transparent 38%),
    linear-gradient(145deg, #5d111d 0%, #261016 42%, #12070a 100%);
  background-size: 76px 76px, 76px 76px, auto, auto, auto;
  background-attachment: fixed;
  color: #f4f4f2;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(916px, calc(100% - 48px));
  margin: 18px auto 0;
  padding: 8px 22px;
  border: 1px solid rgba(224, 96, 106, 0.2);
  border-radius: 999px;
  position: relative;
  background: rgba(39, 10, 17, 0.58);
  backdrop-filter: blur(15px);
  z-index: 100;
  box-shadow: 0 16px 42px rgba(24, 3, 8, 0.3);
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ff858c;
  font-size: 16px;
}

.logo img {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(229, 56, 72, 0.35);
}

.logo::before {
  display: none;
}

.logo {
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-links a {
  color: #f4f4f2;
  text-decoration: none;
  margin-left: 28px;
  font-size: 14px;
  opacity: 0.62;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 0;
  background: linear-gradient(90deg, #ff6b76, #e9a0a5);
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:last-child {
  margin-left: 28px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #b51f32;
  color: #fff;
  opacity: 1;
  box-shadow: 0 8px 22px rgba(181, 31, 50, 0.32);
}

.nav-links a:last-child::after {
  display: none;
}

/* Base Layout */
.section-container {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.tag {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ff6b76;
  background: none;
  -webkit-background-clip: text;
  -webkit-text-fill-color: currentColor;
  background-clip: text;
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.sub-tag {
  font-size: 11px;
  letter-spacing: 1px;
  color: #999;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #f4f4f2, #e9a0a5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero-section {
  padding: 120px 24px 72px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  animation: fadeInUp 1s ease-out;
}

.hero-section::before,
.hero-section::after {
  position: absolute;
  color: #ff6b76;
  font-size: 15px;
  font-weight: 800;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(224, 76, 91, 0.42);
  border-radius: 13px;
  background: rgba(116, 21, 34, 0.4);
  box-shadow: 0 14px 35px rgba(65, 4, 13, 0.34);
  transform: rotate(-5deg);
}

.hero-section::before {
  content: 'Ae';
  left: 9%;
  top: 62%;
}

.hero-section::after {
  content: 'Pr';
  right: 9%;
  top: 63%;
  transform: rotate(6deg);
}

.hero-section .tag {
  padding: 7px 18px;
  border: 1px solid rgba(224, 96, 106, 0.24);
  border-radius: 999px;
  background: rgba(116, 21, 34, 0.28);
  margin-bottom: 20px;
}

.hero-section h1 {
  font-size: clamp(64px, 9vw, 124px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: 0;
  color: #f9eef0;
  background: linear-gradient(180deg, #ffffff 10%, #e8c5c9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientFlow 6s ease infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-subtitle {
  font-size: 20px;
  color: #d6aeb2;
  max-width: 520px;
  margin-bottom: 34px;
  line-height: 1.45;
}

.hero-subtitle strong {
  color: #ff6b76;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 14px;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 680px;
  margin: 0 auto;
  gap: 24px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.project-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 16;
  background: linear-gradient(135deg, rgba(224, 76, 91, 0.06), rgba(157, 37, 52, 0.06));
  border: 1px solid rgba(224, 96, 106, 0.22);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  cursor: pointer;
}

.project-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
  z-index: 1;
}

.project-card:hover::before {
  left: 100%;
}

.project-card:hover {
  transform: translateY(-12px);
  border-color: rgba(224, 96, 106, 0.48);
  box-shadow: 0 20px 60px rgba(181, 31, 50, 0.22);
}

.media-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background: linear-gradient(135deg, #35121a 0%, #241016 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.media-placeholder:fullscreen {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  background: #000;
}

.project-card:hover .media-placeholder {
  transform: scale(1.08);
}

.project-info {
  padding: 24px;
  background: rgba(0, 0, 0, 0.3);
}

.project-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f4f4f2;
}

.project-info p {
  font-size: 13px;
  color: #999;
  line-height: 1.6;
}

/* About Section */
.about-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
  width: 100%;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.about-left {
  flex: 1;
  width: 50%;
  flex-shrink: 0;
}

.about-right {
  flex: 1;
  width: 50%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.about-left, .contact-left {
  flex: 1;
  min-width: 0;
}

.description {
  color: #ccc;
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.9;
}

.software-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.icon-badge {
  background: linear-gradient(135deg, rgba(224, 76, 91, 0.16), rgba(157, 37, 52, 0.16));
  border: 1px solid rgba(224, 96, 106, 0.32);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.icon-badge:hover {
  background: linear-gradient(135deg, rgba(224, 76, 91, 0.26), rgba(157, 37, 52, 0.26));
  border-color: rgba(224, 96, 106, 0.52);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(181, 31, 50, 0.22);
}

.stat-card {
  background: linear-gradient(135deg, rgba(224, 76, 91, 0.1), rgba(157, 37, 52, 0.1));
  border: 1px solid rgba(224, 96, 106, 0.24);
  padding: 32px;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  position: relative;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(224, 76, 91, 0.12), transparent);
  pointer-events: none;
}

.stat-card:hover {
  border-color: rgba(224, 96, 106, 0.46);
  box-shadow: 0 12px 40px rgba(181, 31, 50, 0.18);
  transform: translateY(-6px);
}

.stat-card h3 {
  font-size: 52px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b76, #e9a0a5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card p {
  font-size: 12px;
  color: #999;
  letter-spacing: 1px;
  margin-top: 8px;
}

/* Contact Section */
.contact-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-4px);
}

.btn-primary {
  background: #b51f32;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(181, 31, 50, 0.34);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(181, 31, 50, 0.5);
}

.btn-secondary {
  border: 1px solid rgba(224, 96, 106, 0.3);
  color: #fff;
  background: rgba(116, 21, 34, 0.28);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-secondary:hover {
  background: rgba(224, 76, 91, 0.12);
  border-color: rgba(224, 96, 106, 0.82);
}

.email-fallback {
  font-size: 13px;
  color: #888;
}

.email-fallback a {
  color: #ff6b76;
  text-decoration: none;
  transition: all 0.3s;
  border-bottom: 1px solid rgba(224, 96, 106, 0.3);
}

.email-fallback a:hover {
  color: #e9a0a5;
  border-bottom-color: rgba(233, 160, 165, 0.64);
}

/* Footer */
.footer {
  padding: 48px 48px;
  border-top: 1px solid rgba(224, 96, 106, 0.12);
  color: #666;
  font-size: 12px;
  text-align: center;
  background: rgba(13, 13, 13, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 32px;
  }

  .about-container {
    flex-direction: column;
    gap: 32px;
  }

  .about-left,
  .about-right {
    width: 100%;
  }
  
  .hero-section h1 {
    font-size: clamp(56px, 18vw, 88px);
  }

  .hero-section {
    padding: 92px 24px 52px;
  }

  .hero-section::before {
    left: 2%;
    top: 58%;
  }

  .hero-section::after {
    right: 2%;
    top: 60%;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-actions {
    width: 100%;
    justify-content: center;
  }
  
  .section-title {
    font-size: 36px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .navbar {
    width: calc(100% - 28px);
    padding: 7px 14px;
  }

  .logo img {
    width: 36px;
    height: 36px;
  }

  .nav-links a {
    margin-left: 10px;
    font-size: 12px;
  }

  .nav-links a:first-child {
    display: none;
  }

  .nav-links a:last-child {
    margin-left: 10px;
    padding: 8px 12px;
  }
  
  .section-container {
    padding: 60px 24px;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: clamp(30px, 10.5vw, 44px);
    letter-spacing: -0.5px;
    word-break: break-word;
  }

  .hero-section {
    padding: 76px 18px 44px;
  }

  .hero-section::before,
  .hero-section::after {
    display: none;
  }

  .hero-subtitle {
    font-size: 15px;
  }
}

