body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(-45deg, #0a192f, #112240, #1e2a43, #0a192f);
  background-size: 400% 400%;
  animation: gradientBG 20s ease infinite;
  color: #ffffff;
  overflow-x: hidden;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header {
  background-color: #0a192f;
  padding: 2rem 1rem;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header h2 {
  color: red;
  position: absolute;
  top: 10px;
  left: -100%;
  white-space: nowrap;
  font-size: 1.2rem;
  animation: slideText 10s linear infinite;
}

@keyframes slideText {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: -100%; }
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  animation: fadeInUp 1s ease forwards;
}

.tagline {
  font-weight: 400;
  font-size: 1rem;
  color: #a8b2d1;
}

nav {
  margin-top: 1rem;
  animation: fadeIn 1.2s ease forwards;
}

nav a {
  color: #64ffda;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffffff;
}

.section {
  padding: 3rem 1rem;
  background-color: #112240cc;
  animation: fadeIn 1s ease forwards;
}

.section.light {
  background-color: #0a192fcc;
}

h2 {
  text-align: center;
  color: #64ffda;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1.2s ease forwards;
  animation-delay: 0.2s;
}

.container {
  max-width: 900px;
  margin: auto;
}

.card {
  background-color: #1e2a43;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

ul {
  list-style-type: none;
  padding-left: 0;
  color: #dbeafe;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Skills Section */
/* Container wrapping the entire skill section horizontally */
.skills-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

/* Horizontal scrollable row for skill cards */
.skills-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  flex: 1;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar on WebKit browsers */
.skills-scroll::-webkit-scrollbar {
  display: none;
}

/* Individual skill card design */
.skill-card {
  flex: 0 0 180px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  padding: 1.2rem;
  text-align: center;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
}

/* Skill icons */
.skill-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 0.8rem;
}

/* Skill text label */
.skill-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  margin: 0;
}

/* Scroll buttons (left and right) */
.scroll-btn {
  background-color: #ffffff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 0.8rem;
  color: #333;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.scroll-btn:hover {
  color: #0078d7;
  transform: scale(1.1);
}

.scroll-btn.left {
  margin-right: 0.5rem;
}

.scroll-btn.right {
  margin-left: 0.5rem;
}


a {
  color: #64ffda;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffffff;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.exp-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.utd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.utd-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

footer {
  background-color: #0a192f;
  text-align: center;
  padding: 1rem;
  color: #a8b2d1;
  font-size: 0.875rem;
}

/* Animation */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease-in-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.scrolling-text {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 30px;
  margin-bottom: 1rem;
}

.scrolling-text span {
  display: inline-block;
  white-space: nowrap;
  color: red;
  font-size: 1.2rem;
  font-weight: bold;
  animation: scroll-left 10s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Contact Icons */
#contact a {
  color: #64ffda;
  text-decoration: none;
  transition: transform 0.3s, color 0.3s;
}

#contact a:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.project-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

