/* ==========================================================================
   SM Digital Works Website CSS Design System
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* Color Variables & Styling Tokens */
:root {
  --bg-black: #010617;
  --bg-darker: #060b18;
  --bg-card: rgba(15, 23, 42, 0.55);
  --bg-card-hover: rgba(20, 30, 54, 0.7);
  --text-white: #ffffff;
  --text-gray: #94a3b8;
  --text-light: #cbd5e1;
  --primary-cyan: #22d3ee;
  --primary-blue: #3b82f6;
  --primary-purple: #a855f7;
  --primary-pink: #ec4899;
  --primary-green: #10b981;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.25);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-black);
}

body {
  font-family: var(--font-body);
  color: var(--text-white);
  background-color: var(--bg-black);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  border: 2px solid var(--bg-black);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6rem 0;
}

.text-center {
  text-align: center;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 50%, var(--primary-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.gradient-text-alt {
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 50%, var(--primary-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  background: linear-gradient(90deg, var(--primary-cyan) 0%, var(--primary-blue) 50%, var(--primary-purple) 100%);
  background-size: 200% auto;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.25);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background-position: right center;
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-cyan);
  transform: translateY(-2px);
}

/* Floating Enquire Button */
.enquire-fixed {
  position: fixed;
  bottom: 105px;
  right: 30px;
  z-index: 100;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  color: var(--text-white);
  background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue), var(--primary-purple));
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.enquire-fixed:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 8px 25px rgba(34, 211, 238, 0.5);
}

/* Background Blur Mesh */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  background-color: var(--bg-black);
}

.bg-mesh::before,
.bg-mesh::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
}

.bg-mesh::before {
  top: -10%;
  left: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-blue), transparent 70%);
  animation: float-blob 20s infinite alternate;
}

.bg-mesh::after {
  bottom: -10%;
  right: 5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--primary-purple), transparent 70%);
  animation: float-blob-reverse 25s infinite alternate;
}

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image:
    linear-gradient(90deg, rgba(34, 211, 238, 0.02) 1px, transparent 1px),
    linear-gradient(0deg, rgba(34, 211, 238, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.8;
  pointer-events: none;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  border-bottom: 1px solid var(--border-color);
  background: rgba(1, 6, 23, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Nav logo image */
.nav-logo-img {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: 50%;
  transition: var(--transition-smooth);
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.15));
}

.nav-logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.35));
}

@media (max-width: 480px) {
  .nav-logo-img {
    height: 42px;
  }
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-white);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--primary-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue));
  transition: var(--transition-smooth);
}

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

.nav-link.active {
  color: var(--primary-cyan);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  cursor: pointer;
  color: var(--text-white);
}

/* Hero Section */
.hero {
  padding-top: 10rem;
  padding-bottom: 6rem;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-w: 900px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 5.5rem;
  }
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-gray);
  max-w: 650px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-desc {
    font-size: 1.35rem;
  }
}

/* Services Page & Landing Section */
.section-title-wrap {
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3.5rem;
  }
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  max-w: 600px;
  margin: 0 auto;
}

.grid-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-services {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Service Card */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.08) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 40px rgba(34, 211, 238, 0.08);
}

.service-icon {
  margin-bottom: 1.5rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-icon.blue {
  color: var(--primary-blue);
}

.service-icon.pink {
  color: var(--primary-pink);
}

.service-icon.purple {
  color: var(--primary-purple);
}

.service-icon.green {
  color: var(--primary-green);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.6;
}

/* Feature Showcase (Web Dev Section) */
.webdev-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .webdev-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.webdev-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.webdev-card:hover {
  transform: scale(1.03);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 15px 45px rgba(168, 85, 247, 0.08);
}

.webdev-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.webdev-card:hover::after {
  opacity: 1;
}

.webdev-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Software Development Section */
.software-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .software-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .software-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.software-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.2rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.software-card:hover {
  transform: translateY(-5px);
  border-color: rgba(236, 72, 153, 0.3);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.05);
}

.software-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, var(--primary-cyan) 0%, var(--primary-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.software-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* Mobile App Showcase Section */
.mobile-app-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.mobile-phones-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  width: 100%;
}

/* Premium CSS Phone Frame */
.phone-mockup {
  position: relative;
  width: 290px;
  height: 580px;
  border-radius: 40px;
  border: 4px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background: #090e17;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.phone-mockup:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.15);
}

.phone-screen {
  position: absolute;
  top: 4%;
  left: 4%;
  width: 92%;
  height: 92%;
  border-radius: 32px;
  background: linear-gradient(180deg, #0f172a 0%, #030712 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  z-index: 10;
}

.phone-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  opacity: 0.15;
  filter: blur(10px);
  transition: var(--transition-smooth);
}

.phone-mockup:hover .phone-glow {
  opacity: 0.3;
}

.phone-screen.ios .phone-glow {
  background: radial-gradient(circle, var(--primary-blue), transparent 60%);
}

.phone-screen.android .phone-glow {
  background: radial-gradient(circle, var(--primary-green), transparent 60%);
}

.phone-screen.cross .phone-glow {
  background: radial-gradient(circle, var(--primary-purple), transparent 60%);
}

.phone-content {
  position: relative;
  z-index: 15;
}

.phone-content h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.phone-content p {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.phone-speaker {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  z-index: 20;
}

.phone-camera {
  position: absolute;
  top: 10px;
  left: calc(50% + 30px);
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  z-index: 20;
}

/* Digital Marketing Section */
.marketing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .marketing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.marketing-card-wrap {
  border-radius: 20px;
  padding: 1px;
  transition: var(--transition-smooth);
}

.marketing-card-wrap.blue {
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan));
}

.marketing-card-wrap.orange {
  background: linear-gradient(90deg, #eab308, #f97316);
}

.marketing-card-wrap.pink {
  background: linear-gradient(90deg, #ec4899, #d946ef);
}

.marketing-card-wrap.green {
  background: linear-gradient(90deg, #10b981, #14b8a6);
}

.marketing-card-wrap.purple {
  background: linear-gradient(90deg, var(--primary-purple), #6366f1);
}

.marketing-card {
  background: #070c19;
  border-radius: 19px;
  padding: 2.2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition-smooth);
}

.marketing-card-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.marketing-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.marketing-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Company Pages Layouts (About / Privacy / Terms) */
.overview-section {
  max-width: 850px;
  margin: 0 auto;
  text-align: justify;
}

.overview-block {
  margin-bottom: 5rem;
}

.overview-block h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-align: center;
}

.overview-block p {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* FAQ / Accordion System */
.faq-section {
  max-width: 800px;
  margin: 5rem auto 0 auto;
}

.faq-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
}

.faq-item {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover {
  border-color: var(--primary-cyan);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.08);
}

.faq-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.faq-header:hover {
  color: var(--primary-cyan);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary-cyan);
  transition: var(--transition-smooth);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
  padding: 0 1.5rem;
  color: var(--text-gray);
  line-height: 1.7;
}

.faq-item.faq-open {
  border-color: var(--primary-cyan);
}

.faq-item.faq-open .faq-header {
  color: var(--primary-cyan);
}

.faq-item.faq-open .faq-content {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

.faq-item.faq-open .faq-icon {
  transform: rotate(45deg);
}

/* Contact Page Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background: rgba(17, 26, 46, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.contact-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 30px rgba(56, 189, 248, 0.15);
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-card p {
  color: var(--text-gray);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Custom Enquiry Form */
.form-section {
  max-width: 650px;
  margin: 4rem auto 0 auto;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(10px);
}

.form-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

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

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-white);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.15);
  background: rgba(0, 0, 0, 0.4);
}

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

/* Footer Section */
footer {
  border-top: 1px solid var(--border-color);
  background: #010617;
  position: relative;
  overflow: hidden;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  max-width: 320px;
}

.footer-brand h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue), var(--primary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-white);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

.footer-links a:hover {
  color: var(--primary-cyan);
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-white);
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.social-icon.linkedin {
  background-color: #0077b5;
}

.social-icon.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.facebook {
  background-color: #1877f2;
}

.social-icon:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-gray);
}

.footer-bottom-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--primary-cyan);
}

/* Animations */
@keyframes float-blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }

  50% {
    transform: translate(30px, -50px) scale(1.2);
  }

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

@keyframes float-blob-reverse {
  0% {
    transform: translate(0px, 0px) scale(1.1);
  }

  50% {
    transform: translate(-40px, 40px) scale(0.9);
  }

  100% {
    transform: translate(0px, 0px) scale(1.1);
  }
}

/* Scroll Animation classes */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.scale-reveal {
  position: relative;
  opacity: 0;
  transform: scale(0.9) rotateX(-15deg);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-reveal.active {
  opacity: 1;
  transform: scale(1) rotateX(0deg);
}

.slide-left-reveal {
  position: relative;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-left-reveal.active {
  opacity: 1;
  transform: translateX(0);
}

/* Hamburger Styles */
.mobile-nav-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

/* Mobile responsive navigation override */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(1, 6, 23, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    padding: 3rem 0;
    gap: 2.5rem;
    transition: var(--transition-smooth);
    z-index: 998;
    border-top: 1px solid var(--border-color);
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-nav-toggle {
    display: block;
  }
}

/* ============================================================
   FOOTER — Fully Responsive Grid System
   ============================================================ */

/* Base footer wrapper */
footer {
  border-top: 1px solid var(--border-color);
  background: #010617;
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
}

/* Footer grid — mobile first: single column */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0 2.5rem;
}

/* 480px+: 2 columns — brand full width */
@media (min-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding-top: 3.5rem;
  }
  /* Brand spans full width on 2-col layout */
  .footer-column.brand {
    grid-column: 1 / -1;
  }
}

/* 768px+: 3 columns */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
  }
  .footer-column.brand {
    grid-column: auto;
  }
}

/* 992px+: Full 4-column desktop layout */
@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
  }
  .footer-column.brand {
    grid-column: auto;
  }
}

/* Brand column */
.footer-column.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Logo */
.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  object-fit: cover;
  max-width: 56px;
}

@media (min-width: 768px) {
  .footer-logo {
    height: 64px;
    max-width: 64px;
    margin-bottom: 1.5rem;
  }
}

/* Footer description text */
.footer-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

@media (max-width: 480px) {
  .footer-desc {
    font-size: 0.85rem;
    max-width: 100%;
  }
}

/* Column heading */
.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #fbbf24;
}

@media (min-width: 768px) {
  .footer-col-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
}

/* Footer list */
.footer-ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-ul li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #94a3b8;
  min-width: 0;
}

/* Prevent email/phone overflow on small screens */
.footer-ul li a,
.footer-ul li span {
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

.footer-ul li svg {
  flex-shrink: 0;
  color: var(--primary-cyan);
}

.footer-ul li.address {
  align-items: flex-start;
  line-height: 1.6;
}

.footer-ul li.address svg {
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-ul a {
  color: #94a3b8;
  transition: var(--transition-smooth);
}

.footer-ul a:hover {
  color: var(--primary-cyan);
}

/* Social icons row */
.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: #94a3b8;
  transition: var(--transition-smooth);
}

.footer-social-row a:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: var(--primary-cyan);
  color: #fff;
  transform: translateY(-3px);
}

/* Divider */
.footer-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

/* Disclaimer */
.footer-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.7;
  max-width: 820px;
  margin: 0 auto 1.5rem auto;
  padding: 0 1rem;
}

@media (max-width: 480px) {
  .footer-disclaimer {
    font-size: 0.75rem;
    padding: 0 0.5rem;
  }
}

/* Footer bottom row */
.footer-bottom-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 0 1.5rem;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

@media (min-width: 576px) {
  .footer-bottom-row {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Bottom links */
.footer-bottom-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

@media (min-width: 576px) {
  .footer-bottom-links-row {
    justify-content: flex-end;
  }
}

.footer-bottom-links-row a {
  color: #64748b;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.footer-bottom-links-row a:hover {
  color: var(--primary-cyan);
}

/* Custom Services Grid Layout matching screenshot */
.services-header-flex {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .services-header-flex {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.services-header-left {
  max-width: 600px;
}

.services-label {
  display: block;
  color: var(--primary-cyan);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.services-header-left h2 {
  margin-bottom: 0;
  text-align: left;
  line-height: 1.25;
}

.services-header-right {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.services-header-sub {
  color: var(--text-gray);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.services-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-card-new {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.service-card-new:hover {
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  border-color: var(--primary-cyan);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.12);
}

.service-card-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.service-card-new:hover .service-card-img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-white);
}

.service-points {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.service-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.5;
}

.service-points li svg {
  color: var(--primary-cyan);
  margin-top: 3px;
  flex-shrink: 0;
}

.service-card-btn {
  width: 100%;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-white);
  transition: var(--transition-fast);
  display: block;
}

.service-card-new:hover .service-card-btn {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  color: var(--bg-black);
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(34, 211, 238, 0.2);
}

/* Floating WhatsApp Button styling */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  display: block;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .enquire-fixed {
    bottom: 85px;
    right: 20px;
  }
}

/* About Page Custom Layout Styles */
.founder-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .founder-row {
    grid-template-columns: 1fr 1.2fr;
  }
  .founder-order-1 {
    order: 1;
  }
  .founder-order-2 {
    order: 2;
  }
  .why-choose-flex {
    grid-template-columns: 1.2fr 1fr;
  }
}

.founder-img-wrap img,
.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.team-card:hover img {
  transform: scale(1.05);
}

.team-card {
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.team-card:hover {
  border-color: var(--primary-cyan) !important;
  box-shadow: 0 10px 25px rgba(34, 211, 238, 0.1);
  transform: translateY(-5px);
}

/* ============================================================
   FULL RESPONSIVE SYSTEM — Mobile First
   ============================================================ */

/* --- Base Mobile Fixes (all screens up to 480px) --- */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 1rem;
  }

  .section-padding {
    padding: 3.5rem 0;
  }

  /* Hero */
  .hero {
    padding-top: 7rem;
    padding-bottom: 3.5rem;
    min-height: auto;
  }

  .hero-title {
    font-size: 2rem !important;
    letter-spacing: -0.5px;
    line-height: 1.2;
  }

  .hero-desc {
    font-size: 0.95rem !important;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Services grid — single column on small phones */
  .services-grid-new {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-header-flex {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .services-header-left h2 {
    font-size: 1.8rem !important;
  }

  .section-title {
    font-size: 1.8rem !important;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Webdev grid */
  .webdev-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Software grid */
  .software-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Phone mockups — stack & shrink */
  .mobile-phones-grid {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
  }

  /* Marketing grid */
  .marketing-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* FAQ */
  .faq-section {
    margin-top: 2rem;
  }

  .faq-title {
    font-size: 1.6rem;
  }

  .faq-header {
    font-size: 0.9rem;
    padding: 1rem;
    gap: 0.75rem;
  }

  .faq-header span:first-child {
    flex: 1;
    min-width: 0;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-bottom-links-row {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-disclaimer {
    font-size: 0.78rem;
    text-align: center;
  }

  /* Floating buttons */
  .enquire-fixed {
    bottom: 80px;
    right: 12px;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    gap: 0.35rem;
  }

  .whatsapp-float {
    bottom: 16px;
    right: 12px;
    width: 46px;
    height: 46px;
  }

  /* About page */
  .founder-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .founder-info h2 {
    font-size: 1.6rem !important;
    line-height: 1.25 !important;
  }

  .founder-info p {
    font-size: 0.95rem !important;
  }

  .about-title {
    font-size: 2.2rem !important;
  }

  /* Why choose us */
  .why-choose-flex {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .why-choose-left h2 {
    font-size: 1.8rem !important;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Form */
  .form-section {
    padding: 2rem 1.25rem;
    margin: 2rem auto 0;
  }
}

/* --- Small tablets / large phones (481px – 640px) --- */
@media (min-width: 481px) and (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem !important;
  }

  .section-title {
    font-size: 2rem !important;
  }

  .services-grid-new {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .mobile-phones-grid {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .phone-mockup {
    width: 260px;
    height: 520px;
  }

  .marketing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .webdev-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* --- Tablets (641px – 768px) --- */
@media (min-width: 641px) and (max-width: 768px) {
  .hero-title {
    font-size: 3rem !important;
  }

  .section-title {
    font-size: 2.4rem !important;
  }

  .section-padding {
    padding: 4.5rem 0;
  }

  .services-grid-new {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .mobile-phones-grid {
    gap: 2rem;
  }

  .phone-mockup {
    width: 260px;
    height: 520px;
  }

  .marketing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .webdev-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .software-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- Small desktops / large tablets (769px – 1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-title {
    font-size: 3.8rem !important;
  }

  .services-grid-new {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .mobile-phones-grid {
    gap: 2.5rem;
  }

  .phone-mockup {
    width: 270px;
    height: 540px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .webdev-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .software-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Landscape phones (short & wide) --- */
@media (max-width: 900px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: 2.5rem !important;
  }

  .mobile-phones-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .phone-mockup {
    width: 200px;
    height: 400px;
  }
}

/* --- Global overflow fix --- */
* {
  max-width: 100%;
}

img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
}

/* Services grid min width fix for small screens */
@media (max-width: 700px) {
  .services-grid-new {
    grid-template-columns: 1fr !important;
  }
}

/* Service Category Filter Tabs */
.service-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.service-tab-btn {
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-light);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
}

.service-tab-btn:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

.service-tab-btn.active {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(59, 130, 246, 0.25));
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.2);
}