* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
    color: #1f1f1f;
  }
  /*hero section  */
  .hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(to right, #ffffff, #e9ecef);
  }
  
  .hero-content {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .hero-text {
    flex: 1;
    animation: fadeIn 2s ease-out;
  }
  
  .hero-text h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
  }
  
  .highlight {
    color: #007bff;
  }
  
  .typewriter {
    font-size: 1.5rem;
    color: #333;
    border-right: 2px solid black;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 3s steps(30, end) forwards, blink 0.7s step-end infinite;
  }
  
  .hero-text p {
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
  }
  
  .buttons {
    display: flex;
    gap: 1rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  .btn:hover {
    background-color: #0056b3;
  }
  
  .btn.secondary {
    background-color: #6c757d;
  }
  
  .btn.secondary:hover {
    background-color: #5a6268;
  }
  
  .hero-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }
  
  @keyframes fadeIn {
    0% {opacity: 0; transform: translateY(20px);}
    100% {opacity: 1; transform: translateY(0);}
  }
  
  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }
  
  @keyframes blink {
    50% { border-color: transparent }
  }
  /* About Section */
  .about-section {
    padding: 4rem 2rem;
    background-color: #ffffff;
    color: #333;
  }
  
  .section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    animation: fadeIn 1s ease-in-out;
  }
  
  .container {
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
  }
  
  .about-text {
    flex: 2;
    font-size: 1.1rem;
    line-height: 1.7;
  }
  
  .about-highlights {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .highlight-card {
    background-color: #f1f3f5;
    padding: 1rem;
    border-left: 5px solid #007bff;
    border-radius: 6px;
    transition: transform 0.3s ease;
  }
  
  .highlight-card:hover {
    transform: translateY(-5px);
  }
  
  .highlight-card h3 {
    font-size: 1.8rem;
    color: #007bff;
  }
  
  .highlight-card p {
    font-size: 0.95rem;
    color: #555;
  }
  /* Skills Section */
  .skills-section {
    background-color: #f8f9fa;
    padding: 4rem 2rem;
  }
  
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .skill-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
  }
  
  .skill-card:hover {
    transform: translateY(-5px);
  }
  
  .skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #343a40;
  }
  
  .progress-bar {
    width: 100%;
    background-color: #e9ecef;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
  }
  
  .progress-bar span {
    display: block;
    height: 100%;
    background-color: #007bff;
    border-radius: 10px;
    transition: width 1s ease-in-out;
  }
  /* Projects Section */
  .projects-section {
    background-color: #ffffff;
    padding: 4rem 2rem;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .project-card {
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
  }
  
  .project-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
  
  .project-card img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    
  }
  .project-card:hover img {
  transform: scale(1.05);
}
  
  .project-content {
    padding: 1rem;
  }
  
  .project-content h3 {
    margin: 0.5rem 0;
    color: #343a40;
  }
  
  .project-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
  }
  
  .project-content a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
  }
  
  .project-content a:hover {
    text-decoration: underline;
  }
  .fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
  }


  /* Resume Section */
  .resume-section {
    background-color: #f1f3f5;
    padding: 4rem 2rem;
    text-align: center;
  }
  
  .resume-box {
    margin-top: 2rem;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    display: inline-block;
  }
  
  .resume-box p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #333;
  }
  
  .resume-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .btn-primary {
    background-color: #007bff;
    color: white;
  }
  
  .btn-primary:hover {
    background-color: #0056b3;
  }
  
  .btn-outline {
    border: 2px solid #007bff;
    color: #007bff;
    background-color: transparent;
  }
  
  .btn-outline:hover {
    background-color: #007bff;
    color: white;
  }
  /* Contact Section */
  .contact-section {
    background-color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
  }
  
  .contact-form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
  }
  
  .contact-form button {
    align-self: center;
  }
  
  .social-icons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1.5rem;
  }
  
  .social-icons a {
    color: #333;
    transition: color 0.3s ease;
  }
  
  .social-icons a:hover {
    color: #007bff;
  }
  /* NAVIGATION */
.navbar {
    background-color: #fff;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo a {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
  }
  
  .nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
  }
  
  .nav-links li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: #007bff;
    bottom: -4px;
    left: 0;
    transition: width 0.3s ease-in-out;
  }
  
  .nav-links li a:hover::after {
    width: 100%;
  }
  /* Hamburger default hidden (shown only in small screens) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: white;
    width: 100%;
    padding: 1rem 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }
}

  
  
  html {
    scroll-behavior: smooth;
  }
  /* ===== Footer Section ===== */
.footer {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
  }
  
  .footer-container {
    max-width: 960px;
    margin: auto;
  }
  
  .footer p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }
  
  .footer-socials a {
    margin: 0 10px;
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s ease-in-out;
  }
  
  .footer-socials a:hover {
    color: #007bff;
  }

  /* Default Light Mode (no need to change existing light styles) */

/* Dark Mode Styles */
/* body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
  }
  
  .dark-mode header,
  .dark-mode .hero-section,
  .dark-mode nav,
  .dark-mode section,
  .dark-mode footer {
    background-color: #1e1e1e;
    color: #e0e0e0;
  }
  
  .dark-mode a {
    color: #90caf9; /* lighter blue for links */
  /* }
  
  #darkModeToggle {
    padding: 10px 16px;
    border: none;
    background-color: #222;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
  }
  
  body.dark-mode #darkModeToggle {
    background-color: #e0e0e0;
    color: #000;
  }
   */ 

/* 🌙 Dark Mode Styles (Global) */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

/* Navbar */
body.dark-mode .navbar {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

/* Hero Section */
body.dark-mode .hero-section {
  background: linear-gradient(to right, #1c1c1c, #2a2a2a);
  color: #f0f0f0;
}

/* About / Skills / Projects / Resume / Contact */
body.dark-mode .about-section,
body.dark-mode .skills-section,
body.dark-mode .projects-section,
body.dark-mode .resume-section,
body.dark-mode .contact-section,
body.dark-mode footer {
  background-color: #181818;
  color: #f0f0f0;
}

/* Section Titles and Highlights */
body.dark-mode .section-title,
body.dark-mode .highlight {
  color: #90caf9;
}

/* Buttons */
body.dark-mode .btn {
  background-color: #333;
  color: white;
  border: 1px solid #555;
}

body.dark-mode .btn:hover {
  background-color: #444;
}

/* Form Inputs */
body.dark-mode input,
body.dark-mode textarea {
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid #555;
}

/* Social Icons */
body.dark-mode .social-icons a,
body.dark-mode .footer-socials a {
  color: #2161ed;
}

body.dark-mode .social-icons a:hover,
body.dark-mode .footer-socials a:hover {
  color: #007bff;
  text-shadow: 0 0 8px #007bff;
}


/* Nav Links */
body.dark-mode .nav-links a {
  color: #e0e0e0;
}

/* Mobile Nav Menu */
@media (max-width: 768px) {
  body.dark-mode .nav-links {
    background-color: #1e1e1e;
  }
}

* {
  transition: background-color 0.3s ease, color 0.3s ease;
}

#darkModeToggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
  padding: 0.25rem;
  transition: transform 0.3s ease;
}

#darkModeToggle:hover {
  transform: scale(1.2);
}

body.dark-mode .project-card {
  background-color: #1e1e1e;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

body.dark-mode .project-card:hover {
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

