/* ======================
   General Styles
   ====================== */
body {
  margin: 0;
  padding: 10px;
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(0, 0, 0, 0.7)),
    url("../images/bg1.jpg") repeat;
  color: #fff;
  perspective: 1000px;
  width: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ======================
   CRITICAL FIXES - Prevent Horizontal Scrolling
   ====================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Fix container width issues */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Ensure all media elements are constrained */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Fix for all content sections */
section,
div,
article,
header,
footer,
main {
  max-width: 100%;
  overflow-x: hidden;
}

/* Specifically fix project details page */
#introduction,
#goals,
#role,
#design-thinking,
#impact {
  width: 100%;
  overflow-x: hidden;
}

/* ======================
   Typography
   ====================== */
h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

h2,
h3 {
  text-shadow: #000000 2px 2px;
}

body h3 {
  font-size: 2rem;
  color: #ffd700;
  margin: 0;
}

body h4 {
  font-size: 1.5rem;
  color: #ffd700;
  margin: 0;
}

.container h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #ffd700;
  text-align: center;
}

.container h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #ffd700;
}

/* ======================
   Grid List Styles (from project1-details.html)
   ====================== */
.grid-list {
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.list-item {
  max-width: 100%;
  box-sizing: border-box;
  width: 100%;
  margin: 5px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 8px;
  min-width: 0;
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.list-item .material-icons {
  color: #1a73e8;
  font-size: 2rem;
}

/* ======================
   Card Styles
   ====================== */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.card .material-icons {
  color: #1a73e8;
  font-size: 2rem;
}

/* ======================
   Important Tag
   ====================== */
important {
  color: #ff6b6b;
  font-weight: bold;
  background: rgba(255, 107, 107, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin: 5px 0;
}

/* ======================
   Tool Grid Styles
   ====================== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  justify-content: center;
  text-align: center;
  margin: 20px 0;
  width: 100%;
  overflow-x: hidden;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.tool-item:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 115, 232, 0.5);
}

.tool-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.tool-item span {
  font-size: 0.9rem;
  color: #ccc;
  word-break: break-word;
  text-align: center;
}

/* ======================
   Design Thinking Process Section
   ====================== */
.design-process {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin: 20px 0;
  width: 100%;
  box-sizing: border-box;
}

.process-step {
  background: rgba(10, 10, 10, 0.7);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
}

.process-step h3 {
  color: #ffd700;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.process-step h4 {
  color: #1a73e8;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.process-step ul {
  list-style: none;
  padding: 0;
}

.process-step ul li {
  margin-bottom: 10px;
  color: #ccc;
}

.process-step ul li strong {
  color: #ffd700;
}

.process-step .activities,
.process-step .findings,
.process-step .solution {
  margin-top: 15px;
}

.process-step .activities ul,
.process-step .findings ul,
.process-step .solution ul {
  padding-left: 20px;
}

.process-step .solution ul li {
  list-style-type: square;
}

/* Process step images */
.process-step img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ======================
   Navigation Bar Styles
   ====================== */
nav {
  background-color: rgba(10, 10, 10, 0.95);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  padding: 15px 20px;
}

.nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: #1a73e8;
  font-weight: 700;
  text-decoration: none;
}

/* Desktop & Tablet Menu - ALWAYS VISIBLE */
.desktop-menu {
  display: flex;
  gap: 25px;
}

.menu-link {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.menu-link:hover,
.menu-link.active {
  color: #1a73e8;
  background: rgba(26, 115, 232, 0.15);
  transform: translateY(-2px);
}

.menu-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #1a73e8;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.menu-link:hover::after,
.menu-link.active::after {
  width: 80%;
}

/* Mobile Menu Toggle - HIDDEN on Desktop/Tablet */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 0px;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile Menu - HIDDEN on Desktop/Tablet */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1001;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 80px 25px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.6);
  visibility: hidden;
  color: white;
}

.mobile-menu.active {
  right: 0;
  visibility: visible;
}

.mobile-menu .menu-link {
  padding: 18px 20px;
  margin: 8px 0;
  border-radius: 10px;
  font-size: 1.2rem;
  border-left: 4px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
}

.mobile-menu .menu-link:hover,
.mobile-menu .menu-link.active {
  border-left-color: #1a73e8;
  background: rgba(26, 115, 232, 0.2);
  transform: translateX(5px);
}

/* Close Button */
.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.close-menu:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ======================
   Hero Section Styles
   ====================== */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(75, 0, 130, 0.5),
    rgba(0, 0, 139, 0.5),
    rgba(195, 0, 255, 0.5)
  );
  background-size: 200% 200%;
  animation: moveGlow 20s infinite alternate ease-in-out;
  position: relative;
  overflow: hidden;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  object-fit: cover;
  z-index: -2;
}

@keyframes moveGlow {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.hero h1 {
  font-size: 4rem;
  margin: 0;
  z-index: 2;
  color: #1a73e8;
  text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2),
    -1px -1px 5px rgba(23, 114, 226, 0.5);
}

.hero p {
  font-size: 1rem;
  margin: 10px 0 0;
  z-index: 1;
  color: #fff;
}

/* Professional Tagline Enhancement */
.professional-tagline {
  font-size: 1rem;
  color: #ffd700;
  margin: 20px 0;
  font-style: italic;
}

/* Skills Preview on Homepage */
.skills-preview {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.skill-tag {
  background: rgba(26, 115, 232, 0.2);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(26, 115, 232, 0.5);
}

/* ======================
   Call to Action Button
   ====================== */
.btn {
  --clr-font-main: hsla(0 0% 20% / 100);
  --btn-bg-1: rgb(150, 97, 255);
  --btn-bg-2: hsla(217 100% 56% / 1);
  --btn-bg-color: hsla(360 100% 100% / 1);
  --radii: 0.5em;
  cursor: pointer;
  margin-bottom: 20px;
  padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 4vw, 1.25rem);
  min-width: max(120px, 10vw);
  min-height: 44px;
  text-align: center;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-family: "Montserrat", sans-serif;
  transition: 0.8s;
  background-size: 280% auto;
  background-image: linear-gradient(
    325deg,
    var(--btn-bg-2) 0%,
    var(--btn-bg-1) 55%,
    var(--btn-bg-2) 90%
  );
  border: none;
  border-radius: var(--radii);
  color: var(--btn-bg-color);
  box-shadow: 0px 0px 20px rgba(71, 83, 255, 0.5),
    0px 5px 5px -1px rgba(58, 125, 233, 0.25),
    inset 4px 4px 8px rgba(200, 117, 251, 0.5),
    inset -4px -4px 8px rgba(19, 95, 216, 0.35);
}

.btn:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0px 0px 25px rgba(71, 83, 255, 0.7),
    0px 7px 7px -1px rgba(58, 125, 233, 0.3),
    inset 4px 4px 8px rgba(200, 117, 251, 0.6),
    inset -4px -4px 8px rgba(19, 95, 216, 0.4);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0px 0px 15px rgba(71, 83, 255, 0.4),
    0px 3px 3px -1px rgba(58, 125, 233, 0.2),
    inset 4px 4px 8px rgba(200, 117, 251, 0.4),
    inset -4px -4px 8px rgba(19, 95, 216, 0.3);
}

.btn:is(:focus, :focus-visible, :active) {
  outline: none;
  box-shadow: 0 0 0 3px var(--btn-bg-color), 0 0 0 6px var(--btn-bg-2);
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: linear;
  }
}

/* ======================
   Social Icons Styles
   ====================== */
.social-icons {
  margin-top: 20px;
  z-index: 1;
}

.social-icons a {
  color: #fff;
  font-size: 2rem;
  margin: 0 10px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #1a73e8;
  transform: translateY(-5px);
}

/* ======================
   Content Section Styles
   ====================== */
.content {
  padding: 20px 0;
  text-align: center;
}

.content p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #e0e0e0;
  text-align: justify;
  padding: 10px;
}

.content ul {
  list-style: none;
  padding: 0;
  text-align: left;
  display: block;
  margin: 0;
}

.content ul li {
  margin-bottom: 12px;
  color: #ccc;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.content ul li:before {
  content: "o";
  color: #1a73e8;
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -8px;
}

.content strong {
  color: #ffd700;
}

/* ======================
   Projects Section Styles
   ====================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
}

#projects {
  text-align: center;
}

.project-content-section {
  margin: 30px 0;
  padding: 20px;
  background: rgba(10, 10, 10, 0.5);
  border-radius: 8px;
  border-left: 4px solid #1a73e8;
}

#projects .container {
  margin-top: 20px;
  padding: 20px;
  border-radius: 5px;
  box-shadow: #000000 2px 2px 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 20px;
  padding: 20px;

  
}

.project-card {
  margin-top: 20px;
  padding: 20px 15px 15px;
  background: rgba(7, 12, 82, 0.5);
  border-radius: 8px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3), 0 0 0 2px #1a73e8;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* cursor: pointer; */
  display: flex;
  flex-direction: column;
  min-height: 400px; /* Ensure consistent height */
}


.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5), 0 0 30px #1a73e8;
}

.project-card img {
  width: 90%;
  height: auto;
  border-radius: 0px 0px 8px 8px;
}

.project-card h3 {
  margin: 1rem 0;
  color: #ffd700;
}

.project-card p {
  padding: 0 1rem;
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 10px 0;
  flex-grow: 1; /* Allow paragraph to take available space */
}

.project-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Make content area flexible */
}

.project-card a {
  display: inline-block;
  margin: 1rem;
  padding: 0.5rem 1rem;
  background: #1a73e8;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

/* Project detail images */
.project-detail-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-btn {
  margin-top: 15px;
  background-color: #1a73e8;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Project Skills Container */
.project-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 15px;
  min-height: 40px; /* Add minimum height */
  justify-content: center; /* Center the tags */
  align-items: center;
}

/* Skill Tag - Update existing .skill-tag or add specific styles */
.project-skills .skill-tag {
  background: rgba(26, 115, 232, 0.2);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  border: 1px solid rgba(26, 115, 232, 0.5);
  color: #e0e0e0;
  white-space: nowrap;
  flex-shrink: 0; /* Prevent tags from shrinking */
  max-width: 120px; /* Limit tag width */
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
}

/* Hover effect for skill tags */
.project-skills .skill-tag:hover {
  background: rgba(26, 115, 232, 0.4);
  transform: translateY(-2px);
}

/* Alternative: Grid layout for skill tags */
.project-skills.grid-tags {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 6px;
  margin: 10px 0 15px;
}

.project-skills.grid-tags .skill-tag {
  text-align: center;
  padding: 6px 8px;
  font-size: 0.8rem;
  max-width: none; /* Remove max-width for grid */
}

/* Tablet and Mobile Responsive */
@media (max-width: 768px) {
  .project-skills {
    gap: 6px;
    margin: 8px 0 12px;
  }
  
  .project-skills .skill-tag {
    padding: 5px 10px;
    font-size: 0.8rem;
    max-width: 100px;
  }
  
  .project-card {
    min-height: 350px; /* Adjust for mobile */
  }
}

@media (max-width: 480px) {
  .project-skills {
    gap: 4px;
  }
  
  .project-skills .skill-tag {
    padding: 4px 8px;
    font-size: 0.75rem;
    max-width: 90px;
  }
  
  .project-skills .skill-tag:nth-child(n+3) {
    /* Optional: hide extra tags on very small screens */
    display: none;
  }
  
  /* Show "more" indicator if you hide tags */
  .project-skills.has-more-tags::after {
    content: "+more";
    background: rgba(26, 115, 232, 0.3);
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 0.75rem;
    color: #ccc;
    margin-left: 4px;
  }
}

/* ======================
   About Me Section Styles
   ====================== */
#about .container {
  border-radius: 5px;
  box-shadow: #000000 2px 2px 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* About Me Grid Styles */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.about-card {
  background: rgba(7, 12, 82, 0.5);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  perspective: 1000px;
  opacity: 0.8;
}

.about-card:hover {
  transform: translateY(-10px) rotateX(10deg) rotateY(10deg);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5), 0 0 30px #1a73e8;
}

.about-card i {
  font-size: 3rem;
  color: #1a73e8;
  margin-bottom: 15px;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.about-card:hover i {
  transform: scale(1.2);
  color: #ffd700;
}

.about-card h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #1a73e8;
}

.about-card:hover h4 {
  transform: scale(1.1);
  color: #ffd700;
}

.about-card p {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.5;
}

/* ======================
   Navigation Buttons
   ====================== */
.project-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
}

.project-navigation .btn {
  background-color: #1a73e8;
  color: #fff;
  padding: 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  row-gap: 10px;
  flex: 1;
  max-width: 200px;
  font-size: 1rem;
  text-align: center;
}

.project-navigation .btn:hover {
  background-color: #1557a3;
  transform: translateY(-2px);
}

/* ======================
   Image Content Grid
   ====================== */
.image-content-grid,
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: center;
}

.center-image,
.image-content-grid img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ======================
   Graphic Design Grid Styles
   ====================== */
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.design-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.design-img-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
}

.design-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.design-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 115, 232, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.zoom-btn {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* Hover Effects */
.design-item:hover {
  transform: translateY(-10px);
}

.design-item:hover .design-img {
  transform: scale(1.1);
}

.design-item:hover .design-overlay {
  opacity: 1;
}

/* ======================
   Dynamic Grid System
   ====================== */
.dynamic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 200px;
  grid-gap: 25px;
  grid-auto-flow: dense;
  margin-top: 40px;
}

.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.grid-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.5s ease;
}

/* Size Variations */
.grid-item.tall {
  grid-row: span 2;
  height: 425px;
}

.grid-item.wide {
  grid-column: span 2;
}

.grid-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

/* Hover Effects */
.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.grid-item:hover img {
  transform: scale(1.03);
}

.img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 115, 232, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.img-overlay i {
  color: white;
  font-size: 2rem;
}

.grid-item:hover .img-overlay {
  opacity: 1;
}

/* ======================
   Lightbox Styles
   ====================== */
.lightbox,
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  padding: 20px;
  box-sizing: border-box;
}

.lightbox.active,
.lightbox-modal.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.modal-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 35px;
  cursor: pointer;
}

/* Lightbox Controls */
.lightbox-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 2001;
}

.lightbox-btn {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-btn:hover {
  background: rgba(26, 115, 232, 0.9);
  transform: scale(1.1);
}

/* Close button specifically */
.close-lightbox {
  background: rgba(220, 53, 69, 0.8);
}

.close-lightbox:hover {
  background: rgba(220, 53, 69, 1);
}

/* Image info/caption */
.image-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  color: white;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 1rem;
}

/* Zoom controls */
.zoom-controls {
  position: absolute;
  bottom: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zoom-btn {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.zoom-btn:hover {
  background: rgba(26, 115, 232, 0.9);
}

/* ======================
   Image Container & Enlarge Button
   ====================== */
.image-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: 20px auto;
}

.image-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.enlarge-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 10;
}

.image-container:hover .enlarge-btn {
  opacity: 1;
}

.enlarge-btn:hover {
  background: rgba(26, 115, 232, 0.9);
  transform: scale(1.1);
}

/* ======================
   Instagram, Twitter link area
   ====================== */
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");

.spread {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 192, 203, 0.1);
  padding: 0px;
  border-radius: 8px;
  margin-top: 0px;
}

.spread .material-icons {
  color: #ff00bb;
  font-size: 1.5rem;
}

.spread .bold {
  font-size: 1.2rem;
  align-content: space-between;
  color: #ff00bb;
}

/* ======================
   Footer (Contact Section) Styles
   ====================== */
footer {
  width: 70%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  background-color: rgba(26, 26, 26, 0.7);
  text-align: center;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.3);
}

footer h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ffd700;
}

footer p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #ccc;
}

footer a {
  color: #ffd700;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Contact Form Styles */
.contact-form {
  max-width: 700px;
  width: 100%;
  padding: 20px;
  background: rgba(26, 26, 26, 0.8);
  border-radius: 8px;
  box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.3);
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.contact-form form {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #1a73e8;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  box-sizing: border-box;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.fchart {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 20px auto;
  display: block;
}

/* ======================
   Responsive Figma Embed
   ====================== */
.responsive-figma {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.responsive-figma iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ======================
   Mobile Menu Animation
   ====================== */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* ======================
   Focus States for Accessibility
   ====================== */
.menu-link:focus,
.btn:focus,
.tool-item:focus {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

/* ======================
   Responsive Media Queries
   ====================== */

/* Tablet (1024px and below) */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
  body {
    padding: 5px !important;
  }

  .container {
    padding: 0 15px;
    width: 100vw;
    max-width: 100vw;
  }

  .content {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .content p,
  .content ul li {
    font-size: 1rem;
    line-height: 1.5;
  }

  .content ul {
    padding-left: 10px;
  }

  .content ul li {
    padding-left: 25px;
    margin-bottom: 10px;
  }

  /* Navigation */
  .desktop-menu {
    gap: 15px;
  }

  .menu-link {
    padding: 8px 15px;
    font-size: 0.95rem;
  }

  .logo {
    font-size: 1.6rem;
  }

  nav {
    padding: 12px 15px;
  }

  /* Typography */
  .container h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .container h2 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .container h3 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-content-section {
    margin: 20px 0;
    padding: 15px;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }

  /* Design Process */
  .design-process {
    padding: 15px !important;
    margin: 10px 0 !important;
    width: 100%;
    gap: 15px;
  }

  .process-step {
    padding: 15px !important;
    width: 100%;
  }

  /* Images */
  .content img,
  .process-step img,
  .fchart,
  .project-detail-image {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Iframes */
  iframe,
  .responsive-figma iframe {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Tool grid */
  .tool-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    width: 100%;
  }

  /* Footer */
  footer {
    width: 100%;
    padding: 0 10px;
    align-items: center;
    text-align: center;
  }

  .contact-form {
    width: 100%;
    padding: 15px;
    margin: 15px auto;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 10px;
    font-size: 0.95rem;
  }

  /* Dynamic Grid */
  .dynamic-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 180px;
  }

  .grid-item.tall {
    height: 385px;
  }

  .grid-item.wide,
  .grid-item.large {
    grid-column: span 1;
  }

  /* Design Grid */
  .design-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  /* Lightbox */
  .lightbox-controls,
  .zoom-controls {
    bottom: 10px;
    right: 10px;
    top: auto;
  }

  .lightbox-btn,
  .zoom-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .lightbox-modal {
    padding: 10px;
  }

  .image-caption {
    font-size: 0.9rem;
    padding: 8px;
  }

  .enlarge-btn {
    opacity: 1;
    width: 35px;
    height: 35px;
    font-size: 16px;
    top: 8px;
    right: 8px;
  }

  /* Timeline Mobile Fix */
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item.right {
    left: 0;
  }

  .timeline-item::after {
    left: 21px;
  }

  .timeline-item.right::after {
    left: 21px;
  }

  /* Tab Navigation Mobile Fix */
  .tab-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 10px;
  }

  .tab-button {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* Mobile (600px and below) */
@media (max-width: 600px) {
  .desktop-menu {
    display: none;
  }

  .logo {
    margin-left: 10px;
  }

  .mobile-menu-toggle {
    display: flex;
    margin-right: 15px;
  }

  body {
    padding-top: 70px;
  }

  .project-navigation {
    flex-direction: column;
    align-items: center;
  }

  .project-navigation .btn {
    width: 60%;
    max-width: 280px;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  body {
    padding: 0 !important;
  }

  .container {
    padding: 0 10px;
  }

  * {
    max-width: 100vw !important;
  }

  .container h1 {
    font-size: 1.8rem;
  }

  .container h2 {
    font-size: 1.5rem;
  }

  .container h3 {
    font-size: 1.2rem;
  }

  /* Navigation */
  .mobile-menu-toggle {
    margin-right: 10px;
  }

  .logo {
    margin-left: 5px;
  }

  .mobile-menu {
    width: 90%;
    padding: 70px 20px 25px;
  }

  .mobile-menu .menu-link {
    padding: 16px 18px;
    font-size: 1.1rem;
  }

  /* Grid List */
  .grid-list {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .list-item {
    padding: 10px;
  }

  /* Image Grids */
  .image-content-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  /* Tool Grid */
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tool-item {
    padding: 10px 5px;
  }

  .tool-item img {
    width: 30px;
    height: 30px;
  }

  .tool-item span {
    font-size: 0.8rem;
  }

  /* Dynamic Grid */
  .dynamic-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-auto-rows: 150px;
    gap: 10px;
  }

  .grid-item.tall {
    grid-row: span 1;
    height: auto;
  }

  .grid-item.wide,
  .grid-item.large {
    grid-column: span 1;
  }

  /* Buttons */
  .btn {
    max-width: 100px;
    padding: 0.75rem 1rem;
  }

  /* Hero */
  .hero {
    width: 100%;
    padding: 100px 20px 25px;
  }

  .hero p {
    font-size: 0.8rem;
  }

  .hero h1,
  .hero h2 {
    font-size: 1rem;
  }

  /* Contact Form */
  .contact-form {
    padding: 12px;
  }
  .center-image {
    margin: 0 auto 15px;
  } 
}

/* Touch device optimizations */
@media (max-width: 768px) (hover: none) {
  .image-container:hover img {
    transform: none;
  }

  .enlarge-btn {
    opacity: 1;
  }
}

/* ======================
   DEBUG: Find Overflow Elements
   ====================== */
.debug-outline * {
  outline: 1px solid red;
}

.debug-overflow {
  background-color: rgba(255, 0, 0, 0.1);
  border: 2px dashed red;
}

/* ======================
   Project 2 Specific Styles
   ====================== */

/* Process items alignment */
.process-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(10, 10, 10, 0.5);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.process-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.process-item .material-icons {
  color: #1a73e8;
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 5px;
}

.process-item h4 {
  font-size: 1.5rem;
  color: #ffd700;
  margin: 0 0 10px 0;
}

.process-item p {
  font-size: 1rem;
  color: #e0e0e0;
  line-height: 1.6;
  margin: 0;
}

/* Group containers */
.group {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
  padding: 20px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.subgroup {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  margin: 15px 0;
  padding: 15px;
  width: 100%;
  box-sizing: border-box;
}

/* Content grid for two-column layouts */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  margin: 20px 0;
  width: 100%;
  box-sizing: border-box;
}

.text-container {
  padding: 15px;
  width: 100%;
  box-sizing: border-box;
}

/* Center image styling */
.center-image {
  display: block;
  margin: 0 auto 30px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

 /* Project 2 responsive styles */
  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .process-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
  }
  
  .process-item .material-icons {
    margin-bottom: 10px;
  }
  
  .group {
    padding: 15px;
    margin: 15px 0;
  }
  
  .center-image {
    margin: 0 auto 20px;
  }
}

/* Add to existing @media (max-width: 480px) section */
@media (max-width: 480px) {
  /* ... existing styles ... */
  
  /* Project 2 small screen styles */
  .process-item {
    padding: 12px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
  }
  
  .process-item h4 {
    font-size: 1.3rem;
  }
  
  .process-item p {
    font-size: 0.95rem;
  }
  
  .group {
    padding: 12px;
  }
  
  .group h3 {
    font-size: 1.5rem;
  }
}

/* Add to styles.css */
.fas, .fa, .fab, .far {
  font-family: 'Font Awesome 6 Free' !important;
  font-weight: 900;
}

.fab {
  font-family: 'Font Awesome 6 Brands' !important;
  font-weight: 400;
}

/* Specifically for the icons that aren't displaying */
.menu-link i,
.social-icons a i,
.close-menu i,
.enlarge-btn i,
.zoom-btn i,
.lightbox-btn i {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

/* Process items with content wrapper */
.process-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(10, 10, 10, 0.5);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.process-item-content {
  flex: 1;
}

.process-item .material-icons {
  color: #1a73e8;
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .process-item {
    align-items: center; /* Center vertically */
    gap: 15px;
    padding: 15px;
  }
  
  .process-item .material-icons {
    margin-top: 0; /* Remove top margin for perfect centering */
  }
  
  .process-item-content h4 {
    margin: 0 0 8px 0;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .process-item {
    gap: 12px;
    padding: 12px;
  }
  
  .process-item .material-icons {
    align-items:bottom;
    font-size: 1.8rem; /* Slightly smaller on mobile */
  }
  
  .process-item-content h4 {
    font-size: 1.3rem;
  }
}


.link{
  color:white;
  underline:none;
}
a {
  text-decoration: none;
}

/* WhatsApp Floating Button */
/* WhatsApp Floating Button - FIXED VERSION */
.whatsapp-float {
  position: fixed;
  bottom: 60px;
  right: 60px;
  width: 60px;
  height: 60px;
  background-color: rgb(38, 16, 23);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #1a73e8; /* Changed to match your theme */
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(38, 16, 23, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(38, 16, 23, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(38, 16, 23, 0);
  }
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 25px;
    bottom: 20px;
    right: 20px;
  }
}
//End of Whatsapp button

.form-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 5px;
  display: none;
  animation: fadeSlide 0.4s ease forwards;
  background: #e6fffa;
}

.form-message.success {
  background: #e6fffa;
  color: #065f46;
  font-weight: bold;
}

.form-message.error {
  background: #fee2e2;
  color: #7f1d1d;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
