/* Remove default margins/padding */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

/* Ensure full width for all sections */
section {
  width: 100%;
  max-width: 100%;
}

/* Override container padding on mobile */
@media (max-width: 768px) {
  .container {
    padding-left: 5;
    padding-right: 5;
    margin-left: 5;
    margin-right: 5;
    width: 100%;
  }

  /* Specific section adjustments */
  #home,
  #services,
  #portfolio,
  #contact,
  #about {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

:root {
  --primary: #2563eb;
  --secondary: #0f172a;
  --accent: #06b6d4;
}

.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.typewriter {
  overflow: hidden;
  border-right: 0.15em solid var(--accent);
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--accent);
  }
}

.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.skill-bar {
  width: 100%;
  background-color: #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
}

.skill-level {
  height: 10px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1.5s ease-in-out;
}

.testimonial-slider {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.testimonial-slider::-webkit-scrollbar {
  display: none;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: 1rem;
}

.slideshow img.active {
  opacity: 1;
}

/* Slideshow Navigation */
.slideshow-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slideshow-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slideshow-dot.active {
  background-color: white;
  transform: scale(1.2);
}

/* Slideshow Arrows */
.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  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;
  opacity: 0;
}

.slideshow:hover .slideshow-arrow {
  opacity: 1;
}

.slideshow-arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.slideshow-arrow.prev {
  left: 20px;
}

.slideshow-arrow.next {
  right: 20px;
}

/* Slideshow Caption */
.slideshow-caption {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  padding: 10px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.slideshow-caption.show {
  opacity: 1;
  transform: translateY(0);
}

/* Fade Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .slideshow {
    height: 300px;
  }

  .slideshow-arrow {
    width: 40px;
    height: 40px;
    opacity: 0.7;
  }

  .slideshow-nav {
    bottom: 15px;
  }

  .slideshow-dot {
    width: 10px;
    height: 10px;
  }
}
