/* ==========================================================================
   Mohamed Mansoor - Premium Portfolio Stylesheet
   Theme: Luxury Dark + Dark Green Accent
   Palette:
     - Primary BG: #0A0A0A
     - Secondary BG: #111111
     - Accent Dark Green: #0B3B2E
     - Highlight Green: #1FA971
     - Text Primary: #F5F5F5
     - Muted Text: #A0A0A0
   ========================================================================== */

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

/* --- CSS Variables / Design System --- */
:root {
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-card: rgba(17, 17, 17, 0.7);
  --bg-card-hover: rgba(20, 30, 25, 0.8);
  
  --accent-dark-green: #0B3B2E;
  --accent-green-rgb: 11, 59, 46;
  --highlight-green: #1FA971;
  --highlight-green-rgb: 31, 169, 113;
  --green-glow: rgba(31, 169, 113, 0.35);
  
  --text-primary: #F5F5F5;
  --text-muted: #A0A0A0;
  --text-dim: #666666;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-green: rgba(31, 169, 113, 0.25);
  --border-green-active: rgba(31, 169, 113, 0.6);
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* --- Selection & Scrollbar --- */
::selection {
  background-color: var(--highlight-green);
  color: #000;
}

::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #1e2925;
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--highlight-green);
}

/* --- Background Particle Canvas & Ambient Blobs --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: floatBlob 18s ease-in-out infinite alternate;
}

.ambient-blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--highlight-green) 0%, var(--accent-dark-green) 70%, transparent 100%);
  top: -100px;
  right: -100px;
}

.ambient-blob-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-dark-green) 0%, rgba(11, 59, 46, 0.4) 60%, transparent 100%);
  top: 40%;
  left: -200px;
  animation-delay: -6s;
}

.ambient-blob-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(31, 169, 113, 0.3) 0%, var(--accent-dark-green) 70%, transparent 100%);
  bottom: 5%;
  right: -150px;
  animation-delay: -12s;
}

@keyframes floatBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, -60px) scale(1.1);
  }
  100% {
    transform: translate(-30px, 50px) scale(0.95);
  }
}

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

/* --- Glassmorphism Component Utility --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-green);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(31, 169, 113, 0.12);
}

/* --- Typography Helpers & Section Headers --- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(31, 169, 113, 0.08);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-pill);
  color: var(--highlight-green);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-tag .tag-dot {
  width: 8px;
  height: 8px;
  background-color: var(--highlight-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--highlight-green);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-title .text-gradient {
  background: linear-gradient(135deg, #FFFFFF 30%, var(--highlight-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--highlight-green) 0%, var(--accent-dark-green) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 20px var(--green-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(31, 169, 113, 0.5), 0 0 15px var(--highlight-green);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(31, 169, 113, 0.1);
  border-color: var(--border-green);
  color: #FFFFFF;
  transform: translateY(-3px);
}

.btn .btn-icon {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* --- Header & Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 14px 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(31, 169, 113, 0.12);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-family: var(--font-main);
  color: var(--highlight-green);
  font-weight: 600;
}

.logo-badge .status-dot {
  width: 6px;
  height: 6px;
  background: var(--highlight-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--highlight-green);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--highlight-green);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 380px;
  height: 100vh;
  background: rgba(15, 20, 18, 0.96);
  backdrop-filter: blur(24px);
  z-index: 999;
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--border-green);
  transition: right var(--transition-normal);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-links a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.mobile-nav-links a:hover {
  color: var(--highlight-green);
}

/* --- Section 1: Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  animation: floatSlow 6s ease-in-out infinite alternate;
}

@keyframes floatSlow {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title .highlight-text {
  color: var(--highlight-green);
  position: relative;
  display: inline-block;
}

.hero-title .highlight-text::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(31, 169, 113, 0.2);
  border-radius: 4px;
  z-index: -1;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Hero Social Links */
.hero-social-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.hero-social-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.social-icons-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.hero-social-icon:hover {
  color: var(--highlight-green);
  background: rgba(31, 169, 113, 0.12);
  border-color: var(--border-green-active);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--green-glow);
}

/* Hero Image Card Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  padding: 12px;
  background: linear-gradient(135deg, rgba(31, 169, 113, 0.25) 0%, rgba(10, 15, 12, 0.8) 100%);
  border: 1px solid var(--border-green-active);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(31, 169, 113, 0.2);
  transition: transform var(--transition-normal);
}

.hero-image-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.8), 0 0 60px rgba(31, 169, 113, 0.3);
}

.hero-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  background: rgba(17, 24, 20, 0.9);
}

.hero-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-card:hover .hero-profile-img {
  transform: scale(1.03);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(10, 15, 12, 0.7) 100%);
  pointer-events: none;
}

.floating-badge {
  position: absolute;
  padding: 12px 20px;
  background: rgba(11, 59, 46, 0.9);
  border: 1px solid var(--border-green-active);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px var(--green-glow);
  z-index: 5;
}

.badge-1 {
  top: -20px;
  right: -20px;
  animation: floatBadge1 4s ease-in-out infinite alternate;
}

.badge-2 {
  bottom: -20px;
  left: -20px;
  animation: floatBadge2 5s ease-in-out infinite alternate;
}

@keyframes floatBadge1 {
  0% { transform: translateY(0) rotate(2deg); }
  100% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes floatBadge2 {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(10px) rotate(2deg); }
}

/* --- Section 2: About Me Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.about-text p {
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.stat-card {
  padding: 24px 18px;
  text-align: center;
  background: rgba(17, 24, 20, 0.4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.stat-card:hover {
  border-color: var(--highlight-green);
  background: rgba(11, 59, 46, 0.3);
  transform: translateY(-5px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--highlight-green);
  margin-bottom: 6px;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tech-pill {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.tech-pill:hover {
  border-color: var(--highlight-green);
  color: var(--highlight-green);
  background: rgba(31, 169, 113, 0.08);
}

/* --- Section 3: Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.service-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--highlight-green), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-green-active);
  background: var(--bg-card-hover);
}

.service-icon-wrapper {
  width: 64px;
  height: 64px;
  background: rgba(31, 169, 113, 0.1);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--highlight-green);
  margin-bottom: 28px;
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon-wrapper {
  background: var(--highlight-green);
  color: #000;
  box-shadow: 0 0 20px var(--highlight-green);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.service-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-features {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.service-feature-item svg {
  color: var(--highlight-green);
  flex-shrink: 0;
}

/* --- Section 4: Portfolio Section --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-green-active);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(31, 169, 113, 0.2);
}

.portfolio-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #141916;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-slow);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.08);
}

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

.visit-btn {
  padding: 12px 24px;
  background: var(--highlight-green);
  color: #000;
  font-weight: 700;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateY(15px);
  transition: all var(--transition-fast);
  box-shadow: 0 0 20px var(--highlight-green);
}

.portfolio-card:hover .visit-btn {
  transform: translateY(0);
}

.portfolio-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portfolio-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--highlight-green);
  font-weight: 700;
}

.portfolio-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.portfolio-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Section 5: Contact Me Section --- */
.contact-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: rgba(17, 24, 20, 0.6);
  border: 1px solid var(--border-green);
  backdrop-filter: blur(20px);
}

.contact-info-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-header .section-title {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.contact-cards-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.contact-item:hover {
  border-color: var(--highlight-green);
  background: rgba(31, 169, 113, 0.08);
  transform: translateX(6px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(31, 169, 113, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--highlight-green);
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-detail-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Contact Form */
.contact-form-side {
  background: rgba(10, 10, 10, 0.7);
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--highlight-green);
  background: rgba(31, 169, 113, 0.05);
  box-shadow: 0 0 15px rgba(31, 169, 113, 0.2);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%3C1FA971' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select.form-control option {
  background-color: #111111;
  color: var(--text-primary);
}

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

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  margin-top: 10px;
}

/* Toast Feedback */
.toast-notice {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 16px 24px;
  background: var(--accent-dark-green);
  border: 1px solid var(--highlight-green);
  color: #FFF;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--highlight-green);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  pointer-events: none;
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --- Section 6: Footer --- */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 60px 0 40px;
  background: #070707;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  color: var(--highlight-green);
  border-color: var(--highlight-green);
  background: rgba(31, 169, 113, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 0 20px var(--green-glow);
}

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

/* Scroll To Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(17, 24, 20, 0.8);
  border: 1px solid var(--border-green);
  color: var(--highlight-green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 99;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--highlight-green);
  color: #000;
  transform: translateY(-4px);
  box-shadow: 0 0 20px var(--highlight-green);
}

/* --- Scroll Reveal Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Responsive Breakpoints --- */
@media (max-width: 1024px) {
  .services-grid, .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-container {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-desc {
    margin: 0 auto 36px;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-social-links {
    justify-content: center;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .nav-menu, .nav-actions .btn {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: auto;
  }
  .hero-title {
    font-size: clamp(2rem, 6vw, 2.7rem);
  }
  .hero-desc {
    font-size: 1.05rem;
  }
  .hero-social-links {
    flex-direction: column;
    gap: 12px;
  }
  .social-icons-wrap {
    justify-content: center;
  }
  .hero-image-card {
    max-width: 360px;
    margin: 0 auto;
  }
  .services-grid, .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tech-pills {
    justify-content: center;
  }
  .badge-1 {
    top: -12px;
    right: -10px;
    font-size: 0.78rem;
    padding: 8px 14px;
  }
  .badge-2 {
    bottom: -12px;
    left: -10px;
    font-size: 0.78rem;
    padding: 8px 14px;
  }
  .contact-form-side {
    padding: 24px;
  }
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-title {
    font-size: clamp(1.75rem, 7.5vw, 2.2rem);
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .hero-image-card {
    max-width: 100%;
    padding: 8px;
  }
  .badge-1, .badge-2 {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    margin: 10px auto 0;
    width: fit-content;
    animation: none;
    font-size: 0.8rem;
  }
  .stat-card {
    padding: 20px;
  }
  .service-card, .portfolio-card {
    padding: 20px;
  }
  .contact-container {
    padding: 20px 16px;
  }
  .social-icons-wrap {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .logo {
    font-size: 1.15rem;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .btn {
    padding: 12px 24px;
    font-size: 0.92rem;
  }
}
