/* Base Styles */
:root {
  --primary-color: #5d5dff;
  --primary-dark: #4a4adb;
  --secondary-color: #6b7280;
  --accent-color: #3f3fff;
  --background-color: #ffffff;
  --text-color: #1f2937;
  --text-secondary: #6b7280;
  --light-gray: #f3f4f6;
  --medium-gray: #e5e7eb;
  --dark-gray: #9ca3af;
  --card-bg: #ffffff;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
  --navbar-bg: rgba(255, 255, 255, 0.8);
  --navbar-text: #1f2937;
  --navbar-height: 70px;
  --section-padding: 100px 0;
  --sidebar-border: #e5e7eb;
  --sidebar-ring: #5d5dff;
  --toggle-bg: #e5e7eb;
  --toggle-circle: #ffffff;
  --toggle-active: #5d5dff;
}

.dark-theme {
  --primary-color: #6d6dff;
  --primary-dark: #5a5ae6;
  --secondary-color: #9ca3af;
  --accent-color: #4f4fff;
  --background-color: #111827;
  --text-color: #f9fafb;
  --text-secondary: #d1d5db;
  --light-gray: #1f2937;
  --medium-gray: #374151;
  --dark-gray: #6b7280;
  --card-bg: #1f2937;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  --navbar-bg: rgba(31, 41, 55, 0.8);
  --navbar-text: #f9fafb;
  --sidebar-border: #374151;
  --sidebar-ring: #6d6dff;
  --toggle-bg: #4b5563;
  --toggle-circle: #f9fafb;
  --toggle-active: #6d6dff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  padding: var(--section-padding);
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.underline {
  height: 4px;
  width: 70px;
  background: var(--primary-color);
  margin: 0 auto;
  border-radius: 2px;
}

.keyword {
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.keyword::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.keyword:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Theme Toggle Switch */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 24px;
  background-color: var(--toggle-bg);
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: var(--toggle-circle);
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark-theme .toggle-switch {
  background-color: var(--toggle-active);
}

.dark-theme .toggle-switch::after {
  transform: translateX(26px);
}

.toggle-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px;
  box-sizing: border-box;
  pointer-events: none;
}

.toggle-icons svg {
  width: 12px;
  height: 12px;
  color: var(--toggle-circle);
  opacity: 0.7;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  background-color: var(--navbar-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
  margin-right: 60px; /* Add space for theme toggle */
}

.nav-links a {
  position: relative;
  color: var(--navbar-text);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  margin-right: 60px; /* Add space for theme toggle */
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--navbar-text);
  transition: var(--transition);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-height);
  background-color: var(--background-color);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero-greeting {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.1;
}

.hero-text h2 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
  line-height: 1.8;
}

.hero-text .highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(93, 93, 255, 0.3);
}

.cta-button:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(93, 93, 255, 0.4);
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-image {
  flex: 1;
}

.profile-frame {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto;
  transition: var(--transition);
}

.profile-frame::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  z-index: -1;
  transition: var(--transition);
}

.profile-frame:hover::before {
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: var(--transition);
}

.profile-frame:hover img {
  transform: scale(1.05);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.about-text h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.skills {
  margin-top: 30px;
}

.skill-category {
  margin-bottom: 20px;
}

.skill-category h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  background-color: var(--light-gray);
  color: var(--text-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.skill-tags span:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Qualifications Section */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--medium-gray);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 1;
}

.timeline-content {
  position: relative;
  width: calc(50% - 40px);
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.timeline-item:nth-child(odd) .timeline-content {
  left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  left: calc(50% + 40px);
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -20px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid var(--card-bg);
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -20px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid var(--card-bg);
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.timeline-date {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 10px;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Web Development Projects Grid - 3 in a row */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  position: relative;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--text-color);
}

.project-info p {
  margin: 0 0 15px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.project-link {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.project-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.project-link:hover {
  color: var(--primary-dark);
}

.project-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Project Tags */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.project-tag {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  background-color: var(--light-gray);
  color: var(--text-secondary);
  transition: var(--transition);
}

.project-tag:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Hidden projects and toggle button */
.hidden-project {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

.hidden-project.show {
  display: block;
  animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.projects-toggle-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.toggle-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  padding: 10px 25px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.toggle-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  z-index: -1;
}

.toggle-button:hover {
  color: white;
}

.toggle-button:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.toggle-button .toggle-icon {
  transition: transform 0.3s ease;
}

.toggle-button.active .toggle-icon {
  transform: rotate(180deg);
}

/* Replace the existing carousel styles with this grid-based carousel */

/* Carousel for Graphics Design */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  padding: 10px;
}

.carousel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.design-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.design-item::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d5dff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'%3E%3C/path%3E%3Cpath d='M10 14L21 3'%3E%3C/path%3E%3Cpath d='M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.design-item:hover::after {
  opacity: 1;
}

.design-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.design-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.design-item:hover img {
  transform: scale(1.05);
}

.design-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.design-item:hover .design-overlay {
  transform: translateY(0);
}

.design-overlay h3 {
  margin: 0 0 5px;
  font-size: 1.2rem;
}

.design-overlay p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-button:hover {
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-button.prev {
  left: 20px;
}

.carousel-button.next {
  right: 20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* Responsive adjustments for carousel */
@media (max-width: 992px) {
  .carousel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Modify the carousel grid for mobile devices */
@media (max-width: 768px) {
  .carousel-grid {
    display: flex;
    flex-wrap: nowrap;
  }

  .carousel-slide {
    min-width: 100%;
    padding: 0 10px;
  }

  .design-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    display: block !important; /* Force display */
    visibility: visible !important; /* Ensure visibility */
    opacity: 1 !important; /* Ensure opacity */
  }

  /* Make each design item take full width */
  .carousel-grid .design-item {
    width: 100%;
    max-width: 100%;
  }

  /* Ensure the carousel container is visible */
  .carousel-container {
    overflow: visible;
    height: auto;
    min-height: 300px;
  }

  /* Ensure carousel track is visible */
  .carousel-track {
    display: flex;
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .carousel-slide {
    padding: 0 5px;
  }

  .design-item {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 250px;
    display: block !important; /* Force display */
    visibility: visible !important; /* Ensure visibility */
    opacity: 1 !important; /* Ensure opacity */
  }

  /* Ensure proper spacing for single item view */
  .carousel-container {
    padding: 0 10px;
    overflow: visible;
    height: auto;
    min-height: 250px;
  }

  /* Make navigation buttons more visible on mobile */
  .carousel-button {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 20; /* Ensure buttons are above content */
  }

  .carousel-button.prev {
    left: 5px;
  }

  .carousel-button.next {
    right: 5px;
  }
}

/* Add styles for infinite carousel */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.carousel-track.no-transition {
  transition: none;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

/* Filter Styles */
.filter-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.filter-btn {
  background-color: var(--light-gray);
  color: var(--text-color);
  border: none;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: "Poppins", sans-serif;
}

.filter-btn:hover {
  background-color: var(--medium-gray);
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(93, 93, 255, 0.3);
}

/* Achievements Section */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.achievement-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border: 1px solid transparent;
}

.achievement-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(93, 93, 255, 0.1);
}

.achievement-icon {
  width: 60px;
  height: 60px;
  background-color: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary-color);
  transition: var(--transition);
}

.achievement-card:hover .achievement-icon {
  background-color: var(--primary-color);
  color: white;
}

.achievement-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.achievement-card p {
  color: var(--secondary-color);
}

/* Contact Section */
.contact-section {
  text-align: center;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-content p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.social-link {
  width: 50px;
  height: 50px;
  background-color: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 0;
  background-color: var(--light-gray);
  color: var(--secondary-color);
  margin-top: 50px;
}

/* Animations */
@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.9;
  }
}

@keyframes float {
  0% {
    transform: rotate(45deg) translateY(0);
  }
  100% {
    transform: rotate(45deg) translateY(-20px);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

.animate-text {
  opacity: 0;
  animation: fadeIn 1s forwards 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-slide .design-item {
    height: 400px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-text p {
    margin: 0 auto 30px;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-text h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 20px;
  }

  .nav-links {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--navbar-bg);
    flex-direction: column;
    align-items: center;
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-right: 0;
  }

  .nav-links.active {
    height: calc(100vh - var(--navbar-height));
    padding: 30px 0;
  }

  .hamburger {
    display: flex;
    margin-right: 60px;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-text p {
    margin: 0 auto 30px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-icon {
    left: 30px;
  }

  .timeline-content {
    width: calc(100% - 80px);
    left: 80px !important;
  }

  .timeline-item:nth-child(odd) .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -20px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--card-bg);
    border-left: none;
  }

  .projects-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .carousel-slide .design-item {
    height: 350px;
  }

  .carousel-button {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-greeting {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 250px;
    margin: 30px auto 0;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .social-links {
    gap: 15px;
  }

  .carousel-slide .design-item {
    height: 300px;
  }

  .carousel-slide .design-overlay {
    padding: 20px;
  }

  .carousel-slide .design-overlay h3 {
    font-size: 1.2rem;
  }

  .carousel-button {
    width: 35px;
    height: 35px;
  }

  .filter-buttons {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: flex-start;
    width: 100%;
  }

  .filter-container {
    overflow-x: auto;
    width: 100%;
    padding: 0 20px;
    margin-left: -20px;
    margin-right: -20px;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-caption {
  color: white;
  margin-top: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 1001;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav.prev {
  left: -80px;
}

.lightbox-nav.next {
  right: -80px;
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-nav.prev {
    left: 10px;
  }

  .lightbox-nav.next {
    right: 10px;
  }
}

/* Replace the existing hero-image, animated-illustration, circle, square, triangle styles with these simplified styles: */

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.animated-shape {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rotating-circle {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  animation: rotate 15s linear infinite;
}

.rotating-circle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
  animation: rotate-reverse 12s linear infinite;
}

.rotating-circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, transparent 70%);
  opacity: 0.6;
  animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes rotate {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotate-reverse {
  0% {
    transform: translate(-50%, -50%) rotate(0);
  }
  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}
