/* Reset & Fonts */
* {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
  background: #f5f7fb;
  color: #222;
  line-height: 1.6;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #4e73df, #1cc88a);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Sections */
.section {
  padding: 4rem 2rem;
  text-align: center;
}
.section.alt {
  background: #f0f2f8;
}
.section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}
.project-card {
  background-color: #ffffff;       /* white card */
  color: #222222;                  /* dark text for readability */
  border: 1px solid #ddd;          /* subtle border */
  border-radius: 8px;              /* rounded corners */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* soft shadow */
  padding: 16px;
  margin: 12px;
  transition: all 0.3s ease;
}

.project-card:hover {
  background-color: #f5f5f5;       /* light gray hover, less harsh than full dark */
  transform: translateY(-5px);     /* subtle lift */
  box-shadow: 0 6px 12px rgba(0,0,0,0.15); /* slightly stronger shadow */
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.project-card p {
  color: #222222;
  transition: color 0.3s ease, filter 0.3s ease;
}

.project-card:hover p {
  color: #111111; /* stays readable, slight darkening on hover */
  filter: none;   /* remove any blur */
}
.project-card img, .project-card video {
  width: 100%;
  border-radius: 10px;
  margin: 10px 0;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 1rem;
  resize: none;
  transition: 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #4e73df;
  box-shadow: 0 0 8px rgba(78, 115, 223, 0.2);
}
.contact-form button {
  background: linear-gradient(135deg, #4e73df, #1cc88a);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}
.contact-form button:hover {
  opacity: 0.9;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #222;
  color: #eee;
  font-size: 0.9rem;
}

/* Dark Mode Base */
body.dark-mode {
  background: #121212;
  color: #eee;
}
body.dark-mode .hero {
  background: linear-gradient(135deg, #2d3748, #1a202c);
}
/* Dark Mode Project Card */
body.dark-mode .project-card {
  background: #2c2c2c; /* dark gray instead of black/white */
  color: #e0e0e0; /* text default color */
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

/* Project Title */
body.dark-mode .project-card h3 {
  color: #4fd1c5; /* keep your turquoise/teal title */
}

/* Description text */
body.dark-mode .project-card p {
  color: #cccccc; /* light gray for readability */
  text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* subtle shadow for better contrast */
  transition: color 0.3s; /* smooth hover */
}

/* Hover effect for project card */
body.dark-mode .project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.3);
}

/* Keep description readable on hover */
body.dark-mode .project-card:hover p {
  color: #ffffff;
  filter: none; /* remove blur if any */
}
body.dark-mode .section.alt {
  background: #181818;
}
body.dark-mode footer {
  background: #111;
  color: #aaa;
}
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background: #222;
  color: #eee;
  border: 1px solid #333;
}
body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus {
  border-color: #4fd1c5;
  box-shadow: 0 0 8px rgba(79, 209, 197, 0.2);
}

#darkModeToggle {
  margin-top: 1.5rem;
  background: rgba(255,255,255,0.2);
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}
#darkModeToggle:hover {
  background: rgba(255,255,255,0.35);
}
