:root {
  --primary: #4A7FA7;
  --secondary: #B3CFE5;
  --accent: #B3CFE5;
  --light: #F6FAFD;
  --dark: #0D1323;
  --gray: #B3CFE5;
  --light-gray: #1A3D63;
  --card-bg: rgba(26, 61, 99, 0.7);
  --text-light: #F6FAFD;
  --text-dark: #0D1323;
  --bg-light: #F6FAFD;
  --bg-dark: #0D1323;
  --nav-bg-light: rgba(13, 19, 35, 0.85);
  --nav-bg-dark: rgba(13, 19, 35, 0.85);

  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
  --glow: 0 0 25px rgba(179, 207, 229, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: var(--bg-dark);
  color: var(--light);

  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.5s ease;
}

#landing {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, var(--dark) 0%, var(--bg-dark) 100%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease, transform 1.2s ease;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(74, 127, 167, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(179, 207, 229, 0.1) 0%, transparent 20%);
}

#welcome-message {
  text-align: center;
  color: var(--light);
  max-width: 800px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

#welcome-message h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--light) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  opacity: 0;
  transform: translateY(30px);
}

#welcome-message p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: rgba(246, 250, 253, 0.8);
  font-weight: 300;
  opacity: 0;
  transform: translateY(30px);
}

#welcome-message .progress-bar {
  height: 4px;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto;
  transition: width 4s linear;
  opacity: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: var(--light);
  border-radius: 50%;
  animation: twinkle 3s infinite;
  z-index: 1;
}

.star:nth-child(2n) {
  animation-delay: 1s;
}

.star:nth-child(3n) {
  animation-delay: 2s;
}

@keyframes twinkle {
  0% {
    opacity: 0.2;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.2;
  }
}

/* Header */
header {
  background-color: var(--nav-bg-dark);
  color: var(--light);
  padding: 1.2rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 900;
  box-shadow: var(--shadow);
  transform: translateY(-100%);
  transition: transform 0.6s ease, background-color 0.5s ease;
  backdrop-filter: blur(10px);
}


.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  color: var(--light);
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 0.15rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: var(--transition);
  padding: 0.4rem 0;
}

nav a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent);
  transition: var(--transition);
  border-radius: 3px;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

nav a:hover:after,
nav a.active:after {
  width: 100%;
}

.theme-toggle {
  width: 50px;
  height: 26px;
  background: var(--light-gray);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.theme-toggle::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--light);
  top: 3px;
  left: 3px;
  transition: transform 0.3s ease;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--light);
  cursor: pointer;
}

/* Sections */
section {
  padding: 7rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  color: var(--light);
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background-color: var(--primary);
  border-radius: 3px;
}

.section-header p {
  color: var(--gray);
  max-width: 700px;
  margin: 1.5rem auto 0;
  font-size: 1.2rem;
  line-height: 1.7;
}

/* Home Section */
#home {
  background: transparent;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(40px);
}

.home-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.home-text h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.home-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--light);
}

.home-text h1 span {
  color: var(--primary);
}

.home-text p {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.home-cta {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  gap: 0.7rem;
  box-shadow: var(--shadow);
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: rgba(74, 127, 167, 0.1);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--light-gray);
  border-radius: 50%;
  color: var(--light);
  font-size: 1.4rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.social-links a:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow);
  color: var(--primary);
}

.tech-carousel {
  position: relative;
  height: 400px;
  perspective: 1000px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--light-gray);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  place-items: center;
  height: 100%;
  padding: 2rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  transform: scale(1);
  animation: float 6s infinite ease-in-out;
}

.tech-item:nth-child(2n) {
  animation-delay: 1s;
}

.tech-item:nth-child(3n) {
  animation-delay: 2s;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0);
  }
}

.tech-icon {
  width: 100px;
  height: 100px;
  background: var(--dark);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.tech-item:hover .tech-icon {
  background: var(--primary);
  color: var(--dark);
  box-shadow: var(--glow);
}

.tech-name {
  font-weight: 600;
  color: var(--light);
  text-align: center;
  font-size: 1rem;
}

/* About Section */
#about {
  background: var(--light-gray);
}

#about .section-header h2 {
  color: var(--light);
}

#about .about-text :is(p, h3) {
  color: var(--light);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.about-text {}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.8rem 1.8rem;
  background: var(--dark);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--light);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--accent);
  color: var(--dark);
}

.about-content {
  position: relative;
  height: 500px;
  perspective: 1200px;
}

.content-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 2rem;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 0.8s ease, opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.profile-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
}

.profile-image {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(179, 207, 229, 0.2);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.2);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-panel h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--light);
}

.profile-panel p {
  color: var(--gray);
  font-size: 1.1rem;
}

.timeline-panel {
  z-index: 0;
  transform: rotateY(180deg);
  opacity: 0;
}

.back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--primary);
  color: var(--light);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.back-btn:hover {
  transform: scale(1.1);
}

.timeline {
  position: relative;
  height: 100%;
  overflow-y: auto;
  padding-right: 1rem;
}

.timeline::-webkit-scrollbar {
  width: 8px;
}

.timeline::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.timeline::-webkit-scrollbar-track {
  background: rgba(13, 19, 35, 0.5);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 3.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 15px;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--card-bg);
  box-shadow: 0 0 0 4px var(--light-gray);
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  color: var(--light);
}

.timeline-content .date {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.95rem;
}

.timeline-content p {
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.timeline-content ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.timeline-content li {
  margin-bottom: 0.3rem;
  color: var(--gray);
}

/* Showcase Tabs */
#showcase {
  display: flex;
  flex-direction: column;
}

.showcase-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.showcase-tab {
  padding: 1rem 2.2rem;
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light);
  cursor: pointer;
  transition: var(--transition);
}

.showcase-tab:hover {
  background: rgba(74, 127, 167, 0.2);
  transform: translateY(-3px);
}

.showcase-tab.active {
  background: var(--primary);
  color: var(--light);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--glow);
}

.showcase-content {
  position: relative;
  min-height: 600px;
  perspective: 1000px;
}

.showcase-panel {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 8px;
  background: var(--light-gray);
  box-shadow: var(--shadow);
  padding: 2rem;
  border: 1px solid var(--primary);
  display: none;
}

.showcase-panel.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Filters and Pagination Container */
.controls-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.filters-container {
  flex-grow: 1;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-box input {
  width: 100%;
  padding: 0.9rem 1.2rem 0.9rem 3rem;
  border-radius: 30px;
  border: 2px solid var(--primary);
  background: var(--dark);
  color: var(--light);
  font-size: 1rem;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(179, 207, 229, 0.2);
}

.search-box i {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
}

.filter-toggle {
  background: var(--dark);
  border: 2px solid var(--primary);
  border-radius: 30px;
  padding: 0.8rem 1.5rem;
  color: var(--light);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  justify-content: center;
}

.filter-toggle:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.filter-toggle i {
  transition: transform 0.3s ease;
}

.filter-toggle.active i {
  transform: rotate(180deg);
}

.reset-filters {
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 30px;
  padding: 0.8rem 1.5rem;
  color: var(--light);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.reset-filters:hover {
  background: var(--primary);
}

.filter-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(13, 19, 35, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.filter-modal.active {
  display: flex;
}

.filter-modal-content {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--primary);
  position: relative;
  animation: fadeInUp 0.3s ease;
}

.filter-close-modal {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--light);
  cursor: pointer;
  transition: color 0.3s ease;
}

.filter-close-modal:hover {
  color: var(--accent);
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.filter-title {
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.tech-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.tech-filter {
  background: var(--dark);
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  color: var(--light);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.tech-filter:hover {
  background: var(--primary);
}

.tech-filter.active {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
  box-shadow: var(--glow);
}

/* Pagination */
.pagination-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pagination {
  display: flex;
  gap: 0.5rem;
}

.page-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  border: 1px solid var(--primary);
  border-radius: 10px;
  color: var(--light);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 1rem;
}

.page-btn:hover:not(:disabled) {
  background: var(--primary);
  transform: translateY(-2px);
}

.page-btn.active {
  background: var(--primary);
  color: var(--light);
  box-shadow: var(--glow);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.page-info {
  color: var(--gray);
  font-size: 0.9rem;
  min-width: 100px;
  text-align: center;
}

/* Project Cards */
.contents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--glow);
  border-color: var(--accent);
}

.project-image {
  height: 200px;
  position: relative;
  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-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(26, 61, 99, 0.9), transparent);
}

.project-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: var(--light);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--light);
}

.project-content p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  flex-grow: 1;
}

.project-actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--light-gray);
  padding-top: 1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.project-link:hover {
  color: var(--light);
  gap: 0.8rem;
}

/* Certificate Cards */
.certificate-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow);
}

.certificate-image {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.certificate-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent);
  color: var(--dark);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
}

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

.certificate-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--light);
}

.certificate-content p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.certificate-issuer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: auto;
}

/* Tech Stack */
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2rem;
  place-items: center;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  transition: var(--transition);
  width: 100%;
  border: 1px solid transparent;
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow);
  border-color: var(--accent);
}

.tech-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  border-radius: 0;
  background: none;
  padding: 0;
}

.tech-icon-home {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  border-radius: 12px;
  padding: 12px;
}

.tech-icon-home i {
  font-size: 2.5rem;
  color: var(--accent);
}

.tech-name {
  color: var(--light);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

/* Project Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 19, 35, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  display: flex;
}

.modal-content {
  background: var(--light-gray);
  width: 90%;
  max-width: 1000px;
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
  backdrop-filter: blur(20px);
  border: 1px solid var(--primary);
  overflow-y: auto;
  max-height: 90vh;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: var(--light);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.2rem;
  z-index: 10;
}

.close-modal:hover {
  transform: rotate(90deg);
  background: var(--accent);
  color: var(--dark);
}

.modal-header {
  margin-bottom: 1.5rem;
  position: relative;
}

.modal-header h3 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.modal-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  overflow: hidden;
}

.modal-media img,
.modal-media iframe {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: cover;
  border: 0;
}

.modal-details {
  color: var(--light);
}

.modal-details p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--gray);
  text-align: justify;
}

.tech-used {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: var(--primary);
  color: var(--light);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.modal-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Contact Section */
#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 0;
  background: var(--light-gray);
  color: var(--light);
  text-align: center;
}

#contact .section-header {
  margin-bottom: 3rem;
}

#contact .section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  color: var(--light);
  position: relative;
  display: inline-block;
}

#contact .section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

#contact .section-header p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1.5rem auto 0;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  width: 100%;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
  min-width: 180px;
  text-decoration: none;
}

.contact-item i {
  font-size: 2rem;
  color: var(--accent);
  background: var(--card-bg);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid var(--primary);
}

a.contact-item:hover i {
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--accent);
}

.contact-details h3 {
  font-size: 1.1rem;
  margin: 0 0 0.2rem 0;
  color: var(--light);
  font-weight: 500;
}

.contact-details p,
.contact-details a {
  color: var(--gray);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.contact-details a:hover {
  color: var(--accent);
}

.contact-form-container {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--primary);
  width: 100%;
  max-width: 700px;
}

.contact-form-container h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--light);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 500;
  color: var(--light);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  background: var(--dark);
  color: var(--light);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  border: 1px solid var(--primary);
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--dark);
  box-shadow: 0 0 10px rgba(74, 127, 167, 0.5);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 1.1rem;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  color: var(--dark);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(74, 127, 167, 0.3);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(74, 127, 167, 0.4);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.footer-logo .logo-icon {
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
}

.footer-logo-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  background: linear-gradient(to right, var(--light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.1rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.social-links-footer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.social-links-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--light-gray);
  border-radius: 50%;
  color: var(--light);
  font-size: 1.4rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-links-footer a:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-5px);
}

.copyright {
  color: var(--gray);
  font-size: 0.95rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--gray);
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.empty-state i {
  font-size: 3rem;
  color: var(--primary);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 992px) {

  .home-content,
  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-content {
    height: 400px;
  }

  .home-text h1 {
    font-size: 3rem;
  }

  .section-header h2 {
    font-size: 2.5rem;
  }

  .contents-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .showcase-tabs {
    flex-direction: column;
    align-items: center;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .tech-stack-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tech-carousel {
    display: none;
  }

  .showcase-panel {
    height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .contents-grid {
    grid-template-columns: 1fr;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--nav-bg-dark);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  nav ul.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .home-text h1 {
    font-size: 2.5rem;
  }

  .home-cta {
    flex-direction: column;
  }

  .controls-container {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination-container {
    width: 100%;
    justify-content: center;
  }

  .showcase-tab {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .showcase-panel {
    padding: 1.5rem;
  }

  .page-btn:not(.prev):not(.next) {
    display: none;
  }

  .page-info {
    display: block;
    text-align: center;
  }

  .filter-modal {
    align-items: flex-end;
  }

  .filter-modal-content {
    width: 100%;
    max-width: 100%;
    border-radius: 1rem 1rem 0 0;
    padding: 1rem;
    animation: slideUp 0.3s ease;
  }

  #contact .section-header h2 {
    font-size: 2.2rem;
  }

  .contact-info {
    gap: 1.5rem;
  }

  .contact-item {
    min-width: 150px;
  }
}

@media (max-width: 576px) {
  section {
    padding: 1rem 0;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .section-header h2:after {
    width: 60px;
    height: 4px;
    bottom: -10px;
  }

  .logo-text h1 {
    font-size: 1.2rem;
  }

  .home-text h1 {
    font-size: 2rem;
  }

  .home-text h3 {
    font-size: 1.4rem;
  }

  .home-text p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
  }

  .about-tabs {
    flex-direction: column;
  }

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

  .showcase-tabs {
    gap: 0.5rem;
  }

  .showcase-tab {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .filters-container {
    flex-direction: column;
  }

  .search-box,
  .filter-toggle,
  .reset-filters {
    width: 100%;
  }

  #contact {
    padding: 3rem 0;
  }

  .contact-form-container {
    padding: 1.5rem;
  }

  .contact-info {
    gap: 1rem;
  }

  .contact-item {
    min-width: calc(50% - 1rem);
  }

  .contact-item i {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .contact-details h3 {
    font-size: 1rem;
  }

  .modal-media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  .tech-stack-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .tech-icon {
    width: 50px;
    height: 50px;
  }
}