/* Google Fonts loaded via <link> in HTML for better performance */

:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --accent: #06b6d4;
  --dark: #f8fafc;
  --dark2: #e2e8f0;
  --gray: #94a3b8;
  --light: #0f172a;
  --white: #1e293b;
  --gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* ─── NAVBAR ─── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

#navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
  text-decoration: none;
}

.nav-logo span {
  color: var(--accent);
}

.wa-nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.wa-nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  transition: var(--transition);
}

.wa-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: var(--transition);
}

.wa-nav-links a:hover {
  color: var(--primary);
}

.wa-nav-links a:hover::after {
  width: 100%;
}

.wa-nav-links a.active-link {
  color: var(--primary);
}

.wa-nav-links a.active-link::after {
  width: 100%;
}

.nav-cta {
  background: var(--gradient);
  color: var(--white) !important;
  padding: 8px 22px;
  border-radius: 50px;
  font-weight: 600 !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 5% 60px;
  background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.hero-text {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero-badge::before {
  content: '●';
  font-size: 0.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.3
  }
}

.hero-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.hero-text h1 .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
}

.hero-tag {
  background: white;
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  padding: 13px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 2.5rem;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 500;
}

.hero-image {
  flex: 0 0 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-img-wrap {
  position: relative;
  width: 320px;
  height: 320px;
}

.hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.15;
  animation: spin 8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(37, 99, 235, 0.3);
  animation: spin 12s linear infinite reverse;
}

.hero-img-wrap img {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  display: block;
}

.avatar-svg {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  display: block;
}

.about-avatar-wrap {
  position: relative;
}

.about-avatar-wrap svg {
  display: block;
}

.about-photo {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(37, 99, 235, 0.2);
  display: block;
  object-fit: cover;
  object-position: center top;
  max-height: 520px;
}

.float-badge {
  position: absolute;
  background: var(--white);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-8px)
  }
}

.float-badge.b1 {
  top: 20px;
  right: -20px;
  color: var(--primary);
}

.float-badge.b2 {
  bottom: 30px;
  left: -30px;
  color: #10b981;
  animation-delay: 1s;
}

.float-badge .badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.float-badge.b1 .badge-icon {
  background: rgba(37, 99, 235, 0.1);
}

.float-badge.b2 .badge-icon {
  background: rgba(16, 185, 129, 0.1);
}

/* ─── SECTIONS ─── */
section {
  padding: 90px 5%;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.8rem;
}

.section-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  color: var(--gray);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ─── ABOUT ─── */
#about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  position: relative;
}

.about-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  object-position: center top;
}

.about-img-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gradient);
  color: #fff;
  padding: 16px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.about-img-badge .num {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.about-img-badge .txt {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 1.2rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 1.5rem 0 2rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
}

.highlight-item::before {
  content: '✓';
  width: 24px;
  height: 24px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── SKILLS ─── */
#skills {
  background: var(--light);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.skill-name {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-icon {
  font-size: 1.3rem;
}

.skill-pct {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
}

.skill-bar {
  height: 8px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── SERVICES ─── */
#services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gradient);
}

.service-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  color: var(--dark);
}

.service-card p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.service-benefits {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.service-benefits li {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-benefits li::before {
  content: '✓';
  color: #10b981;
  font-weight: bold;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 1rem;
}

.service-meta .delivery {
  color: var(--primary);
}

.service-meta .price {
  background: rgba(37, 99, 235, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ─── PORTFOLIO ─── */
#portfolio {
  background: var(--light);
}

.portfolio-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: var(--white);
  color: var(--gray);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.portfolio-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portfolio-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(37, 99, 235, 0.85), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

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

.overlay-links {
  display: flex;
  gap: 10px;
}

.overlay-link {
  background: var(--white);
  color: var(--primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
}

.overlay-link:hover {
  background: var(--primary);
  color: #fff;
}

.portfolio-info {
  padding: 20px;
}

.portfolio-cat {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.portfolio-info h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.case-study {
  background: rgba(0,0,0,0.02);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 3px solid var(--primary);
}

.cs-row {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 6px;
  line-height: 1.4;
}

.cs-row:last-child {
  margin-bottom: 0;
}

.cs-row strong {
  color: var(--dark);
  font-weight: 600;
}

/* ─── TIMELINE ─── */
#timeline {
  background: var(--white);
}

.tl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.tl-section h3,
.tl-grid>div>h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
}

.tl-items {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.tl-item {
  position: relative;
  margin-bottom: 2rem;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gradient);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.tl-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.tl-item h4 {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 3px;
}

.tl-item .org {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.tl-item p {
  color: var(--gray);
  font-size: 0.85rem;
}

/* ─── TESTIMONIALS — PREMIUM DARK MARQUEE ─── */
#testimonials {
  background: #080d14;
  color: #fff;
  padding: 90px 0 60px;
  position: relative;
  overflow: hidden;
}

/* Neural Network Canvas */
#testi-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* Gradient fade edges on marquee rows */
.testi-marquee-wrap::before,
.testi-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 3;
  pointer-events: none;
}
.testi-marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, #080d14, transparent);
}
.testi-marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, #080d14, transparent);
}

/* Section Header */
.testi-section-header {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
  padding: 0 5%;
}

.testi-label {
  color: #D4AF37 !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.testi-title {
  color: #fff !important;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.testi-title span {
  background: linear-gradient(135deg, #D4AF37 0%, #F5D080 50%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.testi-desc {
  color: rgba(255, 255, 255, 0.55) !important;
  max-width: 500px;
  margin: 0 auto;
}

/* Marquee wrapper */
.testi-marquee-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  z-index: 1;
}

/* The scrolling track */
.testi-marquee {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 12px 10px;
}

/* Row 1 — scrolls left */
.testi-marquee--left {
  animation: marqueeLeft 40s linear infinite;
}

/* Row 2 — scrolls right */
.testi-marquee--right {
  animation: marqueeRight 45s linear infinite;
}

/* Pause on hover */
.testi-marquee-wrap:hover .testi-marquee {
  animation-play-state: paused;
}

@keyframes marqueeLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ─── TESTIMONIAL CARD ─── */
.testi-card {
  flex: 0 0 340px;
  width: 340px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.testi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.testi-card:hover {
  transform: translateY(-7px) scale(1.02);
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow:
    0 0 20px rgba(212, 175, 55, 0.2),
    0 0 50px rgba(212, 175, 55, 0.08),
    0 20px 40px rgba(0, 0, 0, 0.5);
}

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

.testi-card-inner {
  padding: 28px 28px 24px;
  position: relative;
  z-index: 1;
}

/* Big decorative quote icon */
.testi-quote-icon {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.6;
  color: #D4AF37;
  opacity: 0.18;
  position: absolute;
  top: 18px;
  right: 22px;
  font-weight: 900;
  user-select: none;
  pointer-events: none;
}

/* Stars */
.stars {
  color: #D4AF37;
  font-size: 0.95rem;
  letter-spacing: 3px;
  margin-bottom: 14px;
  display: block;
}

/* Review text */
.testi-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 22px;
}

.testi-text strong {
  color: #F5D080;
  font-style: normal;
}

/* Author row */
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 18px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  color: #080d14;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-role {
  font-size: 0.75rem;
  color: rgba(212, 175, 55, 0.65);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-link {
  text-decoration: none;
  font-size: 0.8rem;
  margin-left: 5px;
  opacity: 0.5;
  transition: opacity 0.3s;
  color: #D4AF37;
}

.author-link:hover {
  opacity: 1;
}

/* ─── TRUST BADGE STRIP ─── */
.testi-trust-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 48px;
  padding: 0 5%;
}

.trust-badge {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(212, 175, 55, 0.85);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 8px 20px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.trust-badge:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.5);
  color: #F5D080;
}

.trust-sep {
  color: rgba(212, 175, 55, 0.3);
  font-size: 1.2rem;
  display: none;
}

@media (min-width: 768px) {
  .trust-sep { display: block; }
}

/* Responsive card size */
@media (max-width: 600px) {
  .testi-card {
    flex: 0 0 280px;
    width: 280px;
  }
  .testi-card-inner {
    padding: 22px 20px 18px;
  }
}

/* ─── CONTACT ─── */
#contact {
  background: var(--light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
}

.contact-info h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.contact-info p {
  color: var(--gray);
  margin-bottom: 1rem;
}

.availability-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 46px;
  height: 46px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item .label {
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 500;
}

.contact-item .value {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.92rem;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 13px 26px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(37, 99, 235, 0.15);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--dark);
  background: var(--light);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  width: 100%;
  padding: 15px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  color: #10b981;
  font-weight: 600;
}

/* ─── FOOTER ─── */
footer {
  background: var(--light);
  color: rgba(255, 255, 255, 0.7);
}

.footer-top {
  padding: 60px 5%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand .logo span {
  color: var(--accent);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-col h4 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 5%;
  text-align: center;
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 1.2rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
}

/* ─── BACK TO TOP ─── */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 999;
}

#backToTop.show {
  display: flex;
}

#backToTop:hover {
  transform: translateY(-3px);
}

/* ─── FLOATING WHATSAPP ─── */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background-color: #25d366;
  color: white;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  text-decoration: none;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  background-color: #128C7E;
  transform: scale(1.1);
}

/* ─── ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }

  .hero-btns,
  .hero-tags,
  .hero-stats {
    justify-content: center;
  }

  .about-grid,
  .tl-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-image {
    flex: none;
  }

  .portfolio-card {
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
}

@media (max-width: 600px) {
  #navbar {
    padding: 0 4%;
  }

  .wa-nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
    gap: 1rem;
  }

  .wa-nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-img-wrap,
  .hero-img-wrap img {
    width: 200px;
    height: 200px;
  }

  .float-badge.b1 {
    right: -10px;
  }

  .float-badge.b2 {
    left: -10px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }
}

/* ─── LIVE PREVIEW MODAL ─── */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.85);
  /* Dark blur background */
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 85vh;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
  background: var(--dark);
  transform: rotate(90deg);
}

.modal-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gray);
  font-weight: 600;
  z-index: 1;
}

#preview-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #5d73ad;
  z-index: 2;
  position: relative;
}