
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}
.container, .content, .post-preview, header, nav, footer {
  max-width: 100%;
  box-sizing: border-box;
}
/* Hero Section */
.hero {
  height: 100vh;
  background: url('') no-repeat center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  animation: panBg 30s linear infinite alternate;
}

@keyframes panBg {
  from { background-position: center top; }
  to { background-position: center bottom; }
}




/* Dark overlay to improve text visibility */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

/* Hero text container */
.hero .overlay {
  position: relative;
  z-index: 2; /* put above overlay */
  color: white;
  padding: 20px;
  border-radius: 10px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero .btn {
  display: inline-block;
  background: gold;
  color: #333;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.hero .btn:hover {
  background: darkorange;
  color: white;
}

/* Header */
header {
  background: #444;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

header .logo {
  font-size: 20px;
  font-weight: bold;
}

header nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

header nav ul li {
  margin-left: 20px;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Banner */
.banner {
  text-align: center;
  padding: 50px 20px;
  background: #e0f7fa;
}

.banner h1 {
  margin: 0;
  font-size: 2.5rem;
}

.banner p {
  font-size: 1.2rem;
  color: #555;
}

/* Featured */
.featured {
  display: flex;
  flex-wrap: wrap;
  margin: 20px;
  background: white;
  border-radius: 5px;
  overflow: hidden;
}

.featured img {
  width: 100%;
  max-width: 500px;
}

.featured-text {
  padding: 20px;
  flex: 1;
}

.btn {
  display: inline-block;
  background: #444;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
}

.btn:hover {
  background: #333;
}

/* Latest Posts */
.latest {
  margin: 20px;
}
.btn {
  display: inline-block;
  background-color: #0066ff;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: scale(1.1);
  background-color: gold;
  color: #333;
}


.latest h2 {
  text-align: center;
}

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.posts article {
  background: white;
  padding: 15px;
  border-radius: 5px;
}

.posts img {
  width: 100%;
  border-radius: 5px;
}

/* Categories */
.categories {
  margin: 20px;
  background: white;
  padding: 15px;
  border-radius: 5px;
}

.categories ul {
  list-style: none;
  padding: 0;
}

.categories li {
  margin: 8px 0;
}

.categories a {
  text-decoration: none;
  color: #444;
}
.sidebar {
  display: flex;            /* puts items side by side */
  align-items: center;      /* centers the text vertically with the image */
  gap: 20px;                /* space between img and text */
}

.sidebar ul {
  list-style: none;         /* remove bullet points */
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin: 5px 0;
}

.sidebar a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
}

.sidebar a:hover {
  color: #0077ff;           /* hover effect */
}


/* Newsletter */
.newsletter {
  text-align: center;
  padding: 40px 20px;
  background: #e0f7fa;
  margin: 20px 0;
}

.newsletter input {
  padding: 10px;
  width: 250px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.newsletter button {
  padding: 10px 15px;
  border: none;
  background: #444;
  color: white;
  border-radius: 3px;
  cursor: pointer;
}

.newsletter button:hover {
  background: #333;
}

/* Footer */
footer {
  text-align: center;
  background: #444;
  color: white;
  padding: 15px 0;
}

footer a {
  color: #ccc;
  text-decoration: none;
}

footer a:hover {
  color: white;
}
.btn {
  display: inline-block;
  background-color: #0066ff;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #0044cc;
}
.logo img {
  width: 80px;
  height: auto;
  animation: spin 5s linear infinite;
} 

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero img {
  width: 80px;
  height: auto;
  animation: float 8s linear infinite, glow 3s ease-in-out infinite;
}
/*@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 10px gold); }
  50% { filter: drop-shadow(0 0 25px orange); }
}*/

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #fff;
  width: 0;
  animation: typing 3s steps(20, end) forwards, blink 0.7s infinite;
  color: white;
  font-size: 3rem;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  from, to { border-color: transparent; }
  50% { border-color: white; }
}


/* fallback for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .typewriter { animation: none; border-right: none; }
}




/* Post Page Styles */

/* Make the main content centered */
.post-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Post Title */
.post-page h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #333;
}

/* Post Date */
.post-page small {
  color: #777;
  font-size: 0.9rem;
}

/* Post Content */
.post-page p {
  line-height: 1.6;
  margin: 15px 0;
  color: #444;
}

/* Images inside post */
.post-page img {
  margin: 20px 0;
  border-radius: 8px;
  width: 100%;
  height: auto;
}

/* Back button (Read More style) */
.btn {
  display: inline-block;
  background-color: #0066ff;
  color: white;
  padding: 10px 20px;
  margin-top: 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #0044cc;
}
.logo img {
  width: 80px;
  height: auto;
  animation: spin 5s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.post-page {
  max-width: 800px;
  margin: auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
}

body {
  background: url('ChatGPT_Image_Sep_29__2025__11_49_25_AM-removebg-preview (5).png') no-repeat center center/cover;
}
.post-page article {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* === Blog Page Styling === */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.7;
}

/* Blog Container */
.blog-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}

/* Page Title */
.blog-container h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #222;
}

/* Blog Posts Grid */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

/* Single Post Card */
.post {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.post:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Post Image */
.post img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Post Content */
.post-content {
  padding: 20px;
}

.post-content h2 {
  font-size: 1.5rem;
  margin: 10px 0;
  color: #444;
}

.post-content p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.post-content small {
  display: block;
  margin-bottom: 8px;
  color: #999;
}

/* Read More Button */
.post-content .btn {
  display: inline-block;
  background: #0066ff;
  color: white;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background 0.3s;
}

.post-content .btn:hover {
  background: #0044cc;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-container h1 {
    font-size: 2rem;
  }

  .post-content h2 {
    font-size: 1.2rem;
  }
}
.post-preview {
  display: flex;
  align-items: center; /* vertically centers image & text */
  gap: 20px; /* spacing between image and text */
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

/* style for the text part */
.post-preview h2 {
  margin: 0;
  font-size: 1.5rem;
}

.post-preview p {
  margin: 5px 0;
}

.post-preview a {
  display: inline-block;
  margin-top: 5px;
  color: #0066ff;
  text-decoration: none;
  font-weight: bold;
}

.post-preview a:hover {
  text-decoration: underline;
}
/* Categories Page */
.categories-page {
  margin: 20px;
  text-align: center;
}

.categories-page h1 {
  margin-bottom: 30px;
  font-size: 2.2rem;
  color: #444;
}

.categories-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.category-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.category-card h2 a {
  color: #0066ff;
  text-decoration: none;
}

.category-card h2 a:hover {
  text-decoration: underline;
}
/* About Page */
.about-page {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 40px;
}

.about-content {
  flex: 1;
  max-width: 600px;
}

.about-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #444;
}

.about-content p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 350px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Contact Page */
.contact-page {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-page h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #444;
}

.contact-page p {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: #555;
}

form .form-group {
  margin-bottom: 20px;
}

form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

form textarea {
  resize: none;
}

form .btn {
  display: inline-block;
  background: #0066ff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

form .btn:hover {
  background: #0044cc;
}
.contact-info {
  text-align: center;
  padding: 40px 20px;
  background: #f9f9f9;
  border-radius: 12px;
  max-width: 600px;
  margin: 30px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info ul li {
  margin: 15px 0;
}

.contact-info ul li a {
  text-decoration: none;
  font-size: 1.2rem;
  color: #0077cc;
  transition: color 0.3s ease;
}

.contact-info ul li a:hover {
  color: #ff6600;
}




/* === Mobile Friendly Tweaks === */
@media (max-width: 768px) {
  /* Header nav becomes vertical */
  header {
    flex-direction: column;
    text-align: center;
  }

  header nav ul {
    flex-direction: column;
    margin-top: 10px;
  }

  header nav ul li {
    margin: 10px 0;
  }

  /* Post previews stack neatly */
  .posts {
    grid-template-columns: 1fr;
  }

  .post-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .post-preview img {
    max-width: 90%;
    height: auto;
    margin-bottom: 10px;
  }
}


/* Basic navbar style */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #333;
  padding: 10px 20px;
}

.navbar .logo {
  color: white;
  font-size: 20px;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  padding: 8px 12px;
  transition: 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: #555;
  border-radius: 5px;
}

/* Hide menu icon on desktop */
.menu-toggle {
  display: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: -200px;
    background: #333;
    flex-direction: column;
    width: 180px;
    padding: 20px;
    transition: right 0.3s ease;
  }

  .nav-links.show {
    right: 0;
  }

  .menu-toggle {
    display: block;
  }
}
/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  padding: 15px 20px;
  color: white;
}

.navbar .logo {
  font-size: 22px;
  font-weight: bold;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar .nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: 0.3s ease;
}

.navbar .nav-links li a:hover,
.navbar .nav-links li a.active {
  color: #00adb5;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Page Header */
.page-header {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(to right, #00adb5, #393e46);
  color: white;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 18px;
  opacity: 0.9;
}

/* Articles Section */
.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px 20px;
}

.articles article {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.articles h2 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #00adb5;
}

.articles p {
  font-size: 15px;
  margin-bottom: 15px;
}

.articles a {
  text-decoration: none;
  color: #fff;
  background: #00adb5;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.3s ease;
}

.articles a:hover {
  background: #007b83;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #222;
  color: white;
  margin-top: 40px;
}

/* Mobile Menu Fix */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
    font-size: 26px;
    cursor: pointer;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 15px;
    background: #222;
    position: absolute;
    top: 60px;
    right: 15px;
    width: 220px;
    padding: 15px;
    border-radius: 8px;
    z-index: 1000;
  }

  .nav-links.show {
    display: flex;
  }

  /* Fix article cards for small screens */
  .articles {
    grid-template-columns: 1fr; /* One column only */
    padding: 20px;
  }

  .articles article {
    padding: 15px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .page-header p {
    font-size: 16px;
  }
}
/* Sidebar base style */
.sidebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222831;
  color: white;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.sidebar .logo {
  font-size: 20px;
  font-weight: bold;
}

.sidebar .menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

.sidebar .nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
}

.sidebar .nav-links li a {
  text-decoration: none;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.3s;
}

.sidebar .nav-links li a:hover,
.sidebar .nav-links li a.active {
  background: #00adb5;
  color: white;
}

/* ====== Mobile (Sidebar Closed by Default) ====== */
@media (max-width: 768px) {
  .sidebar .menu-toggle {
    display: block;
  }

  .sidebar .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -100%;   /* hidden by default */
    width: 70%;    /* slide-in width */
    height: 100%;
    background: #222831;
    padding-top: 60px;
    transition: left 0.3s ease-in-out;
  }

  .sidebar .nav-links.show {
    left: 0;   /* slide in */
  }

  .sidebar .nav-links li {
    text-align: left;
    margin: 15px;
  }
}
/* Sidebar navigation */
.nav-links {
  position: fixed;
  top: 0;
  right: -250px; /* start hidden outside screen */
  height: 100%;
  width: 250px;
  background-color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 80px;
  transition: right 0.3s ease-in-out; /* smooth slide */
  z-index: 1000;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 15px 0;
  font-size: 18px;
  width: 100%;
  text-align: center;
  transition: background 0.3s;
}

.nav-links a:hover {
  background: #444;
}

/* Show sidebar when active */
.nav-links.show {
  right: 0;
}

/* Hamburger button */
.menu-toggle {
  position: fixed;
  top: 15px;
  left: 15px;
  background: #222;
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 1100;
  border-radius: 5px;
}
/* Sidebar default (hidden) */
.nav-links {
  display: none;
  flex-direction: column;
  background: #222;
  position: absolute;
  top: 60px;
  right: 10px;
  width: 200px;
  border-radius: 8px;
  padding: 10px;
}

/* When menu is open */
.nav-links.show {
  display: flex;
}
/* Make .logo the container for gradient */
.logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px; /* ensures some space for background to show */
  border-radius: 12px;
  overflow: hidden; /* keep gradient inside */
  min-height: 80px;
}
/* Page reset */
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: system-ui, Arial, sans-serif; background: #f4f5f7; }

    /* Header wrapper */
    header {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 16px;
      background: #fff;
      box-shadow: 0 2px 6px rgba(0,0,0,0.06);
      position: sticky;
      top: 0;
      z-index: 100;
    }

    /* Logo container */
    .logo {
      position: relative;        /* required for ::before positioning */
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 8px 14px;         /* visible area for the gradient */
      border-radius: 12px;
      overflow: hidden;
      z-index: 1;                /* establish stacking context */
      min-height: 56px;          /* ensure visible height */
      min-width: 120px;
      background: rgba(255,255,255,0.03); /* fallback */
    }

    /* Animated gradient behind the logo */
    .logo::before {
      content: "";
      position: absolute;
      inset: 0;                  /* cover full container */
      background: linear-gradient(270deg,
        #1e3c72 0%, #2a5298 25%,
        #00c6ff 50%, #7f00ff 75%, #ff6a00 100%);
      background-size: 400% 400%;
      filter: blur(10px);        /* soft glow */
      transform: scale(1.08);    /* slightly larger so edges don't show */
      z-index: -1;               /* behind the content */
      animation: gradientShift 8s ease infinite;
    }

    @keyframes gradientShift {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    /* Logo image */
    .logo img {
      width: 56px;
      height: 56px;
      object-fit: contain;
      display: block;
      border-radius: 8px;
      background: rgba(255,255,255,0.15);
      padding: 4px;
    }

    /* site title text next to logo */
    .site-title {
      color: #fff;
      font-weight: 700;
      font-size: 18px;
      text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    }

    /* hamburger */
    .menu-toggle {
      margin-left: auto;
      background: transparent;
      border: 0;
      font-size: 22px;
      cursor: pointer;
      padding: 8px;
    }

    /* nav (desktop default) */
    nav {
      display: flex;
      gap: 12px;
      align-items: center;
    }

    nav a { text-decoration:none; color:#333; padding:8px; border-radius:6px; }
    nav a:hover { background: #eee; }

    /* mobile behaviour - demo only */
    @media (max-width: 700px) {
      nav { display: none; } /* hide desktop links */
      .menu-toggle { display: block; }
      .mobile-nav {
        position: fixed;
        top: 0;
        left: -260px;               /* hidden by default */
        width: 250px;
        height: 100%;
        background: #111;
        color: #fff;
        padding-top: 70px;
        transition: left .28s ease;
        z-index: 200;
      }
      .mobile-nav.show { left: 0; } /* slide in */
      .mobile-nav a { display:block; padding:16px 20px; color:#fff; text-decoration:none; }
      .mobile-nav a:hover { background: rgba(255,255,255,0.04); }
    }
    /* Animated header background */
.animated-bg {
  position: relative;
  padding: 15px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Gradient animation layer */
.animated-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(270deg, #00f2fe, #4facfe, #00f2fe);
  background-size: 400% 400%;
  animation: gradientMove 8s ease infinite;
  z-index: 0; /* stays in the back */
  opacity: 0.8; /* makes it subtle */
  border-radius: 12px;
}

/* Keep actual content on top of the background */
.animated-bg > * {
  position: relative;
  z-index: 1;
}

/* Gradient animation keyframes */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/* Animated header background */
.animated-bg {
  position: relative;
  padding: 15px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.animated-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(270deg, #00f2fe, #4facfe, #00f2fe);
  background-size: 400% 400%;
  animation: gradientMove 8s ease infinite;
  z-index: 0;
  opacity: 0.85;
  border-radius: 12px;
}

.animated-bg > * {
  position: relative;
  z-index: 2; /* ensures logo, button, and nav are above the background */
}

/* Sidebar styles */
.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px; /* below header */
  right: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  padding: 15px;
}

.nav-links.show {
  display: flex;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  margin: 8px 0;
  font-weight: 500;
}

/* Hamburger button */
.menu-toggle {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3;
}

/* Desktop view - show nav inline */
@media (min-width: 768px) {
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .nav-links a {
    margin: 0 15px;
    color: white; /* looks nice on gradient */
  }

  .menu-toggle {
    display: none;
  }
}

/* Background animation */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Sidebar styles for mobile */
.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px; /* just below header */
  right: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  padding: 15px;
  width: 200px;          /* give enough width */
  max-height: 80vh;      /* prevent overflow */
  overflow-y: auto;      /* scroll if too many links */
  z-index: 1000;         /* make sure it stays above */
}

.nav-links.show {
  display: flex;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  margin: 10px 0;
  font-weight: 500;
  display: block; /* ensures links are full width */
}
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #0d1b2a;  /* Deep navy */
  color: white;
  position: relative;
}

.logo img {
  max-height: 60px;
}

/* Hamburger */
.menu-toggle {
  font-size: 26px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none; /* hidden on desktop */
}

/* Sidebar Navigation (Mobile) */
.nav-links {
  position: fixed;
  top: 0;
  right: -260px;   /* hidden off-screen */
  width: 260px;
  height: 100%;
  background: #1b263b;  /* dark blue */
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 80px 20px;
  transition: right 0.3s ease-in-out;
  box-shadow: -4px 0 12px rgba(0,0,0,0.4);
  z-index: 999;
}

.nav-links.show {
  right: 0; /* slide in */
}

.nav-links a {
  text-decoration: none;
  color: #e0e1dd;
  font-size: 18px;
  padding: 12px 0;
  width: 100%;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #00b4d8;
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
  .nav-links {
    position: static;
    height: auto;
    flex-direction: row;
    background: none;
    box-shadow: none;
    padding: 0;
    width: auto;
    display: flex;
    gap: 20px;
  }
  .nav-links a {
    color: white;
    font-size: 16px;
    padding: 0;
  }
}
  
/* Show Hamburger on Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}


.sidebar {
  background: #1e1e2f;  /* dark background so text shows */
  padding: 20px;
  min-height: 30vh;  /* full height */
}

.sidebar img {
  display: block;
  margin: 0 auto 20px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin: 15px 0;
}

.sidebar ul li a {
  text-decoration: none;
  font-size: 18px;
  color: #ffffff;   /* make text visible */
  font-weight: 500;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

.sidebar ul li a:hover {
  background: #0d6efd;  /* nice hover effect */
  color: #fff;
}
/* Fix hero section for all devices */
.hero {
  height: 100vh;
  background: url('ChatGPT_Image_Sep_29__2025__11_49_25_AM-removebg-preview (2).png') no-repeat center center;
  background-size: contain; /* changed from cover to contain */
  background-color: #fff; /* fallback color */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding: 20px;
}

/* Text adjustments */
.hero h1 {
  font-size: 3rem;
  color: #111;
  line-height: 1.2;
  word-wrap: break-word;
  max-width: 90%;
}

/* Smaller screens */
@media (max-width: 768px) {
  .hero {
    height: auto;
    background-size: contain;
    padding: 40px 10px;
  }

  .hero h1 {
    font-size: 2rem; /* smaller text */
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }
}
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  border: none;
  background: #444;
  color: white;
  border-radius: 5px;
  display: none;
  cursor: pointer;
  font-size: 18px;
}
#backToTop:hover {
  background: gold;
  color: #333;
}



