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

body{
  background:#0a0a0a;
  font-family:'Poppins',sans-serif;
  color:#fff;
  scroll-behavior:smooth;
  padding-top:70px;
}

.highlight{
  color:#00ff88;
  font-weight:bold;
}

/* ================= HEADER ================= */
header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:70px;
  background:#111;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 30px;
  z-index:1000;
  border-bottom:1px solid #222;
}

.logo-img{
  max-height:42px;
  width:auto;
}

.nav-links{
  display:flex;
  gap:30px;
}

.nav-links a{
  color:#fff;
  text-decoration:none;
  font-size:16px;
  position:relative;
}

.nav-links a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-5px;
  width:0;
  height:2px;
  background:#00ff88;
  transition:.3s;
}

.nav-links a:hover::after{
  width:100%;
}

/* ================= HERO ================= */
#hero{
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:#000;
  position:relative;
  overflow:hidden;
}

.hero-content{
  position:relative;
  z-index:3;
}

.code-bg{
  position:absolute;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  z-index:1;
  background:#000;
}

/* Hafif karartma layer */
.code-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background:#000;
  opacity:.15;
  z-index:0;
}

/* Akan kod satırları */
.code-bg .line{
  position:absolute;
  white-space:nowrap;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size:14px;
  color:rgba(255,255,255,.35);
  text-shadow:0 0 8px rgba(0,255,136,.2);
  animation: codeFloat linear infinite;
  opacity:0;
}

@keyframes codeFloat{
  0%   { transform: translateX(120vw); opacity:0; }
  10%  { opacity:.5; }
  90%  { opacity:.5; }
  100% { transform: translateX(-150vw); opacity:0; }
}

/* ================= SECTIONS ================= */
section{
  padding:100px 40px;
}

.section-title{
  font-size:36px;
  color:#00ff88;
  margin-bottom:40px;
  text-align:center;
}

/* ABOUT */
#about{
  background:#0a0a0a;
}

.about-box{
  max-width:900px;
  margin:0 auto;
  background:#111;
  padding:30px;
  border-left:3px solid #00ff88;
}

/* PROJECTS */
#projects{
  background:#0d0d0d;
}

.project-grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:30px;
}

.project-card{
  width:280px;
  background:#1a1a1a;
  border:1px solid #333;
  border-radius:10px;
  padding:25px;
  transition:.3s;
}

.project-card:hover{
  transform:translateY(-8px);
  box-shadow:0 0 20px #00ff88;
}

/* SERVICES */
#services{
  background:#111;
}

.services-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:30px;
}

/* CONTACT */
#contact{
  background:#0a0a0a;
}

.contact-form{
  max-width:600px;
  margin:auto;
  display:flex;
  flex-direction:column;
  gap:20px;
}

.contact-form input,
.contact-form textarea{
  padding:15px;
  background:#1a1a1a;
  border:1px solid #333;
  border-radius:8px;
  color:#fff;
}

.contact-form button{
  padding:15px;
  background:#00ff88;
  border:none;
  font-weight:bold;
  cursor:pointer;
}

/* FOOTER */
footer{
  padding:30px;
  text-align:center;
  background:#0a0a0a;
  border-top:1px solid #222;
}
