/* ==========================================================================
   1. ROOT VARIABLES & THEMES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Poppins:wght@200;300;400;500;600&display=swap');

:root {
  --blue: #102a63;
  --blue2: #1f3f8b;
  --green: #39b54a;
  --light: #f6f8fc;
  --text: #1a1f2c;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f6f8fc;
  --line: #dfe8fb;
  --muted: #5d6b89;
}

body.dark {
  --bg: #0f172a;
  --surface: #111b34;
  --surface-soft: #172445;
  --text: #e6ecff;
  --line: #2a3a63;
  --muted: #b6c2e3;
}

/* ==========================================================================
   2. GLOBAL RESET & ULTRA-SHARP TYPOGRAPHY
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;             /* Thin, light font weight */
  font-size: 0.92rem;           /* Compact, small font size */
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  transition: background 0.25s, color 0.25s;
  
  /* Ultra-sharp text rendering across all web browsers */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.3px;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 400;             /* Slim, elegant title weight */
  text-align: center;
  margin-bottom: 2rem;
  color: var(--blue);
  letter-spacing: -0.2px;
}

body.dark .section-title {
  color: #dce8ff;
}

section, header {
  scroll-margin-top: 90px;
}


/* ==========================================================================
    PRELOADER
   ========================================================================== */
#loader {
  position: fixed;
  inset: 0;
  background: #0a0f1d;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

/* Tech Ring Container */
.tech-ring-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 5;
}

.ring-fill {
  fill: none;
  stroke: var(--green, #10b981);
  stroke-width: 5;
  stroke-dasharray: 264; /* 2 * PI * 42 */
  stroke-dashoffset: 264;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.2s ease;
  filter: drop-shadow(0 0 6px var(--green, #10b981));
}

.loader-percent {
  position: absolute;
  font-family: 'Fira Code', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

/* Status Pulse & Text */
.loader-status-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pulse {
  width: 8px;
  height: 8px;
  background: var(--green, #10b981);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green, #10b981);
  animation: pulse 1.2s infinite ease-in-out;
}

.status-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #94a3b8;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.header {
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: 0.25s;
}

body.dark .header {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
/* ==========================================================================
   HEADER BRAND LOGO TYPOGRAPHY
   ========================================================================== */
.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo-img {
  width: 42px;                 /* Increased icon size to match larger text */
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.9;
}

/* Increased font size & bold weight for 'Hayai' */
.logo-main {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;            
  font-size: 2rem;             
  color: var(--blue);
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}

body.dark .logo-main {
  color: #ffffff;
}

/* Decorative swash line under main name */
.logo-main::after {
  content: '';
  position: absolute;
  right: -8px;
  bottom: 2px;
  width: 12px;
  height: 2px;
  background: var(--green);
  border-radius: 99px;
  transform: rotate(-25deg);
}

/* Maximum Boldness 'SOLUTIONS' subtext */
.logo-sub {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;             /* Ultra-bold / Black weight */
  font-size: 0.78rem;           /* Bumped up slightly for impact */
  color: var(--green);
  letter-spacing: 5px;          /* Adjusted tracking slightly for heavier strokes */
  text-transform: uppercase;
  margin-top: 6px;
  padding-left: 2px;
  
  /* Adds extra stroke thickness to force maximum boldness */
  -webkit-text-stroke: 0.4px var(--green);
}

body.dark .logo-sub {
  color: var(--green);
  -webkit-text-stroke: 0.4px var(--green);
}


.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.theme-btn {
  border: 1px solid #d9e4fb;
  background: #fff;
  color: #1f3f8b;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-content: center;
  cursor: pointer;
}

body.dark .theme-btn {
  background: #152448;
  border-color: #2d4275;
  color: #ffd166;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 300;             /* Fine-tuned light weight */
  font-size: 0.88rem;
}

.nav-links a:hover {
  color: var(--green);
}

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 0.78rem 1.25rem;
  border-radius: 0.55rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.88rem;
}

.btn:hover {
  filter: brightness(0.95);
}

.btn-light {
  background: #fff;
  color: var(--blue);
}


/* ==========================================================================
   HERO SECTION (FULL-WIDTH BACKGROUND SLIDESHOW)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12); /* Solid edge line visible across the entire width */
}

body.dark .hero-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Parent container strictly clips any overflowing asset content */
.hero-bg-slideshow {
  position: absolute;
  top: 0;
  right: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  z-index: 1;
  overflow: hidden; /* Prevents image assets from exceeding screen width */
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover; /* Fits image cleanly inside right container */
  background-position: center center;
  background-repeat: no-repeat;
  
  /* Smooth Fade Without Border/Line Artifacts */
  opacity: 0;
  border: none;
  outline: none;
  box-shadow: none;
  transition: opacity 1s ease-in-out; /* Removed scale transform to eliminate center line */
  will-change: opacity;
}

.hero-bg-slide.active {
  opacity: 1;
}

/* Set your background image paths here */
.hero-bg-slide.slide-1 {
  background-image: url('assets/hero-front.jpg');
}

.hero-bg-slide.slide-2 {
  background-image: url('assets/turn.jpg');
}


/* Seamless blend on the middle split edge */
.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Soft transition gradient along the split line */
body:not(.dark) .hero-overlay {
  background: linear-gradient(
    90deg, 
    #ffffff 0%, 
    rgba(255, 255, 255, 0) 20%
  );
}

/* Dark mode: smooth fade from dark slate into the right image */
body.dark .hero-overlay {
  background: linear-gradient(
    90deg, 
    #0a0f1d 0%, 
    rgba(10, 15, 29, 0) 20%
  );
}

/* Content Positioning Over Background */
.hero-container {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.8rem;
  width: 100%;
}

.hero-content {
  max-width: 650px;
}

/* Clean, Natural Text Alignment Without Gaps or Hyphen Breaks */
.hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--blue);
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
  text-align: left;           /* Prevents stretched word spacing gaps */
  hyphens: none;              /* Disables automatic word hyphenation */
  word-break: normal;         /* Prevents breaking words across lines */
  overflow-wrap: normal;
}

/* Force span inside hero h1 to match heading font weight exactly */
.hero-content h1 span.no-break {
  white-space: nowrap;
  font-family: inherit;
  font-weight: 400 !important; /* Forces bold weight */
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}


body.dark .hero-content h1 {
  color: #ffffff;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 2rem;
  text-align: left;           /* Natural left alignment for paragraph */
  hyphens: none;
  word-break: normal;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Responsive breakpoint for mobile/tablet */
@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    padding: 4rem 0;
  }

  .hero-bg-slideshow,
  .hero-overlay {
    left: 0;
    width: 100%;
  }

  /* Solid overlay coverage on mobile to preserve readability */
  .hero-overlay {
    background: rgba(10, 15, 29, 0.85);
  }

  body:not(.dark) .hero-overlay {
    background: rgba(255, 255, 255, 0.9);
  }
}

/* ==========================================================================
   SERVICES SECTION (BACKGROUND IMAGE + GLASS OVERLAY)
   ========================================================================== */
.services-section {
  position: relative;
  padding: 6rem 0;
  width: 100%;
  /* Background Image Properties */
  background-image: url('assets/services-bg.jpg'); /* Replace with your image path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;                    /* Creates a smooth parallax effect */
  overflow: hidden;
}

/* Semi-transparent Overlay layer to ensure card and text contrast */
.services-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(248, 250, 255, 0.88);           /* Light theme tint over bg image */
  z-index: 1;
}

body.dark .services-overlay {
  background: rgba(11, 19, 40, 0.90);             /* Dark theme tint over bg image */
}

/* Bring container content above overlay layer */
.services-container {
  position: relative;
  z-index: 2;
}

/* Section Titles */
.services-section .section-title h2 {
  font-size: 2.2rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

body.dark .services-section .section-title h2 {
  color: #ffffff;
}

.services-section .subtitle {
  color: var(--muted);
  font-size: 1rem;
}

/* Service Cards Glassmorphism styling */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem;
  margin-top: 3rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);                       /* Glassmorphism blur over the background image */
  padding: 2.2rem 1.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .service-card {
  background: rgba(16, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}



.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--blue);
}

body.dark .service-card h3 {
  color: #ffffff;
}

.service-card p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.6;
}


/* ==========================================================================
   ABOUT SECTION STYLES
   ========================================================================== */

.about-section {
  padding: 6rem 0;
  position: relative;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

/* Left Visual Column */
.about-visual {
  position: relative;
}

.visual-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: visible;
}

.about-img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark .about-img {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Floating IDE Code Card Overlay */
.code-badge {
  position: absolute;
  bottom: -25px;
  right: -20px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.1rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  font-family: 'Fira Code', 'Courier New', monospace;
  max-width: 310px;
  z-index: 2;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.code-title {
  color: #64748b;
  font-size: 0.75rem;
  margin-left: auto;
}

.code-body code {
  display: block;
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.kw { color: #38bdf8; }
.str { color: #4ade80; }
.fn { color: #f472b6; }

/* Right Content Column */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.about-header h2 {
  font-size: 2.3rem;
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

body.dark .about-header h2 {
  color: #ffffff;
}

.about-lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Mission / Vision Cards */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.mv-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(47, 102, 255, 0.04);
  padding: 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(47, 102, 255, 0.08);
}
body.dark .mv-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
}
body.dark .mv-icon {
  background: var(--green);
  color: #0d1322;
}
.mv-card h4 {
  font-size: 1.05rem;
  color: var(--blue);
  margin-bottom: 0.2rem;
}
body.dark .mv-card h4 {
  color: #ffffff;
}
.mv-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}
/* Checklist */
.about-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}
.about-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.check-icon {
  color: var(--green);
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.about-checklist strong {
  color: var(--blue);
}
body.dark .about-checklist strong {
  color: #ffffff;
}
.about-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
/* Responsive Styles */
@media (max-width: 992px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .about-visual {
    max-width: 550px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .mv-grid {
    grid-template-columns: 1fr;
  }
  .code-badge {
    position: relative;
    right: 0;
    bottom: 0;
    margin-top: -30px;
    max-width: 100%;
  }
}
/* ==========================================================================
   7. PRICING BANNER & PROJECTS
   ========================================================================== */
.price-banner {
  padding: 2.5rem 0 1.5rem;
}

.price-banner-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 1.2rem;
  background: linear-gradient(135deg, #f6fff7, #eef7ff);
  border: 1px solid #dce8f8;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 12px 25px rgba(16, 42, 99, 0.08);
}

body.dark .price-banner-wrap {
  background: rgba(16, 23, 42, 0.85);
  border: rgba(255, 255, 255, 0.08);
}

.price-banner-wrap picture {
  display: block;
}

.price-banner-img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  animation: floatPrice 5s ease-in-out infinite;
}
.price-banner-cta h3 {
  color: var(--blue);
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
body.dark .price-banner-cta h3 {
  color: #dce8ff;
}
.price-banner-cta p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

@keyframes floatPrice {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
/* ==========================================================================
   ENGINEERING CASE STUDIES (TECH LEAD PERSPECTIVE)
   ========================================================================== */
.portfolio-header {
  margin-bottom: 3rem;
}

.fancy-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  width: 100%;
}
.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 24px rgba(16, 42, 99, 0.06);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 38px rgba(16, 42, 99, 0.14);
  border-color: rgba(47, 102, 255, 0.3);
}
.project-media {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}
.project-card:hover .project-media img {
  transform: scale(1.05);
}
/* System Live Status Pill */
.system-status {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.system-status.in-dev .status-dot {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}
/* Card Body & Engineering Metadata */
.project-body {
  padding: 1.4rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.tech-tag {
  background: rgba(47, 102, 255, 0.08);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}
body.dark .tech-tag {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
}
.project-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
body.dark .project-body h3 {
  color: #ffffff;
}
.project-body p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
/* Engineering Metrics Bar */
.project-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  background: var(--card-bg, #f8faff);
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  margin-top: auto;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
}
body.dark .project-metrics {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}
.metric {
  display: flex;
  flex-direction: column;
}
.metric-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue);
}
body.dark .metric-val {
  color: var(--green);
}
.metric-lbl {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* Action Links */
.project-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn-text {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

body.dark .btn-text {
  color: #38bdf8;
}
.btn-text:hover {
  gap: 0.7rem;
}

.dev-badge {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}
/* Responsiveness */
@media (max-width: 992px) {
  .fancy-projects {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .fancy-projects {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   8. CONTACT FORM & GLOW EFFECTS
   ========================================================================== */
/* ==========================================================================
   CONTACT SECTION (FANCY FORM & SHELL)
   ========================================================================== */

.contact-shell {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 22px;
  /* Green architectural background image with a light dark overlay */
  background: 
    linear-gradient(rgba(10, 25, 45, 0.45), rgba(10, 25, 45, 0.45)), 
    url('assets/green-bg.jpg') center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

body.dark .contact-shell {
  background: 
    linear-gradient(rgba(8, 15, 30, 0.65), rgba(8, 15, 30, 0.65)), 
    url('assets/green-bg.jpg') center/cover no-repeat;
  border-color: rgba(255, 255, 255, 0.15);
}

/* Ambient Glow Orbs */
.contact-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  pointer-events: none;
}

.contact-glow-1 {
  width: 220px;
  height: 220px;
  background: #2f66ff;
  top: -80px;
  right: -70px;
}

.contact-glow-2 {
  width: 180px;
  height: 180px;
  background: #38b44a;
  bottom: -70px;
  left: -60px;
}

/* Form Layout & Fields */
.fancy-form {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  position: relative;
}

.field i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #536b9e;
  font-size: 0.95rem;
  z-index: 3;
}

body.dark .field i {
  color: #aac0ef;
}

.field input, 
.field textarea {
  width: 100%;
  border: 1px solid rgba(204, 218, 247, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: #1a1f2c;
  border-radius: 14px;
  padding: 14px 14px 14px 42px;
  font-family: inherit;
  font-weight: 300;
  font-size: 0.88rem;
  transition: 0.25s ease;
}

body.dark .field input, 
body.dark .field textarea {
  background: rgba(15, 29, 58, 0.88);
  color: #ecf2ff;
  border-color: #334b7f;
}

.field textarea {
  resize: vertical;
  min-height: 150px;
}

.field-textarea i {
  top: 20px;
  transform: none;
}

/* Interactive States */
.field input:focus, 
.field textarea:focus {
  outline: none;
  border-color: #2f66ff;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(47, 102, 255, 0.2);
  transform: translateY(-1px);
}

body.dark .field input:focus, 
body.dark .field textarea:focus {
  background: #0f1d3a;
}

.field.invalid input, 
.field.invalid textarea {
  border-color: #d93025 !important;
  box-shadow: 0 0 0 4px rgba(217, 48, 37, 0.12) !important;
}

/* Submit Button & Status */
.btn-send {
  margin-top: 0.2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 14px;
  padding: 0.95rem 1.2rem;
  background: linear-gradient(90deg, #1fa53b 0%, #39b54a 45%, #2f66ff 120%);
  box-shadow: 0 12px 22px rgba(47, 102, 255, 0.25);
  transition: 0.25s ease;
  font-weight: 400;
  color: #ffffff;
  border: none;
  cursor: pointer;
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(47, 102, 255, 0.28);
}

.btn-send[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  font-size: 0.88rem;
  margin-top: 0.15rem;
  font-weight: 400;
}

.form-status.ok { color: #138a3e; }
.form-status.err { color: #c52626; }
.hp-field { display: none !important; }

/* Mobile Responsiveness Fix */
@media (max-width: 600px) {
  .contact-shell {
    padding: 1.5rem;
  }
  .grid-2 {
    grid-template-columns: 1fr; /* Stacking form fields vertically on mobile */
  }
}
/* ==========================================================================
   9. FOOTER (CURVED WAVE FOOTER PRESERVED)
   ========================================================================== */
.footer {
  background: var(--blue);
  color: #fff;
  position: relative;
  padding-top: 2.2rem;
}

body.dark .footer {
  background: #0b1328;
}

/* Ensure footer logo text remains visible in light mode */
.footer .logo-main {
  color: #ffffff;
}

.footer .logo-sub {
  color: var(--green); /* Keeps 'SOLUTIONS' bright and brand-aligned */
}
.footer-wave {
  position: absolute;
  top: -38px;
  left: 0;
  right: 0;
  height: 40px;
  background: radial-gradient(120% 90px at 50% -20px, transparent 60%, var(--blue) 61%);
}

body.dark .footer-wave {
  background: radial-gradient(120% 90px at 50% -20px, transparent 60%, #0b1328 61%);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
}

.foot-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.foot-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.foot-contact {
  justify-self: end;
  width: min(520px, 100%);
}

.foot-contact p {
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
}

.foot-contact a {
  color: #dce8ff;
  text-decoration: none;
}

.foot-contact a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #ffffff1f;
  margin-top: 0.8rem;
}

.footer-bottom p {
  text-align: center;
  padding: 0.9rem 0 1.1rem;
  font-size: 0.82rem;
  color: #d8e3ff;
}

/* Back to Top Floating Button */
#toTop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  border: none;
 
  background: #ffffff; 
  color: #333333; 
  width: 22px;
  height: 22px;
  border-radius: 20%;
  display: none;
  cursor: pointer;
  z-index: 1100;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   10. MEDIA QUERIES & RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; min-height: auto; }
  .about-img { height: 420px; }
  .about-card { margin-left: 0; margin-top: -40px; max-width: 100%; }
  .about-card h2 { font-size: 2.2rem; }
  .fancy-projects { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr; }
  .foot-contact { justify-self: start; width: 100%; }
}

@media (max-width: 900px) {
  .price-banner-wrap { grid-template-columns: 1fr; text-align: center; }
  .price-banner-cta .btn { margin-inline: auto; }
}

@media (max-width: 700px) {
  .menu-btn { display: block; }
  .nav-links {
    position: absolute;
    top: 68px;
    right: 4%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    flex-direction: column;
    padding: 0.8rem 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .cards, .fancy-projects { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-shell { padding: 1.2rem; border-radius: 16px; }
  .hero h1 { font-size: 1.95rem; }
  .project-media { height: 240px; }
  .price-banner-wrap { padding: 0.75rem; border-radius: 14px; }
  .price-banner-img { max-height: 300px; object-fit: cover; border-radius: 10px; }
}
