@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

/* =========================================
   1. CSS VARIABLES
   ========================================= */
:root {
  /* Brand Colors */
  --primary: #00bb7e;
  --secondary: #e9511c;
  --dark: #313e49;
  --dark-accent: #2c3741;

  /* Backgrounds */
  --bg-body: #ffffff;
  --bg-light: #f4f6f8;
  --bg-card: #ffffff;

  /* Text */
  --text-main: #313e49;
  --text-light: #6c757d;

  /* Effects */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   2. BASE STYLES
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-main);
  background-color: var(--bg-body);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Roboto Mono', monospace;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   3. UTILITIES
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

.text-white {
  color: #fff !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.6) !important;
}

.bg-light-alt {
  background-color: var(--bg-light);
}

.bg-dark-blue {
  background-color: var(--dark);
  color: #fff;
}

.highlight {
  color: var(--secondary);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(233, 81, 28, 0.15);
  z-index: 10;
  border-radius: 4px;
}

.highlight-orange {
  color: var(--secondary);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
  position: relative;
  padding: 100px 0 80px;
  background: radial-gradient(circle at top right, rgba(0, 187, 126, 0.05) 0%, transparent 40%),
    radial-gradient(circle at bottom left, rgba(233, 81, 28, 0.05) 0%, transparent 40%);
  text-align: center;
}

.hero-logo {
  max-width: 600px;
  width: 100%;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
  margin-bottom: 50px;
}

/* Modern Navigation */
.modern-nav {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 8px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.nav-pill {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-pill i {
  color: var(--primary);
  opacity: 0.8;
}

.nav-pill:hover,
.nav-pill.active {
  background-color: var(--dark);
  color: #fff;
  transform: translateY(-2px);
}

.nav-pill:hover i,
.nav-pill.active i {
  color: var(--primary);
  opacity: 1;
}

/* =========================================
   5. CONTENT SECTIONS
   ========================================= */
.content-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.modern-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.modern-grid.reverse {
  direction: rtl;
}

.modern-grid.reverse>* {
  direction: ltr;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.section-heading {
  font-size: 2.8rem;
  margin-bottom: 25px;
  letter-spacing: 0px;
}

.text-card p {
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: 1.15rem;
}

.text-card-left {
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: 1.15rem;
}

/* Floating Images with Shapes */
.image-wrapper {
  position: relative;
  padding: 30px;
  z-index: 1;
  perspective: 1000px;
}

.floating-img {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  background: transparent;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Extremely subtle border */
}

.image-wrapper:hover .floating-img {
  transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
}

.blob-shape {
  position: absolute;
  z-index: 1;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: blob-bounce 10s infinite alternate;
  opacity: 0.15;
  filter: blur(40px);
}

.shape-1 {
  top: -10%;
  right: -10%;
  width: 120%;
  height: 120%;
  background: linear-gradient(45deg, var(--secondary), var(--primary));
}

.shape-2 {
  bottom: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: linear-gradient(45deg, var(--primary), var(--dark));
}

.shape-3 {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--dark), var(--primary));
  opacity: 0.1;
}

/* Floating Tech Decorations */
.tech-decoration {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  /* More transparent */
  backdrop-filter: blur(10px);
  padding: 10px 15px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* Subtle light border */
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.4s ease;
}

.image-wrapper:hover .tech-decoration {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.tech-decoration i {
  font-size: 1rem;
}

.deco-1 {
  top: 10%;
  right: 5%;
  animation: float-y 4s ease-in-out infinite;
}

.deco-2 {
  bottom: 15%;
  left: 0;
  animation: float-y 5s ease-in-out infinite reverse;
}

.deco-3 {
  top: 20%;
  left: -5%;
  animation: float-y 4.5s ease-in-out infinite 0.5s;
}

.Code-badge {
  color: var(--primary);
}

.Terminal-badge {
  color: var(--secondary);
}

@keyframes float-y {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes blob-bounce {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-15px, 15px) scale(1.05);
  }
}

/* Feature List */
.feature-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.feature-list i {
  color: var(--primary);
  background: rgba(0, 187, 126, 0.1);
  padding: 6px;
  border-radius: 50%;
  font-size: 0.8rem;
}

/* Tech Badges */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.tech-badge {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.tech-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.text-link {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(233, 81, 28, 0.3);
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

/* =========================================
   6. CONTACT GRID
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  color: #fff;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px;
  color: var(--primary);
  transition: var(--transition);
}

.contact-card:hover .icon-box {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.contact-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

/* =========================================
   7. FOOTER
   ========================================= */
.modern-footer {
  background-color: #1a2026;
  color: #8b949e;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-bottom-links {
  margin-top: 15px;
}

.footer-bottom-links a {
  margin: 0 15px;
  font-size: 0.9rem;
  color: inherit;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* =========================================
   8. ANIMATIONS & RESPONSIVE
   ========================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.delay-1 {
  animation-delay: 0.2s;
}

@media (max-width: 992px) {
  .modern-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .modern-grid.reverse {
    direction: ltr;
  }

  .image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }

  .section-label::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .hero-logo {
    max-width: 85%;
  }

  .modern-nav {
    flex-direction: column;
    width: 100%;
    border-radius: var(--radius-lg);
  }

  .section-heading {
    font-size: 2.2rem;
  }

  .tech-stack {
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}