/* === General Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #ffffff;
  color: #222222;
}

/* === Hamburger Toggle === */
/* ===== Hamburger (☰) ===== */
.hamburger {
  font-size: 30px;
  cursor: pointer;
  padding: 10px 20px;
  background-color: #00bcd4;
  color: white;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1001;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ===== Sidebar Design ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 240px;
  height: 100%;
  background-color: #00bcd4;
  color: white;
  padding: 25px 20px;
  transition: left 0.3s ease;
  z-index: 1000;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2);
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.sidebar.active {
  left: 0;
}

/* Sidebar Header */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header h2 {
  font-size: 22px;
  margin: 0;
}

#closeBtn {
  font-size: 28px;
  cursor: pointer;
  color: white;
  transition: transform 0.2s;
}

#closeBtn:hover {
  transform: rotate(90deg);
}

/* Sidebar Links */
.sidebar-links {
  list-style: none;
  margin-top: 30px;
  padding: 0;
}

.sidebar-links li {
  margin: 15px 0;
}

.sidebar-links a {
  display: block;
  padding: 10px 15px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.sidebar-links a:hover {
  background-color: #007c91;
  transform: translateX(5px);
}
/* Hide hamburger when sidebar is open */
.sidebar.active ~ .hamburger {
  display: none;
}

/* === Main Content === */
.main-content {
  margin-left: 0;
  padding: 100px 20px 20px 20px;
  transition: margin-left 0.3s;
}

.sidebar.active ~ .main-content {
  margin-left: 240px;
}

/* === Header Section === */
.header {
  text-align: center;
  padding: 20px;
  background: linear-gradient(to right, #ffffff 10%, #00bcd4 90%);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 50px;
}

.navbar .logo {
  font-size: 24px;
  font-weight: bold;
  color: #00bcd4;
}

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

.nav-links a {
  text-decoration: none;
  color: #222222;
  font-weight: bold;
}

.navbar .logo img {
  height: 70px;
  width: auto;
  border-radius: 50%;
}

/* === Hero Section === */
.hero {
  text-align: center;
  padding: 50px 20px;
}

.hero .profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);border: 5px solid white;
}

.hero h1 {
  font-size: 2rem;
  color: #00bcd4;
}

.hero span {
  color: #111111;
}

.hero p {
  font-size: 1.1rem;
  margin-top: 10px;
}

.btn {
  margin: 15px 10px 0;
  padding: 10px 20px;
  background-color: #00bcd4;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #007c91;
}

/* === About Section === */
.about {
  padding: 50px 20px;
  background-color: #f0faff;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  margin: 40px;
}

.about h2 {
  font-size: 2rem;
  color: #00bcd4;
  margin-bottom: 30px;
}

.about .img {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about .img img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.about .info {
  font-size: 16px;
  color: #222;
  text-align: center;
}

.about .info p {
  margin: 8px 0;
}

/* === Skills Section === */
.skills {
  padding: 50px;
  background: linear-gradient(to bottom, #f0faff, #e0f7fa);
}

.skills h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 20px;
  color: #00bcd4;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.skill {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill p {
  font-size: 18px;
  color: #222;
}

.progress-bar {
  flex: 1;
  margin-left: 20px;
  height: 10px;
  background: #ccc;
  border-radius: 5px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: #00bcd4;
  border-radius: 5px;
}

/* === Login Box === */
.login-box {
  max-width: 400px;
  margin: 50px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 10px;
  text-align: center;
  color: #222;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

.login-box h2 {
  margin-bottom: 20px;
  color: #00bcd4;
}

.login-form input {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.login-form button {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  background-color: #00bcd4;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.login-form button:hover {
  background-color: #007c91;
}

/* === Animation === */
.fade-in {
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Responsive Fixes === */
@media (max-width: 768px) {
  .sidebar.active ~ .main-content {
    margin-left: 0;
  }

  .project-list {
    flex-direction: column;
    align-items: center;
  }
}
/* Glowing Round Profile Image */
.profile-pic,
.about img,
.about .img img,
.hero img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 15px #00bcd4, 0 0 25px #00bcd4, 0 0 35px #00bcd4;
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
}
/* Rainbow Glowing Round Image */
.rainbow-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  animation: rainbowGlow 5s linear infinite;
  box-shadow: 0 0 20px #fff;
}

/* Rainbow Glow Animation */
@keyframes rainbowGlow {
  0%   { box-shadow: 0 0 15px #ff0000, 0 0 25px #ff0000; }   /* Red */
  20%  { box-shadow: 0 0 15px #ff8000, 0 0 25px #ff8000; }   /* Orange */
  40%  { box-shadow: 0 0 15px #ffff00, 0 0 25px #ffff00; }   /* Yellow */
  60%  { box-shadow: 0 0 15px #00ff00, 0 0 25px #00ff00; }   /* Green */
  80%  { box-shadow: 0 0 15px #0000ff, 0 0 25px #0000ff; }   /* Blue */
  100% { box-shadow: 0 0 15px #8a00ff, 0 0 25px #8a00ff; }   /* Purple */
}


.hamburger {
  font-size: 30px;
  padding: 10px 20px;
  background-color: #00bcd4;
  color: white;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1001;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 240px;
  height: 100%;
  background-color: #00bcd4;
  color: white;
  padding: 25px 20px;
  transition: left 0.3s ease;
  z-index: 1000;
  box-shadow: 4px 0 12px rgba(0,0,0,0.2);
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-links {
  list-style: none;
  margin-top: 30px;
  padding: 0;
}

.sidebar-links li {
  margin: 15px 0;
}

.sidebar-links a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}

.sidebar-links a:hover {
  background-color: #007c91;
  transform: translateX(5px);
}
.sidebar.active ~ .hamburger {
  display: none;
}
.rainbow-ring {
  width: 170px;
  height: 170px;
  padding: 8px;
  border-radius: 50%;
  background: conic-gradient(
    #ff0000, #ff8000, #ffff00, #00ff00,
    #0000ff, #8a00ff, #ff0000
  );
  animation: spin 4s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px auto;
}
.rainbow-ring img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 15px #00bcd4; }
  50% { box-shadow: 0 0 35px #00bcd4; }
}
.footer {
  background-color: #f9f9f9;
  padding: 20px;
  margin-top: 50px;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
  color: #555;
}

.footer-content {
  max-width: 960px;
  margin: auto;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  margin: 0 10px;
  color: #00bcd4;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}
/* 🔄 Page Loader Styling */
.page-loader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #00bcd4;
  border-top: 6px solid #007c91;
  border-radius: 50%;
  animation: spin 5s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
body.dark {
  background-color: #00ddff;
  color: #00a2ff;
}

body.dark .sidebar {
  background-color: #00e1ff;
}

body.dark .main-content,
body.dark .hero,
body.dark .about,
body.dark .skills,
body.dark .login-box,
body.dark .footer {
  background-color: #00f7ff;
  color: #f0f0f0;
}

body.dark .btn {
  background-color: #ffffff;
  color: #00bcd4;
  border: 1px solid #00bcd4;
}

body.dark .footer-links a {
  color: #4dd0e1;
}
/* Notes Preview */
.notes-preview {
  background: #ffffff;
  padding: 40px 20px;
  text-align: center;
}

.notes-preview ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.notes-preview li {
  font-size: 1rem;
  margin-bottom: 8px;
}

/* Contact Section */
.contact-section {
  padding: 60px 20px;
  background: #f0fcff;
  text-align: center;
}

.contact-section form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-section input,
.contact-section textarea {
  padding: 12px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1.5px solid #00bcd4;
}

.contact-section button {
  background: #00bcd4;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
}

.contact-section button:hover {
  background: #007c91;
}

/* Project Page */
.project-header {
  padding: 40px 20px;
  text-align: center;
  background: #e6faff;
}

.project-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 40px 20px;
}

.project-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  text-align: center;
}

.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

.project-card h3 {
  margin-bottom: 10px;
}

.actions a {
  display: inline-block;
  margin: 6px;
  padding: 8px 14px;
  background: #00bcd4;
  color: white;
  border-radius: 6px;
  font-size: 0.9rem;
}

.actions a:hover {
  background: #0097a7;
}
/* Hero Section */
  /* .hero {
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: left;
      padding: 50px;
      */
      /* background: White;
      color: white;
  } */

.hero-content {
    max-width: 50%;
}

.hero .highlight {
    color: #00ddff;
}

/* .hero img {
    width: 300px;
    height: auto;
    border-radius: 50%; 
    
    float: left;
    padding:15px; */
  /* } */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px; /* Space between text and image */
    padding: 50px;
}

.hero-text {
    flex: 1;
    text-align: center;
    font-size: 20px;
    /* color: #00bfff; */
    color:  #2575fc ;
    font-weight: bold;
}
.explore-btn {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.explore-btn:hover {
    background: linear-gradient(90deg, #2575fc, #6a11cb);
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

.explore-btn:active {
    transform: scale(0.95);
    box-shadow: none;
}
    :root{
      --bg:#ffffff;          /* simple background */
      --text:#111827;        /* near-black */
      --muted:#6b7280;       /* gray */
      --brand:#0ea5e9;       /* cyan/teal */
      --brand-dark:#0284c7;
      --ring: rgba(14,165,233,.35);
    }

    *{box-sizing:border-box}
    html,body{height:100%}
    body{
      margin:0;
      font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica,sans-serif;
      color:var(--text);
      background:var(--bg);
      line-height:1.5;
    }

    .container{
      max-width:1100px;
      margin:0 auto;
      padding:24px 20px;
    }

    /* --- HERO --- */
    .hero{
      padding:64px 0 40px;
      text-align:center;
      position:relative;
    }

    .hello{
      font-size:clamp(28px, 5vw, 56px);
      font-weight:700;
      margin:10px 0 8px;
    }
    .hello .hi{ color:var(--brand); }
    .sub{
      font-size:clamp(14px, 2.2vw, 18px);
      color:var(--muted);
      margin:0 auto 20px;
      max-width:720px;
    }

    /* optional profile image (rounded with glow).
       Replace src below or remove this whole block if not needed */
    .avatar-wrap{
      display:flex; justify-content:center; margin-bottom:18px;
    }
    .avatar{
      width:min(28vmin,150px); height:min(28vmin,150px);
      border-radius:999px; object-fit:cover;
      border:6px solid #fff; box-shadow:0 0 0 10px var(--ring);
    }

    .cta-row{
      display:flex; gap:14px; justify-content:center; flex-wrap:wrap;
    }
    .btn{
      appearance:none; border:0; cursor:pointer;
      padding:14px 22px; font-weight:700; border-radius:999px;
      transition:transform .08s ease, box-shadow .2s ease, background .2s ease;
      white-space:nowrap; font-size:16px;
    }
    .btn-primary{
      color:#fff; background:linear-gradient(90deg, var(--brand), var(--brand-dark));
      box-shadow:0 8px 20px rgba(2,132,199,.25);
    }
    .btn-primary:hover{ transform:translateY(-1px) }
    .btn-ghost{
      background:#f3f4f6; color:#111827;
    }
    .btn-ghost:hover{ background:#e5e7eb }
    /* divider ribbon */
    .ribbon{
      height:10px; border-radius:999px;
      background: linear-gradient(90deg, rgba(14,165,233,.2), rgba(14,165,233,.05), rgba(14,165,233,.2));
      margin:40px auto; max-width:1100px;
    }

    /* --- DOWN PART / PROMO SECTION --- */
    .promo{
      background:linear-gradient(180deg, #f7fbff, #eef7fd);
      padding:48px 16px 70px;
      text-align:center;
      border-top:1px solid #e5f2fb;
    }
    .promo .title{
      font-size:clamp(22px, 3.8vw, 36px);
      margin:0 0 10px; font-weight:700;
    }
    .promo .highlight{
      color:var(--brand); text-decoration:underline; text-underline-offset:6px;
      font-weight:800;
    }
    .promo .cta{ margin-top:18px }
    .small-note{ color:var(--muted); font-size:14px; margin-top:8px }

    .practice{
  padding:70px 20px;
  background:#fff;
  text-align:center;
}
.practice .title{
  font-size:28px;
  font-weight:700;
  margin-bottom:12px;
}
.practice .desc{
  color:#555;
  max-width:760px;
  margin:0 auto 40px;
  font-size:16px;
  line-height:1.6;
}
.cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:24px;
}
.card{
  background:#f9fafb;
  border-radius:12px;
  padding:18px;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  transition:transform .2s ease, box-shadow .2s ease;
}
.card:hover{
  transform:translateY(-5px);
  box-shadow:0 6px 18px rgba(0,0,0,0.12);
}
.card img{
  width:100%;
  border-radius:10px;
  margin-bottom:14px;
}
.card h3{
  font-size:18px;
  margin-bottom:8px;
}
.card p{
  font-size:14px;
  color:#666;
}
.card-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      max-width: 1100px;
      margin: auto;
    }

    .card {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

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

    .card img {
      width: 100%;
      height: 180px;
      object-fit: cover;
    }

    .card-content {
      padding: 20px;
    }

    .card-content h3 {
      font-size: 1.4rem;
      margin-bottom: 10px;
      color: #222;
    }

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

    .card-content a {
      display: inline-block;
      padding: 10px 16px;
      background: #007bff;
      color: #fff;
      text-decoration: none;
      border-radius: 6px;
      font-size: 0.9rem;
      transition: background 0.3s;
    }

    .card-content a:hover {
      background: #0056b3;
    }
    /* ===== Blog Page Styling ===== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fa;
  margin: 0;
  padding: 0;
  color: #333;
}

/* Blog Section */
.blog {
  max-width: 1100px;
  margin: auto;
  padding: 50px 20px;
}

.blog h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #004aad;
  position: relative;
}

.blog h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #ff6600;
  margin: 10px auto;
  border-radius: 5px;
}

/* Blog Container */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* Blog Post Card */
.blog-post {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.blog-post h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #222;
}

.blog-post p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

/* Read More Link */
.blog-post a {
  align-self: flex-start;
  text-decoration: none;
  background: #004aad;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  transition: background 0.3s ease;
  font-weight: 500;
}

.blog-post a:hover {
  background: #ff6600;
}

/* Responsive */
@media (max-width: 768px) {
  .blog h2 {
    font-size: 2rem;
  }
  .blog-post h3 {
    font-size: 1.2rem;
  }
}
/* Articles Button */
.articles-btn {
  display: inline-block;
  text-decoration: none;
  background: #004aad;   /* Blue base */
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 74, 173, 0.3);
  letter-spacing: 0.5px;
}

.articles-btn:hover {
  background: #ff6600;   /* Orange on hover */
  box-shadow: 0 6px 18px rgba(255, 102, 0, 0.4);
  transform: translateY(-3px);
}

.articles-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Circular Logo Image */
.logo {
  width: 60px;       /* Adjust size */
  height: 60px;
  border-radius: 50%; /* Makes it circular */
  object-fit: cover; /* Ensures image fits nicely */
  border: 3px solid #004aad; /* Optional border */
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Optional shadow */
}
.navbar {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}
/* Responsive Navbar */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* For now, hide links on mobile */
  }
}
.top-navbar{
background-color: white;
width: 100%;
}
/* === Reset margins to remove gaps === */
body, html {
  margin: 0;
  padding: 0;
}

/* === Full-width Navbar === */
.top-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
  background: linear-gradient(90deg, #00bcd4, #0284c7);
  color: white;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.top-navbar .nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid white;
}

.brand-name {
  font-size: 20px;
  font-weight: bold;
}
