/* ================= BRAND COLORS ================= */

:root {
  --primary: #38bdf8;
  --primary-dark: #0ea5e9;

  --bg: #020617;
  --bg-alt: #0f172a;

  --text: #ffffff;
  --muted: #94a3b8;
}

/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= BODY ================= */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #020617;
  color: #ffffff;
  line-height: 1.6;
}

/* ================= CONTAINER ================= */

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* ================= SECTIONS ================= */

.section {
  padding: 60px 0;
}

.section.dark {
  background: #020617;
}

.section.light {
  background: #0f172a;
}

/* ================= TYPOGRAPHY ================= */

h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

p {
  color: #ccc;
  font-size: 16px;
}

/* ================= GRID ================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* ================= CARDS ================= */

.card {
  background: #0f172a;
  padding: 20px;
  border-radius: 10px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* ================= HERO ================= */

.hero {
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 40px;
}

.hero p {
  margin: 20px 0;
}

/* ================= NAVBAR ================= */

.navbar {
  position: sticky;
  top: 0;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 40px;
}

/* NAV LINKS */

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-dark);
}

/* ================= BUTTONS ================= */

.btn {
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: 0.3s;
}

.btn-primary {
  background: var(--primary)
  color: #000;
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(56,189,248,0.5);
}


.btn-secondary {
  border: 1px solid var(--primary);
  color: var(--primary);
}


.btn-secondary:hover {
  background: var(--primary);
  color: #000;
}


/* ================= MOBILE ================= */

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
}

@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: #020617;
    width: 100%;
    flex-direction: column;
    display: none;
    padding: 20px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    margin: 10px 0;
  }
}

/* ================= HERO ENHANCED ================= */

.hero {
  padding: 120px 0;
  text-align: center;
  background: linear-gradient(to bottom, #020617, #020617);
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
}

.hero p {
  margin: 20px 0;
  color: #aaa;
}

/* HERO BUTTON SPACING */

.hero-buttons {
  margin-top: 20px;
}

.hero-buttons a {
  margin: 10px;
}

/* ================= SECTION SPACING ================= */

.section h2 {
  text-align: center;
  margin-bottom: 30px;
}

/* ================= CTA ================= */

.cta {
  text-align: center;
  background: #0f172a;
  padding: 60px 20px;
  border-radius: 12px;
}

.cta h2 {
  margin-bottom: 10px;
}

.cta p {
  margin-bottom: 20px;
}

/* ================= FOOTER ================= */

.footer {
  background: #020617;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer h3 {
  margin-bottom: 10px;
}

.footer p {
  color: #aaa;
}

.footer-links,
.footer-social {
  margin-top: 15px;
}

.footer-links a,
.footer-social a {
  display: inline-block;
  margin-right: 15px;
  text-decoration: none;
  color: #ccc;
  font-size: 14px;
}

.footer-links a:hover,
.footer-social a:hover {
  color: #22c55e;
}

.footer-copy {
  margin-top: 20px;
  font-size: 14px;
  color: #666;
}

/* ================= BLOG ================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.blog-card {
  background: #0f172a;
  padding: 15px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  transition: 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.blog-card p {
  font-size: 14px;
  color: #aaa;
}

/* ================= IMAGE SYSTEM ================= */

img {
  max-width: 100%;
  display: block;
}

/* ================= CARD ALIGNMENT ================= */

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ================= SMALL POLISH ================= */

a {
  transition: 0.3s;
}

a:hover {
  opacity: 0.8;
}

/* ================= FINAL TOUCH ================= */

.section p {
  max-width: 600px;
  margin: auto;
}

.logo img {
  height: 40px;
}

/* HERO BACKGROUNDS */

.hero-home {
  background: url("../assets/images/hero.jpg") center/cover no-repeat;
}

.hero-about {
  background: url("../assets/images/about.jpg") center/cover no-repeat;
}

.hero-services {
  background: url("../assets/images/services.jpg") center/cover no-repeat;
}

.hero-blog {
  background: url("../assets/images/blog.jpg") center/cover no-repeat;
}

.hero-contact {
  background: url("../assets/images/contact.jpg") center/cover no-repeat;
}

/* ================= CONTACT FORM ================= */

.contact-form {
  max-width: 500px;
  margin: 30px auto;
  text-align: left;
}

.form-group {
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #fff;
  font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-block {
  width: 100%;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 280px;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.hero {
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.section {
  padding: 60px 20px;
}

.section h2 {
  margin-bottom: 20px;
}

.section p {
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  transition: 0.3s;
}

.btn-primary {
  background: #22c55e;
  color: #000;
}

.btn:hover {
  opacity: 0.85;
}
