/* RESET & VARIABLES */
:root {
  --bg-color: #0b110e;
  --bg-secondary: #131d18;
  --accent-color: #3baf8b;
  --accent-hover: #46cca2;
  --text-main: #ffffff;
  --text-muted: #a0a8a5;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.text-accent {
  color: var(--accent-color);
}

.text-gradient {
  background: linear-gradient(90deg, var(--text-main) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* NAVBAR */
header {
  padding: 2rem 0;
  position: relative;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
}

.btn-contact {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background: var(--glass-bg);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* UTILITIES & BUTTONS */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--bg-color);
  box-shadow: 0 4px 15px rgba(59, 175, 139, 0.3);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.btn-icon:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

/* HERO SECTION */
.hero {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 2;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-color);
}

.hero-title {
  font-size: 4rem;
  letter-spacing: -1px;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 90%;
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-item h4 {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}
.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero-image {
  position: relative;
  z-index: 1;
}

/* CAROUSEL */
.carousel-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem !important;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  position: relative;
  border-radius: 20px;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  max-width: 500px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

.carousel-button {
  position: absolute;
  top: calc(50% - 20px);
  transform: translateY(-50%);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.carousel-button:hover {
  background: var(--accent-color);
  color: var(--bg-color);
  transform: translateY(-50%) scale(1.1);
}

.carousel-button svg {
  fill: currentColor;
  width: 28px;
  height: 28px;
}

.carousel-button-left {
  left: 10px;
}

.carousel-button-right {
  right: 10px;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 1.5rem;
  z-index: 10;
}

.carousel-indicator {
  border: none;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background: var(--glass-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.5);
}

.carousel-indicator.current-indicator {
  background: var(--accent-color);
  transform: scale(1.2);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
}

/* SECTION PADDING */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* PROYECTOS PREMIUM */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.premium-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

.premium-project-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.premium-project-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 175, 139, 0.2);
}

.premium-project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 0%, rgba(59, 175, 139, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.premium-project-card:hover::before {
  opacity: 1;
}

.premium-project-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  z-index: 1;
}

.premium-project-img {
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-img-1 { background: linear-gradient(135deg, #2b5876 0%, #4e4376 100%); }
.mock-img-2 { background: linear-gradient(135deg, #134E5E 0%, #71B280 100%); }
.mock-img-3 { background: linear-gradient(135deg, #4B1248 0%, #F0C27B 100%); }

.premium-project-img svg {
  width: 60px;
  height: 60px;
  fill: rgba(255,255,255,0.4);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.premium-project-card:hover .premium-project-img {
  transform: scale(1.1) rotate(2deg);
}

.premium-project-card:hover .premium-project-img svg {
  transform: scale(1.25) rotate(-5deg);
  fill: rgba(255,255,255,0.8);
}

.premium-project-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(11, 17, 14, 0.95), transparent);
  opacity: 0.7;
  transition: opacity 0.4s ease;
}

.premium-project-card:hover .premium-project-overlay {
  opacity: 0.3;
}

.premium-project-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.premium-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.premium-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  color: var(--accent-color);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.premium-project-card:hover .premium-tag {
  background: var(--accent-color);
  color: var(--bg-color);
  border-color: var(--accent-color);
}

.premium-project-title {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.premium-project-card:hover .premium-project-title {
  color: var(--accent-color);
}

.premium-project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.premium-project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  align-self: flex-start;
  padding: 0.5rem 0;
  margin-top: auto;
}

.premium-project-link svg {
  width: 18px;
  height: 18px;
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.premium-project-link:hover {
  color: var(--accent-color);
}

.premium-project-link:hover svg {
  transform: translateX(5px);
}

/* SKILLS SECTION */
.skills-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.skill-box {
  margin-bottom: 1.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-size: 0.95rem;
  font-weight: 500;
}

.skill-percent {
  color: var(--accent-color);
  font-size: 0.9rem;
}

.skill-bar {
  height: 8px;
  background-color: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 4px;
}

/* CONTACT FORM */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info .info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
}
.info-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.info-content h4 {
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

.info-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.form-control {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  padding: 1rem 1.2rem;
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
}

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

/* DECORATIVE ELEMENTS */
.glow-effect {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-color);
  filter: blur(150px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.glow-1 {
  top: 10%;
  left: -10%;
  width: 500px;
  height: 500px;
}

.glow-2 {
  bottom: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .badge-status {
    margin: 0 auto 1.5rem;
  }
  
  .hero-desc {
    margin: 0 auto 2rem;
  }
  
  .stats-grid {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }

  .skills-container,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* simple mobile nav hide for now */
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

/* MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 17, 14, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 5vh 1rem;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  max-width: 500px;
  width: 100%;
  margin: auto;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.modal-header h3 {
  margin-bottom: 0;
  font-size: 1.4rem;
}

.modal-header .btn-icon {
  width: 34px;
  height: 34px;
}

.modal-header .btn-icon svg {
  width: 14px;
  height: 14px;
}

.modal-body {
  margin-bottom: 1.5rem;
}

.modal-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.modal-footer {
  margin-top: 1rem;
}

/* PROJECT MODAL */
.project-modal-content {
  max-width: 950px;
  width: 100%;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-header {
  padding: 1.5rem 2.5rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 16px 16px 0 0;
}

.project-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.close-project-modal {
  width: 36px;
  height: 36px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(5px);
}

.close-project-modal:hover {
  background: rgba(211, 60, 67, 0.8); /* a subtle red on close */
  border-color: rgba(211, 60, 67, 1);
  color: #fff;
}

.close-project-modal svg {
  width: 14px;
  height: 14px;
}

.project-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.project-modal-image-col {
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--glass-border);
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.project-modal-image-col img {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
  transition: transform 0.5s ease;
}

.project-modal-image-col:hover img {
  transform: scale(1.05);
}

.project-modal-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.project-modal-info-col {
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}

.project-modal-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.project-modal-desc p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.project-modal-desc strong {
  color: var(--text-main);
  font-weight: 600;
}

.project-modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--glass-border);
}

.project-stat-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
  font-weight: 600;
}

@media (max-width: 900px) {
  .project-header {
    padding: 1.5rem;
  }
  .project-modal-grid {
    grid-template-columns: 1fr;
  }
  .project-modal-image-col {
    padding: 3rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }
  .project-modal-info-col {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 500px) {
  .project-header {
    padding: 1rem;
  }
  .project-modal-image-col {
    padding: 2.5rem 1rem;
  }
  .project-modal-info-col {
    padding: 1.5rem 1rem;
  }
  .project-modal-title {
    font-size: 1.6rem;
  }
  .stat-number {
    font-size: 2rem;
  }
  .project-modal-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* FLOATING SKILLS BUTTON */
.floating-skills-container {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 990;
}

.floating-btn {
  background: var(--accent-color);
  color: var(--bg-color);
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(59, 175, 139, 0.4);
  transition: all 0.3s ease;
  font-family: var(--font-family);
}

.floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 175, 139, 0.6);
}

.floating-btn svg {
  width: 20px;
  height: 20px;
}

.skills-popup {
  position: absolute;
  bottom: calc(100% + 20px);
  right: 0;
  width: 340px;
  padding: 1.5rem;
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: bottom right;
}

.skills-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.skills-popup h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-main);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}

.tech-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Identidad Visual Dinámica en Hover (Colores de Marca) */
.tech-tag.php:hover { color: #8892BF; border-color: #8892BF; background: rgba(136, 146, 191, 0.1); }
.tech-tag.python:hover { color: #FFD43B; border-color: #FFD43B; background: rgba(255, 212, 59, 0.1); }
.tech-tag.js:hover { color: #F7DF1E; border-color: #F7DF1E; background: rgba(247, 223, 30, 0.1); }
.tech-tag.vuejs:hover { color: #4FC08D; border-color: #4FC08D; background: rgba(79, 192, 141, 0.1); }
.tech-tag.quasar:hover { color: #1976D2; border-color: #1976D2; background: rgba(25, 118, 210, 0.1); }
.tech-tag.cakephp:hover { color: #D33C43; border-color: #D33C43; background: rgba(211, 60, 67, 0.1); }
.tech-tag.django:hover { color: #2ba977; border-color: #2ba977; background: rgba(43, 169, 119, 0.1); }
.tech-tag.nodejs:hover { color: #339933; border-color: #339933; background: rgba(51, 153, 51, 0.1); }
.tech-tag.postgres:hover { color: #336791; border-color: #336791; background: rgba(51, 103, 145, 0.1); }
.tech-tag.mysql:hover { color: #4479A1; border-color: #4479A1; background: rgba(68, 121, 161, 0.1); }
.tech-tag.mongodb:hover { color: #47A248; border-color: #47A248; background: rgba(71, 162, 72, 0.1); }
.tech-tag.azure:hover { color: #0089D6; border-color: #0089D6; background: rgba(0, 137, 214, 0.1); }

@media (max-width: 768px) {
  .floating-skills-container {
    bottom: 20px;
    right: 20px;
  }
}

/* CONTACT SECTION */
.contact-section {
    padding: 6rem 1rem;
    display: flex;
    justify-content: center;
}

.contact-card {
    position: relative;
    max-width: 900px;
    width: 100%;
    padding: 5rem 4rem;
    border-radius: 24px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.contact-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-subtitle {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.contact-desc {
    max-width: 600px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.contact-email-wrapper {
    display: inline-block;
}

.contact-email-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.contact-email-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.contact-email-link:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px -10px rgba(59, 175, 139, 0.4);
    background: rgba(15, 23, 42, 0.95);
}

.contact-email-link:hover::before {
    transform: translateX(100%);
}

.email-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.email-icon svg {
    width: 24px;
    height: 24px;
}

.email-hover-effect {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--accent-color);
}

.email-hover-effect svg {
    width: 20px;
    height: 20px;
}

.contact-email-link:hover .email-hover-effect {
    width: 20px;
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .contact-card {
        padding: 4rem 2rem;
    }
    .contact-title {
        font-size: 2.5rem;
    }
    .contact-email-link {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        gap: 1rem;
    }
}

/* PROJECT STATS BANNER */
.projects-stats-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.projects-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(11, 17, 14, 0.4);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--text-muted);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.projects-stat-badge:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.projects-stat-badge strong {
    color: var(--text-main);
}

.badge-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
}

/* CLIENTS SECTION */
.clients-section {
    padding: 3rem 0 5rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 5rem;
}

.clients-title {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    font-weight: 600;
}

.clients-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.clients-grid::-webkit-scrollbar {
    display: none;
}

.clients-grid:hover {
    opacity: 1;
}

.client-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
    padding: 1rem;
    flex-shrink: 0; /* Ensures logos do not get squished beyond readability */
}

.client-logo-link:hover {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-3px);
}

.client-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.client-logo-img {
    max-width: 200px;
    max-height: 130px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .clients-grid {
        gap: 2rem;
        justify-content: flex-start; /* on mobile, start from left when scrolling is used */
        padding-bottom: 1rem;
    }
}
