body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top left, #0a0a0a, #000);
  color: #fff;
  overflow-x: hidden;
}

header {
  background: rgba(0, 0, 0, 0.85);
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  z-index: 100;
}

.logo {
  color: #00ffc3;
  font-weight: 700;
  font-size: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #aaa;
  transition: color 0.3s;
}

nav a:hover, nav a.active {
  color: #00ffc3;
}

.btn {
  background: linear-gradient(90deg, #00ffc3, #0099ff);
  color: #000;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5% 10%;
}

.hero-text h1 {
  font-size: 3rem;
  margin: 0;
}

.hero-text h3 {
  color: #00ffc3;
  font-weight: 600;
}
.hero-img{
  height:50%;
width: 40%;
}

section {
  padding: 5% 10%;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.project-card {
  background: #111;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 255, 195, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(0, 255, 195, 0.3);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-card h3 {
  margin: 15px;
  color: #00ffc3;
}

.project-card p {
  margin: 0 15px 20px;
  color: #ccc;
}
/*main project*/
section img {
  width:100%;   /* Adjust width as needed */
  height: auto;   /* Keeps aspect ratio */
  border-radius: 8px; /* Optional: rounded corners */
  display: block;
  margin: 10px auto;  /* Centers the image */
}

/* ===== ANIMATION STYLES ===== */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-active {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 0 20px rgba(0, 255, 195, 0.3);
  transition: all 0.5s ease;
}

/* ===== BUTTON GLOW EFFECT ===== */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: var(--y, 0);
  left: var(--x, 0);
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0,255,195,0.6) 0%, transparent 70%);
  transition: width 0.3s ease, height 0.3s ease;
  border-radius: 50%;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* ===== TOGGLE SWITCH DESIGN ===== */
.switch {
  position: relative;
  display: inline-block;
  width: 55px;
  height: 28px;
  margin-left: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #333;
  border-radius: 34px;
  transition: background-color 0.4s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #00ffc3;
  border-radius: 50%;
  transition: transform 0.4s;
}

input:checked + .slider {
  background-color: #e2e2e2;
}

input:checked + .slider::before {
  transform: translateX(27px);
  background-color: #0099ff;
}

/* Default dark mode */
body {
  background-color: #121212;
  color: #ffffff;
  transition: background-color 0.3s, color 0.3s;
}

/* Light mode */
body.light-mode {
  background-color: #ffffff;
  color: #000000;
}
