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

body {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  color: white;
  opacity: 0;
  transition: opacity 1s ease-in-out; /* adjust duration */
}

body.loaded {
  opacity: 1;
}

body,
html {
  margin: 0;
  padding: 0;
  background-color: #1e2235;
  scroll-behavior: smooth;
}
/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left, menu right */
  padding: 15px 30px;
  background: #2d3150;
  z-index: 10;
  flex-wrap: nowrap; /* prevents wrapping */
}

.navbar.scrolled {
  background: rgba(44, 49, 69, 1); /* dark background when scrolled */
}

/* Fullscreen nav overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(44, 49, 69, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.nav-overlay a {
  color: white;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 3px;
  transition: color 0.7s ease;
}

.nav-overlay a:hover {
  color: #64dbff;
}

/* Show overlay when active */
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

.cnt {
  font-size: 13px;
  letter-spacing: 3px;
  background-color: white;
  color: #2c3145;
  padding: 15px 60px;
  margin-right: 10px;
  font-weight: bold;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cnt:hover {
  background-color: #96d9ee;
}

.logo {
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: bold;
  color: #2c3145;
  white-space: nowrap; /* keeps the text in one line */
}

.logo-wrap {
  display: flex;
  flex-direction: row; /* logo + subtitle side by side (default) */
  align-items: center;
  gap: 10px;
}

.subtitle {
  font-size: 13px;
  letter-spacing: 3px;
  color: #fff;
  white-space: wrap;
}

.bkgrnd {
  font-size: 13px;
  letter-spacing: 3px;
  background-color: white; /* white box */
  color: #2c3145; /* dark text */
  padding: 5px 10px;
  margin-right: 10px;
  font-weight: bold;
}

.menu {
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 3px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Hero Section */
.hero {
  height: 75vh;
  background: url("NY1.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero p {
  margin-bottom: 15px;
}
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.hero .btn {
  margin-top: 5px;
  letter-spacing: 3px;
  padding: 8px 16px;
  border: 2px solid white;
  text-decoration: none;
  color: white;
  transition: 0.3s;
}
.hero .btn:hover {
  background: white;
  color: black;
}

.fancy-underline {
  border-bottom: 2px solid white;
  display: inline-block; /* so the underline fits the text */
  padding-bottom: 2px; /* little spacing */
}
.intro {
  display: flex; /* puts items side by side */
  align-items: center; /* vertically align them */
  gap: 20px; /* space between text and button */
  justify-content: flex-left; /* center everything horizontally */
}

.intro p {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 3px;
}

/* About & Projects */
.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.projects {
  min-height: 300px;
  padding: 50px;
}

.about, .projects {
  height: 40vh;   /* exactly same height */
  min-height: 300px; /* optional: ensure readable on small screens */
}

.about, .projects {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center text */
  align-items: center;     /* horizontally center text */
  text-align: center;
}

.about {
  position: relative;
  background: url("me1.jpeg") center/cover no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  color: white;
  font-size: 24px;
  text-align: center;
  padding: 50px;
  overflow: hidden;
  height: 40vh;
}

/*OVERLAY for about me*/
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(109, 180, 204, 0.8); /* overlay color with opacity */
  transition: opacity 0.4s ease;
}

.about a {
  position: relative;
  z-index: 1;
  border-bottom: 2px solid white; /* underline effect */
  padding-bottom: 5px;
  text-decoration: none;
  color: white;
  font-size: 24px;
}

/* hover effect - remove overlay */
.about:hover::before {
  opacity: 0;
}

/*OVERLAY for projects*/
.projects {
  position: relative; /* important so overlay stays inside */
  background: url("PYCODE1.jpg") center/cover no-repeat;
  display: flex;
  flex-direction: column; /* so heading + paragraph stack */
  align-items: flex-start;
  justify-content: center;
  color: white;
  font-size: 24px;
  text-align: left;
  height: 40vh;
  padding: 50px;
  overflow: hidden;
}

/* overlay */
.projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(124, 115, 172, 0.85); /* pick your overlay color */
  transition: opacity 0.4s ease;
  z-index: 0;
}

/* keep text above overlay */
.projects a {
  position: relative;
  z-index: 1;
  border-bottom: 2px solid white; /* underline effect */
  padding-bottom: 5px;
  font-size: 24px;
  text-decoration: none;
  color: white;
}
.projects p {
  text-align: left;
  z-index: 1;
  padding-top: 10px;
  font-size: 13px;
  letter-spacing: 3px;
}

/* hover effect */
.projects:hover::before {
  opacity: 0;
}

/*rgba(39, 62, 240, 0.8);*/
.resume {
  position: relative;
  height: 40vh;
  background: url("linkpage1.png") center/cover no-repeat;
  display: flex;
  flex-direction: column; /* so heading + paragraph stack */
  align-items: flex-start;
  justify-content: center;
  color: white;
  font-size: 24px;
  text-align: center;
  min-height: 300px;
  padding: 50px;
  overflow: hidden;
}

/* overlay */
.resume::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(226, 148, 135, 0.85); /* pick your overlay color */
  transition: opacity 0.4s ease;
  z-index: 0;
}

/* keep text above overlay */
.resume a {
  position: relative;
  z-index: 1;
  border-bottom: 2px solid white; /* underline effect */
  padding-bottom: 5px;
  color: white;
  text-decoration: none;
  font-size: 24px;
}
.resume p {
  position: relative;
  z-index: 1;
  padding-top: 10px;
  font-size: 13px;
  letter-spacing: 3px;
}

/* hover effect */
.resume:hover::before {
  opacity: 0;
}

.current-work {
  background-color: #2c3145; /* dark background */
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.current-work h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  border-bottom: 2px solid #fff;
  display: inline-block;
  padding-bottom: 10px;
  letter-spacing: 1px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* default: 3 equal columns */
  gap: 40px;
  text-align: left;
  max-width: 1650px; /* keeps content from stretching too wide */
  margin: 0 auto; /* centers it horizontally */
  padding: 0 20px; /* safe padding on smaller screens */
}

.work-item {
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: left;
}

.work-img {
  width: 100%;
  height: 400px; /* try 300px if you want bigger */
  margin-bottom: 20px;
}

.work-item h3 {
  margin-bottom: 15px;
  font-size: 1.6rem; /* bigger heading */
  color: #fff;
  text-align: left;
}

.work-item p {
  font-size: 1.2rem; /* increase text size */
  line-height: 1.9;
  color: #d1d5db;
  text-align: left;
}

.contact-wrapper {
  max-width: 1750px; /* control width */
  margin: 0 auto; /* center horizontally */
  padding: 40px 20px; /* some space inside */
  background: #1e2235;
  border-bottom: 1px solid #444;
}
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two columns */
  gap: 40px;
  background-color: #1e2235;
  padding: 40px;
}

/* Form styling */

/* Row for Name + Email */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal columns */
  gap: 20px; /* space between them */
  margin-bottom: 20px;
}

/* Make sure inputs take full width inside their column */

.input-group textarea {
  min-height: 340px; /* increase height */
  resize: vertical; /* optional: allow user to resize */
}

.input-group input {
  min-height: 60px;
}
.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px;
  border: none;
  background: #2d3150;
  color: #fff;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
  letter-spacing: 1px;
  color: #ccc;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none; /* remove default white outline */
  border: 2px solid #90e4fd; /* blue border (Tailwind’s blue-500) */
}
.contact-section {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #1e2235; /* Dark navy background */
}

.contact-form {
  padding-right: 30px;
  border-right: 1px solid #444; /* thin line */
}
.contact-form label {
  display: block;
  margin-bottom: 13px; /* adds space below label */
  font-size: 14px;
  letter-spacing: 3px;
  font-weight: bold;
}

.contact-form input {
  padding-top: 10px;
  padding-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: none;
  background: #2c3145;
  color: #fff;
  width: 100%; /* take up full width of column */
  padding: 16px 14px; /* more inner space = bigger field */
  font-size: 16px; /* larger text */
  border: none;
  background: #2d3150;
  color: #fff;
  box-sizing: border-box; /* keeps padding inside the width */
}

.send-btn:hover {
  background-color: #90e4fd;
  color: #1e2235;
}

.send-btn {
  background-color: #fff;
  color: #1e2235;
  padding: 15px 20px;
  margin-right: 10px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 3px;
}

.clear-btn {
  margin-top: 5px;
  font-size: 14px;
  letter-spacing: 3px;
  letter-spacing: 3px;
  padding: 12px 16px;
  border: 2px solid #fff;
  background-color: inherit;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
}

.clear-btn:hover {
  color: #90e4fd;
  border: 2px solid #90e4fd;
}

/* Contact info styling */
.contact-info h3,
.contact-info p {
  margin: 2px;
  color: #fff;
}
.contact-info h3 {
  margin-top: 0;
  font-size: 30px;
  margin-bottom: 20px;
}

.contact-info .info-item {
  padding: 15px 0;
  border-bottom: 1px solid #444; /* thin line */
  margin: 30px;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #444;
}

.info-item a {
  color: #fff;
  text-decoration: none;
  border-bottom: 2px dotted;
  letter-spacing: 1px;
  margin-bottom: 15px;
  font-size: 20px;
}

.info-item a:hover {
  color: #90e4fd;
  transition: 0.4s;
}
.info-item p {
  color: #fff;
  text-decoration: none;
  line-height: 1.6;
  letter-spacing: 1px;
  font-size: 20px;
}

.icon {
  background: #fff; /* white background */
  color: #1e2235; /* dark navy icon color */
  border-radius: 50%; /* circle */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0; /* keep size fixed */
}

/* Footer */
.icon-circle {
  background: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.icon-circle img {
  width: 24px; /* make the icon smaller inside */
  height: 24px;
}

.icon-circle:hover {
  background: #90e4fd;
}

.social-links h3 {
  letter-spacing: 3px;
  font-weight: normal;
  font-size: 17px;
}
.social-links {
  margin-top: 80px;
  margin-bottom: 80px;
  margin-left: 430px;
}

.social-links .icons {
  margin-top: 15px;
  display: flex;
  gap: 15px;
  cursor: pointer;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets and smaller */
@media (max-width: 1024px) {
  .info {
    grid-template-columns: 1fr; /* stack about + projects vertically */
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .intro {
    flex-direction: column; /* stack text + button on smaller screens */
    gap: 10px;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phones */
@media (max-width: 950px) {
  .logo {
    font-size: 11px;
    text-align: center;
  }

  .logo-wrap {
    flex-direction: column; /* stack logo above subtitle */
    align-items: flex-start; /* keep aligned to left */
    gap: 3px;
  }

  .subtitle {
    display: none;
  }

  .menu {
    margin-top: 8px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.3;
    padding: 0 10px;
  }

  .hero .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .fancy-underline {
    border-bottom: 2px solid white;
    display: inline-block; /* so the underline fits the text */
    padding-bottom: 2px; /* little spacing */
    width: 230px;
  }

  .about,
  .resume {
    padding: 20px;
    font-size: 17px;
  }

  .resume a {
    position: relative;
    z-index: 1;
    border-bottom: 2px solid white; /* underline effect */
    padding-bottom: 5px;
    color: white;
    text-decoration: none;
    font-size: 18px;
  }

  .about a {
    position: relative;
    z-index: 1;
    border-bottom: 2px solid white; /* underline effect */
    padding-bottom: 5px;
    color: white;
    text-decoration: none;
    font-size: 18px;
  }

  .projects a {
    position: relative;
    z-index: 1;
    border-bottom: 2px solid white; /* underline effect */
    padding-bottom: 5px;
    color: white;
    text-decoration: none;
    font-size: 18px;
  }

  .current-work h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    border-bottom: 2px solid #fff;
    display: inline-block;
    padding-bottom: 10px;
    letter-spacing: 1px;
  }

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

  .work-img {
    margin: auto;
    width: 90%;
    height: 250px; /* try 300px if you want bigger */
    margin-bottom: 20px;
  }
  .work-item p {
    font-size: 1rem; /* increase text size */
    line-height: 1.5;
    color: #d1d5db;
    text-align: left;
  }
  .work-item h3 {
    margin-bottom: 5px;
    font-size: 1.3rem; /* bigger heading */
    color: #fff;
    text-align: left;
  }
  .work-grid {
    gap: 10px;
    text-align: center;
    padding: 0 10px; /* safe padding on smaller screens */
  }
  .contact-section {
    grid-template-columns: 1fr; /* stack into one column */
  }

  .row {
    grid-template-columns: 1fr; /* name and email stack */
  }

  .contact-form {
    padding-right: 0;
    border-right: none; /* remove divider on small screens */
    border-bottom: 1px solid #444; /* optional: divider below form */
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .social-links h3 {
    letter-spacing: 3px;
    font-weight: normal;
    font-size: 17px;
  }
  .social-links {
    margin-top: 80px;
    margin-bottom: 80px;
    margin-left: 100px;
  }

  .social-links .icons {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    cursor: pointer;
  }

  .projects {
    font-size: 17px;
    text-align: left;
    height: 35vh;
    padding: 50px;
    overflow: hidden;
  }

  /* Mobile-first inputs */
  .input-group textarea {
    min-height: 200px; /* smaller height for phones */
    resize: vertical;
  }

  .input-group input {
    min-height: 50px;
  }

  .input-group input,
  .input-group textarea {
    width: 100%;
    padding: 10px;
    border: none;
    background: #2d3150;
    color: #fff;
    box-sizing: border-box;
  }

  .input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
    letter-spacing: 1px;
    color: #ccc;
  }

  .input-group input:focus,
  .input-group textarea:focus {
    outline: none;
    border: 2px solid #90e4fd;
  }

  /* Contact Section */
  .contact-section {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #1e2235;
    padding: 20px 10px; /* reduce padding for mobile */
  }

  .contact-form {
    padding: 0; /* remove right padding for mobile */
    border-right: none; /* remove side border */
  }

  .contact-form label {
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: bold;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 16px;
    border: none;
    background: #2d3150;
    color: #fff;
    box-sizing: border-box;
  }

  .send-btn,
  .clear-btn {
    width: 100%; /* full width for buttons */
    font-size: 14px;
    padding: 12px;
    margin-bottom: 10px;
  }

  .send-btn:hover {
    background-color: #90e4fd;
    color: #1e2235;
  }

  .clear-btn:hover {
    color: #90e4fd;
    border: 2px solid #90e4fd;
  }

  /* Contact info styling */
  .contact-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .contact-info p {
    font-size: 16px;
    line-height: 1.5;
  }

  .info-item {
    flex-direction: row; /* default horizontal */
    gap: 10px;
    padding: 10px 0;
    margin: 10px 0;
    border-bottom: 1px solid #444;
  }

  .info-item:last-child {
    border-bottom: none;
  }

  .info-item a {
    font-size: 18px;
  }

  .info-item p {
    font-size: 16px;
  }

  /* Icon styling */
  .icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  /* Footer icons */
  .icon-circle {
    width: 45px;
    height: 45px;
  }

  .icon-circle img {
    width: 20px;
    height: 20px;
  }

  .social-links {
    margin: 40px 0 40px 0; /* center-ish spacing */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .social-links .icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
  }

  /* Optional: Stack info items vertically on really small screens */
  @media screen and (max-width: 480px) {
    .info-item {
      flex-direction: column;
      align-items: flex-start;
    }

    .contact-form {
      padding: 0;
    }

    .social-links {
      margin-left: 0;
    }
  }
}
