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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #000;
  color: #fff;
  overflow: hidden;
  line-height: 1.6;
}

/* ========== NAV ========== */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; height: 72px;
  padding: 0 4rem; z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; height: 100%; }

.logo { cursor: pointer; }
.logo-img { height: 70px; max-height: 75px; width: auto; display: block; }

.hamburger {
  display: none; flex-direction: column; background: none; border: none; cursor: pointer;
  padding: 0; width: 30px; height: 30px; justify-content: space-around;
}
.hamburger span { width: 100%; height: 2px; background: #fff; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(8px, -8px); }

.nav-links { display: flex; gap: 3rem; list-style: none; }
.nav-links button {
  background: none; border: none; color: #fff; font-size: 1rem; font-weight: 300; cursor: pointer;
  transition: all 0.3s ease; padding: 0.5rem 0; border-bottom: 2px solid transparent; position: relative;
}
.nav-links button:hover {
  opacity: 1; border-bottom-color: #fff; background: rgba(255, 255, 255, 0.05); border-radius: 4px;
}
.nav-links button.active { opacity: 1; border-bottom-color: #fff; }

/* ========== LAYOUT ========== */
.main-container { height: 100vh; position: relative; overflow: hidden; }

.section {
  position: absolute; top: 0; left: 0; width: 100%; height: 100vh; display: flex;
  opacity: 0; transform: translateX(100%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.section.active { opacity: 1; transform: translateX(0); }

.section-left,
.section-right {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 4rem; position: relative;
}
.section-left { background: #000; }
.section-right { background: #fff; }

/* ========== HERO ========== */
.hero-content { text-align: center; z-index: 10; }
.hero-title {
  font-size: clamp(3rem, 8vw, 6rem); font-weight: 100; letter-spacing: -0.02em;
  margin-bottom: 1rem; opacity: 0; animation: fadeInUp 1s ease-out 0.5s forwards;
}
.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 300; margin-bottom: 2rem;
  opacity: 0; animation: fadeInUp 1s ease-out 0.8s forwards;
}
.hero-right .hero-title { color: #000; }
.hero-right .hero-subtitle { color: #333; }

/* ========== ABOUT ========== */
.about-content { max-width: 500px; color: #fff; }
.about-right { background: #fff; color: #000; }
.about-right .about-content { color: #000; }

.section-title {
  font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 100; margin-bottom: 2rem; letter-spacing: -0.02em;
  opacity: 0; animation: fadeInUp 0.8s ease-out 0.3s forwards;
}
.section-text {
  font-size: 1.3rem; font-weight: 300; line-height: 1.7;
  opacity: 0; animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

/* ========== SKILLS ========== */
.skills-right { padding-top: 10rem; } /* no !important needed */
.skills-container { max-width: 500px; }
.skill-category { margin-bottom: 2rem; }
.skill-category:last-child { margin-bottom: 0; }
.category-title {
  font-size: 1.1rem; font-weight: 300; color: #000; margin-bottom: 1rem;
  text-align: left; letter-spacing: 0.1em;
}

.category-skills {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: flex-start; align-items: flex-start;
}

.skill-item {
  text-align: center; padding: 1.5rem 1rem; background: rgba(255,255,255,0.05);
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100px; flex: 0 0 calc(50% - 0.5rem); min-width: 100px; height: 140px; align-self: stretch;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); transition: all 0.3s ease;
}
.skill-item:hover {
  transform: translateY(-5px); background: rgba(255,255,255,0.1);
  box-shadow: 0 10px 25px rgba(255,255,255,0.1);
}
.skills-right .skill-item:hover {
  background: rgba(0,0,0,0.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15), inset 0 1px 3px rgba(0,0,0,0.8);
}
.skill-icon {
  font-size: 2.5rem; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center;
  height: 60px; line-height: 1; transition: transform .3s ease, filter .3s ease;
}
.skill-icon:hover { transform: scale(1.1); filter: drop-shadow(0 0 8px rgba(255,255,255,0.3)); }
.skill-name { font-size: 1.1rem; font-weight: 400; }
.skills-right .skill-name { color: #000; }

/* ========== PROJECTS ========== */
.projects-right .project-title { color: #000; }
.projects-right .project-description { color: #333; }
.projects-right .tech-tag { background: rgba(0,0,0,0.2); color: #000; }

.project-case {
  display: flex; gap: 2rem; align-items: stretch; padding: 1.5rem; border-radius: 16px;
  background: rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.08); margin-bottom: 1.5rem;
  transition: transform 0.3s ease, background 0.3s ease;
}
.projects-right .project-case:hover { transform: translateY(-3px); background: rgba(0,0,0,0.05); }

.project-text { flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.project-title { font-size: 1.5rem; font-weight: 300; margin-bottom: 1rem; }
.project-description { opacity: 0.8; margin-bottom: 1.5rem; }
.project-tech { display: flex; gap: 1rem; flex-wrap: wrap; }
.tech-tag { background: rgba(255,255,255,0.2); padding: 0.3rem 0.8rem; border-radius: 15px; font-size: 0.9rem; }
.project-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.25rem; }

/* Media (screenshot) */
.project-media {
  width: 48%; min-width: 260px; border-radius: 12px; overflow: hidden;
  background: rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.08);
}
.project-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

/* Projects – simple 3-card grid */
.projects-right {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  padding: 2rem;
  background: #fff;
  color: #000;
}

@media (max-width: 1100px){
  .projects-right { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px){
  .projects-right { grid-template-columns: 1fr; }
}

/* Card */
.proj-card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  padding:1.1rem 1.1rem 1.2rem;
  background: rgba(0,0,0,.02);
  display:flex; flex-direction:column; gap:.75rem;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.proj-card:hover{
  transform: translateY(-3px);
  background:#fff;
  box-shadow:0 14px 40px rgba(0,0,0,.12);
}
.proj-card.featured{
  border-color:#000;
  background:#fff;
}

/* Head */
.proj-head{
  display:flex; justify-content:space-between; align-items:center;
}
.proj-title{
  font-size:1.15rem; font-weight:500; margin:0;
}
.proj-tag{
  font-size:.75rem; padding:.25rem .5rem; border-radius:999px;
  background:rgba(0,0,0,.06); border:1px solid rgba(0,0,0,.12);
}
.proj-tag.live{ background:#0f0f0f; color:#fff; border-color:#0f0f0f; }

/* Body */
.proj-desc{ color:#333; line-height:1.55; }
.proj-tech{ display:flex; gap:.5rem; flex-wrap:wrap; }
.proj-tech span{
  font-size:.8rem; background:rgba(0,0,0,.06); border:1px solid rgba(0,0,0,.1);
  padding:.2rem .55rem; border-radius:999px;
}

/* Actions */
.proj-actions{ margin-top:auto; display:flex; gap:.6rem; flex-wrap:wrap; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-block; padding: 0.7rem 1.1rem; border-radius: 10px; font-size: 0.95rem;
  text-decoration: none; transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.btn-primary { background: #000; color: #fff; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #000; border: 1px solid rgba(0,0,0,0.2); opacity: 0.85; }
.btn[aria-disabled="true"] { pointer-events: none; opacity: 0.6; }
.btn-cta {
  background: gray; color: #fff; padding: 0.75rem 1.5rem; border-radius: 4px; font-weight: 500; text-decoration: none;
  transition: background 0.3s ease;
}
.btn-cta:hover { background: black; }

/* ========== SERVICES ========== */
.services-content { max-width: 500px; max-height: none; overflow: hidden; }
.service-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.service-item {
  margin-bottom: 0.4rem; padding: 0.4rem 0.4rem 2rem; border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02); border-radius: 10px; transition: all 0.3s ease;
}
.service-item:hover { background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.service-item:last-child { border-bottom: none; }
.services-right .service-item { border-bottom-color: rgba(0,0,0,0.1); background: rgba(0,0,0,0.02); }
.services-right .service-item:hover { background: rgba(0,0,0,0.05); }
.service-title { font-size: 1.5rem; font-weight: 300; margin-bottom: 1rem; }
.services-right .service-title { color: #000; }
.service-description { opacity: 0.8; font-size: 0.9rem; }
.services-right .service-description { color: #333; }
.services-right { padding: 2rem; overflow-y: auto; padding-top: 8rem; }

/* ========== CONTACT ========== */
.contact-content { max-width: 400px; }
.contact-form { margin-top: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 300; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 1rem; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 5px; color: #fff; font-size: 1rem;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.6); }
.contact-right .form-group input,
.contact-right .form-group textarea {
  background: rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.2); color: #000;
}
.contact-right .form-group input::placeholder,
.contact-right .form-group textarea::placeholder { color: rgba(0,0,0,0.6); }
.contact-right .form-group label { color: #000; }
.submit-btn {
  background: #fff; color: #000; padding: 1rem 2rem; border: none; border-radius: 5px;
  font-size: 1rem; cursor: pointer; transition: all 0.3s ease; font-weight: 300;
}
.submit-btn:hover { transform: translateY(-2px); }
.contact-right .submit-btn { background: #000; color: #fff; }

/* ========== GEOMETRIC SHAPES ========== */
.geometric-shape {
  position: absolute; border: 1px solid rgba(255,255,255,0.1); animation: float 8s ease-in-out infinite;
}
.section-right .geometric-shape { border-color: rgba(0,0,0,0.1); }
.shape-1 { width: 150px; height: 150px; top: 20%; left: 10%; animation-delay: 0s; }
.shape-2 { width: 100px; height: 100px; top: 60%; right: 15%; animation-delay: 3s; }
.shape-3 { width: 80px; height: 80px; bottom: 15%; left: 20%; animation-delay: 6s; }

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(-20px) rotate(180deg); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .section { flex-direction: column; }
  .nav { padding: 1rem 2rem; }
  .hamburger { display: flex; }

  .nav-links {
    position: fixed; top: 100%; left: 0; width: 100%;
    background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(10px);
    flex-direction: column; gap: 0; padding: 2rem;
    transform: translateY(-100%); opacity: 0; visibility: hidden; transition: all 0.3s ease;
  }
  .nav-links.active { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links li { margin-bottom: 1rem; }
  .nav-links button {
    font-size: 1.2rem; padding: 1rem 0; width: 100%; text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .section-left, .section-right { padding: 2rem; }
  .carousel-slide { aspect-ratio: 16 / 9; }
  .logo-img { height: 32px; }
}