/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: white;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

/* The wrapper is the tap target — generous 48x48 hit area per Apple/Material guidance.
   Inner bars stay visually 28x20 but the whole button is tappable. */
.hamburger-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  width: 48px;
  padding: 14px 10px;
  box-sizing: border-box;
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: 10px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
  z-index: 1100;
  transition: background-color 200ms ease;
}

.hamburger-icon:hover,
.hamburger-icon:active {
  background-color: rgba(0, 0, 0, 0.05);
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #111;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.menu-links {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: #fff;
  min-width: 220px;
  max-height: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transition: max-height 0.3s ease, opacity 0.2s ease, transform 0.25s ease;
  opacity: 0;
  transform: translateY(-6px);
  z-index: 1099;
}

.menu-links a {
  display: block;
  padding: 14px 20px;
  text-align: left;
  font-size: 1.1rem;
  color: #111;
  text-decoration: none;
  transition: background-color 200ms ease;
}

.menu-links a:hover {
  background-color: #f4f4f5;
  text-decoration: none;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 480px;
  opacity: 1;
  transform: translateY(0);
}

.hamburger-icon.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* SECTIONS */

section {
  background-color: white;
  padding: 4rem 0;
  height: auto; /* Changed from 96vh to auto */
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
  padding-bottom: 4vh; /* Added padding-bottom for consistent spacing */
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    height: 100vh;
    padding: 0 2rem;
    box-sizing: border-box;
}

.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.section__text {
    text-align: center;
    align-self: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
  font-size: 1.8rem;
}

.section__text__p2 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
  padding-bottom: 15px;
}

.title {
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

@media screen and (max-width: 768px) {
    #profile {
        flex-direction: column;
        height: auto;
        padding: 1.5rem 1rem 1.25rem;
        gap: 0.85rem;
        min-height: auto;             /* don't force 100vh, content drives height */
    }

    .section__pic-container {
        margin: 0 auto;
        height: 200px;
        width: 200px;
    }

    .section__text {
        margin-top: 0;
    }
    .section__text__p1 { font-size: 1rem; margin-bottom: 0.1rem; }
    .section__text__p2 { font-size: 1.1rem; margin-bottom: 0.4rem; padding-bottom: 0; }
    .section__text__p3 {
        font-size: 0.92rem;
        margin: 0 auto 0.85rem;
        max-width: 320px;
    }
    .title { font-size: 1.9rem; line-height: 1.1; margin-bottom: 0.2rem; }
    .btn-container { margin-bottom: 0.4rem; }
    .btn { padding: 0.7rem; width: 7rem; font-size: 0.95rem; }
    #socials-container { margin-top: 0.4rem; gap: 0.85rem; }
    #socials-container .icon { height: 1.6rem; }
}

@media screen and (max-width: 480px) {
    #profile {
        padding: 1rem 1rem 0.75rem;
        gap: 0.6rem;
    }

    .section__pic-container {
        height: 168px;
        width: 168px;
    }

    .section__text__p1 { font-size: 0.92rem; }
    .section__text__p2 { font-size: 1rem; }
    .title { font-size: 1.65rem; }
    .section__text__p3 { font-size: 0.88rem; max-width: 290px; }
}

/* Very short phones — Pixel 3a, iPhone SE etc. — squeeze further so socials fit on first screen */
@media screen and (max-width: 480px) and (max-height: 720px) {
    .section__pic-container { height: 150px; width: 150px; }
    .title { font-size: 1.5rem; }
    .section__text__p3 { display: none; } /* drop tagline; the about section carries it */
    .btn { padding: 0.55rem; font-size: 0.9rem; }
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.show-more{
   
        justify-content: center;
        bottom: 2.5rem;
        text-align: center;
        display: flex; /* Use flexbox to place items in the same row */
        align-items: center; /* Vertically align items in the center */
        
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
  margin-bottom: 3rem;
  padding: 3rem 0 4rem;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin-top: 2rem;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}

.project-title {
  margin: 1rem;
  color: black;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: auto; /* Changed from 70vh to auto */
  padding-top: 2rem; /* Adjusted padding for better spacing */
  padding-bottom: 2rem; /* Adjusted padding for better spacing */
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: auto; /* Changed from 26vh to auto */
  margin: 0 1rem;
  padding: 1rem 0; /* Added padding for consistent spacing */
}

footer p {
  text-align: center;
}

/* .show-more{
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 10px solid gray;
    width: 200px;
} */

/* Internship Section Styles - Modern & Minimal */
.internships-section {
  margin: 2rem 0 4rem;
  transition: all 0.3s ease;
}

.internships-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.internship-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.35s ease;
  height: 100%;
  display: flex;
  border: 1px solid #f0f0f0;
  position: relative;
}

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

/* Card content - right side */
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #f5f5f5;
}

.internship-header {
  padding: 1.5rem 1.5rem 1rem;
  background-color: #fafafa;
  position: relative;
}

.internship-header h3 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem 0;
  color: #333;
}

.internship-date {
  font-size: 0.9rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.internship-date:before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #ddd;
  border-radius: 50%;
}

.internship-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.internship-content p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
  color: #555;
  flex: 1;
}

/* Company banner - left side */
.company-banner {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  padding: 1.5rem 1rem;
  position: relative;
  border-right: 1px solid #f0f0f0;
}

.company-logo-container {
  width: 85px;
  height: 85px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.2rem;
  padding: 10px;
  border: 1px solid #f0f0f0;
}

.company-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.company-name {
  font-weight: 600;
  color: #555;
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
  white-space: normal;
  word-break: break-word;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tech-tag {
  background-color: #f5f5f5;
  color: #555;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-weight: 500;
}

/* Technical Expertise Section */
.skills-heading {
  margin-top: 3rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 2rem;
}

/* Responsive Design for Internships */
@media screen and (max-width: 900px) {
  .internships-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 600px) {
  .internships-grid {
    grid-template-columns: 1fr;
  }
  
  .internship-card {
    flex-direction: column;
  }
  
  .card-content {
    border-left: none;
  }
  
  .company-banner {
    width: 100%;
    flex-direction: row;
    padding: 0.8rem;
    gap: 1rem;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .company-logo-container {
    width: 55px;
    height: 55px;
    margin-bottom: 0;
    padding: 5px;
  }
  
  .internship-header, 
  .internship-content {
    padding: 1.2rem;
  }
  
  .internship-header h3 {
    font-size: 1.2rem;
  }
  
  .tech-tags {
    margin-top: 0.5rem;
  }
}

/* Remove old internship styles */
.internship-container,
.internship-article,
.internship-description {
  /* These properties will be replaced by the new styles above */
}

/* About section enrichment */
.about-text + .about-text {
  margin-top: 0.85rem;
}
.about-text {
  line-height: 1.65;
  color: #2c2c33;
  font-size: 1rem;
}


/* Profile hero subhead */
.section__text__p3 {
  font-size: 1rem;
  font-weight: 400;
  color: #5e6066;
  max-width: 560px;
  margin: 0 auto 1.4rem;
  line-height: 1.55;
}

/* Featured Apps section on homepage — image + title only, minimal */
#featured-apps {
  padding: 4rem 0 3rem;
}
.featured-apps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem auto 1.5rem;
  max-width: 1080px;
}
.featured-apps__card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 1 / 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.featured-apps__card::after {
  /* gradient overlay for legible title */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.65) 100%);
}
.featured-apps__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  color: inherit;
}
.featured-apps__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.featured-apps__card:hover img {
  transform: scale(1.04);
}
.featured-apps__card h3 {
  position: absolute;
  left: 1rem;
  bottom: 0.85rem;
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
  z-index: 1;
}
.featured-apps__cta {
  text-align: center;
  margin-top: 1.5rem;
}
@media screen and (max-width: 600px) {
  #featured-apps { padding: 2.5rem 0 1.5rem; }
  .featured-apps__grid { gap: 0.75rem; }
}