/* =====================================================
   ROOT VARIABLES
===================================================== */
:root {
  --bg: #020617;
  --bg-soft: #030a1f;

  --card: rgba(15, 23, 42, 0.94);
  --card-alt: rgba(12, 18, 34, 0.94);

  --text: #e5e7eb;
  --muted: #8b96aa;

  --accent: #38bdf8;
  --accent-soft: rgba(56,189,248,.14);

  --border: rgba(255,255,255,0.07);
  --radius: 18px;

  --shadow-soft: 0 10px 30px rgba(0,0,0,.35);
  --shadow-hover: 0 18px 45px rgba(0,0,0,.45);
}

/* =====================================================
   RESET & BASE
===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(900px 520px at top, #030b2f, var(--bg)),
    var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* =====================================================
   LAYOUT
===================================================== */
.container {
  max-width: 1120px;
  margin: auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6.5rem 0;
}

.section + .section {
  padding-top: 0;
}

/* =====================================================
   HERO
===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background:
    linear-gradient(rgba(2,6,23,.88), rgba(2,6,23,.98)),
    url("../images/arkaplan.jpg") center / cover no-repeat;
}

.hero-small {
  min-height: 56vh;
}

.hero-content {
  max-width: 820px;
  padding: 2.5rem 2rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 14px 40px rgba(0,0,0,.75);
}

/* =====================================================
   TEXT
===================================================== */
.subtitle {
  margin-top: 1.6rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.subtitle span {
  display: block;
  margin-top: .7rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .7rem;
}

/* =====================================================
   BUTTONS
===================================================== */
.hero-buttons {
  margin-top: 3.2rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn {
  padding: .8rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn.primary {
  background: var(--accent);
  color: #020617;
  box-shadow: 0 6px 16px rgba(56,189,248,.3);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(56,189,248,.45);
}

.btn.ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn.ghost:hover {
  background: rgba(255,255,255,.04);
}

/* =====================================================
   ABOUT
===================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-card {
  background: var(--card-alt);
  padding: 2.6rem 2.4rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.about-card img {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin-bottom: 1.4rem;
}

.about-card p,
.about-text p {
  color: var(--muted);
  line-height: 1.9;
}

/* =====================================================
   PROJECTS / BLOG / CARDS
===================================================== */
.projects-grid,
.blog-list,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 2.6rem;
}

.project-card,
.blog-card,
.contact-card {
  background: var(--card);
  padding: 2.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.project-card:hover,
.blog-card:hover,
.contact-card:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: var(--shadow-hover);
  border-color: rgba(56,189,248,.35);
}

.project-desc,
.blog-excerpt {
  color: var(--muted);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .7rem;
}

.project-tags span {
  background: var(--accent-soft);
  color: var(--accent);
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  padding: 2.6rem 0;
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
  border-top: 1px solid var(--border);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero {
    background-position: top;
  }
}
