:root {
  --bg: #0b1220;
  --panel: #111827;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --primary: #0ea5e9;
  --border: rgba(255,255,255,0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(to bottom, #0b1220, #09101d);
  color: var(--text);
  font-family: Italic, sans-serif;
  line-height: 1.6;
}

/* Container */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 20px;
}

.logo i {
  color: var(--primary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav a {
  color: var(--text);
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 20px;
}

.hero p {
  max-width: 700px;
  margin: auto;
  color: var(--muted);
  font-size: 18px;
}

.buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn {
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: bold;
}

.primary {
  background: var(--primary);
  color: white;
}

.secondary {
  border: 1px solid var(--border);
  color: white;
}

.btn:hover {
  transform: translateY(-3px);
}

/* Sections */
section {
  padding: 80px 0;
}

h2 {
  margin-bottom: 40px;
  font-size: 38px;
  text-align: center;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 25px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card i {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 15px;
}

.card p {
  color: var(--muted);
}

.large-card {
  text-align: center;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--panel);
  padding: 20px;
  border-radius: 16px;
}

.timeline-item span {
  min-width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

/* Contact */
.contact-box {
  background: var(--panel);
  padding: 40px;
  border-radius: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0b1220;
  color: white;
}

button {
  background: var(--primary);
  border: none;
  padding: 14px;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .hero h1 {
    font-size: 40px;
  }

  .buttons {
    flex-direction: column;
  }
}
/* =========================
   PROGRESS BAR
========================= */

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: #0ea5e9;
  z-index: 9999;
  transition: width 0.2s ease;
}

/* =========================
   THEME BUTTON
========================= */

#theme-toggle {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 20px;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* =========================
   BACK TO TOP
========================= */

#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  z-index: 999;
  font-size: 22px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* =========================
   DAY THEME
========================= */

body.light-theme {
  background: linear-gradient(
    to bottom,
    #43dcff,
    #3bdbff
  );
  color: #0f172a;
}

body.light-theme header {
  background: rgba(234,246,255,0.95);
}

body.light-theme .card,
body.light-theme .timeline-item,
body.light-theme .contact-box {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
}

body.light-theme nav a,
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme p,
body.light-theme span {
  color: #0f172a;
}

body.light-theme .card p,
body.light-theme .hero p {
  color: #475569;
}

body.light-theme input,
body.light-theme textarea {
  background: white;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

body.light-theme footer {
  color: #475569;
}

/* =========================
   EXTRA EFFECTS
========================= */

.card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(14,165,233,0.15);
}

.timeline-item {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(8px);
}

.btn {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn:hover {
  box-shadow: 0 8px 20px rgba(14,165,233,0.25);
}