/* ========================================
   RESPONSIVE OVERRIDES FOR GSAP ANIMATIONS
   ======================================== */

/* ===== HEADER & NAVIGATION ===== */
.header {
  font-size: var(--fs-body);
  padding: 0 var(--page-padding);
}

#logo a {
  font-size: var(--fs-body-sm);
  padding: 0.5rem 1.5rem;
}

#menu a {
  font-size: var(--fs-menu);
}

/* ===== HERO SECTION ===== */
.portfolio-info h1 {
  font-size: var(--fs-hero);
}

.portfolio-info p {
  font-size: var(--fs-hero-subtitle);
}

/* ===== ABOUT SECTION ===== */
.about-me-wrapper {
  padding: var(--section-gap) var(--page-padding);
}

.about-heading h1 {
  font-size: var(--fs-heading-xl);
}

.about-card-info {
  padding: clamp(1.5rem, 2rem, 2.5rem);
  gap: clamp(1rem, 1.5rem, 2rem);
}

.about-card-info p {
  font-size: var(--fs-body);
}

/* ===== PROJECTS & DESIGNS ===== */
.projects,
.designs {
  padding: 0 var(--page-padding) var(--section-gap) var(--page-padding);
}

.projects-heading,
.designs-heading {
  font-size: var(--fs-heading-xl);
}

.project-search-label {
  font-size: var(--fs-body-sm);
}

.project-search-input {
  font-size: var(--fs-body);
  padding: clamp(0.6rem, 0.75rem, 1rem);
}

.card-info h3 {
  font-size: var(--fs-heading-sm);
}

.card-info p {
  font-size: var(--fs-body-sm);
}

.card-skills span {
  font-size: var(--fs-tag);
  padding: clamp(0.3rem, 0.4rem, 0.5rem) clamp(0.6rem, 0.8rem, 1rem);
}

/* ===== SKILLS SECTION ===== */
.skills {
  padding: var(--section-gap) var(--page-padding);
}

.skills-heading {
  font-size: var(--fs-heading-xl);
  margin-bottom: clamp(4rem, 8rem, 12rem);
}

.skill-content h3 {
  font-size: var(--fs-heading-md);
  margin-bottom: clamp(1rem, 1.5rem, 2rem);
}

.skill-content p {
  font-size: var(--fs-body);
}

.skill-tags span {
  font-size: var(--fs-body-sm);
  padding: clamp(0.4rem, 0.5rem, 0.6rem) clamp(0.8rem, 1rem, 1.2rem);
}

/* ===== EXPERIENCE SECTION ===== */
.experience h5 {
  font-size: clamp(8vh, 18vh, 25vh);
}

/* ===== GSAP CONTENT SECTIONS ===== */
.content__title {
  font-size: clamp(2rem, 12vw, 8rem);
}

.content__title--medium {
  font-size: clamp(1.5rem, 8vw, 6rem);
}

.content__text {
  font-size: var(--fs-body);
  padding: var(--page-padding);
}

/* ===== AWARDS SECTION ===== */
.awards {
  padding: var(--section-gap) var(--page-padding);
}

.awards-heading {
  font-size: var(--fs-heading-xl);
}

.award-title {
  font-size: var(--fs-heading-sm);
}

.award-meta {
  font-size: var(--fs-body-sm);
}

/* ===== CURRENT WORKS ===== */
.current-works-heading {
  font-size: var(--fs-heading-lg);
}

.hover-cards-detail h3 {
  font-size: var(--fs-heading-md);
}

.hover-cards-detail p {
  font-size: var(--fs-body);
}

.hover-cards-detail a {
  font-size: var(--fs-body-sm);
  padding: clamp(0.6rem, 0.8rem, 1rem) clamp(1.2rem, 1.5rem, 2rem);
}

/* ===== FOOTER ===== */
.footer-cta__headline {
  font-size: var(--fs-heading-lg);
}

.footer-cta__form label {
  font-size: var(--fs-heading-sm);
}

.footer-cta__form input,
.footer-cta__form textarea {
  font-size: var(--fs-body);
}

.footer-cta__submit {
  font-size: var(--fs-body-lg);
}

.copyright {
  font-size: var(--fs-body-sm);
}

/* ========================================
   TABLET RESPONSIVE (768px - 1024px)
   ======================================== */
@media screen and (max-width: 1024px) {
  /* Grid adjustments */
  .projects-grid,
  .designs-grid {
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
    gap: var(--card-gap);
  }

  .awards-container {
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
  }

  /* Skill rows */
  .skill-row {
    gap: 4rem;
    margin-bottom: 8rem;
  }

  .skill-image {
    height: 350px;
  }
}

/* ========================================
   MOBILE RESPONSIVE (max 768px)
   ======================================== */
@media screen and (max-width: 768px) {
  /* Header */
  .header {
    height: 12vh;
  }

  #logo a {
    padding: 0.4rem 1.2rem;
  }

  /* Hero */
  .portfolio-info {
    height: 75vh;
  }

  .main img {
    width: 35%;
    bottom: 5%;
  }

  /* About section */
  .about-me-content {
    flex-direction: column;
    gap: 3rem;
  }

  .about-left {
    width: 100%;
  }

  .about-right {
    width: 100%;
  }

  .about-card-info {
    margin-top: 2rem;
  }

  /* Projects & Designs */
  .projects-title,
  .designs-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .project-search {
    width: 100%;
  }

  .project-search-input {
    width: 100%;
  }

  .projects-grid,
  .designs-grid {
    grid-template-columns: 1fr;
  }

  .card-img {
    height: 220px;
  }

  .designs-card-img {
    height: 350px;
  }

  /* Skills */
  .skill-row {
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 6rem;
  }

  .skill-row.reverse {
    flex-direction: column;
  }

  .skill-image {
    height: 280px;
    width: 100%;
  }

  /* Experience */
  .experience {
    padding: var(--page-padding);
  }

  /* GSAP Content */
  .content--grid {
    width: 100%;
    left: 0;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }

  .content--column {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .content--column .content__img {
    max-width: 100px;
  }

  /* Awards */
  .awards-container {
    grid-template-columns: 1fr;
  }

  .award-modal-content {
    width: 90%;
    padding: 1.5rem;
  }

  /* Current Works */
  .cards-grid {
    flex-direction: column;
  }

  .cards__container {
    min-width: 100%;
    min-height: 320px;
  }

  /* Footer */
  .footer-cta {
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
  }

  .footer-cta__container {
    padding: 3rem 1rem;
  }

  .footer-cta__form {
    padding: 1.5rem 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ========================================
   SMALL MOBILE (max 480px)
   ======================================== */
@media screen and (max-width: 480px) {
  /* Header */
  .header {
    height: 10vh;
  }

  #logo a {
    font-size: 0.75rem;
    padding: 0.3rem 1rem;
  }

  /* Hero */
  .portfolio-info {
    height: 70vh;
  }

  .main img {
    width: 45%;
    top: 15%;
    right: 5%;
    bottom: auto;
  }

  /* About */
  .about-me-wrapper {
    margin: 20vh 0 0 0;
  }

  .about-card-info {
    padding: 1.5rem;
  }

  /* Projects */
  .card-img {
    height: 200px;
  }

  .designs-card-img {
    height: 300px;
  }

  .card-info {
    padding: 1.5rem;
  }

  /* Skills */
  .skill-image {
    height: 240px;
  }

  .skill-row {
    margin-bottom: 4rem;
  }

  /* Experience */
  .experience h5 {
    font-size: clamp(6vh, 10vh, 15vh);
  }

  /* GSAP Content */
  .content--grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
  }

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

  .content--column .content__img {
    max-width: 80px;
  }

  /* Awards */
  .award-modal-content {
    flex-direction: column;
    width: 95%;
    padding: 1rem;
    max-height: 85vh;
  }

  .award-modal-content img {
    width: 100%;
    height: auto;
  }

  .award-close {
    padding: 0.3rem 0.6rem;
    font-size: 1.5rem;
  }

  /* Current Works */
  .cards__container {
    min-height: 280px;
  }

  .hover-cards-detail {
    padding: 0 1.5rem;
  }

  /* Footer */
  .footer-cta {
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
  }

  .footer-cta__container {
    padding: 2rem 0.5rem;
  }

  .footer-cta__form {
    padding: 1rem 0.5rem;
  }

  .footer-cta__form textarea {
    min-height: 80px;
  }
}

/* ========================================
   EXTRA SMALL DEVICES (max 350px)
   ======================================== */
@media screen and (max-width: 350px) {
  .main img {
    width: 55%;
  }

  .cards__container {
    min-height: 250px;
  }

  .skill-image {
    height: 200px;
  }
}

/* ========================================
   LANDSCAPE MOBILE FIXES
   ======================================== */
@media screen and (max-height: 600px) and (orientation: landscape) {
  .portfolio-info {
    height: 100vh;
  }

  .experience {
    height: auto;
    min-height: 100vh;
  }

  .experience h5 {
    font-size: 10vh;
    position: relative;
  }
}


/* ========================================
   DESIGN MODAL STYLES
   ======================================== */

.design-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.design-modal.hidden {
  display: none;
  opacity: 0;
}

.design-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.design-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.design-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2.5rem;
  color: var(--color-text);
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.design-close:hover {
  background: var(--color-textOut);
  color: var(--color-bg);
  transform: rotate(90deg);
}

.design-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-text);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 2rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.design-nav:hover {
  background: var(--color-textOut);
  color: var(--color-bg);
  transform: translateY(-50%) scale(1.1);
}

.design-prev {
  left: 2rem;
}

.design-next {
  right: 2rem;
}

.design-image-container {
  width: 100%;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.design-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.design-info {
  text-align: center;
  color: var(--color-text);
  max-width: 600px;
}

.design-info h3 {
  font-size: var(--fs-heading-md);
  margin: 0 0 0.5rem 0;
  color: var(--color-textOut);
}

.design-info p {
  font-size: var(--fs-body);
  margin: 0 0 1rem 0;
  color: var(--color-text);
}

.design-counter {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: var(--fs-body-sm);
  color: var(--color-text);
}

/* Touch swipe support */
.design-image-container {
  touch-action: pan-y;
  user-select: none;
}

/* Keyboard navigation hint */
.design-modal-content::after {
  content: "Use ← → keys or swipe to navigate";
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-body-sm);
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

/* ===== RESPONSIVE DESIGN MODAL ===== */
@media screen and (max-width: 768px) {
  .design-modal-content {
    width: 95%;
    height: 95vh;
  }

  .design-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .design-nav {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .design-prev {
    left: 0.5rem;
  }

  .design-next {
    right: 0.5rem;
  }

  .design-image-container {
    height: 60vh;
  }

  .design-info h3 {
    font-size: var(--fs-heading-sm);
  }

  .design-info p {
    font-size: var(--fs-body-sm);
  }

  .design-modal-content::after {
    font-size: 0.7rem;
    bottom: 0.5rem;
  }
}

@media screen and (max-width: 480px) {
  .design-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .design-image-container {
    height: 50vh;
    margin-bottom: 1rem;
  }

  .design-close {
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }
}
