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

:root {
  --bg-color: #0f0f11;
  --surface-color: #1a1a1d;
  --silver-light: #e0e0e5;
  --silver-dim: #a0a0a5;
  --red-accent: #e50914;
  --red-hover: #b20710;
  --glass-bg: rgba(26, 26, 29, 0.8);
  --glass-border: rgba(224, 224, 229, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--silver-light);
  overflow-x: hidden;
}

/* Navigation Bar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.2rem 2rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

nav ul li a {
  color: var(--silver-light);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  transition: color 0.3s;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--red-accent);
  bottom: -6px;
  left: 0;
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: var(--red-accent);
}

nav ul li a:hover::after {
  width: 100%;
}

/* Home Section */
#home {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at top center, rgba(229,9,20,0.1) 0%, var(--bg-color) 60%);
  position: relative;
  padding-top: 80px;
}

.home-content {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  padding: 4rem 3rem;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255,255,255,0.02);
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 700px;
  margin: 0 20px;
}

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

.home-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--silver-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.home-section p {
  font-size: 1.3rem;
  color: var(--silver-dim);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.home-section img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface-color);
  padding: 5px;
  background: linear-gradient(135deg, var(--red-accent), #ff4b55);
  margin-bottom: 2.5rem;
  box-shadow: 0 0 30px rgba(229, 9, 20, 0.3);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.home-section img:hover {
  transform: scale(1.08) rotate(5deg);
}

.cta-button {
  background: linear-gradient(135deg, var(--red-accent) 0%, var(--red-hover) 100%);
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.3);
  letter-spacing: 1px;
  border: 1px solid rgba(255,255,255,0.1);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.5);
  background: linear-gradient(135deg, #ff1e27 0%, var(--red-accent) 100%);
}

/* Common Section Styles */
section:not(#home) {
  padding: 120px 5%;
}

section h2 {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 4rem;
  color: var(--silver-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  width: 100%;
}

section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--red-accent), transparent);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* About Section */
#about {
  background-color: var(--surface-color);
  position: relative;
}

#about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.about-section h3 {
  color: var(--red-accent);
  font-size: 1.6rem;
  margin: 3rem 0 1.2rem;
  font-weight: 600;
  text-align: center;
}

.about-section p {
  font-size: 1.15rem;
  color: var(--silver-dim);
  max-width: 800px;
  margin: 0 auto 1.5rem;
  text-align: center;
  line-height: 1.8;
}

/* Projects Section */
#projects {
  background-color: var(--bg-color);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: var(--surface-color);
  padding: 2.5rem;
  border-radius: 20px;
  width: calc(50% - 1.25rem); 
  min-width: 320px;
  text-align: center;
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.project-card:hover {
  transform: translateY(-12px);
  border-color: rgba(229, 9, 20, 0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(229, 9, 20, 0.1);
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--silver-light);
  font-weight: 600;
}

.project-card .cta-button {
  margin-top: auto;
  padding: 12px 28px;
  font-size: 1rem;
}

/* Contact Section */
#contact {
  background-color: var(--surface-color);
  text-align: center;
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

#contact p {
  color: var(--silver-dim);
  margin-bottom: 3rem;
  font-size: 1.2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-color);
  padding: 1.2rem 3rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  color: var(--silver-light);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 400px;
  justify-content: center;
}

.contact-item:hover {
  transform: translateY(-5px);
  border-color: var(--red-accent);
  box-shadow: 0 15px 35px rgba(229, 9, 20, 0.2);
  color: var(--red-accent);
}

/* Footer */
footer {
  background-color: #050505;
  color: var(--silver-dim);
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
  }
  
  nav ul li a {
    font-size: 0.9rem;
  }
  
  .home-section h1 {
    font-size: 2.5rem;
  }
  
  .project-card {
    width: 100%;
  }
  
  .contact-section form {
    padding: 2rem 1.5rem;
  }
}