/* ===============================
   ROOT COLORS
================================= */
:root {
  --bg: #ffffff;
  --card: #f4f4f6;
  --text: #111;
  --accent: #6c63ff;
}

body.dark {
  --bg: #0f0f12;
  --card: #1b1b20;
  --text: #fff;
}


/* ===============================
   RESET
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  transition: background .3s ease, color .3s ease;
}


/* ===============================
   SECTIONS
================================= */
section {
  padding: 90px 10%;
  max-width: 1200px;
  margin: auto;
  text-align: center;
  scroll-margin-top: 100px;
}

h1, h2 {
  margin-bottom: 25px;
}


/* NAVBAR (GLASS HEADER) */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  /* glass effect */
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
}

/* dark header */
body.dark nav {
  background: rgba(15,15,18,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}


/* NAV LINKS */
nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
}

/* underline hover */
nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 3px;
  width: 0;
  background: var(--accent);
  transition: width .3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}


/* BUTTONS */
.toggle {
  cursor: pointer;
  padding: 8px 14px;
  background: var(--accent);
  color: white;
  border-radius: 20px;
}

.btn {
  background: var(--accent);
  color: white;
  padding: 12px 22px;
  border-radius: 25px;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
}

button:hover, .btn:hover {
  opacity: .9;
  transform: translateY(-2px);
}

button, .btn, .card {
  transition: transform .3s ease, opacity .3s ease;
}


/*  HERO */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
}

.developer-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  cursor: pointer;
}

/* FEATURES CARD */
/* ===============================
   FEATURES SECTION
================================= */

#features {
  margin-top: 40px;
}

/* feature cards style upgrade */
#features .card {
  padding: 30px 20px;
  border-radius: 18px;
  font-weight: 600;
  font-size: 1.05rem;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  cursor: default;

  /* subtle premium gradient */
  background: linear-gradient(
    145deg,
    var(--card),
    rgba(255,255,255,0.6)
  );

  border: 1px solid rgba(0,0,0,0.05);
}

/* dark mode gradient */
body.dark #features .card {
  background: linear-gradient(
    145deg,
    #1b1b20,
    #23232b
  );
}

/* hover effect */
#features .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

/* bigger icons */
#features .card {
  font-size: 1.1rem;
}

/* heading spacing */
#features h2 {
  margin-bottom: 35px;
}


/* GRID CARDS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  padding: 25px;
  border-radius: 16px;
  text-align: center;
  margin: 10px;

  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.grid .card img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.grid .card h3,
.grid .card p,
.grid .card button {
  margin-top: 10px;
}


/* FORM */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: auto;
  max-width: 600px;
}

input, textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

button {
  padding: 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}


/* FOOTER */
footer {
  background: var(--card);
  padding: 50px 10%;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

footer a {
  text-decoration: none;
  color: var(--text);
  display: block;
  margin: 6px 0;
  opacity: .8;
}

.copyright {
  text-align: center;
  margin-top: 30px;
  opacity: .6;
}


/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
}

.hamburger:hover {
  color: var(--accent);
}


/* MOBILE MENU (GLASS SIDEBAR) */
@media (max-width: 768px) {

  .hamburger {
    display: block;
  }

  nav ul {
    position: fixed;
    top: 85px;
    right: -260px;
    width: 260px;
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 80px 20px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    transition: right .3s ease;
    z-index: 1002;
  }

  body.dark nav ul {
    background: rgba(15,15,18,0.55);
    border-left: 1px solid rgba(255,255,255,0.08);
  }

  nav ul.show {
    right: 0;
  }

  nav ul li a {
    font-size: 1rem;
  }
}
