/* =========================================
   METY.IT — Custom Stylesheet
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --primary:       #00d4aa;
  --primary-light: #1fb99a;
  --accent:        #00d4aa;
  --accent2:       #ff6584;
  --bg-dark:       #080f0e;
  --bg-card:       #0e1918;
  --bg-card2:      #142422;
  --border:        rgba(0, 212, 170, 0.18);
  --text:          #e8eaf6;
  --text-muted:    #7faaa5;
  --glass:         rgba(8, 18, 16, 0.72);
  --radius:        18px;
  --shadow:        0 8px 40px rgba(0, 212, 170, 0.13);
}

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* =========================================
   NAVBAR
   ========================================= */
#mainNav {
  background: rgba(8, 15, 14, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s, box-shadow 0.4s;
}

#mainNav.scrolled {
  background: rgba(8, 15, 14, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.brand-m {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-ety {
  color: var(--text);
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text) !important;
}

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

.nav-link.active-nav {
  color: var(--text) !important;
}

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

.btn-nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff !important;
  border-radius: 50px;
  padding: 0.4rem 1.2rem !important;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 170, 0.5);
  color: #fff !important;
}

.btn-nav-cta::after {
  display: none;
}

/* =========================================
   HERO
   ========================================= */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../../hero_bg.png') center/cover no-repeat;
  opacity: 0.38;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 15, 14, 0.3) 0%, rgba(8, 15, 14, 0.85) 80%, rgba(8, 15, 14, 1) 100%);
  z-index: 1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary-light);
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  animation: fadeSlideDown 0.7s ease both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  animation: fadeSlideDown 0.8s 0.15s ease both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  animation: fadeSlideDown 0.8s 0.3s ease both;
}

.hero-actions {
  animation: fadeSlideDown 0.8s 0.45s ease both;
}

/* ---- FLOATING CARDS ---- */
.hero-visual {
  position: relative;
  z-index: 2;
  animation: fadeSlideLeft 1s 0.5s ease both;
}

.floating-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  padding: 1.4rem 1.6rem;
  width: 260px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.floating-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.floating-card:nth-child(1) {
  animation: float1 5s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation: float2 6s ease-in-out infinite;
  margin-left: 60px;
  margin-top: -20px;
}

.floating-card:nth-child(3) {
  animation: float1 7s 0.5s ease-in-out infinite;
  margin-top: -15px;
}

@keyframes float1 {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(10px);
  }
}

.fc-icon {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.fc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.fc-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.fc-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 50px;
  margin-top: 0.5rem;
}

.fc-badge.live {
  background: rgba(0, 212, 170, 0.15);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 170, 0.3);
}

.fc-badge.beta {
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary-light);
  border: 1px solid var(--border);
}

.fc-badge.new {
  background: rgba(255, 101, 132, 0.15);
  color: var(--accent2);
  border: 1px solid rgba(255, 101, 132, 0.3);
}

/* =========================================
   SECTION SHARED
   ========================================= */
section {
  padding: 100px 0;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* divider */
.fancy-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  margin: 0 auto 1.5rem;
}

/* =========================================
   STATS STRIP
   ========================================= */
#stats {
  padding: 50px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
  padding: 0.5rem 1rem;
}

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* =========================================
   PROJECTS (APP HUB)
   ========================================= */
#projects {
  background: var(--bg-dark);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 212, 170, 0.15);
  border-color: rgba(0, 212, 170, 0.45);
}

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

.pc-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  transition: transform 0.3s;
}

.project-card:hover .pc-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
}

.pc-icon-purple {
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.28);
}

.pc-icon-teal {
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.3);
}

.pc-icon-pink {
  background: rgba(255, 101, 132, 0.12);
  border: 1px solid rgba(255, 101, 132, 0.3);
}

.pc-icon-orange {
  background: rgba(255, 165, 0, 0.12);
  border: 1px solid rgba(255, 165, 0, 0.3);
}

.pc-icon-blue {
  background: rgba(0, 150, 255, 0.12);
  border: 1px solid rgba(0, 150, 255, 0.3);
}

.pc-icon-green {
  background: rgba(50, 215, 75, 0.12);
  border: 1px solid rgba(50, 215, 75, 0.3);
}

.pc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.pc-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.pc-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid var(--border);
  color: var(--primary-light);
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}

.pc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-light);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}

.pc-link:hover {
  gap: 0.7rem;
  color: var(--accent);
}

/* =========================================
   ABOUT
   ========================================= */
#about {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 40px rgba(0, 212, 170, 0.35);
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), #00a882);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.skill-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin: 0.2rem;
  transition: color 0.2s, border-color 0.2s;
}

.skill-pill:hover {
  color: var(--primary-light);
  border-color: var(--primary);
}

/* =========================================
   CONTACT / CTA
   ========================================= */
#contact {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.09) 0%, transparent 70%);
  pointer-events: none;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.05), rgba(0, 168, 130, 0.03));
  pointer-events: none;
}

.form-control-dark {
  background: var(--bg-dark) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  color: var(--text) !important;
  padding: 0.75rem 1rem !important;
  transition: border-color 0.3s, box-shadow 0.3s !important;
  font-size: 0.95rem !important;
}

.form-control-dark::placeholder {
  color: var(--text-muted) !important;
}

.form-control-dark:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15) !important;
  outline: none !important;
}

.form-label-dark {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary-glow {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 6px 30px rgba(0, 212, 170, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 212, 170, 0.48);
  color: #fff;
}

.btn-outline-glass {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-glass:hover {
  background: rgba(0, 212, 170, 0.1);
  border-color: var(--primary);
  color: var(--text);
  transform: translateY(-3px);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--primary-light);
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.social-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  border-color: var(--primary);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   RESPONSIVE TWEAKS
   ========================================= */
@media (max-width: 991.98px) {
  .hero-visual {
    display: none;
  }

  section {
    padding: 70px 0;
  }

  .contact-card {
    padding: 2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    letter-spacing: -1px;
  }

  .stat-num {
    font-size: 1.8rem;
  }
}