/* ============================================================
   KSÜ KARBON AYAK İZİ TAKİP PLATFORMU — STYLE SHEET
   ============================================================ */

:root {
  --green-900: #0a2e1f;
  --green-800: #0f3d2a;
  --green-700: #14532d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-400: #4ade80;
  --green-100: #dcfce7;
  --sky-500: #0ea5e9;
  --amber-500: #f59e0b;
  --purple-500: #a855f7;

  --bg: #f7faf8;
  --bg-alt: #ffffff;
  --text: #10241a;
  --text-muted: #5b6b62;
  --border: #e3ede7;
  --card-bg: #ffffff;
  --shadow: 0 10px 30px -10px rgba(16, 36, 26, 0.12);
  --shadow-lg: 0 25px 60px -15px rgba(16, 36, 26, 0.25);
  --radius: 18px;
  --radius-sm: 10px;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.4s cubic-bezier(.25,.8,.25,1);
}

[data-theme="dark"] {
  --bg: #0a1611;
  --bg-alt: #0f1e17;
  --text: #eaf6ee;
  --text-muted: #9db4a6;
  --border: #1c3327;
  --card-bg: #10241c;
  --shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  --shadow-lg: 0 25px 60px -15px rgba(0,0,0,0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
section { position: relative; padding: 110px 8vw; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }

.gradient-text {
  background: linear-gradient(90deg, var(--green-400), var(--sky-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green-600); border-radius: 10px; }

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 4px; z-index: 2000;
  background: transparent;
}
.scroll-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--green-500), var(--sky-500));
  transition: width 0.1s ease-out;
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; color: #fff; }
.preloader-inner i {
  font-size: 3rem; color: var(--green-400);
  animation: pulseLeaf 1.4s ease-in-out infinite;
}
.preloader-inner span { display: block; margin-top: 14px; font-size: 0.95rem; letter-spacing: 0.5px; opacity: 0.85; }
@keyframes pulseLeaf {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.25) rotate(8deg); }
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 18px 8vw;
  transition: all var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: var(--bg-alt);
  padding: 12px 8vw;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; max-width: 1400px; margin: 0 auto; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--text); }
.nav-logo i { color: var(--green-500); font-size: 1.4rem; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--text-muted); position: relative; padding: 6px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--green-500); transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--green-600); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card-bg); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.theme-toggle:hover { background: var(--green-500); color: #fff; transform: rotate(20deg); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { width: 26px; height: 3px; background: var(--text); border-radius: 3px; transition: all 0.3s; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px;
  border-radius: 50px; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: none; transition: all var(--transition); white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff; box-shadow: 0 10px 25px -8px rgba(22,163,74,0.5);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -8px rgba(22,163,74,0.6); }
.btn-ghost {
  background: rgba(255,255,255,0.08); color: #fff; border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }
.btn-outline {
  background: transparent; border: 1.5px solid var(--green-500); color: var(--green-600);
  margin-top: 10px;
}
.btn-outline:hover { background: var(--green-500); color: #fff; }
.full-width { width: 100%; justify-content: center; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; padding: 0 8vw; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse at top, #0f3d2a 0%, #0a2e1f 60%, #071b13 100%);
  color: #fff;
}
#particles { position: absolute; inset: 0; z-index: 0; }
.hero-gradient {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(circle at 20% 20%, rgba(34,197,94,0.25), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(14,165,233,0.2), transparent 40%);
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; margin-bottom: 24px;
  backdrop-filter: blur(6px);
}
.hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; margin-bottom: 22px; }
.hero-desc { font-size: 1.08rem; color: rgba(255,255,255,0.8); max-width: 700px; margin: 0 auto 36px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-scroll { display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255,255,255,0.6); font-size: 0.8rem; letter-spacing: 1px; }
.hero-scroll i { animation: bounceDown 2s infinite; }
@keyframes bounceDown { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ============ SECTION HEAD ============ */
.section-head { max-width: 700px; margin: 0 auto 60px; text-align: center; }
.section-badge {
  display: inline-block; background: var(--green-100); color: var(--green-700);
  padding: 6px 18px; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 16px; letter-spacing: 0.5px;
}
.section-badge.dark { background: rgba(255,255,255,0.12); color: #fff; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; font-weight: 700; }
.section-head p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.7; }
.section-head.light h2, .section-head.light p { color: #fff; }
.section-head.light p { color: rgba(255,255,255,0.75); }

/* ============ STATS ============ */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px;
  max-width: 1300px; margin: 0 auto;
}
.stat-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 22px; text-align: center; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.stat-card i { font-size: 2rem; color: var(--green-500); margin-bottom: 14px; }
.stat-card h3 { font-size: 2.1rem; font-weight: 700; color: var(--text); }
.stat-card p { color: var(--text-muted); margin-top: 6px; font-size: 0.9rem; }
.stat-card.highlight { background: linear-gradient(135deg, var(--green-700), var(--green-900)); border: none; }
.stat-card.highlight i, .stat-card.highlight h3, .stat-card.highlight p { color: #fff; }
.stat-disclaimer { max-width: 900px; margin: 40px auto 0; text-align: center; font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* ============ SCOPE CARDS ============ */
.scope-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; max-width: 1200px; margin: 0 auto; }
.scope-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; box-shadow: var(--shadow); transition: transform var(--transition);
}
.scope-card:hover { transform: translateY(-6px) scale(1.01); }
.scope-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, var(--green-500), var(--sky-500));
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.scope-icon i { font-size: 1.5rem; color: #fff; }
.scope-card h3 { font-size: 1.2rem; margin-bottom: 10px; display: flex; flex-direction: column; gap: 3px; }
.scope-card h3 span { font-size: 0.78rem; font-weight: 500; color: var(--green-600); text-transform: uppercase; letter-spacing: 0.5px; }
.scope-card p { color: var(--text-muted); font-size: 0.94rem; line-height: 1.65; }

/* ============ CALCULATOR ============ */
.calculator { background: var(--bg-alt); }
.calc-wrapper {
  max-width: 1150px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 24px; padding: 44px;
  box-shadow: var(--shadow-lg);
}
.calc-form { display: grid; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.form-group label i { color: var(--green-500); }
.form-group select, .form-group input {
  padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group select:focus, .form-group input:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(34,197,94,0.15);
}

.calc-result { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; }
.gauge { position: relative; width: 220px; height: 220px; }
.gauge svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.gauge-bg { fill: none; stroke: var(--border); stroke-width: 12; }
.gauge-fill {
  fill: none; stroke: var(--green-500); stroke-width: 12; stroke-linecap: round;
  stroke-dasharray: 534; stroke-dashoffset: 534;
  transition: stroke-dashoffset 1.2s cubic-bezier(.25,.8,.25,1), stroke 1.2s;
}
.gauge-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-text span { font-size: 2.1rem; font-weight: 700; color: var(--text); font-family: var(--font-head); }
.gauge-text small { color: var(--text-muted); font-size: 0.78rem; margin-top: 4px; }
.result-comment { color: var(--text-muted); font-size: 0.92rem; max-width: 320px; line-height: 1.6; }
.result-tips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.result-tips span {
  background: var(--green-100); color: var(--green-700); padding: 6px 14px;
  border-radius: 50px; font-size: 0.78rem; font-weight: 500;
}
[data-theme="dark"] .result-tips span { background: rgba(34,197,94,0.15); color: var(--green-400); }

/* ============ EMISSIONS CHART ============ */
.emissions-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
  max-width: 1150px; margin: 0 auto;
}
.chart-box {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); max-width: 420px; margin: 0 auto; width: 100%;
}
.emissions-legend { display: flex; flex-direction: column; gap: 14px; }
.legend-item { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--text); }
.legend-item .dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }

/* ============ ROADMAP / TIMELINE ============ */
.roadmap {
  background: linear-gradient(180deg, var(--green-900), var(--green-800));
  color: #fff;
}
.timeline { max-width: 900px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: rgba(255,255,255,0.2); transform: translateX(-50%);
}
.timeline-item {
  position: relative; width: 50%; padding: 0 50px 60px; box-sizing: border-box;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-dot {
  position: absolute; top: 0; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--sky-500));
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.06);
  z-index: 2;
}
.timeline-item:nth-child(odd) .timeline-dot { right: -21px; }
.timeline-item:nth-child(even) .timeline-dot { left: -21px; }
.timeline-content {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 26px 28px; backdrop-filter: blur(6px);
  transition: transform 0.3s;
}
.timeline-content:hover { transform: translateY(-4px); background: rgba(255,255,255,0.1); }
.timeline-date { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--green-400); font-weight: 600; }
.timeline-content h3 { margin: 8px 0 10px; font-size: 1.15rem; }
.timeline-content p { color: rgba(255,255,255,0.75); font-size: 0.92rem; line-height: 1.6; }

/* ============ SUGGESTIONS ============ */
.suggestions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 1250px; margin: 0 auto; }
.suggestion-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 26px; text-align: center; box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition);
}
.suggestion-card:hover { transform: translateY(-8px) rotate(-1deg); border-color: var(--green-500); }
.suggestion-card i {
  font-size: 1.8rem; color: #fff; width: 60px; height: 60px; margin: 0 auto 18px;
  border-radius: 50%; background: linear-gradient(135deg, var(--green-500), var(--green-700));
  display: flex; align-items: center; justify-content: center;
}
.suggestion-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.suggestion-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* ============ SDG ============ */
.sdg { background: var(--bg-alt); }
.sdg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; max-width: 1100px; margin: 0 auto; }
.sdg-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 20px; text-align: center; box-shadow: var(--shadow);
  transition: transform 0.6s;
}
.sdg-card:hover { transform: rotateY(180deg); }
.sdg-card i { font-size: 2.2rem; color: var(--sky-500); margin-bottom: 12px; }
.sdg-card h4 { font-size: 1.1rem; color: var(--green-600); }
.sdg-card p { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }

/* ============ FOOTER ============ */
.footer { background: #071812; color: #fff; padding: 80px 8vw 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  max-width: 1300px; margin: 0 auto; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.7; margin: 18px 0 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.footer-social a:hover { background: var(--green-500); transform: translateY(-4px); }
.footer-links h4, .footer-contact h4 { margin-bottom: 18px; font-size: 1rem; color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color 0.3s, padding-left 0.3s; }
.footer-links a:hover { color: var(--green-400); padding-left: 6px; }
.footer-contact p { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-bottom: 14px; display: flex; gap: 10px; line-height: 1.5; }
.footer-contact i { color: var(--green-400); margin-top: 3px; }
.footer-bottom { max-width: 1300px; margin: 0 auto; padding: 26px 0; text-align: center; color: rgba(255,255,255,0.4); font-size: 0.82rem; }

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-700)); color: #fff; border: none;
  font-size: 1.1rem; cursor: pointer; z-index: 900; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.4s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-5px) scale(1.05); }

/* ============ REVEAL ANIMATIONS ============ */
.reveal { opacity: 0; transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.25,.8,.25,1); }
.reveal[data-reveal="fade-up"] { transform: translateY(50px); }
.reveal[data-reveal="fade-down"] { transform: translateY(-50px); }
.reveal[data-reveal="fade-in"] { transform: none; }
.reveal[data-reveal="zoom-in"] { transform: scale(0.8); }
.reveal[data-reveal="slide-right"] { transform: translateX(-60px); }
.reveal[data-reveal="slide-left"] { transform: translateX(60px); }
.reveal[data-reveal="pop"] { transform: scale(0.7) translateY(30px); }
.reveal[data-reveal="flip"] { transform: rotateX(40deg) translateY(30px); }
.reveal.visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .calc-wrapper { grid-template-columns: 1fr; }
  .emissions-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%;
    background: var(--bg-alt); padding: 20px 8vw; gap: 16px; box-shadow: var(--shadow);
  }
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) { width: 100%; left: 0; text-align: left; padding: 0 0 50px 60px; }
  .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot { left: -1px; right: auto; }
}
@media (max-width: 600px) {
  section { padding: 80px 6vw; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
}
