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

html, body {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background-color: #111;  /* black background */
  color: #111;
  line-height: 1.6;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: #111;
  color: white;
}

.brand a{
  font-size: 1.5rem;
  font-weight: bold;
  color: whitesmoke;
  text-decoration: none;

}

nav a {
  color: #ccc;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  color: #fff;
}

/* Footer */
footer {
  background: #111;
  color: white;
  padding: 2rem 1rem;
  margin-top: auto;
}

.footer-content {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.95rem;
}

/* Hero Section (Home) */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.hero-text {
  max-width: 800px;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-text p {
  color: #ccc;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.badge {
  background: #333;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.cta {
  background: #007bff;
  color: white;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 1rem;
}

.hero-image {
  margin-top: 3rem;
  max-width: 600px;
}

.hero-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

/* About Page */
.about-card {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  margin: 4rem auto;
  max-width: 1000px;
  overflow: hidden;
}

.about-image {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-content {
  flex: 2;
  padding: 2rem;
  background: #fff;
  color: #111;
}

.about-content h2 {
  margin-bottom: 1rem;
}

.about-content p {
  margin-bottom: 1rem;
}

.about-content .tag {
  background: #e0e0e0;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin: 0 0.3rem;
}

blockquote {
  font-style: italic;
  margin-top: 1.5rem;
  color: #555;
  border-left: 4px solid #007bff;
  padding-left: 1rem;
}

/* Projects Section */
.projects-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.projects-section h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: whitesmoke;
}

.projects-section .year-range {
  font-size: 1rem;
  font-weight: 400;
  color: whitesmoke;
  margin-left: 1rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Project Card Styling */
.project-card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-5px);
}

/* Image Styling */
.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: block;
}

/* Headings and Meta Info */
.project-card h3 {
  margin-bottom: 0.3rem;
  color: #111;
}

.project-card .meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.project-card .meta span {
  color: #007bff;
}

/* Description Text */
.project-card p {
  font-size: 0.95rem;
  color: #333;
  flex-grow: 1;
}

/* Button Styling */
.project-card button {
  margin-top: 0.8rem;
  background: #007bff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  align-self: start;
}

.project-card button:hover {
  background: #0056b3;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  color: #111;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: #888;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    flex-direction: column;
  }

  .about-image, .about-content {
    max-width: 100%;
  }
}

/* ====== General Reset ====== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #111;
  color: #f1f1f1;
}

/* ====== Header and Navigation ====== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: #000;
  border-bottom: 1px solid #222;
}

.brand a {
  font-size: 1.5rem;
  font-weight: bold;
  color:whitesmoke;
  text-decoration: none;
}

nav a {
  margin-left: 1.5rem;
  color: #f1f1f1;
  text-decoration: none;
  font-size: 1rem;
}

nav a.active {
  font-weight: bold;
  color: whitesmoke;
}

nav a:hover {
  color:whitesmoke;
}

/* ====== Contact Section ====== */
.contact-section {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2rem;
  text-align: center;
}

.contact-section h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: whitesmoke;
}

.contact-intro {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 2rem;
}

/* ====== Contact Layout ====== */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
}

/* ====== Contact Form ====== */
.contact-form {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #222;
  color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-form button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

/* ====== Contact Info Box ====== */
.contact-info {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  text-align: left;
}

.contact-info h3 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.contact-info p {
  margin: 0.5rem 0;
  color: #ccc;
}

.contact-info strong {
  color: #fafcfc;
}

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  color: #e2e6e7;
  text-decoration: none;
  font-weight: 500;
}

.social-links a:hover {
  text-decoration: underline;
}
