/* GENERAL */

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

/* Default Light Mode */
:root {
  --primary-color: white;
  --primary-color-2: rgb(250, 250, 250);
  --primary-color-3: rgb(181, 181, 181);
  --background-color: rgb(255, 255, 255);
  --secondary-color: black;
  --secondary-color-2: rgb(85, 85, 85);
  --button-background: rgb(53, 53, 53);
  --button-text-hover: grey;
  --button-border: rgb(53, 53, 53) 0.1rem solid;
  --button-border-2: rgb(255, 255, 255) 0.1rem solid;
  --container-border: rgb(163, 163, 163);
}

/* Dark Mode */
[theme="dark"] {
  --primary-color: black;
  --primary-color-2: rgb(39, 39, 39);
  --primary-color-3: rgb(74, 74, 74);
  --background-color: rgb(33, 33, 33);
  --secondary-color: white;
  --secondary-color-2: rgb(170, 170, 170);
  --button-background: rgb(202, 202, 202);
  --button-text-hover: lightgrey;
  --button-border: rgb(202, 202, 202) 0.1rem solid;
  --button-border-2: rgb(0, 0, 0) 0.1rem solid;
  --container-border: rgb(92, 92, 92);
}

* {
  margin: 0;
  padding: 0;
}

h3 {
  color: var(--secondary-color);
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background-color);
}

html {
  scroll-behavior: smooth;
}

p {
  color: var(--secondary-color-2);
}

/* TRANSITION */

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

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
  align-items: center;
}

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

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

nav li:last-child {
  width: max-content;
  display: flex;
  margin: auto;
  padding: 10px;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  text-decoration-color: var(--primary-color);
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: var(--secondary-color);
}

nav a:hover {
  color: var(--secondary-color);
  text-decoration-color: var(--secondary-color);
}

.logo {
  font-size: 2rem;
  color: var(--secondary-color);
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
  position: relative;
  z-index: 1001;
}

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

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

.menu-links {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  width: 100%;
  height: 100vh;
  transform: translateY(-100%);
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.menu-links a {
  display: block;
  padding: 1.5rem;
  text-align: center;
  font-size: 2rem;
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

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

.menu-links.open {
  transform: translateY(0);
}

/* Hamburger to X animation */
.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

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

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

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  color: var(--secondary-color);
  font-size: 3rem;
  text-align: center;
}

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

/* 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: var(--button-border);
  color: var(--secondary-color-2);
}

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

.btn-color-1,
.btn-color-2:hover {
  background: var(--button-background);
  color: var(--primary-color);
}

.btn-color-1:hover {
  background: var(--secondary-color);
}

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

.btn-color-2:hover {
  border: var(--button-border);
  background: var(--secondary-color);
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

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

.about-details-container {
  margin-top: -40px;
  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;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: var(--primary-color-2);
  border-radius: 2rem;
  border: var(--button-border);
  border-color: var(--container-border);
  text-align: center;
}

/* About section details container icons */
#about .details-container .icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
}

#about .details-container h3 {
  margin-bottom: 0.5rem;
}

#about .details-container p {
  margin: 0;
  line-height: 1.4;
}

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

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

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

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

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

.experience-details-container .about-containers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

/* Large screens - 4 columns */
@media screen and (max-width: 1600px) {
  #experience .experience-details-container .about-containers {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

/* Medium screens - 3 columns */
@media screen and (max-width: 1300px) {
  #experience .experience-details-container .about-containers {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
}

/* Tablets - 2 columns */
@media screen and (max-width: 900px) {
  #experience .experience-details-container .about-containers {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.experience-details-container .details-container {
  position: relative;
  padding: 1.2rem;
  background: var(--primary-color-2);
  border-radius: 1.2rem;
  border: 1px solid var(--container-border);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  height: fit-content;
}

.experience-details-container .details-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.experience-details-container .experience-sub-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.article-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
  justify-content: center;
  align-items: center;
}

#experience .article-container {
  justify-content: flex-start;
  align-items: stretch;
}

article {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  padding: 0.8rem;
  /* background: var(--primary-color); */
  border-radius: 0.8rem;
  /* border: 1px solid var(--container-border); */
  transition: all 0.2s ease;
  min-height: 50px;
}

article:hover {
  background: var(--primary-color-2);
  transform: translateY(1.5px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Dark mode hover enhancement */
[theme="dark"] article:hover {
  background: rgb(39, 39, 39, 1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

article .icon {
  cursor: default;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

article div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  flex: 1;
}

article div h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: var(--secondary-color);
}

article div p {
  font-size: 0.8rem;
  margin: 0;
  color: var(--secondary-color-2);
  font-weight: 500;
}

/* Experience level indicators */
article div p::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}

/* Beginner - Red */
article div p[data-level="beginner"]::before {
  background-color: #ef4444;
}

/* Basic - Orange */
article div p[data-level="basic"]::before {
  background-color: #f59e0b;
}

/* Intermediate - Yellow */
article div p[data-level="intermediate"]::before {
  background-color: #eab308;
}

/* Experienced - Green */
article div p[data-level="experienced"]::before {
  background-color: #22c55e;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

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

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  justify-content: center;
}

/* Specific styling for 2 projects - same size as other project cards */
.projects-grid[data-count="2"] {
  grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
  justify-content: center;
  max-width: 900px;
}

/* iPad and tablet - 2 columns layout */
@media screen and (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    padding: 0 1.5rem;
  }

  .projects-grid[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}

/* Smaller tablets - still 2 columns */
@media screen and (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem;
  }
}

/* Mobile phones - 1 column */
@media screen and (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .projects-grid[data-count="2"] {
    grid-template-columns: 1fr;
  }
}

.project-card {
  max-width: 400px;
  background: var(--primary-color-2);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--container-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.project-image-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
}

.project-title {
  color: var(--secondary-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  text-align: center;
}

.project-description {
  color: var(--secondary-color-2);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* PROJECT MODAL - Minimalist Clean Design */
.modal {
  display: none;
  position: relative;
  z-index: 100;
  width: 100%;
  background-color: var(--background-color);
  animation: fadeIn 0.3s ease;
  padding-top: 4vh;
  margin: 0 auto;
  max-width: 1200px;
}

.modal-content {
  width: 100%;
}

.modal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 4rem 2rem;
}

/* Header with back button */
.modal-header {
  margin-bottom: 3rem;
}

.back-btn {
  background: transparent;
  border: none;
  color: var(--secondary-color-2);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.back-btn:hover {
  color: var(--secondary-color);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero Image */
.modal-hero {
  margin-bottom: 4rem;
}

.image-gallery {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 12px;
  transition: opacity 0.3s ease;
}

/* Image Navigation Buttons */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.gallery-nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev-btn {
  left: 20px;
}

.gallery-nav-btn.next-btn {
  right: 20px;
}

.gallery-nav-btn svg {
  width: 24px;
  height: 24px;
}

/* Image Indicators */
.image-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.indicator-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.indicator-dot.active {
  background: rgba(255, 255, 255, 1);
  width: 12px;
  height: 12px;
}

/* Content Wrapper */
.modal-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* Project Header */
.project-header {
  margin-bottom: 4rem;
}

.project-main-title {
  color: var(--secondary-color);
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.project-main-description {
  color: var(--secondary-color-2);
  font-size: 1.2rem;
  line-height: 1.7;
  margin: 0;
  max-width: 100%;
}

/* Project Sections */
.project-section {
  margin-bottom: 3rem;
}

.section-title {
  color: var(--secondary-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.01em;
}

/* Features List */
.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.features-list li {
  color: var(--secondary-color-2);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0;
  position: relative;
  padding-left: 1.5rem;
}

.features-list li::before {
  content: "•";
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-weight: 600;
}

/* Technology Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: rgba(128, 128, 128, 0.1);
  color: var(--secondary-color-2);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(128, 128, 128, 0.2);
  transition: all 0.2s ease;
  cursor: default;
}

.tech-tag:hover {
  background: rgba(128, 128, 128, 0.15);
  border-color: rgba(128, 128, 128, 0.3);
}

/* Details Grid */
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.detail-card {
  background: rgba(128, 128, 128, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(128, 128, 128, 0.1);
  transition: all 0.2s ease;
}

.detail-card:hover {
  background: rgba(128, 128, 128, 0.08);
}

.detail-card-title {
  color: var(--secondary-color-2);
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-card-value {
  color: var(--secondary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

/* Action Buttons */
.project-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.action-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.primary-btn {
  background: var(--button-background);
  color: var(--primary-color);
}

.primary-btn:hover {
  opacity: 0.9;
}

.secondary-btn {
  background: transparent;
  color: var(--secondary-color-2);
  border: 1px solid var(--container-border);
}

.secondary-btn:hover {
  color: var(--secondary-color);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Project Navigation */
.project-navigation {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--container-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.prev-project-nav,
.next-project-nav {
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 0;
}

.prev-project-nav {
  justify-content: flex-start;
}

.next-project-nav {
  justify-content: flex-end;
  text-align: right;
}

.prev-project-nav.hidden,
.next-project-nav.hidden {
  display: none;
}

.prev-project-nav > div,
.next-project-nav > div {
  min-width: 0;
  flex-shrink: 1;
}

.nav-label {
  color: var(--secondary-color-2);
  font-size: 0.8rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.nav-title {
  color: var(--secondary-color);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
  text-decoration: none;
  transition: text-decoration 0.2s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.prev-project-nav:hover .nav-title,
.next-project-nav:hover .nav-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-arrow {
  color: var(--secondary-color-2);
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.prev-project-nav:hover .nav-arrow {
  transform: translateX(-3px);
}

.next-project-nav:hover .nav-arrow {
  transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .modal {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 1024px) {
  .modal-container {
    padding: 0 1.5rem 3rem 1.5rem;
  }

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

@media (max-width: 768px) {
  .modal {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .modal-container {
    padding: 0 1rem 3rem 1rem;
  }

  .modal-header {
    margin-bottom: 2rem;
  }

  .modal-hero {
    margin-bottom: 2.5rem;
  }

  .hero-image {
    height: 300px;
    border-radius: 10px;
  }

  .project-header {
    margin-bottom: 3rem;
  }

  .project-main-title {
    font-size: 2rem;
  }

  .project-main-description {
    font-size: 1.1rem;
  }

  .project-section {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .features-list li {
    font-size: 1rem;
  }

  .tech-tag {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .detail-card {
    padding: 1.25rem;
  }

  .project-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .action-btn {
    width: 100%;
    justify-content: center;
  }

  .project-navigation {
    margin-top: 3rem;
    padding-top: 1.5rem;
    gap: 1rem;
  }

  .nav-label {
    font-size: 0.75rem;
  }

  .nav-title {
    font-size: 0.9rem;
  }

  .nav-arrow {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .modal {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .modal-container {
    padding: 0 0.5rem 3rem 0.5rem;
  }

  .hero-image {
    height: 220px;
  }

  .project-main-title {
    font-size: 1.75rem;
  }

  .project-main-description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.2rem;
  }
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: var(--button-border);
  border-color: var(--container-border);
  background: var(--background-color);
  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;
}

/* MODERN CONTACT FORM SECTION */

#contact-form {
  position: relative;
  padding: 4rem 0 6rem 0;
  margin-top: -120px;
}

.contact-form-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-top: 3rem;
}

.modern-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem 4rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--secondary-color);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  position: relative;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--secondary-color-2);
  opacity: 0.7;
  font-style: italic;
}

/* Dark mode enhancements for contact form */
[theme="dark"] .modern-form {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[theme="dark"] .form-group input,
[theme="dark"] .form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[theme="dark"] .form-group input:focus,
[theme="dark"] .form-group textarea:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

[theme="dark"] .modern-submit-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[theme="dark"] .modern-submit-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

[theme="dark"] .form-group input::placeholder,
[theme="dark"] .form-group textarea::placeholder {
  color: var(--secondary-color-2);
  opacity: 0.6;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.modern-submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 2rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modern-submit-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-color: rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.modern-submit-btn:active {
  transform: translateY(-1px);
}

.btn-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.modern-submit-btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* PROJECT TABS */

.project-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.tab-btn {
  background: transparent;
  border: 2px solid var(--button-border);
  color: var(--secondary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.tab-btn:hover {
  background-color: var(--button-background);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-btn.active {
  background-color: var(--button-background);
  color: var(--primary-color);
  border-color: var(--button-background);
}

/* Tablet responsive - iPad and similar */
@media screen and (max-width: 1024px) {
  .project-tabs {
    gap: 0.5rem;
    padding: 0 1.5rem;
    row-gap: 0.75rem;
  }

  .tab-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  /* Make the 6th tab (Other Projects) take full width and center on second row */
  .tab-btn:nth-child(6) {
    width: 100%;
    max-width: 200px;
  }
}

/* Smaller tablets and large phones */
@media screen and (max-width: 768px) {
  .project-tabs {
    gap: 0.5rem;
    padding: 0 1rem;
    margin: 1.5rem 0;
    row-gap: 0.6rem;
  }

  .tab-btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
    border-width: 1.5px;
  }

  .tab-btn:nth-child(6) {
    width: 100%;
    max-width: 180px;
  }
}

/* Mobile phones */
@media screen and (max-width: 480px) {
  .project-tabs {
    gap: 0.4rem;
    padding: 0 0.5rem;
    row-gap: 0.5rem;
  }

  .tab-btn {
    padding: 0.5rem 0.7rem;
    font-size: 0.7rem;
    border-width: 1.5px;
  }

  .tab-btn:nth-child(6) {
    width: auto;
    max-width: none;
  }
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-description {
  color: var(--secondary-color-2);
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem 0;
  text-align: center;
  line-height: 1.4;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}

/* SIMPLE MODERN ANIMATIONS */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* PRIVATE PROJECT MODAL - Modern Design */

.private-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.private-modal-overlay.active {
  display: flex;
}

.private-modal-content {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-color-2) 100%
  );
  border: 2px solid var(--container-border);
  border-radius: 30px;
  padding: 0;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  animation: modalPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

[theme="dark"] .private-modal-content {
  background: linear-gradient(135deg, rgb(25, 25, 25) 0%, rgb(40, 40, 40) 100%);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Close X button */
.private-modal-close-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(128, 128, 128, 0.1);
  border: none;
  color: var(--secondary-color-2);
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
  font-weight: 300;
}

.private-modal-close-x:hover {
  background: rgba(255, 0, 0, 0.15);
  color: #ff4444;
  transform: rotate(90deg);
}

/* Icon wrapper with glow effect */
.private-modal-icon-wrapper {
  position: relative;
  padding: 3rem 0 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.private-modal-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 107, 0.15) 0%,
    rgba(255, 150, 50, 0.15) 100%
  );
  border-radius: 50%;
  color: var(--secondary-color);
  position: relative;
  z-index: 2;
  border: 3px solid var(--container-border);
  animation: iconPulse 2s ease-in-out infinite;
}

.private-modal-icon svg {
  width: 50px;
  height: 50px;
  stroke: var(--secondary-color);
}

.private-modal-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(255, 107, 107, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 1;
  animation: glowPulse 2s ease-in-out infinite;
}

/* Text content */
.private-modal-text {
  padding: 0 2.5rem 2rem 2.5rem;
}

.private-modal-title {
  color: var(--secondary-color);
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.private-modal-message {
  color: var(--secondary-color-2);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 0 0.75rem 0;
}

.private-modal-submessage {
  color: var(--secondary-color-2);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.8;
}

/* Close button */
.private-modal-close-btn {
  background: var(--button-background);
  color: var(--primary-color);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  margin: 2rem 2.5rem 2.5rem 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  width: calc(100% - 5rem);
  position: relative;
  overflow: hidden;
}

.private-modal-close-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.private-modal-close-btn:hover::before {
  left: 100%;
}

.private-modal-close-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.private-modal-close-btn:active {
  transform: translateY(-1px);
}

.private-modal-close-btn svg {
  transition: transform 0.3s ease;
}

.private-modal-close-btn:hover svg {
  transform: translateX(5px);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalPopIn {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(50px);
  }
  50% {
    transform: scale(1.05) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Responsive Design for All Devices */

/* Large tablets and small laptops (768px - 1024px) */
@media (max-width: 1024px) {
  .private-modal-content {
    max-width: 480px;
    border-radius: 28px;
  }

  .private-modal-icon-wrapper {
    padding: 2.5rem 0 1.5rem 0;
  }

  .private-modal-icon {
    width: 90px;
    height: 90px;
  }

  .private-modal-icon svg {
    width: 45px;
    height: 45px;
  }

  .private-modal-title {
    font-size: 2rem;
  }

  .private-modal-text {
    padding: 0 2rem 1.5rem 2rem;
  }
}

/* Tablets (600px - 768px) */
@media (max-width: 768px) {
  .private-modal-overlay {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .private-modal-content {
    max-width: 460px;
    border-radius: 25px;
  }

  .private-modal-close-x {
    width: 36px;
    height: 36px;
    font-size: 1.8rem;
    top: 0.75rem;
    right: 0.75rem;
  }

  .private-modal-icon-wrapper {
    padding: 2.5rem 0 1.5rem 0;
  }

  .private-modal-icon {
    width: 85px;
    height: 85px;
  }

  .private-modal-icon svg {
    width: 42px;
    height: 42px;
  }

  .private-modal-glow {
    width: 100px;
    height: 100px;
  }

  .private-modal-text {
    padding: 0 2rem 1.5rem 2rem;
  }

  .private-modal-title {
    font-size: 1.9rem;
  }

  .private-modal-message {
    font-size: 1rem;
  }

  .private-modal-submessage {
    font-size: 0.95rem;
  }

  .private-modal-close-btn {
    margin: 1.5rem 2rem 2rem 2rem;
    width: calc(100% - 4rem);
    padding: 0.95rem 1.75rem;
    font-size: 1rem;
  }
}

/* Mobile phones (480px - 600px) */
@media (max-width: 600px) {
  .private-modal-overlay {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .private-modal-content {
    max-width: 90%;
    border-radius: 20px;
  }

  .private-modal-close-x {
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
  }

  .private-modal-icon-wrapper {
    padding: 1.5rem 0 1rem 0;
  }

  .private-modal-icon {
    width: 65px;
    height: 65px;
    border-width: 2px;
  }

  .private-modal-icon svg {
    width: 32px;
    height: 32px;
  }

  .private-modal-glow {
    width: 75px;
    height: 75px;
  }

  .private-modal-text {
    padding: 0 1.25rem 1rem 1.25rem;
  }

  .private-modal-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .private-modal-message {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .private-modal-submessage {
    font-size: 0.85rem;
  }

  .private-modal-close-btn {
    margin: 1rem 1.25rem 1.5rem 1.25rem;
    width: calc(100% - 2.5rem);
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Small mobile phones (320px - 480px) */
@media (max-width: 480px) {
  .private-modal-content {
    border-radius: 20px;
    margin-right: 40px;
  }

  .private-modal-close-x {
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    top: 0.65rem;
    right: 0.65rem;
  }

  .private-modal-icon-wrapper {
    padding: 1.75rem 0 1rem 0;
  }

  .private-modal-icon {
    width: 70px;
    height: 70px;
  }

  .private-modal-icon svg {
    width: 35px;
    height: 35px;
  }

  .private-modal-glow {
    width: 85px;
    height: 85px;
  }

  .private-modal-text {
    padding: 0 1.25rem 1rem 1.25rem;
  }

  .private-modal-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .private-modal-message {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 0.65rem;
  }

  .private-modal-submessage {
    font-size: 0.85rem;
  }

  .private-modal-close-btn {
    margin: 1rem 1.25rem 1.5rem 1.25rem;
    width: calc(100% - 2.5rem);
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 40px;
  }
}

/* Extra small devices (less than 320px) */
@media (max-width: 320px) {
  .private-modal-overlay {
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .private-modal-content {
    border-radius: 18px;
  }

  .private-modal-icon-wrapper {
    padding: 1.5rem 0 0.85rem 0;
  }

  .private-modal-icon {
    width: 65px;
    height: 65px;
  }

  .private-modal-icon svg {
    width: 32px;
    height: 32px;
  }

  .private-modal-text {
    padding: 0 1rem 0.85rem 1rem;
  }

  .private-modal-title {
    font-size: 1.35rem;
  }

  .private-modal-message {
    font-size: 0.85rem;
  }

  .private-modal-submessage {
    font-size: 0.8rem;
  }

  .private-modal-close-btn {
    margin: 0.85rem 1rem 1.25rem 1rem;
    width: calc(100% - 2rem);
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
  }
}
