/* Global Styles */
:root {
  --primary-color: #2d3436;
  --secondary-color: #0984e3;
  --accent-color: #00cec9;
  --text-light: #ffffff;
  --text-dark: #2d3436;
  --transition: all 0.3s ease;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--primary-color);
  color: var(--text-light);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

/* Navbar Styles */
.navbar {
  background-color: rgba(45, 52, 54, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

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

/* Header/Hero Section Styles */
.hero-section {
  position: relative;
  padding: 160px 0 100px;
}

/* Add overlay to make text more readable */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
  z-index: 1;
}

/* Ensure content stays above overlay */
.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Adjust text colors for better contrast */
.hero-section h1,
.hero-section p,
.hero-section .social-link {
  color: #ffffff;
}

/* Profile image adjustments */
.profile-wrapper {
  position: relative;
  z-index: 2;
}

.profile-image {
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

/* Profile Image Styles */
.profile-wrapper {
  position: relative;
  display: inline-block;
}

.profile-image {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  box-shadow: 0 0 25px rgba(0, 206, 201, 0.3);
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
}

.profile-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Social Links Styles */
.social-links-wrapper {
  margin-top: 2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  position: relative;
}

.social-link:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-5px);
}

.social-link[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.social-link:hover[data-tooltip]::before {
  opacity: 1;
  visibility: visible;
  bottom: 120%;
}

/* CTA Buttons */
.btn-primary {
  background: var(--accent-color);
  border: none;
  padding: 12px 30px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Fix .btn-primary contrast for #portfolio button */
.btn-primary.btn-lg[href$="#portfolio"] {
  background-color: #005a87 !important; /* Darker blue for better contrast */
  color: #fff !important;
  border-color: #005a87 !important;
}

/* Optional: Add hover/focus for accessibility */
.btn-primary.btn-lg[href$="#portfolio"]:hover,
.btn-primary.btn-lg[href$="#portfolio"]:focus {
  background-color: #003d5c !important;
  border-color: #003d5c !important;
  color: #fff !important;
}

.btn-outline-light {
  border-width: 2px;
  padding: 12px 30px;
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Typed Text Animation */
.typed-text::after {
  content: "|";
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Portfolio Section */
.portfolio-section {
  padding: 100px 0;
  background-color: #ffffff;
  color: var(--text-dark);
}

.section-title {
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

.portfolio-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.portfolio-img {
  position: relative;
  overflow: hidden;
}

.portfolio-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 132, 227, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  padding: 20px;
  text-align: center;
  color: white;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.portfolio-buttons .btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.portfolio-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-buttons .btn i {
  font-size: 16px;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #363636 100%);
  position: relative;
}
.contact-section .section-title::after {
  background-color: var(--accent-color);
}
.contact-form-wrapper,
.contact-info-wrapper {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  height: 100%;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}
.contact-item .icon-box {
  min-width: 50px;
  height: 50px;
  background: rgba(0, 206, 201, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  transition: var(--transition);
}
.contact-item i {
  font-size: 20px;
  color: var(--accent-color);
}
.contact-item:hover .icon-box {
  background: var(--accent-color);
}
.contact-item:hover i {
  color: var(--text-dark);
}
.contact-details h5 {
  margin: 0;
  color: var(--accent-color);
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.contact-details p {
  margin: 0;
  color: #fff;
  opacity: 0.95;
}
.contact-details a {
  color: #fff;
  opacity: 0.8;
  text-decoration: none;
  transition: var(--transition);
}
.contact-details a:hover {
  opacity: 1;
  color: var(--accent-color);
}
.contact-form-wrapper .form-control {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  padding: 12px 15px;
  border-radius: 8px;
  transition: var(--transition);
}
.contact-form-wrapper .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.contact-form-wrapper .form-control:focus {
  background-color: rgba(0, 0, 0, 0.3);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 206, 201, 0.25);
  color: var(--text-light);
}
/* Support Section */
.support-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  text-align: left;
}
.support-section h4 {
  color: var(--accent-color);
  margin-bottom: 15px;
}
.support-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}
.btn-support {
  background: #ffc147;
  color: #000;
  padding: 12px 25px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-weight: 600;
}
.btn-support:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 193, 71, 0.3);
}
/* Trakteer Container */
.trakteer-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}
.trakteer-container iframe {
  width: 100%;
  height: 300px;
}

/* Footer */
.footer {
  background: #1a1a1a;
  padding: 60px 0 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-brand h5 {
  margin: 0;
  color: #fff;
  font-weight: 600;
}

.footer-text {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.footer-title {
  color: var(--accent-color);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 10px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Music Toggle Button */
.music-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.music-toggle:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.music-toggle.muted .fa-volume-up:before {
  content: "\f6a9"; /* Font Awesome mute icon */
}

/* Welcome Modal Styles */
.modal-content {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  border: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
  border-bottom: 1px solid #444;
}

.modal-footer {
  border-top: 1px solid #444;
}

.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Fix .trbtn-txt > span contrast */
.trbtn-txt > span {
  color: #222 !important; /* Much darker text for contrast */
  text-shadow: none !important; /* Remove yellow shadow for clarity */
  font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 120px 0 60px;
    text-align: center;
  }

  .profile-image {
    width: 220px;
    height: 220px;
    margin-bottom: 2rem;
  }

  .portfolio-card {
    margin-bottom: 30px;
  }

  .social-links {
    justify-content: center;
  }

  .cta-buttons {
    justify-content: center;
  }

  .contact-card {
    padding: 20px;
  }

  .support-section {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding-top: 30px;
  }

  .footer {
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}
