/* 
  MAK Creatives - Premium Portfolio Refined
*/

:root {
  --bg-dark: #0a0a0a;
  --bg-dark-tp: rgba(10, 10, 10, 0); /* Truly Transparent for gradients */
  --primary: #8555e3;
  --primary-glow: rgba(133, 85, 227, 0.4);
  --text-main: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.6);
  --card-bg: rgba(18, 18, 18, 0.8);
  --font-main: 'Outfit', sans-serif;
  --transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--primary);
  z-index: 99999;
  box-shadow: 0 0 15px var(--primary-glow);
  transition: width 0.1s ease;
}

.magnetic {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes heroEntry {
  0% { opacity: 0; transform: translateY(40px) scale(0.95); filter: blur(10px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.hero-entry {
  opacity: 0;
  animation: heroEntry 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

/* --- Navigation --- */
.main-header {
  padding: 1.5rem 0;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 45px;
  cursor: pointer;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.8;
  transition: 0.3s;
}

.desktop-nav a:hover {
  opacity: 1;
  color: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.flags {
  display: flex;
  gap: 0.5rem;
  font-size: 1.2rem;
}

.btn-talk {
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: var(--primary);
  padding: 10px;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  justify-content: center;
  align-items: center;
}

.menu-toggle .bar {
  width: 18px;
  height: 2px;
  background: white;
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hello {
  font-size: 1.3rem;
  color: var(--text-dim);
  font-weight: 300;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.name {
  font-size: 4.2rem;
  line-height: 1;
  margin-bottom: 0.8rem;
  font-weight: 800;
}

.accent-name {
  color: var(--primary);
}

.titles {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.bio {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 450px;
  text-align: left;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.btn-hire {
  background: var(--primary);
  color: white;
  padding: 0.9rem 2.2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px var(--primary-glow);
  transition: 0.4s;
  font-size: 0.9rem;
}

.btn-hire:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--primary-glow);
}

.btn-download {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 0.9rem 1.8rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
  font-size: 0.9rem;
}

.btn-download:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: white;
}

/* Central Portrait Frame */
.hero-center {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-box {
  position: relative;
  width: 440px;
  height: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-container {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 5;
  background: transparent;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.abstract-shape {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
  opacity: 0.8;
}

.shape-1 {
  width: 100%;
  height: 100%;
  background: var(--primary);
  clip-path: polygon(100% 0, 0 0, 50% 100%);
  transform: rotate(45deg);
  opacity: 0.2;
  filter: blur(40px);
}

.shape-2 {
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  z-index: 1;
  filter: blur(50px);
  opacity: 0.15;
}

/* Right Stats Card */
.stats-card {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 1.5rem;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 260px;
  margin-left: auto;
}

.stat-item h3 {
  font-size: 2.1rem;
  margin-bottom: 0.2rem;
}

.stat-item p {
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

/* Floating Premium CTA */
.floating-cta {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
  text-decoration: none;
}
 
.cta-pill {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(133, 85, 227, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(133, 85, 227, 0.6);
  padding: 12px;
  border-radius: 50px;
  color: white;
  transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  max-width: 50px;
  height: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
 
.floating-cta:hover .cta-pill {
  max-width: 200px;
  gap: 12px;
  padding: 12px 25px;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 15px 40px var(--primary-glow);
}
 
.cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
 
.cta-text {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-10px);
  transition: 0.4s;
}
 
.floating-cta:hover .cta-text {
  opacity: 1;
  transform: translateX(0);
}
 
.cta-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  z-index: -1;
  animation: ctaRipple 3s infinite;
}
 
@keyframes ctaRipple {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* --- Background Aurora Glow --- */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.15;
}

.aurora-blur {
  position: absolute;
  border-radius: 50%;
  animation: floatAura 20s infinite alternate ease-in-out;
}

.aurora-1 {
  width: 700px;
  height: 700px;
  background: var(--primary);
  top: -200px;
  left: -200px;
}

.aurora-2 {
  width: 600px;
  height: 600px;
  background: #22d3ee;
  bottom: -200px;
  right: -200px;
  animation-delay: -5s;
}

.aurora-3 {
  width: 500px;
  height: 500px;
  background: #d946ef;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseAura 15s infinite alternate ease-in-out;
}

@keyframes floatAura {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(150px, 100px) rotate(180deg); }
}

@keyframes pulseAura {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.6; }
}

/* reveal Animation Refined */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered Reveals */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.6s; }
.reveal-stagger > *:nth-child(7) { transition-delay: 0.7s; }
.reveal-stagger > *:nth-child(8) { transition-delay: 0.8s; }

@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px var(--primary-glow); }
  100% { box-shadow: 0 0 35px var(--primary-glow); }
}

.btn-hire {
  animation: pulseGlow 3s infinite alternate;
}

.shape-1 {
  animation: rotateShape 20s infinite linear;
}

@keyframes rotateShape {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.shape-2 {
  animation: breatheShape 8s infinite alternate ease-in-out;
}

@keyframes breatheShape {
  0% { transform: scale(1); filter: blur(50px); opacity: 0.2; }
  100% { transform: scale(1.2); filter: blur(80px); opacity: 0.4; }
}

/* --- Section 2: Smart Solutions & About --- */
.section-padding {
  padding: 100px 0;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: center;
}

.sub-tag {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.purple-text {
  color: var(--primary);
}

.description-para {
  color: var(--text-dim);
  line-height: 1.8;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.benefit-checklist {
  list-style: none;
  margin-bottom: 3rem;
}

.benefit-checklist li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 500;
  font-size: 0.95rem;
}

.check {
  color: var(--primary);
  font-weight: 800;
}

.contact-mini-card {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 2rem;
  border-radius: 20px;
  display: flex;
  gap: 3rem;
  align-items: center;
  width: fit-content;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.mini-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mini-icon {
  width: 45px;
  height: 45px;
  background: rgba(133, 85, 227, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid rgba(133, 85, 227, 0.2);
}

.mini-info {
  display: flex;
  flex-direction: column;
}

.mini-info .label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.mini-info .value {
  font-size: 0.9rem;
  font-weight: 600;
}

.working-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.image-wrapper {
  position: relative;
}

.image-overlay {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 100px rgba(133, 85, 227, 0.15);
  pointer-events: none;
}

/* --- Section 3: Premium Experience Tiles --- */
.exp-section {
  position: relative;
  overflow: hidden;
}

.exp-bg-icon {
  position: absolute;
  top: 10%;
  right: -5%;
  font-size: 35rem;
  color: var(--primary);
  opacity: 0.03;
  filter: blur(5px);
  pointer-events: none;
  z-index: 1;
}

.exp-refined-wrap {
  position: relative;
  z-index: 2;
}

.exp-tiles-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.exp-tile {
  background: rgba(20, 20, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  padding: 3rem;
  border-radius: 35px;
  position: relative;
  overflow: hidden;
  transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.exp-tile.large {
  grid-row: span 1.1;
  padding: 4rem 3rem;
}

.exp-tile:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(133, 85, 227, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.tile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.exp-date {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  font-weight: 600;
}

.exp-arrow {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.4s;
}

.exp-tile:hover .exp-arrow {
  background: var(--primary);
  color: white;
  transform: rotate(45deg);
}

.exp-tile h3 {
  font-size: 1.6rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 700;
  max-width: 90%;
}

.p-accent {
  color: var(--primary);
}

.company {
  font-size: 1rem;
  color: var(--text-dim);
  font-weight: 500;
}

.loc {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.tile-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--x, 50%) var(--y, 50%), rgba(133, 85, 227, 0.15), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.exp-tile:hover .tile-glow {
  opacity: 1;
}

/* --- Section 4: Animated Services --- */
.services-section .section-title {
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.service-card {
  background: rgba(20, 20, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  padding: 3rem;
  border-radius: 30px;
  display: flex;
  gap: 2rem;
  transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(133, 85, 227, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.service-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  transition: 0.4s;
  flex-shrink: 0;
  margin-top: -5px;
}

.service-card:hover .service-number {
  color: var(--primary);
  -webkit-text-stroke: 1px var(--primary);
  transform: scale(1.1);
}

.service-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.service-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-bullets li {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  position: relative;
  padding-left: 20px;
}

.service-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  transition: 0.3s;
}

.service-card:hover .service-bullets li::before {
  transform: translateX(5px);
}

/* --- Section 5: Skills & Tools --- */
.skills-grid-outer {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 6rem;
  align-items: flex-start;
}

.skills-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.skill-card {
  background: rgba(20, 20, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  padding: 2rem;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  transform: scale(1.05);
  border-color: rgba(133, 85, 227, 0.3);
  background: rgba(133, 85, 227, 0.05);
}

.skill-icon-wrap {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 10px;
  flex-shrink: 0;
}

.skill-icon-wrap img { width: 100%; height: 100%; object-fit: contain; }
.skill-content { flex: 1; }
.skill-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.skill-name { font-size: 1rem; font-weight: 600; color: #fff; }
.skill-percent { font-size: 0.85rem; color: var(--primary); font-weight: 700; }
.skill-progress-bg { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.05); border-radius: 10px; overflow: hidden; }
.skill-progress-bar { height: 100%; background: var(--primary); border-radius: 10px; width: 0; transition: 1.5s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active .skill-progress-bar { width: var(--w); }

/* --- Section 6: Portfolio Grid --- */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.4s;
  font-size: 0.9rem;
  font-weight: 600;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 10px 20px var(--primary-glow);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.portfolio-item {
  position: relative;
  border-radius: 35px;
  overflow: hidden;
  height: 500px;
  transition: 0.5s;
}

.project-card {
  height: 100%;
  position: relative;
  cursor: pointer;
}

.project-img {
  width: 100%;
  height: 100%;
  transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-card:hover .project-img { transform: scale(1.1); filter: brightness(0.6); }

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 3rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  opacity: 0;
  transform: translateY(20px);
  transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-overlay { opacity: 1; transform: translateY(0); }
.project-info { color: white; }
.project-cat { color: var(--primary); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 0.5rem; }
.project-info h3 { font-size: 1.8rem; font-weight: 800; }
.project-link { width: 60px; height: 60px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: 0 10px 30px var(--primary-glow); transition: 0.4s; }
.project-link:hover { transform: scale(1.1) rotate(45deg); }

/* --- Section 6.5: Infinite Clients Marquee --- */
.clients-section {
  padding: 80px 0;
  background: var(--bg-dark-tp); /* Transparent from root */
  border: none !important;
  overflow: hidden;
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
  display: flex;
  gap: 6rem;
  width: max-content;
  animation: scrollMarquee 40s linear infinite;
  align-items: center;
}

.marquee-content:hover { animation-play-state: paused; }

.logo-item {
  flex-shrink: 0;
  opacity: 0.4;
  transition: 0.4s;
  filter: grayscale(1);
  mix-blend-mode: screen;
  background: transparent !important;
}

.logo-item:hover { opacity: 1; filter: grayscale(0) brightness(1); transform: scale(1.1); }
.logo-item img { height: 45px; width: auto; max-width: 180px; object-fit: contain; background: transparent; }

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 3rem)); }
}

/* --- Section 7: Animated Testimonials --- */
.testimonials-wrapper {
  max-width: 900px;
  margin: 6rem auto 0;
  position: relative;
}
 
.testi-card {
  min-width: 100%;
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 40px;
  text-align: center;
  transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: scale(0.9) translateX(50px);
  display: none;
  padding: 5rem 4rem; /* Increased padding */
}

.testi-card.active { display: block; opacity: 1; transform: scale(1) translateX(0); }
.quote-icon { font-size: 5rem; color: var(--primary); opacity: 0.15; line-height: 1; margin-bottom: 0rem; font-family: 'Outfit'; }
.testi-text { font-size: 1.5rem; line-height: 1.6; color: rgba(255,255,255,0.9); font-weight: 500; margin-bottom: 3rem; font-style: italic; }
.testi-footer { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.testi-avatar { width: 60px; height: 60px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; box-shadow: 0 10px 30px var(--primary-glow); }
.testi-meta h4 { font-size: 1.1rem; color: #fff; margin-bottom: 5px; }
.testi-meta span { color: var(--text-dim); font-size: 0.85rem; }

.slider-controls {
  position: absolute;
  top: 55%;
  width: 105%;
  left: -2.5%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.slider-prev, .slider-next {
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: 0.4s;
  pointer-events: auto;
}

.slider-prev:hover, .slider-next:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.1); box-shadow: 0 10px 20px var(--primary-glow); }

/* --- Section 8: Next-Gen Contact --- */
.contact-grid-outer { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 6rem; align-items: center; }

.contact-card {
  background: rgba(20, 20, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  padding: 4rem;
  border-radius: 40px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.input-group { margin-bottom: 2rem; position: relative; }
.input-group label { display: block; font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; font-weight: 600; }
.input-group input, .input-group textarea { width: 100%; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08); padding: 1.2rem 1.5rem; border-radius: 15px; color: #fff; font-family: inherit; font-size: 0.95rem; transition: 0.4s; }
.input-group textarea { height: 150px; resize: none; }
.input-group input:focus, .input-group textarea:focus { background: rgba(133, 85, 227, 0.05); border-color: var(--primary); outline: none; box-shadow: 0 0 20px rgba(133, 85, 227, 0.1); }

.btn-send { width: 100%; background: var(--primary); color: white; border: none; padding: 1.2rem; border-radius: 15px; font-weight: 700; font-size: 1rem; cursor: pointer; position: relative; overflow: hidden; transition: 0.4s; }
.btn-send:hover { transform: translateY(-3px); box-shadow: 0 15px 30px var(--primary-glow); }

.form-success {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.9);
  z-index: 10;
}

.form-success.active { opacity: 1; pointer-events: auto; transform: scale(1); }
.success-icon { width: 80px; height: 80px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: white; margin-bottom: 2rem; animation: bounceIn 0.6s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes bounceIn { 0% { transform: scale(0); } 70% { transform: scale(1.1); } 100% { transform: scale(1); } }

 
/* --- Section 9: Ultra-Premium Footer --- */
.footer-main {
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 10, 0.9));
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 120px;
    padding-bottom: 40px;
}
 
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 1fr 0.8fr;
    gap: 5rem;
    margin-bottom: 80px;
}
 
.footer-logo img { height: 50px; margin-bottom: 2rem; }
.footer-bio { color: var(--text-dim); line-height: 1.8; font-size: 0.95rem; margin-bottom: 2.5rem; max-width: 320px; }
 
.social-hub { display: flex; gap: 1rem; }
.social-circle {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: white;
}
.social-circle:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--primary-glow);
}
 
.footer-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 2rem; position: relative; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 30px; height: 2px; background: var(--primary); border-radius: 2px; }
 
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.footer-links a { 
    text-decoration: none; 
    color: var(--text-dim); 
    font-size: 0.95rem; 
    transition: 0.3s;
    position: relative;
    padding-bottom: 2px;
}
.footer-links a::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--primary); transition: 0.3s;
}
.footer-links a:hover { color: #fff; }
.footer-links a:hover::after { width: 100%; }
 
.footer-text { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.5rem; }
 
.footer-newsletter {
    display: flex;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 6px;
    border-radius: 50px;
    transition: 0.4s;
    backdrop-filter: blur(10px);
}
.footer-newsletter:focus-within { border-color: var(--primary); box-shadow: 0 0 20px rgba(133, 85, 227, 0.1); }
.footer-newsletter input {
    background: transparent;
    border: none;
    padding: 0 1.5rem;
    color: #fff;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
}
.btn-footer-send {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
}
.btn-footer-send:hover { transform: scale(1.1); box-shadow: 0 5px 15px var(--primary-glow); }
 
.contact-indicator { display: flex; align-items: center; gap: 12px; margin-bottom: 1.5rem; background: rgba(37, 211, 102, 0.05); width: fit-content; padding: 6px 15px; border-radius: 20px; border: 1px solid rgba(37, 211, 102, 0.1); }
.status-dot { width: 8px; height: 8px; background: #25d366; border-radius: 50%; }
.status-text { font-size: 0.8rem; color: #25d366; font-weight: 600; letter-spacing: 0.5px; }
 
.footer-contact-info p { margin-bottom: 10px; }
.footer-contact-info a { text-decoration: none; color: #fff; font-weight: 500; font-size: 0.95rem; opacity: 0.8; transition: 0.3s; }
.footer-contact-info a:hover { opacity: 1; color: var(--primary); }
 
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.footer-bottom p { color: var(--text-dim); font-size: 0.85rem; }
.footer-sub-links { display: flex; gap: 2rem; }
.footer-sub-links a { text-decoration: none; color: var(--text-dim); font-size: 0.85rem; transition: 0.3s; }
.footer-sub-links a:hover { color: #fff; }
 
.back-to-top {
    width: 60px;
    height: 60px;
    background: rgba(133, 85, 227, 0.4);
    border: 1px solid rgba(133, 85, 227, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    position: fixed; /* Fixed like WhatsApp */
    right: 30px;
    bottom: 30px;
    z-index: 9998;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { 
    background: var(--primary); 
    box-shadow: 0 0 30px var(--primary-glow);
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.1);
}
 
.pulse { animation: pulseAnim 2s infinite; }
@keyframes pulseAnim {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}
 
 
/* --- Agency Side Deck & Overlay --- */
.deck-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 99990;
    opacity: 0;
    visibility: hidden;
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.deck-overlay.active { opacity: 1; visibility: visible; }
 
.side-deck {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden on right */
    width: 450px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 99991;
    padding: 60px 40px;
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.side-deck.active { right: 0; }
 
.close-deck {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.5;
    transition: 0.3s;
}
.close-deck:hover { opacity: 1; color: var(--primary); transform: rotate(90deg); }
 
.deck-logo img { height: 45px; margin-bottom: 3rem; }
.deck-motto { font-size: 1.4rem; line-height: 1.4; color: #fff; font-weight: 700; margin-bottom: 3rem; max-width: 85%; }
 
.deck-section { margin-bottom: 2.5rem; }
.deck-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); margin-bottom: 1rem; font-weight: 700; }
 
.deck-contact { display: flex; flex-direction: column; gap: 15px; }
.deck-contact-link { text-decoration: none; color: #fff; font-size: 0.95rem; display: flex; align-items: center; gap: 12px; transition: 0.3s; }
.deck-contact-link .icon { font-size: 1.1rem; filter: grayscale(1); transition: 0.3s; }
.deck-contact-link:hover { color: var(--primary); }
.deck-contact-link:hover .icon { filter: grayscale(0); transform: translateX(5px); }
 
.side-deck .social-hub { margin-top: 1rem; }
 
/* Body Lock when panel open */
body.deck-open { overflow: hidden; }
 
@media (max-width: 500px) {
    .side-deck { width: 100%; }
}
 
/* --- Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid, .split-grid, .exp-tiles-container, .skills-grid-outer { grid-template-columns: 1fr !important; text-align: center; }
  .bio, .description-para, .benefit-checklist, .contact-mini-card { margin: 0 auto 3rem; }
  .hero-btns { justify-content: center; }
  .desktop-nav { display: none; }
  .portrait-box, .working-img { margin: 4rem auto; width: 320px; height: 320px; }
  .stats-card, .contact-mini-card { margin: 0 auto; }
  .exp-tile { padding: 2.5rem; text-align: left; }
  .exp-tile.large { padding: 2.5rem; }
  .services-grid, .skills-tools-grid { grid-template-columns: 1fr; }
  .service-card { padding: 2rem; flex-direction: column; gap: 1rem; text-align: left; }
  .skill-card { text-align: left; }
  .name { font-size: 2.8rem; }
  .titles { font-size: 1.4rem; }
 
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
 
  .footer-bio { margin: 0 auto 2.5rem; }
  .social-hub { justify-content: center; }
  .footer-title::after { left: 50%; transform: translateX(-50%); }
  .contact-indicator { margin: 0 auto 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 2rem; text-align: center; }
  .back-to-top { position: relative; top: 0; margin: 1rem auto 0; }
}

/* --- Total Mobile UX Optimization --- */
html, body { overflow-x: hidden; width: 100%; position: relative; }
 
@media (max-width: 768px) {
  .container { padding: 0 25px; }
  .name { font-size: 3.5rem; line-height: 1.1; }
  .titles { font-size: 1.3rem; }
  
  .hero-btns { flex-direction: column; width: 100%; gap: 15px; }
  .hero-btns .btn-hire, .hero-btns .btn-resume { width: 100%; justify-content: center; }
  
  .stats-card { flex-direction: column; padding: 2rem; gap: 2rem; }
  .stats-card .divider { width: 40px; height: 1px; }
  
  .split-grid { grid-template-columns: 1fr !important; gap: 4rem; }
  .contact-mini-card { flex-direction: column; width: 100%; gap: 2rem; }
  
  .services-grid { grid-template-columns: 1fr !important; }
  
  /* Portfolio Mobile Fix */
  .portfolio-tabs { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 10px 0 20px; gap: 10px; justify-content: flex-start; }
  .tab-btn { flex: 0 0 auto; white-space: nowrap; padding: 10px 20px; font-size: 0.9rem; }
  .portfolio-grid { grid-template-columns: 1fr !important; gap: 2rem; }
  .project-card { height: 350px; }
  
  /* Contact Form Mobile Fix */
  .input-row { flex-direction: column !important; gap: 0; }
  .input-group { width: 100% !important; }
  .contact-grid-outer { grid-template-columns: 1fr !important; gap: 4rem; }
  
  /* Side Panel Mobile Full-Width */
  .side-deck { width: 100% !important; padding: 40px 30px; }
  .deck-motto { font-size: 1.2rem; max-width: 100%; }
  .close-deck { top: 20px; right: 20px; font-size: 2rem; }
  
  /* Animation scaling for mobile */
  .reveal { transform: translateY(20px) scale(1); }
}

/* --- Custom Popup Chatbot styling --- */
.chatbot-window {
    position: fixed;
    bottom: 90px;
    left: 30px;
    width: 350px;
    height: 500px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(133, 85, 227, 0.2);
    /* Hidden state */
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-header {
    background: rgba(133, 85, 227, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #25d366;
    border: 2px solid #111;
    border-radius: 50%;
}

.chat-header-info h4 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 2px;
}

.chat-header-info span {
    font-size: 0.7rem;
    color: #25d366;
}

.close-chat {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-chat:hover {
    color: #fff;
    transform: scale(1.1);
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
}
.chat-body::-webkit-scrollbar { width: 5px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 5px; }

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    animation: messagePop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: bottom left;
}

@keyframes messagePop {
    0% { opacity: 0; transform: scale(0.9) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.chat-message.bot-message {
    border-bottom-left-radius: 4px;
}

.chat-message.user-message {
    align-self: flex-end;
    background: var(--primary);
    border-bottom-right-radius: 4px;
    transform-origin: bottom right;
}

.chat-message a {
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(0,0,0,0.2);
}

.chat-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 15px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}

.chat-input-area input:focus {
    border-color: rgba(133, 85, 227, 0.5);
    background: rgba(255,255,255,0.08);
}

.chat-input-area .send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}
.chat-input-area .send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-glow);
}

@media (max-width: 500px) {
    .chatbot-window {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        z-index: 100000;
        border-radius: 0;
    }
}
