/* ============================================
   KALYAN KUMAR — Digital Marketing Portfolio
   Premium Stylesheet
   ============================================ */

/* ----- VARIABLES ----- */
:root {
  --primary: #6C5CE7;
  --primary-dark: #5A4BD1;
  --primary-light: #A29BFE;
  --secondary: #00CEC9;
  --accent: #FD79A8;
  --gradient-1: linear-gradient(135deg, #6C5CE7 0%, #00CEC9 100%);
  --gradient-2: linear-gradient(135deg, #6C5CE7 0%, #FD79A8 100%);
  --gradient-3: linear-gradient(135deg, #00CEC9 0%, #FD79A8 100%);
  --gradient-hero: linear-gradient(160deg, #0f0c29 0%, #1a1a3e 40%, #16213e 100%);

  --bg: #0a0a1a;
  --bg-card: #12122a;
  --bg-card-hover: #1a1a3a;
  --bg-elevated: #1e1e3e;
  --text: #e8e8f0;
  --text-secondary: #a0a0b8;
  --text-muted: #6c6c8a;
  --border: rgba(108, 92, 231, 0.15);
  --border-light: rgba(255, 255, 255, 0.05);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --nav-height: 72px;
}

[data-theme="light"] {
  --bg: #f8f9fc;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f2ff;
  --bg-elevated: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8a8aaa;
  --border: rgba(108, 92, 231, 0.12);
  --border-light: rgba(0, 0, 0, 0.06);
  --shadow: 0 8px 32px rgba(108, 92, 231, 0.08);
  --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.08);
  --gradient-hero: linear-gradient(160deg, #f0f2ff 0%, #e8eaf6 40%, #f8f9fc 100%);
}

/* ----- RESET & BASE ----- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition-slow), color var(--transition-slow);
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

::selection {
  background: var(--primary);
  color: white;
}

/* ----- SCROLLBAR ----- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ----- CONTAINER ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- PRELOADER ----- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.preloader-text {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ----- NAVIGATION ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 10, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 30px rgba(108, 92, 231, 0.08);
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(248, 249, 252, 0.92);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}
.logo-dot {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(108, 92, 231, 0.08);
}
.nav-cta {
  background: var(--gradient-1);
  color: white !important;
  font-weight: 600;
  padding: 8px 20px !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

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

.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(15deg);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----- SECTIONS ----- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 2px;
  margin: 0 auto;
}

/* ----- HERO ----- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  background: url('../images/hero-marketing-analytics.jpg') center/cover no-repeat;
  opacity: 0.04;
  pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -200px;
  animation: floatShape 20s ease-in-out infinite;
}
.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: -100px;
  left: -100px;
  animation: floatShape 25s ease-in-out infinite reverse;
}
.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatShape 18s ease-in-out infinite 5s;
}
@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.25);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-greeting {
  display: block;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
  min-height: 1.4em;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.typewrite {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
.typewrite::after {
  content: '|';
  animation: blink 0.75s step-end infinite;
  color: var(--accent);
}
@keyframes blink {
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
  transform: translateY(-2px);
}
.btn-block {
  width: 100%;
  justify-content: center;
}
.btn-sm {
  padding: 10px 24px;
  font-size: 14px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}
.hero-image-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
}
.hero-image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(108, 92, 231, 0.25);
  overflow: hidden;
}
.hero-image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(108, 92, 231, 0.3), rgba(0, 206, 201, 0.3));
  z-index: 1;
}
.avatar-initials {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -4px;
  position: relative;
  z-index: 2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.hero-ring-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(108, 92, 231, 0.2);
  animation: ringPulse 3s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 0.2; }
}

.floating-badge {
  position: absolute;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  animation: floatBadge 6s ease-in-out infinite;
  white-space: nowrap;
}
.floating-badge i {
  color: var(--primary);
  font-size: 14px;
}
.fb-1 { top: 10%; right: -20px; animation-delay: 0s; }
.fb-2 { bottom: 20%; left: -40px; animation-delay: 1.5s; }
.fb-3 { top: 60%; right: -30px; animation-delay: 3s; }
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease-out 1s both;
}
.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-dot {
  width: 3px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ----- ABOUT ----- */
.about {
  position: relative;
}
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/marketing-strategy-board.jpg') center/cover no-repeat;
  opacity: 0.025;
  pointer-events: none;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}
.about-text strong {
  color: var(--text);
}
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.about-badges span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-light);
  padding: 8px 16px;
  background: rgba(108, 92, 231, 0.06);
  border: 1px solid rgba(108, 92, 231, 0.1);
  border-radius: 8px;
}
.about-badges i { color: var(--secondary); font-size: 14px; }

.about-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  transition: all var(--transition);
}
.about-card:hover {
  border-color: rgba(108, 92, 231, 0.3);
  transform: translateX(8px);
  box-shadow: var(--shadow-glow);
}
.about-card i {
  font-size: 28px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.about-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.about-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ----- SKILLS ----- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.skill-category {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.skill-category:hover {
  border-color: rgba(108, 92, 231, 0.25);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.skill-cat-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.skill-cat-title i {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.skill-bar-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.skill-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.skill-bar-item span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}
.bar {
  width: 100%;
  height: 6px;
  background: rgba(108, 92, 231, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  background: var(--gradient-1);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tools-grid-sm {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tool-chip {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.12);
  border-radius: 6px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.tool-chip:hover {
  background: rgba(108, 92, 231, 0.15);
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-2px);
}

/* ----- SERVICES ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.service-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 92, 231, 0.25);
  box-shadow: var(--shadow-glow);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(108, 92, 231, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon i {
  font-size: 24px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
.service-card > p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-features li {
  font-size: 13px;
  padding: 4px 12px;
  background: rgba(108, 92, 231, 0.06);
  border: 1px solid rgba(108, 92, 231, 0.1);
  border-radius: 6px;
  color: var(--text-secondary);
}

/* ----- PROJECTS ----- */
.projects-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}
.filter-btn.active {
  background: var(--gradient-1);
  color: white;
  border-color: transparent;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(108, 92, 231, 0.2);
}
.project-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover .project-img {
  transform: scale(1.08);
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 26, 0.95) 0%, rgba(10, 10, 26, 0.4) 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-cat {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--primary);
  color: white;
  border-radius: 4px;
  margin-bottom: 10px;
  width: fit-content;
}
.project-overlay h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: white;
}
.project-overlay p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  line-height: 1.5;
}
.project-metrics {
  display: flex;
  gap: 16px;
}
.project-metrics span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.project-metrics strong {
  color: var(--secondary);
  font-weight: 600;
}

/* ----- CERTIFICATIONS ----- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.cert-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
}
.cert-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 92, 231, 0.25);
  box-shadow: var(--shadow-glow);
}
.cert-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(108, 92, 231, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.cert-icon i {
  font-size: 26px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cert-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.cert-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.cert-date {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 206, 201, 0.1);
  border: 1px solid rgba(0, 206, 201, 0.15);
  border-radius: 4px;
  color: var(--secondary);
}

/* ----- CASE STUDIES ----- */
.casestudies {
  position: relative;
}
.casestudies::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/data-screen-analytics.jpg') center/cover no-repeat;
  opacity: 0.02;
  pointer-events: none;
}
.cases-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.case-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.case-card:hover {
  transform: translateX(8px);
  border-color: rgba(108, 92, 231, 0.2);
  box-shadow: var(--shadow-glow);
}
.case-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.case-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.15);
  border-radius: 4px;
  color: var(--primary-light);
  margin-bottom: 12px;
}
.case-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}
.case-summary {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}
.case-results {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.case-result {
  text-align: center;
  padding: 12px 24px;
  background: rgba(108, 92, 231, 0.06);
  border: 1px solid rgba(108, 92, 231, 0.1);
  border-radius: 8px;
  flex: 1;
  min-width: 100px;
}
.result-num {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.result-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ----- TESTIMONIALS ----- */
.testimonials-slider {
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}
.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-card {
  min-width: 100%;
  padding: 0 12px;
}
.testimonial-stars {
  font-size: 20px;
  color: #f1c40f;
  margin-bottom: 16px;
  letter-spacing: 4px;
}
.testimonial-text {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
  quotes: "\201C" "\201D";
}
.testimonial-text::before { content: "\201C"; font-size: 28px; color: var(--primary); margin-right: 4px; }
.testimonial-text::after { content: "\201D"; font-size: 28px; color: var(--primary); margin-left: 4px; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}
.testimonial-author h4 {
  font-size: 16px;
  font-weight: 600;
}
.testimonial-author span {
  font-size: 13px;
  color: var(--text-muted);
}

.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.testimonial-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 14px;
}
.testimonial-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
}
.testimonial-dots {
  display: flex;
  gap: 8px;
}
.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.testimonial-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ----- BLOG ----- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 92, 231, 0.2);
  box-shadow: var(--shadow-glow);
}
.blog-thumb {
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
}
.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-card:hover .blog-img {
  transform: scale(1.08);
}
.blog-body {
  padding: 24px;
}
.blog-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
}
.blog-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-body > p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.blog-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.blog-link:hover { gap: 12px; }

.blog-cta {
  text-align: center;
  margin-top: 40px;
}

/* ----- CONTACT ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-info > p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-item i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(108, 92, 231, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.contact-item a, .contact-item span {
  font-size: 15px;
  color: var(--text);
}
.contact-item a:hover { color: var(--primary); }

.contact-social {
  display: flex;
  gap: 12px;
}
.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.social-link:hover {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-group {
  position: relative;
  margin-bottom: 20px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px 18px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c6c8a'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  cursor: pointer;
}
.form-group select option {
  background: var(--bg-card);
  color: var(--text);
}
.form-group label {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--text-muted);
  pointer-events: none;
  transition: all var(--transition);
  background: var(--bg);
  padding: 0 4px;
}
.form-group textarea ~ label {
  top: 18px;
  transform: none;
}
.form-group select ~ label {
  top: 50%;
  transform: translateY(-50%);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}
.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:not([value=""]) ~ label,
.form-group select:focus ~ label {
  top: -8px;
  transform: none;
  font-size: 12px;
  color: var(--primary);
  background: var(--bg-card);
}
.form-group select ~ label {
  transform: translateY(-50%);
}
.form-group select:focus ~ label,
.form-group select:not([value=""]) ~ label {
  top: -8px;
  transform: none;
}

/* ----- FOOTER ----- */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 360px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.footer-social a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-links ul li {
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 15px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.footer-links a:hover { color: var(--primary); padding-left: 4px; }

.footer-cta h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.footer-cta p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-bottom p {
  font-size: 14px;
  color: var(--text-muted);
}
.footer-bottom i {
  color: var(--accent);
}

/* ----- BACK TO TOP ----- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-1);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.25);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.35);
}

/* ----- REVEAL ANIMATIONS ----- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  .hero-image-wrapper {
    width: 220px;
    height: 220px;
  }
  .avatar-initials { font-size: 56px; }
  .floating-badge { font-size: 12px; padding: 6px 14px; }
  .fb-1 { top: 5%; right: 10%; }
  .fb-2 { bottom: 10%; left: 5%; }
  .fb-3 { top: 55%; right: 5%; }

  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .case-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .case-number { display: none; }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }
  .section {
    padding: 60px 0;
  }
  .section-header {
    margin-bottom: 40px;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    border-bottom: 1px solid var(--border);
  }
  [data-theme="light"] .nav-menu {
    background: rgba(248, 249, 252, 0.98);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
  }
  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }
  .hero-grid {
    gap: 24px;
  }
  .hero-image-wrapper {
    width: 180px;
    height: 180px;
  }
  .avatar-initials { font-size: 44px; }
  .hero-stats {
    gap: 24px;
  }
  .stat-num {
    font-size: 28px;
  }
  .floating-badge {
    display: none;
  }
  .scroll-indicator {
    display: none;
  }

  .skills-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-brand p { max-width: 100%; }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 36px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .certs-grid { grid-template-columns: 1fr; }
  .case-results { flex-direction: column; }
  .contact-form { padding: 24px; }
  .projects-filters { gap: 6px; }
  .filter-btn { padding: 6px 14px; font-size: 13px; }
}

/* ----- Reduced Motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
