* {
  margin: 0%;
  padding: 0%;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}

:root {
  --bg-color: #080808;
  --second-bg-color: #131313;
  --text-color: white;
  --main-color: #FFE8DB;
  --header-bg: rgba(0, 0, 0, 0.3);
  --card-bg: #131313;
  --border-color: #333;
}

/* Light mode variables */
[data-theme="light"] {
  --bg-color: #ffffff;
  --second-bg-color: #f8f9fa;
  --text-color: #333333;
  --main-color: #F28E8E;
  --header-bg: rgba(255, 255, 255, 0.9);
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
}

html {
  font-size: 60%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.header {
  position: fixed;
  top: 0%;
  left: 0%;
  width: 100%;
  padding: 4rem 12% 4rem;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 5;
  transition: background 0.3s ease;
}

.logo {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-color);
  cursor: pointer;
  transition: 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.logo span {
  text-shadow: 0 0 25px var(--main-color);
}

.navbar {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
}

.navbar a {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--main-color);
  display: none;
}

.theme-toggle {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.5rem;
  margin-left: 30px;
  border-radius: 60%;
  transition: 0.3s ease;
  display: flex;
}

.theme-toggle:hover {
  background: var(--main-color);
  color: var(--bg-color);
  transform: scale(1.1);
}

.theme-toggle i {
  font-size: 2rem;
  color: var(--main-color);
  transition: 0.3s ease;
}

.theme-toggle:hover i {
  color: var(--bg-color);
}

section {
  min-height: 100vh;
  padding: 10rem 12% 10rem;
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15rem;
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  text-align: left;
  justify-content: center;
  margin-top: 3rem;
}

span {
  color: var(--main-color);
}

.logo span {
  color: var(--main-color);
}

.home-content h3 {
  margin-bottom: 2rem;
  margin-top: 1rem;
  font-size: 2.5rem;
  font-family: "Courier New", Courier, monospace;
}

.home-content h1 {
  font-size: 7rem;
  line-height: 1;
  font-weight: 700;
  margin-top: 1.5rem;
}

.home-img {
  border-radius: 10px;

}

.home-img img {
  position: relative;
  top: 3rem;
  width: 30vw;
  border-radius: 10px;
  box-shadow: 0 0 25px var(--main-color);
  cursor: pointer;
  transition: 0.4s ease-in-out;
}

.home-img img:hover {
  box-shadow: 0 0 10px var(--main-color), 0 0 20px var(--main-color),
    0 0 30px var(--main-color);
}

.home-content p {
  font-size: 1.8rem;
  line-height: 1.8;
  font-weight: 500;
  max-width: 1000px;
  text-align: left;
  margin-bottom: 50px;
}

.home-content p underline {
  text-decoration: underline;
}

.social-icons a:hover {
  background-color: var(--main-color);
  color: var(--text-color);
  transform: scale(1.3) translateY(-5px);
  box-shadow: 0 0 25px var(--main-color);
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  box-shadow: 0 0 5px var(--main-color);
  font-size: 1.6rem;
  font-weight: 600;
  color: black;
  border: 2px solid transparent;
  letter-spacing: 0.1rem;
  border-radius: 4rem;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 5px var(--main-color);
}

.btn.btn-outline {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
  box-shadow: none;
}

.btn.btn-outline:hover {
  background-color: var(--border-color);
  border-color: var(--border-color);
  color: var(--text-color);
  transform: scale(1.05);
}

.btn-group {
  display: flex;
  gap: 1.5rem;
  text-align: right;
  flex-wrap: wrap;
}
/* Global brand button styles */
.btn-linkedin {
  background: #0077b5 !important;
  color: #fff !important;
  box-shadow: 0 0 5px rgba(0, 119, 181, 0.4) !important;
}

.btn-linkedin:hover {
  background: #006396 !important;
  box-shadow: 0 0 15px rgba(0, 119, 181, 0.6) !important;
}

.btn-github {
  background: #24292e !important;
  color: #fff !important;
  box-shadow: 0 0 5px rgba(36, 41, 46, 0.4) !important;
}

.btn-github:hover {
  background: #1b1f23 !important;
  box-shadow: 0 0 15px rgba(36, 41, 46, 0.6) !important;
}

.text-animation {
  font-size: 34px;
  font-weight: 600;
  min-width: 280px;
}

.text-animation span {
  position: relative;
}

.text-animation span::before {
  content: "Web Developer";
  color: var(--main-color);
  animation: words 20s infinite;
}

.text-animation span::after {
  content: "";
  background-color: var(--bg-color);
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  border-left: 3px solid var(--bg-color);
  right: -8px;
  animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
  to {
    border-left: 2px solid var(--main-color);
  }
}

@keyframes words {
  0%,
  20% {
    content: "Software Engineer";
  }
  21%,
  40% {
    content: "Full-Stack Developer";
  }
  41%,
  60% {
    content: "Applied AI Engineer";
  }
  61%,
  80% {
    content: "Software Engineer";
  }
  81%,
  100% {
    content: "Full-Stack Developer";
  }
}

@keyframes typing {
  10%,
  15%,
  30%,
  35%,
  50%,
  55%,
  70%,
  75%,
  90%,
  95% {
    width: 0;
  }
  5%,
  20%,
  25%,
  40%,
  45%,
  60%,
  65%,
  80%,
  85% {
    width: calc(100% + 8px);
  }
}

.skills {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--bg-color);
}

.skills h2 {
  font-size: 6rem;
  text-align: center;
  margin: 5rem 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.skill-category {
  margin: 3rem 0;
  text-align: center;
  background: var(--card-bg);
  padding: 3rem 2rem;
  border-radius: 1rem;
  border: 2px solid var(--border-color);
  transition: transform 0.3s ease, background-color 0.3s ease,
    border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 350px;
}

.skill-category i {
  font-size: 50px;
  color: var(--main-color);
  margin-bottom: 10px;
}

.skill-category h3 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.skill-category p {
  font-size: 1.5rem;
  color: var(--text-color);
  line-height: 1.6;
}

.skill-category:hover {
  transform: translateY(-5px);
}

.skills-logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
  width: 100%;
}

.skill-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 8px;
  width: 70px;
  height: 70px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

[data-theme="light"] .skill-logo-item {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.skill-logo-item:hover {
  transform: translateY(-3px);
  border-color: var(--main-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.skill-logo-item i {
  font-size: 2.8rem !important;
  margin-bottom: 5px !important;
  color: inherit;
}

.skill-logo-item span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
  white-space: nowrap;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .skills-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skill-category {
    height: auto;
  }
}

@media (max-width: 480px) {
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.heading {
  font-size: 8rem;
  text-align: center;
  margin: 5rem 0;
}

.title {
  font-size: 6rem;
  text-align: center;
  margin-bottom: -14px;
  display: block;
  width: 100%;
}

.timeline {
  position: relative;
  max-width: 1200px;
  height: 500px;
  margin: auto;
}

.timeline-container {
  position: relative;
  padding: 80px 0;
}

.timeline-container::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 5px;
  height: 85%;
  background: var(--main-color);
}

.timeline-item {
  position: relative;
  width: 50%;
  margin-bottom: 50px;
  padding: 20px;
}

.timeline-item .right .btn {
}
.left {
  left: 0;
  text-align: right;
}

.right {
  left: 50%;
  text-align: left;
}

.content {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 30px;
  border: 2px solid var(--border-color);
  box-shadow: 0px 0px 5px var(--main-color);
  position: relative;
  transition: 0.3s ease-in-out, background-color 0.3s ease,
    border-color 0.3s ease;
}

.content .btn {
  margin-top: 50px;
  margin-left: 270px;
  margin-bottom: 0px;
}
.content h2 {
  margin: 0;
  font-size: 2rem;
  color: var(--main-color);
  text-align: right;
}

.content h3 {
  margin: 0 0 10px;
  font-size: 25px;
  text-align: left;
}

.content p {
  margin: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 300;
  line-height: 22px;
}

/* ── SilverKey grouped card styles ── */
.company-name {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--main-color);
  margin: 0 0 18px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--main-color);
  letter-spacing: 0.02em;
}

.role-group {
  padding: 14px 0 6px;
}

.role-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.role-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--text-color) !important;
  margin: 0 !important;
}

.role-date {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--main-color);
  background: rgba(255, 232, 219, 0.12);
  border: 1px solid var(--main-color);
  border-radius: 20px;
  padding: 3px 12px;
  white-space: nowrap;
}

[data-theme="light"] .role-date {
  background: rgba(242, 142, 142, 0.1);
}

.role-group .btn {
  margin-top: 14px;
  margin-left: 0;
  margin-bottom: 4px;
}

.role-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-color), transparent);
  margin: 16px 0;
  opacity: 0.6;
}

.timeline-item {
  padding: 30px 50px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.timeline-item:hover {
  transform: scale(1.1);
  box-shadow: 0 0 var(--main-color);
}
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
}

::-webkit-scrollbar-track {
  background-color: var(--bg-color);
  width: 50px;
}

/* Projects Section Redesign */
.projects {
  text-align: center;
  padding: 10rem 12% 10rem;
  background-color: var(--bg-color);
  margin-top: -45px;
}

.projects h2 {
  font-size: 6rem;
  text-align: center;
  margin: 5rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding: 20px;
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: rgba(19, 19, 19, 0.45);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2), 
              box-shadow 0.4s ease, 
              border-color 0.4s ease;
  height: 100%;
  margin: 0;
  text-align: left;
}

[data-theme="light"] .project-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--main-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 232, 219, 0.25);
}

[data-theme="light"] .project-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 0 20px rgba(242, 142, 142, 0.35);
}

/* macOS Browser Bar mockup */
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(25, 25, 25, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .browser-bar {
  background: rgba(240, 240, 240, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.browser-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.browser-bar .dot.red { background-color: #ff5f56; }
.browser-bar .dot.yellow { background-color: #ffbd2e; }
.browser-bar .dot.green { background-color: #27c93f; }

.browser-bar .window-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  font-family: monospace;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 16px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

[data-theme="light"] .browser-bar .window-title {
  color: rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.05);
}

/* Media Container */
.project-media {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio constraint */
  overflow: hidden;
  background: linear-gradient(135deg, #1e1e1e 0%, #121212 100%);
  flex-shrink: 0;
}

/* Add custom central project icon if image fails to load or as placeholder overlay */
.media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 232, 219, 0.03) 0%, rgba(179, 86, 123, 0.12) 100%);
  z-index: 1;
}

.media-fallback i {
  font-size: 6rem;
  color: var(--main-color);
  opacity: 0.25;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.project-card:hover .media-fallback i {
  transform: scale(1.1) rotate(5deg);
  opacity: 0.45;
}

.project-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: 2;
  transition: object-position 3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  background-color: transparent;
}

/* CSS fallback: hide broken images or missing placeholder sources and show fallback container */
.project-media img:not([src]), 
.project-media img[src=""], 
.project-media img[src*="placeholder"] {
  opacity: 0;
  z-index: 0;
}

.project-card:hover .project-media img {
  object-position: bottom;
}

/* Video element in media container (hover preview) */
.project-media video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-card:hover .project-media video {
  opacity: 1;
}

/* View Live Project Overlay */
.media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 4;
  transition: opacity 0.3s ease;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.media-overlay i {
  font-size: 3.5rem;
  color: var(--main-color);
  margin-bottom: 8px;
  transform: translateY(10px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.media-overlay span {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
  transform: translateY(10px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.05s;
}

.project-media:hover .media-overlay {
  opacity: 1;
}

.project-media:hover .media-overlay i,
.project-media:hover .media-overlay span {
  transform: translateY(0);
}

/* Project Info and content wrapper */
.project-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 22px 24px 24px;
}

.project-info h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}

/* Tech badges */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  padding: 3px 12px;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
  opacity: 0.85;
}

.tag:hover {
  border-color: var(--main-color);
  color: var(--main-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 232, 219, 0.1);
}

[data-theme="light"] .tag {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .tag:hover {
  box-shadow: 0 4px 10px rgba(242, 142, 142, 0.15);
}

.project-info p {
  font-size: 1.4rem;
  color: var(--text-color);
  line-height: 1.65;
  opacity: 0.8;
  text-align: left;
  margin-bottom: 12px;
}

/* CTA buttons inside cards */
.project-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

[data-theme="light"] .project-links {
  border-top: 1px solid rgba(0,0,0,0.06);
}

.project-links .btn-primary,
.project-links .btn-secondary {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-align: center;
  margin: 0;
  text-decoration: none;
  white-space: nowrap;
}

.project-links .btn-primary {
  background: var(--main-color);
  color: #000;
  border: 2px solid var(--main-color);
}

.project-links .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 232, 219, 0.4);
  filter: brightness(1.05);
}

[data-theme="light"] .project-links .btn-primary:hover {
  box-shadow: 0 6px 16px rgba(242, 142, 142, 0.45);
}

.project-links .btn-secondary {
  background: transparent;
  color: var(--text-color);
  border: 2px solid rgba(255,255,255,0.15);
}

[data-theme="light"] .project-links .btn-secondary {
  border: 2px solid rgba(0,0,0,0.12);
}

.project-links .btn-secondary:hover {
  border-color: var(--main-color);
  color: var(--main-color);
  transform: translateY(-2px);
}

/* Icon micro-animation */
.project-links .btn-primary i,
.project-links .btn-secondary i {
  transition: transform 0.25s ease;
  font-size: 1.5rem;
}

.project-links .btn-primary:hover i {
  transform: translateX(3px);
}

.project-links .btn-secondary:hover i {
  transform: rotate(15deg);
}

/* Read More/Less Toggles */
.project-details-more {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              opacity 0.4s ease, 
              margin-top 0.4s ease;
}

.project-details-more.expanded {
  max-height: 500px;
  opacity: 1;
  margin-top: 12px;
  margin-bottom: 12px;
}

/* Semantic bullet list inside expanded details */
.project-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-detail-list li {
  position: relative;
  padding-left: 18px;
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.85;
}

.project-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--main-color);
  flex-shrink: 0;
}

.project-detail-list li strong {
  color: var(--text-color);
  opacity: 1;
  font-weight: 700;
}

.show-more-btn {
  background: transparent;
  color: var(--main-color);
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  margin-bottom: 10px;
  transition: color 0.25s ease, opacity 0.25s ease;
  width: fit-content;
  opacity: 0.9;
  border: none;
}

.show-more-btn:hover {
  color: var(--text-color);
  opacity: 1;
}

.show-more-btn i {
  font-size: 1.6rem;
  transition: transform 0.3s ease;
}

/* Modals styles */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  background-color: var(--card-bg);
  margin: auto;
  padding: 10px;
  border: 2px solid var(--border-color);
  width: 90%;
  max-width: 800px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: -45px;
  right: 0;
  color: #fff;
  font-size: 3.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--main-color);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive design for grid view */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .projects {
    padding: 6rem 5% 6rem;
  }
}

/* Showcase Modal Specifics */
.showcase-content {
  max-width: 900px;
  background: #000;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}

.showcase-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.showcase-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.my-slide, .programa-slide, .crossborder-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.my-slide.active, .programa-slide.active, .crossborder-slide.active {
  display: block;
}

.my-slide img, .programa-slide img, .crossborder-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Nav arrows */
.prev-slide, .next-slide {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.3s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10;
  text-decoration: none;
}

.next-slide {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev-slide {
  left: 0;
}

.prev-slide:hover, .next-slide:hover {
  background-color: var(--main-color);
  color: #000;
}

.slide-indicator {
  position: absolute;
  bottom: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 12px;
  font-size: 1.2rem;
  border-radius: 20px;
  font-family: monospace;
  z-index: 10;
}

.education {
  background-color: var(--bg-color);
  padding: 10rem 0;
  text-align: center;
}

.education h1.title {
  font-size: 6rem;
  text-align: center;
  margin-bottom: 6rem;
  font-weight: 800;
}

.education-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.education-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: rgba(19, 19, 19, 0.45);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
}

[data-theme="light"] .education-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.education-card:hover {
  transform: translateY(-5px);
  border-color: var(--main-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 232, 219, 0.15);
}

[data-theme="light"] .education-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), 0 0 20px rgba(242, 142, 142, 0.25);
}

.education-logo-container {
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .education-logo-container {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.education-logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.education-details {
  flex: 1;
}

.education-details h3 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.education-details h4 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--main-color);
  margin-bottom: 6px;
}

.education-details .major {
  font-size: 1.5rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 20px;
  text-align: left;
}

.education-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-color);
}

[data-theme="light"] .meta-badge {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.meta-badge.honors {
  background: rgba(255, 232, 219, 0.1);
  border-color: rgba(255, 232, 219, 0.3);
  color: var(--main-color);
}

[data-theme="light"] .meta-badge.honors {
  background: rgba(242, 142, 142, 0.1);
  border-color: rgba(242, 142, 142, 0.3);
}

.meta-badge i {
  font-size: 1.6rem;
}

/* Responsive Education layout */
@media (max-width: 768px) {
  .education-card {
    flex-direction: column;
    text-align: center;
    gap: 25px;
    padding: 30px;
  }
  
  .education-logo-container {
    width: 120px;
    height: 120px;
  }
  
  .education-meta {
    justify-content: center;
  }
}

.resume {
  text-align: center;
  margin-top: -150px;
  padding: 60px 20px;
  background-color: var(--bg-color);
  margin-bottom: -100px;
}
.resume h1 {
  font-size: 5rem;
  text-align: center;
  margin: 8rem 0;
  margin-bottom: 40px;
}

.resume i {
  font-size: 60px;
  color: #b3567b;
  margin-bottom: 40px;
  text-align: center;
  justify-content: center;
}
.resume p {
  font-size: 2.5rem;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 35px;
}
.resume .btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1.5rem;
  color: #b3567b;
  border: 2px solid #b3567b;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s;
  text-align: center;
  justify-content: center;
}
.resume .btn:hover {
  background-color: #b3567b;
  color: #fff;
}
.resume .icon {
  width: 60px;
  height: 60px;
  text-align: center;
  justify-content: center;
}

/*
<i class="bx bxs-download" id="download">

#download {
  margin: auto;
  margin-left: 10px;
  font-size: 3rem;
}
  */

/* Contact Section */
.contact {
  background-color: var(--second-bg-color);
  padding: 10rem 0;
  text-align: center;
}

.contact h1.title {
  font-size: 6rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 800;
}

.contact .section-subtitle {
  font-size: 1.6rem;
  max-width: 600px;
  margin: 0 auto 5rem;
  color: var(--text-color);
  opacity: 0.85;
  line-height: 1.6;
  text-align: center;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-card {
  background: rgba(19, 19, 19, 0.45);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 280px;
}

[data-theme="light"] .contact-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--main-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 232, 219, 0.15);
}

[data-theme="light"] .contact-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), 0 0 20px rgba(242, 142, 142, 0.25);
}

.contact-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(255, 232, 219, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

[data-theme="light"] .contact-icon-wrapper {
  background: rgba(242, 142, 142, 0.1);
}

.contact-icon-wrapper i {
  font-size: 3rem;
  color: var(--main-color);
}

.contact-card h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 1.4rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 25px;
  text-align: center;
  line-height: 1.5;
}

.contact-card .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: none;
}

.contact-card .email-link {
  background: var(--main-color);
  color: #000 !important;
}

[data-theme="light"] .contact-card .email-link {
  color: #fff !important;
}

.contact-card .email-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 232, 219, 0.4);
}

[data-theme="light"] .contact-card .email-link:hover {
  box-shadow: 0 8px 20px rgba(242, 142, 142, 0.45);
}

.contact-socials {
  display: flex;
  gap: 15px;
  width: 100%;
  justify-content: center;
}



/* Footer Section */
.footer {
  background-color: var(--bg-color);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer .copyright {
  font-size: 1.3rem;
  color: var(--text-color);
  opacity: 0.7;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .contact-card {
    min-height: auto;
  }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
    padding: 2rem 4%;
  }
  .navbar {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 2rem 4%;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    border-top: 2px solid var(--border-color);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    flex: unset;
    z-index: 1000;
    transition: all 0.3s ease;
  }
  .navbar.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }
  .navbar a {
    margin-left: 0;
    font-size: 2rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    background: transparent;
  }
  .navbar a:hover,
  .navbar a.active {
    background: var(--main-color);
    color: var(--bg-color);
    transform: scale(1.05);
  }
  .theme-toggle {
    position: absolute;
    top: 2rem;
    right: 2rem;
    margin-left: 0;
  }
  #menu-icon {
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  #menu-icon:hover {
    transform: scale(1.1);
  }
  .home {
    flex-direction: column;
    gap: 5rem;
    text-align: center;
  }
  .home-content {
    align-items: center;
    text-align: center;
  }
  .home-content h1 {
    font-size: 5rem;
  }
  .home-img img {
    width: 80vw;
    max-width: 300px;
  }
  
  /* Experience section responsive */
  .title {
    font-size: 4rem;
    margin-bottom: 2rem;
  }
  
  .timeline-container {
    padding: 40px 0;
  }
  
  .timeline-container::before {
    left: 20px;
    height: 100%;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
    margin-bottom: 30px;
  }
  
  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
  }
  
  .content {
    padding: 20px;
    border-radius: 15px;
  }
  
  .content h2 {
    font-size: 1.8rem;
    text-align: left;
    margin-bottom: 10px;
  }
  
  .content h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }
  
  .content p {
    font-size: 1.4rem;
    line-height: 1.5;
  }
  
  .content .btn {
    margin: 20px 0 0 0;
    display: block;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 3rem;
  }
  
  .timeline-item {
    padding-left: 50px;
    padding-right: 10px;
  }
  
  .content {
    padding: 15px;
  }
  
  .content h2 {
    font-size: 1.6rem;
  }
  
  .content h3 {
    font-size: 1.4rem;
  }
  
  .content p {
    font-size: 1.2rem;
  }
}

[data-theme="light"] .btn {
  color: #fff !important;
}

/* Mobile menu animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}