:root {
  --primary: #ffffff;
  --secondary: #000000;
  --accent:  #ff3366;
  --light:   #1a1a1a;
  --muted:   #bdb5b5;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--secondary);
  color: var(--primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* HEADER */
header {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  z-index: 1000;
}

.logo {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 700;
  text-decoration: none;
  color: var(--primary);
}
.logo span { color: var(--accent); }

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  transition: var(--transition);
}
.nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 1rem;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: clamp(6rem, 12vh, 10rem) 5% 4rem;
  gap: 2rem;
}

.hero-content {
  flex: 1 1 350px;
  max-width: 600px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}
.hero p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin-bottom: 2rem;
  color: var(--muted);
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: var(--secondary);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255,51,102,0.3);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  margin-left: 1rem;
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--secondary);
}

.hero-image {
  flex: 1 1 250px;
  max-width: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(136,50,50,0.5);
}
.hero-image img { width: 100%; height: auto; display: block; }

/* SERVICES / REPOSITORY */
.services {
  padding: 6rem 5%;
  background: var(--light);
}
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}
.section-title p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.service-card {
  background: #111;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: var(--transition);
  text-align: center;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.service-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.service-card p { color: var(--muted); margin: 1rem 0 1.5rem; }

/* PROJECTS */
.projects { padding: 6rem 5%; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.project-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 400px;
}
.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 2rem;
  color: var(--primary);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}
.project-card:hover .project-overlay {
  transform: translateY(0);
  opacity: 1;
}
.project-card:hover .project-image {
  transform: scale(1.05);
}

/* RESPONSIVE NAVIGATION */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 70px; left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--secondary);
    padding: 2rem 0;
    gap: 1.5rem;
    transform: translateY(-150%);
    box-shadow: 0 10px 15px rgba(0,0,0,0.4);
  }
  .nav-links.active { transform: translateY(0); }
}
