/* ==========================================================================
   DAMAYA DIGITAL AGENCY - CUSTOM CSS SYSTEM
   Style: Modern, Clean, Glassmorphic, Gen Z Tech Vibe
   ========================================================================== */

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

/* Color Variables & Design Tokens */
:root {
  --bg-dark: #030712;
  --bg-darker: #02040a;
  --bg-card: rgba(15, 23, 42, 0.45);
  --bg-card-hover: rgba(30, 41, 59, 0.6);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(99, 102, 241, 0.35);
  
  /* Brand Colors */
  --primary: #6366f1;       /* Electric Indigo */
  --primary-rgb: 99, 102, 241;
  --secondary: #0ea5e9;     /* Cyber Cyan */
  --secondary-rgb: 14, 165, 233;
  --accent-pink: #d946ef;   /* Neon Magenta */
  --accent-green: #10b981;  /* Vivid Mint */
  
  /* Typography Colors */
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #475569;
  
  /* Font Family */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --container-width: 1240px;
  --header-height: 80px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glows (Aesthetic Circles) */
.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}
.glow-1 {
  background: var(--primary);
  top: 10%;
  right: -10%;
  animation: float-glow 20s infinite alternate;
}
.glow-2 {
  background: var(--secondary);
  top: 40%;
  left: -15%;
  animation: float-glow 25s infinite alternate-reverse;
}
.glow-3 {
  background: var(--accent-pink);
  bottom: 10%;
  right: 5%;
  animation: float-glow 18s infinite alternate;
}

@keyframes float-glow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

/* Grid Dots Background Pattern */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 1;
  pointer-events: none;
}

/* Helper Elements */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

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

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

section {
  padding: 100px 0;
  position: relative;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-light) 30%, var(--primary) 70%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-brand-text {
  background: linear-gradient(135deg, #a855f7 0%, var(--primary) 40%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 3.5rem;
}

.center-align {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* UI Buttons (Gen Z Pill style) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  font-family: var(--font-heading);
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-light);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s;
  opacity: 0;
}

.btn-primary:hover::after {
  left: 125%;
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.6);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Glassmorphism General Card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 30px;
  transition: var(--transition-normal);
  position: relative;
}

.glass-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.15);
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
}

header.scrolled {
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  height: 70px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  font-family: var(--font-heading);
}

.logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  background: linear-gradient(135deg, #ffffff 40%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

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

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transition: var(--transition-fast);
  border-radius: 4px;
}

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

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

/* Mobile Menu Button */
.menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-btn .bar {
  display: block;
  width: 24px;
  height: 2.5px;
  margin: 5px auto;
  background: var(--text-light);
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* HERO SECTION */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  font-family: var(--font-heading);
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--secondary);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.hero-title {
  font-size: 4.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

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

.stat-number span {
  color: var(--secondary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Interactive Hero Visual (Gen Z Interactive Art) */
.hero-visual {
  position: relative;
  width: 100%;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.art-container {
  position: relative;
  width: 320px;
  height: 320px;
}

.art-ring {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(99, 102, 241, 0.15);
  border-radius: 50%;
  animation: spin-clockwise 25s linear infinite;
}

.art-ring-2 {
  position: absolute;
  inset: 20px;
  border: 1.5px solid rgba(14, 165, 233, 0.1);
  border-radius: 50%;
  border-top-color: var(--secondary);
  border-bottom-color: var(--accent-pink);
  animation: spin-counter 15s linear infinite;
}

.art-center {
  position: absolute;
  inset: 50px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.art-card {
  position: absolute;
  width: 220px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
  z-index: 5;
  transition: var(--transition-normal);
}

.art-card-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.art-card-logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
}

.art-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-light);
}

.art-card-details {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.art-card-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

.art-card-bar {
  width: 75%;
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
  animation: grow-bar 2.5s infinite ease-in-out alternate;
}

.art-card-1 {
  top: -10px;
  left: -40px;
  animation: float-y 5s infinite alternate ease-in-out;
}

.art-card-2 {
  bottom: 0px;
  right: -40px;
  animation: float-y 6s infinite alternate-reverse 1s ease-in-out;
}

.floating-badge {
  position: absolute;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(217, 70, 239, 0.1);
  border: 1px solid rgba(217, 70, 239, 0.25);
  color: var(--accent-pink);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 6;
}

.badge-1 {
  top: 40%;
  right: -60px;
  animation: float-x 4.5s infinite alternate ease-in-out;
}

.badge-2 {
  bottom: 50%;
  left: -80px;
  animation: float-x 5.5s infinite alternate-reverse ease-in-out;
}

@keyframes spin-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-counter {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes float-y {
  0% { transform: translateY(0); }
  100% { transform: translateY(-15px); }
}

@keyframes float-x {
  0% { transform: translateX(0); }
  100% { transform: translateX(12px); }
}

@keyframes grow-bar {
  0% { width: 30%; }
  100% { width: 90%; }
}

/* SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.8rem;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon-wrapper {
  background: var(--primary);
  color: var(--text-light);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.5);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li svg {
  color: var(--accent-green);
  flex-shrink: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: auto;
}

.service-link svg {
  transition: var(--transition-fast);
}

.service-card:hover .service-link {
  color: var(--secondary);
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* PORTFOLIO SECTION */
.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 10px 24px;
  border-radius: 99px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  backdrop-filter: blur(10px);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 24px -6px rgba(99, 102, 241, 0.45);
  transform: translateY(-2px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  min-height: 400px;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 16/11;
  cursor: pointer;
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
  will-change: opacity, transform;
}

.portfolio-item.is-hiding {
  opacity: 0 !important;
  transform: scale(0.93) translateY(15px) !important;
  pointer-events: none;
}

.portfolio-item.is-hidden {
  display: none !important;
}

.portfolio-item.is-showing {
  animation: portfolio-stagger-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes portfolio-stagger-in {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(24px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.9) 0%, rgba(3, 7, 18, 0.3) 60%, transparent 100%);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-normal);
}

.portfolio-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 8px;
}

.portfolio-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.portfolio-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 90%;
}

.portfolio-action {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text-light);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.08);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item:hover .portfolio-action {
  transform: rotate(-45deg);
  background: var(--primary);
  color: var(--text-light);
}

/* GEN Z INTERACTIVE PROJECT PLANNER */
.planner-section {
  background: linear-gradient(180deg, transparent, var(--bg-darker), transparent);
}

.planner-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 45px;
  border-radius: 24px;
}

.planner-step {
  margin-bottom: 2.5rem;
}

.planner-step-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.service-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.selector-pill {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 99px;
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.selector-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.selector-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-light);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.range-box {
  display: flex;
  flex-direction: column;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.range-val {
  font-weight: 700;
  color: var(--text-light);
}

/* Custom Slider styling */
.slider-input {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.6);
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.planner-summary-box {
  border-top: 1px dashed var(--border-color);
  padding-top: 2rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.summary-details h4 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.summary-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ABOUT SECTION */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 1;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}

.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(3, 7, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 20px;
}

.about-badge-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-light);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 2.5rem;
}

.about-feat-item {
  display: flex;
  gap: 14px;
}

.about-feat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
}

.about-feat-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.about-feat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CONTACT SECTION */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 3.5rem;
}

.contact-method-item {
  display: flex;
  gap: 16px;
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
}

.contact-method-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

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

.social-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 12px;
}

.social-links {
  display: flex;
  gap: 12px;
}

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

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

/* Contact Form controls with glowing borders */
.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

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

.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--secondary);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.15);
}

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

/* FOOTER */
footer {
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  background: var(--bg-darker);
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  max-width: 260px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-links a:hover {
  color: var(--text-light);
  transform: translateX(4px);
}

.footer-newsletter p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form .form-control {
  border-radius: 99px;
  padding: 10px 18px;
  font-size: 0.85rem;
}

.newsletter-form .btn {
  padding: 10px 22px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-links a:hover {
  color: var(--text-light);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 16px 24px;
  border-radius: 12px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  min-width: 320px;
  max-width: 450px;
  transform: translateY(100px);
  opacity: 0;
  animation: slide-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast.error {
  border-left: 4px solid var(--accent-pink);
}

.toast.success {
  border-left: 4px solid var(--accent-green);
}

@keyframes slide-in {
  to { transform: translateY(0); opacity: 1; }
}

.toast.hide {
  animation: slide-out 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slide-out {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(50px); opacity: 0; }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
    width: 100%;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  section {
    padding: 70px 0;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transition: var(--transition-normal);
    z-index: 999;
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .menu-btn {
    display: block;
  }
  
  .menu-btn.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  
  .menu-btn.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-btn.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
  
  .nav-actions {
    display: none;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .range-inputs {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .planner-summary-box {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .planner-summary-box .btn {
    width: 100%;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.4rem;
  }
  
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-btns .btn {
    width: 100%;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PORTFOLIO DETAIL POPUP MODAL (GEN Z TECH THEME)
   ========================================================================== */
@keyframes modal-zoom-in {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.p-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 24px;
}

.p-modal-container {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  width: 100%;
  max-width: 850px;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  animation: modal-zoom-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.p-modal-left {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.p-modal-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.p-modal-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(15, 23, 42, 0.85) 98%);
}

.p-modal-right {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  max-height: 550px;
  position: relative;
}

.p-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}

.p-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .p-modal-container {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
  .p-modal-left {
    min-height: 220px;
    height: 220px;
  }
  .p-modal-left::after {
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.85) 98%);
  }
  .p-modal-right {
    padding: 24px;
    max-height: none;
  }
  .p-modal-close {
    top: 16px;
    right: 16px;
    background: rgba(3, 7, 18, 0.6);
  }
}
