/* Reset and base */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0f172a;
  color: #f1f5f9;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4 {
  margin: 0.5em 0;
}

.about-box {
  background-color: #1e293b;
  padding: 2rem;
  border-radius: 15px;
  margin: 4rem auto;
  max-width: 1000px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.about-heading {
  font-size: 2rem;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.about-heading i {
  color: #60a5fa;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e1;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #0f172a;
  border-bottom: 1px solid #334155;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links a {
  margin-left: 1.5rem;
  color: #94a3b8;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #22d3ee;
}

.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background: linear-gradient(to bottom, #0f172a, #1e293b);
  padding: 4rem 2rem;
  min-height: 85vh;
  gap: 2rem;
}



.h3contact {
  flex: 1;
  color: #22d3ee;
  font-size: 2rem;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  gap: 3rem;
  text-align: center;
}
.hero-photo {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-intro {
  flex: 1;
  color: #f1f5f9;
  text-align: left; /* ✅ Make text left-aligned */
}


.hero-photo img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.hero-intro h2,
.hero-intro h3,
.hero-intro h1,
.hero-intro p {
  margin: 0.5rem 0;
}

.hero-hello {
  font-size: 2rem;
  font-weight: 600;
}

.dot {
  color: #f87171;
}
.hero-name {
  font-size: 2rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;         /* Controls space between line and name */
  line-height: 1.3;
  margin: 0;            /* Remove any default left/right margin */
  padding: 0;           /* Ensure no extra padding */
}

.hero-name {
  font-size: 2rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  flex-wrap: wrap;           /* Allows wrapping on smaller screens */
  line-height: 1.4;
  max-width: 100%;
  
}

.red-line {
  display: inline-block;
  width: 50px;
  height: 2px;
  background-color: #f87171;
  margin-right: 0px;
}

.hero-role {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1 rem;
}


.hero-intro p {
  margin: 2rem 0 2rem;
  max-width: 500px;
  color: #cbd5e1;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 5px;
  border: 1px solid #f87171;
  background-color: transparent;
  color: #f87171;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  background-color: #f87171;
  color: #fff;
}

/* Sections */
.section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section.dark {
  background-color: #1e293b;
}

/* Project Cards */
.project-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.project-card {
  background-color: #334155;
  padding: 1.5rem;
  border-radius: 1rem;
  transition: box-shadow 0.3s;
}

.project-card:hover {
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}

/* Gallery */
.project-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.project-gallery img {
  width: 30%;
  min-width: 200px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  object-fit: cover;
}

.project-video {
  width: 50%;
  max-width: 500px;
  border-radius: 10px;
  display: block;
  margin: 0 auto 2rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.close-lightbox {
  color: white;
  font-size: 2rem;
  position: absolute;
  top: 20px;
  right: 40px;
  cursor: pointer;
}

.clickable-image {
  cursor: zoom-in;
}

/* Skills */
.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  color: #e2e8f0;
}

.skills-category {
  margin-bottom: 2.5rem;
}

.skills-category h4 {
  font-size: 1.2rem;
  color: #f1f5f9;
  margin-bottom: 1rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-grid li {
  color: #e2e8f0;
  font-size: 1rem;
  line-height: 1.6;
  white-space: nowrap;
}

/* Contact Section */
.center {
  text-align: center;
}

.contact-info {
  text-align: left;
  margin-top: 2rem;
  padding-left: 1rem;
}

.contact-info p {
  margin-top: 1rem;
  font-size: 1.3rem;
  color: #e2e8f0;
  font-weight: 500;
}

.contact-info a {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  text-decoration: underline;
  color: #22d3ee;
}

/* Social Icons */
.icon-button {
  background-color: rgba(100, 116, 139, 0.15);
  padding: 1rem;
  border-radius: 9999px;
  color: #38bdf8;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 10px;
}

.icon-button svg {
  transition: transform 0.3s ease;
}

.icon-button:hover svg {
  transform: scale(1.2);
}

.contact-icons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.5rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.875rem;
  color: #64748b;
  background-color: #0f172a;
  border-top: 1px solid #334155;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background-color: #1e293b;
  border-radius: 10px;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border-radius: 8px;
  border: none;
  background-color: #0f172a;
  color: #f1f5f9;
  font-size: 1rem;
  width: 100%;
}

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

.contact-form .btn {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.9rem;
  background-color: #f87171;
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  width: fit-content;
  align-self: center;
}

.contact-form .btn:hover,
.contact-form button:hover {
  background-color: #ef4444;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .hero-photo {
    justify-content: center;
    margin-top: 2rem;
  }

.hero-photo img {
  max-width: 100%;
  width: 250px;
  height: auto;
  border-radius: 50%;
}
.hero-name,
.hero-role {
  font-size: 1.5rem;
}

.hero {
  text-align: center;
}

.hero-intro {
  width: 100%;
}


  .hero-intro {
    text-align: center; /* ✅ Only on mobile */
  }

  .about-box,
  .section {
    padding: 2rem 1rem;
    margin-bottom: 3rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  margin-bottom: 6rem; /* ✅ Adds spacing below each section */
}

/* Specific extra space after about-box if needed */
.about-box {
  margin-bottom: 6rem; /* ✅ Ensures space before projects */
}

/* Space between contact info and form */
#contact .contact-info {
  margin-bottom: 2rem;
}

/* Gap between hero and next section */
.hero {
  margin-bottom: 4rem; /* ✅ Adds breathing room after hero section */
}
