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

/* Global Styles */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f5f5f5;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
html {
  scroll-behavior: smooth;
}

/* Header */
header {
  background-color: #222;
  color: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
}

header h1 {
  margin-bottom: 10px;

}
/* Basic Navbar Styling */
nav {
 align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  transition: all 0.3s ease-in-out;
}

.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 1rem 0;
  }

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

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.3s;
  background-color: #333;
}

nav ul li a:hover {
  background-color: #555;
  border: 2px solid #ffffff;
  color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  font-weight: bold;
}
a, button {
  transition: all 0.3s ease-in-out;
}


/* Sections */
section {
  display : block;
  padding: 60px 30px;
  background: #fff;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.project-card {
  background: #fff;
  border: 1px solid #e2dfdf;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
/* Project Card */
.profile-card {
  display: inline-block;
  background: #fff;
  border: 1px solid #e2dfdf;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.github-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

/* Footer */
footer {
  background-color: #111; /* or your color */
  color: #fff;
  padding: 20px 0;
  text-align: center;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  border-radius: 15px;

}
/* Responsive Design */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
  .profile-card {
    margin : 20px 0;
  }
}
html, body {
  overflow-x: hidden;
}
.contact-wrapper {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 2rem;
}

.profile-card {
  flex: 1 1 250px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.contact-form {
  flex: 1 1 400px;
  background: #fafafa;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form h3 {
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.contact-form button {
  background-color: #222;
  color: #fff;
  padding: 0.8rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #444;
}

/* ===== Dark Mode ===== */
/* ===== Dark Mode Improvements ===== */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

.dark-mode header {
  background-color: #1a1a1a;
  border-bottom: 1px solid #333;
}

.dark-mode nav ul li a {
  background-color: #2d2d2d;
  color: #f0f0f0;
}

.dark-mode nav ul li a:hover {
  background-color: #444;
  border-color: #90caf9;
}

.dark-mode section {
  background-color: #1e1e1e;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
}

.dark-mode .project-grid {
  background-color: #252525;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dark-mode .project-card,
.dark-mode .profile-card {
  background-color: #2d2d2d;
  border-color: #444;
  color: #e0e0e0;
}

.dark-mode .project-card:hover,
.dark-mode .profile-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode footer {
  background-color: #1a1a1a;
  border-top: 1px solid #333;
}

.dark-mode .contact-form {
  background-color: #252525;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dark-mode .contact-form input,
.dark-mode .contact-form textarea {
  background-color: #333;
  border-color: #444;
  color: #f0f0f0;
}

.dark-mode .contact-form button {
  background-color: #333;
}

.dark-mode .contact-form button:hover {
  background-color: #444;
}

.dark-mode-btn {
  background-color: #333;
  color: white;
  transition: all 0.3s ease;
}
.dark-mode-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 8px 12px;
  background: #333;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  z-index: 999;
}
.dark-mode [data-aos] {
  /* Optional boost for visibility */
  filter: brightness(1.1) contrast(1.1);
}
body{
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  cursor: default;
}
#form-message {
  transition: all 0.3s ease-in-out;
}
#backToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  font-size: 18px;
  background-color: #007bff;
  color: white;
  border: none;
  outline: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  transition: opacity 0.3s ease-in-out;
}

#backToTopBtn:hover {
  background-color: #0056b3;
}
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0px);
}
.cursor {
  
  width: 2px;
  animation: blink 0.7s infinite;
  margin-left: 2px;
  color: green;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

/* Preloader styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff; /* Change to dark if your theme is dark */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
/* Preloader for dark theme */
.dark-mode #preloader {
  background-color: #121212; /* Dark background for dark mode */
}
#preloader .spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #999;
  border-top: 5px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.footer {
  background-color: #f8f8f8;
  color: #333;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  margin-top: 20px;
}
.footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer .social-icons a {
  font-size: 1.5rem;
  color: #333;
  transition: color 0.3s ease;
}

.footer .social-icons a:hover {
  color: #007bff;
}

