/* Reset / base styles */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Header */

.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: transparent;
  transition: background-color 0.3s, box-shadow 0.3s;
  z-index: 1000;
  padding: 1rem 0;
}

.site-header.scrolled {
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #222;
  display: inline-block;
}

.site-nav {
  float: right;
}

.site-nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 600;
  color: #555;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: #000;
}

/* Hero section */

.hero-section {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #6c63ff 0%, #3f56ff 100%);
  color: #fff;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap-reverse;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  margin: 1rem;
}

.hero-text h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: #fff;
  background-color: #c642ff;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #c642ff;
}

.hero-image {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 4px solid #fff;
}

.hero1-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 4px solid #000000;
}

/* Sections */

.section-light {
  background-color: #fff;
  color: #333;
}

.section-dark {
  background-color: #f4f4ff;
  color: #333;
}

.about-section h3,
.projects-section h3,
.contact-section h3 {
  scroll-margin-top: 70px; /* header height + some buffer */
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Projects grid */

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

.project-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card img {
  width: 100%;
  display: block;
}

.project-card h4 {
  font-size: 1.25rem;
  margin: 1rem;
}

.project-card p {
  font-size: 1rem;
  margin: 0 1rem 1rem;
}

.project-card .btn-sm {
  display: inline-block;
  margin: 0 1rem 1rem;
  padding: 0.5rem 1rem;
  background-color: #6c63ff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.project-card .btn-sm:hover {
  background-color: #574fd6;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Contact section */

.contact-links {
  list-style: none;
  text-align: center;
  margin-top: 1rem;
}

.contact-links li {
  margin: 0.5rem 0;
}

.contact-links a {
  color: #6c63ff;
  text-decoration: none;
  font-weight: 600;
}

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

/* Footer */

.site-footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 2rem 0;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive tweaks */

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .site-nav {
    display: none;
  }

  /* optionally add a hamburger menu if needed */
}


.profile-photo {
    display: block;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    margin: 0 auto;
}

.Solar-photo {
    display: block;
    max-width: 750px;
    height: auto;
    border-radius: 10px;
    margin: 0 auto;
}

.YD-photo {
    display: block;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    margin: 0 auto;
}

.YD-photo1 {
    display: block;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    margin: 0 auto;
}

.YD-photo2 {
    display: block;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    margin: 0 auto;
}

.YD-photo3 {
    display: block;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    margin: 0 auto;
}

.IM-photo {
    display: block;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    margin: 0 auto;
}

.SD25-photo {
    display: block;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    margin: 0 auto;
}

main p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
}
