/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Segoe UI", sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
    scroll-behavior: smooth;
  }
  
  /* Header Section */
  .main-header {
    background-image: url('images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 1rem;
    text-align: center;
    animation: fadeIn 1s ease-in;
  }
  
  .profile-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2c3e50;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
  }
  
  .profile-image img:hover {
    transform: scale(1.05);
  }
  
  .intro h1 {
    font-size: 2.5rem;
    color: #38bdf8;
  }
  
  .intro h2 {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-top: 0.5rem;
  }
  
  .intro p {
    max-width: 600px;
    margin: 1rem auto;
  }
  
  .btn {
    display: inline-block;
    background-color: #38bdf8;
    color: #0f172a;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
  }
  
  .btn:hover {
    background-color: #0ea5e9;
  }
  
  /* Navigation */
  nav {
    background-color: #1e293b;
    padding: 1rem 0;
    text-align: center;
/* Add these new properties to make it sticky */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }
  
  nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
  
  nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: color 0.3s;
  }
  
  nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -5px;
    background: #38bdf8;
    transition: width 0.3s;
  }
  
  nav a:hover::after {
    width: 100%;
  }
  
  nav a:hover {
    color: #38bdf8;
  }
  
  /* Sections */
  .section {
    padding: 4rem 1rem;
    text-align: center;
    animation: fadeUp 1s ease-out;
  }
  
  .section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #38bdf8;
  }
  
  .section p,
  .section ul,
  .section li {
    max-width: 800px;
    margin: auto;
    font-size: 1rem;
  }
  
  .section ul {
    padding-left: 0;
    list-style-type: none;
  }
  
  .section li {
    padding: 0.3rem 0;
  }
  
  /* Skills Section with Icons (optional background) */
  .skills {
    background-image: url('images/skills-bg.jpg');
    background-size: cover;
    background-position: center;
  }
  
  /* Projects */
  .projects {
    background-color: #1e293b;
  }
  
  /* Certifications */
  .certifications {
    background-image: url('images/cert-bg.jpg');
    background-size: cover;
    background-position: center;
  }
  
  .cert-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .cert-grid img {
    width: 300px;
    max-width: 90%;
    height: auto;
    border-radius: 12px;
    border: 2px solid #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
    transition: transform 0.3s ease;
  }
  
  .cert-grid img:hover {
    transform: scale(1.05);
  }
  
  /* Testimonials */
  .testimonial {
    background-color: #1e293b;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem;
    max-width: 350px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
  }
  
  .testimonial p {
    font-style: italic;
    margin-bottom: 0.5rem;
  }
  
  /* Contact */
  form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: auto;
    gap: 1rem;
  }
  
  input, textarea {
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background-color: #334155;
    color: #e2e8f0;
  }
  
  button {
    background-color: #38bdf8;
    color: #0f172a;
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  button:hover {
    background-color: #0ea5e9;
  }
  
  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Media Queries */
  @media (max-width: 768px) {
    nav ul {
      flex-direction: column;
    }
  
    .profile-image img {
      width: 140px;
      height: 140px;
    }
  
    .cert-grid {
      flex-direction: column;
      align-items: center;
    }
  
    .testimonial {
      width: 90%;
    }
  }

  /* Existing styles remain unchanged... Add the following at the end of styles.css */

/* Smooth Scroll (already set globally but reinforcing) */
html {
    scroll-behavior: smooth;
  }
  
  /* Back to Top Button */
  #backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #38bdf8;
    color: #0f172a;
    padding: 0.7rem 1rem;
    border-radius: 50px;
    font-size: 1.2rem;
    display: none;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.3s;
  }
  
  #backToTop:hover {
    background-color: #0ea5e9;
    transform: translateY(-3px);
  }
  
  /* Dark/Light Toggle Button */
  #themeToggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #38bdf8;
    color: #0f172a;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 999;
    transition: background-color 0.3s ease;
  }
  
  #themeToggle:hover {
    background-color: #0ea5e9;
  }
  
  /* Light Theme Styles (Overrides) */
  body.light-mode {
    background-color: #f8fafc;
    color: #1e293b;
  }
  
  body.light-mode nav {
    background-color: #e2e8f0;
  }
  
  body.light-mode .main-header {
    background-color: #e0f2fe;
  }
  
  body.light-mode input,
  body.light-mode textarea {
    background-color: #e2e8f0;
    color: #1e293b;
  }
  
  body.light-mode .btn,
  body.light-mode button,
  body.light-mode #backToTop,
  body.light-mode #themeToggle {
    color: white;
    background-color: #0f172a;
  }
  
  body.light-mode nav a {
    color: #0f172a;
  }
  
  body.light-mode nav a:hover {
    color: #1e40af;
  }

  .email-contact {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .email-btn {
    display: inline-block;
    background-color: #38bdf8;
    color: #0f172a;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 1rem;
  }
  
  .email-btn:hover {
    background-color: #0ea5e9;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  body.light-mode .email-btn {
    background-color: #0f172a;
    color: white;
  }
  
  body.light-mode .email-btn:hover {
    background-color: #1e293b;
  }

  .skills h3 {
    margin-top: 1.5rem;
    font-size: 1.3rem;
    color: #38bdf8;
    border-left: 4px solid #0ea5e9;
    padding-left: 10px;
  }
  .skills ul {
    list-style-type: square;
    padding-left: 2rem;
    margin-bottom: 1rem;
  }

  .project-item {
    margin-bottom: 2.5rem;
  }
  .project-item h3 {
    color: #0ea5e9;
    font-size: 1.4rem;
  }
  .project-item ul {
    padding-left: 1.5rem;
    list-style-type: disc;
  }
  