/* Theme */
:root {
  --bg: #0b0b0b;
  --text: #ffffff;
  --muted: rgba(255,255,255,0.7);
  --dim: rgba(255,255,255,0.5);
  --accent: #8b5cf6; /* violet */
  --accent-2: #06b6d4; /* teal */
  --card: #111113;
  --border: rgba(139,92,246,0.35);
  --glow: 0 0 0.6rem rgba(139,92,246,0.5), 0 0 2.2rem rgba(139,92,246,0.35);
}

* { 
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
}
html { 
  scroll-behavior: smooth; 
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  scroll-padding-top: 60px; /* Reduced from 100px to 60px */
}

body {
  overflow-x: hidden;
}

/* Main page scrollbar - visible */
html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #7c3aed, #0891b2);
}

/* Hide scrollbars from other elements */
* {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
  display: none !important; /* WebKit */
}

/* Exception: Show scrollbar for html element */
html::-webkit-scrollbar {
  display: block !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  padding-top: 80px;
}

/* Global fix for horizontal scrollbar */
* {
  max-width: 100%;
  box-sizing: border-box;
}


/* Prevent scrollbar flicker during scrolling */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Ensure all sections stay within viewport */
.section {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

section {
  overflow-x: hidden;
  max-width: 100vw;
}

img { max-width: 100%; display: block; }
video { display: block; }
a { color: var(--text); text-decoration: none; }

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
  max-width: 100vw;
  overflow-x: hidden;
}

.section { 
  padding: 0; 
  position: relative;
  scroll-margin-top: 80px;
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 15px;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #8b5cf6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
}

/* Header / Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.1); /* Very light background to reduce black area */
  backdrop-filter: none; /* Remove backdrop filter */
  border-bottom: none; /* Remove border */
  transition: all 0.3s ease;
}

.header.scrolled {
  background: linear-gradient(180deg, rgba(11,11,11,0.98), rgba(11,11,11,0.95) 60%, rgba(11,11,11,0.9));
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; /* Restored to original */ }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.logo-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: radial-gradient(120% 120% at 20% 20%, var(--accent), transparent 55%), radial-gradient(120% 120% at 80% 80%, var(--accent-2), transparent 55%); box-shadow: var(--glow); font-weight: 700; /* Restored to original size */ }
.logo-text { opacity: 0.9; }

.nav-toggle { display: none; background: transparent; color: var(--text); font-size: 22px; border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 6px 10px; }
.nav-menu { display: flex; list-style: none; gap: 22px; margin: 0; padding: 0; }
.nav-link { opacity: 0.8; position: relative; }
.nav-link:hover { opacity: 1; }
.nav-link.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: var(--glow); }

/* Hero */
.hero { 
  height: 100vh; 
  display: grid; 
  place-items: center; 
  padding: 0;
  margin-top: 0;
  position: relative;
  z-index: 1;
}
.hero-bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(120%) contrast(105%) brightness(60%); }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(120% 120% at 20% 20%, rgba(139,92,246,0.15), rgba(11,11,11,0)), radial-gradient(120% 120% at 80% 80%, rgba(6,182,212,0.15), rgba(11,11,11,0)), rgba(11,11,11,0.5); }
.hero-inner { text-align: center; position: relative; padding: 20px 0; }
.headline { font-size: clamp(16px, 3vw, 32px); margin: 0 0 4px; font-weight: 800; }
.headline .sub { display: block; font-weight: 400; opacity: 0.8; font-size: 0.6em; }
.headline .name { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 18px rgba(139,92,246,0.35); }
.tagline { color: var(--muted); margin: 0 auto 8px; max-width: 800px; font-size: clamp(10px, 1.5vw, 14px); }
.hero-ctas { 
  display: flex; 
  gap: 12px; 
  justify-content: center; 
  flex-wrap: wrap;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .hero { min-height: 100vh; }
  .work { min-height: 70vh; }
  
  .portrait-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .stat-card {
    padding: 12px;
    gap: 8px;
  }
  
  .stat-icon {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  
  .stat-number {
    font-size: 18px;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .skill-card {
    padding: 12px;
    gap: 8px;
  }
  
  .skill-icon {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    padding: 18px 32px;
    font-size: 17px;
  }
}

.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 10px; 
  padding: 8px 16px; 
  border-radius: 16px; 
  font-weight: 700; 
  font-size: 16px;
  letter-spacing: 0.5px; 
  text-decoration: none;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1); 
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 500ms ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary { 
  color: #ffffff; 
  background: linear-gradient(135deg, var(--accent), var(--accent-2), #8b5cf6); 
  box-shadow: 0 8px 32px rgba(139,92,246,0.4), 0 0 0 1px rgba(139,92,246,0.1);
  border: 2px solid rgba(139,92,246,0.3);
}

.btn-primary:hover { 
  transform: translateY(-4px) scale(1.05); 
  box-shadow: 0 16px 48px rgba(139,92,246,0.6), 0 0 0 1px rgba(139,92,246,0.2);
  background: linear-gradient(135deg, #8b5cf6, #a855f7, #c084fc);
}

.btn-primary:active {
  transform: translateY(-2px) scale(1.02);
  transition: all 150ms ease;
}

/* Modern Transparent Button Components */
.btn-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255,255,255,0.1);
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s ease;
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-primary.btn-modern {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(139,92,246,0.6);
  box-shadow: 0 8px 32px rgba(139,92,246,0.1);
}

.btn-primary.btn-modern:hover {
  background: transparent;
  border: 2px solid rgba(139,92,246,1);
  box-shadow: 0 12px 40px rgba(139,92,246,0.2);
  transform: translateY(-4px) scale(1.05);
}

.btn-secondary.btn-modern {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(6,182,212,0.6);
  box-shadow: 0 8px 32px rgba(6,182,212,0.1);
}

.btn-secondary.btn-modern:hover {
  background: transparent;
  border: 2px solid rgba(6,182,212,1);
  box-shadow: 0 12px 40px rgba(6,182,212,0.2);
  transform: translateY(-4px) scale(1.05);
}

.btn-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.btn-text {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
  opacity: 0.8;
}

.btn-modern:hover .btn-icon {
  transform: scale(1.2);
}

.btn-modern:hover .btn-arrow {
  transform: translateX(4px);
  opacity: 1;
}

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

.btn-outline:hover { 
  background: rgba(255,255,255,0.1); 
  box-shadow: 0 12px 32px rgba(255,255,255,0.1), 0 0 0 1px rgba(255,255,255,0.2);
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.3);
}

/* Typewriter Animation - Optimized */
.typewriter-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--accent);
  animation: blink-caret 0.75s step-end infinite;
  will-change: border-color;
}

.typewriter-text.typing-complete {
  border-right: none;
  animation: none;
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent); }
}

/* Work */
.work {
  padding: 20px 0;
  height: 100vh;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.work-slider-container {
  position: relative;
  padding: 0 20px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.grid.work-grid { 
  display: flex; 
  gap: 24px; 
  overflow-x: auto; 
  overflow-y: hidden;
  padding: 0 0 20px 0;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  flex: 1;
  align-items: stretch;
  margin-bottom: 20px;
}

/* Hide scrollbar completely */
.grid.work-grid::-webkit-scrollbar {
  display: none;
}


.work-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(139,92,246,0.9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
}

/* Show arrows on hover */
.work-slider-container:hover .work-nav {
  opacity: 1;
  pointer-events: auto;
}

.work-nav:hover {
  background: rgba(139,92,246,1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(139,92,246,0.5);
}

.work-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.work-nav-left {
  left: 0;
}

.work-nav-right {
  right: 0;
}

/* Disabled state for arrows */
.work-nav.disabled {
  opacity: 0.3 !important;
  pointer-events: none !important;
}

.work-nav svg {
  width: 24px;
  height: 24px;
}

/* Hide navigation arrows on mobile */
@media (max-width: 768px) {
  .work-slider-container {
    padding: 0 10px;
    height: 400px;
  }
  
  .work-nav {
    display: none;
  }
  
  .grid.work-grid {
    height: 350px;
    gap: 16px;
  }
  
  .work-item {
    flex: 0 0 calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }
}


.work-item { 
  flex: 0 0 500px; 
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); 
  border: 1px solid rgba(255,255,255,0.06); 
  border-radius: 20px; 
  overflow: hidden; 
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease; 
  cursor: pointer; 
}
.work-item:hover { transform: translateY(-6px); box-shadow: var(--glow); border-color: var(--border); }
.work-item .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; filter: saturate(110%) contrast(105%); }

/* Instagram video styling */
.work-item[data-platform="instagram"] {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border: 2px solid rgba(188, 24, 136, 0.3);
  position: relative;
}

.work-item[data-platform="instagram"]:hover {
  border-color: rgba(188, 24, 136, 0.6);
  box-shadow: 0 8px 32px rgba(188, 24, 136, 0.3);
}

.work-item[data-platform="instagram"] .thumb {
  border-radius: 12px;
  overflow: hidden;
}

.work-item[data-platform="instagram"] .thumb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(240, 148, 51, 0.1), rgba(188, 24, 136, 0.1));
  z-index: 1;
  pointer-events: none;
}
.work-item:hover img { transform: scale(1.06); }
.work-item .play-btn { 
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
}
.platform-badge { 
    display: none !important; 
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
}

/* Additional rules to ensure platform badges are hidden in work section */
.work-item .platform-badge,
.work-meta .platform-badge,
.grid .platform-badge {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
}
.work-meta { padding: 12px 14px 16px; }
.work-meta h3 { margin: 0 0 6px; font-size: 18px; }
.work-meta p { margin: 0; color: var(--dim); font-size: 14px; }


/* About */
/* About Section - Redesigned */
.about { 
  background: transparent; /* Removed blue/purple gradient background */
  padding: 10px 0;
  margin-bottom: 80px; /* Moved spacing to margin-bottom */
  min-height: 100vh; /* Changed from fixed height to min-height */
  position: relative;
  z-index: 3; /* Higher z-index to stay above services */
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.about {
  position: relative;
}

.about .container {
  position: relative;
}

.resume-download-icon {
  position: absolute;
  top: 0px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(139,92,246,0.1);
  border: 2px solid rgba(139,92,246,0.3);
  color: var(--accent);
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 1001;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(139,92,246,0.1);
}

.resume-download-icon:hover {
  background: rgba(139,92,246,0.2);
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(139,92,246,0.3);
  z-index: 1002;
}

.resume-download-icon svg {
  width: 22px;
  height: 22px;
}


.about-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 30px; 
  align-items: center;
  justify-items: center;
  flex: 1;
  overflow: hidden;
}

/* When no profile image, center the content */
.about-grid:has(.portrait[style*="display: none"]) {
  grid-template-columns: 1fr;
  justify-items: center;
}

.about-grid:has(.portrait[style*="display: none"]) .about-content {
  text-align: center;
  max-width: 800px;
}

/* Hide portrait container completely when no image */
.portrait[style*="display: none"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (min-width: 900px) { 
  .about-grid { 
    grid-template-columns: 1fr 1.2fr; 
    gap: 60px; 
    align-items: center;
    justify-items: start;
  } 
}

/* Portrait Container - Creative Design */
.portrait-container {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait { 
  width: 240px;
  height: 240px;
  border-radius: 50%; 
  overflow: hidden; 
  position: relative; 
  border: 4px solid rgba(255,255,255,0.1); 
  box-shadow: 0 15px 30px rgba(0,0,0,0.2), 
              0 0 0 1px rgba(255,255,255,0.05),
              inset 0 0 0 2px rgba(139,92,246,0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 4px;
}

.portrait::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent), var(--accent-2), #ff6b6b, #4ecdc4);
  border-radius: 50%;
  z-index: -1;
  animation: rotate 3s linear infinite;
}

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

.portrait:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 25px 50px rgba(0,0,0,0.3), 
              0 0 0 1px rgba(255,255,255,0.1),
              inset 0 0 0 2px rgba(139,92,246,0.5);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portrait:hover img {
  transform: scale(1.1);
}

.portrait-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(6,182,212,0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
}

.portrait:hover .portrait-overlay {
  opacity: 1;
}

.portrait-badge {
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.portrait:hover .portrait-badge {
  transform: translateY(0);
}

.badge-icon {
  font-size: 16px;
}

.badge-text {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

/* Portrait Stats */
.portrait-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
  width: 100%;
}

.stat-item {
  text-align: center;
  padding: 12px 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-item:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border-color: rgba(255,255,255,0.2);
}

.stat-number {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-number.animate {
  opacity: 1;
  transform: translateY(0);
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.stat-label.animate {
  opacity: 1;
  transform: translateY(0);
}

/* About Content */
.about-content {
  width: 100%;
  max-width: 600px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-intro {
  margin-bottom: 16px;
}

.about-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text { 
  color: var(--muted); 
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 0;
  text-align: center;
}


.skills-section {
  background: transparent; /* Removed blue/purple gradient background */
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 16px;
  margin-top: 12px;
}

.skills-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4, #10b981);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.skills { 
  display: grid; 
  gap: 12px; 
}

.skill-head { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  font-size: 12px; 
  color: var(--dim);
  margin-bottom: 8px;
}

.bar { 
  height: 8px; 
  background: rgba(255,255,255,0.1); 
  border-radius: 4px; 
  overflow: hidden; 
  margin: 4px 0;
}

.bar span { 
  display: block; 
  height: 100%; 
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  border-radius: 4px; 
  width: 0%; 
  transition: width 1.5s ease-out;
}


/* Services Section - Fresh Redesign */
.services { 
  background: #0b0b0b !important; /* Force clean dark background */
  padding: 80px 0;
  position: relative;
  z-index: 3;
  overflow: hidden; /* Hide any overflow effects */
}

.services .section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #ffffff;
}

.services-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px; 
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  background: transparent !important; /* Force transparent background */
  overflow: hidden; /* Hide any overflow effects */
}

/* Fresh Service Card Design */
.service-card { 
  background: #1a1a1a !important; /* Force dark card background */
  border: 1px solid #333333; /* Subtle border */
  border-radius: 16px; /* Modern rounded corners */
  padding: 30px 20px; /* Adjusted padding for one row */
  position: relative;
  transition: all 0.3s ease;
  text-align: center;
  min-height: 280px; /* Reduced height for one row */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Hide any overflow effects */
}

.service-card:hover { 
  transform: translateY(-8px);
  border-color: #555555;
  background: #222222;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-card .icon { 
  font-size: 36px; /* Reduced for one row */
  margin-bottom: 16px; 
  display: block;
  transition: transform 0.3s ease;
}

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

.service-card h3 { 
  margin: 0 0 12px; 
  font-size: 16px; /* Reduced for one row */
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.service-card p { 
  margin: 0; 
  color: #cccccc; 
  font-size: 12px; /* Reduced for one row */
  line-height: 1.5;
  font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) { 
  .services {
    padding: 60px 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  
  .service-card { 
    padding: 30px 20px;
    min-height: 280px;
  }
  
  .service-card .icon {
    font-size: 40px;
    margin-bottom: 20px;
  }
  
  .service-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .service-card p {
    font-size: 13px;
  }
}

/* Testimonials */
.testimonials { 
  background: transparent; /* Removed blue/purple gradient background */
  min-height: 100vh; /* Changed from fixed height to min-height */
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  position: relative; /* Ensure proper positioning */
  z-index: 1; /* Lower z-index to prevent overlapping services */
}

.contact.section {
  min-height: 100vh;
  padding: 15px 0; /* Consistent padding with other sections */
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
  box-sizing: border-box;
  border: none;
  outline: none;
  box-shadow: none;
}

/* Add extra space after contact section title */
.contact .section-title {
  margin-bottom: 20px; /* Reduced spacing after "Get In Touch" title */
}

.testimonials-grid {
  overflow: hidden;
  margin-top: 8px;
  position: relative;
  padding: 10px 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonials-track {
  display: flex;
  gap: 20px;
  animation: scroll-testimonials 35s linear infinite;
  width: max-content;
  will-change: transform;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

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

.testimonial-card {
  background: rgba(255,255,255,0.03); /* Clean flat background */
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  min-width: 300px;
  max-width: 300px;
  flex-shrink: 0;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(139,92,246,0.3);
  border-color: var(--accent);
}

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

.quote-icon {
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 20px;
}

.testimonial-text {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 24px;
  font-style: italic;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.client-name {
  font-weight: 600;
  color: #fff;
  font-size: 15px;
  margin-bottom: 2px;
}

.client-role {
  color: var(--dim);
  font-size: 13px;
}

.testimonial-card .stars {
  color: #facc15;
  font-size: 18px;
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .testimonials-grid {
    margin-top: 40px;
    padding: 15px 0;
  }
  
  .testimonial-card {
    min-width: 250px;
    max-width: 250px;
    padding: 20px;
  }
  
  .testimonials-track {
    animation-duration: 25s;
    gap: 20px;
  }
  
  .testimonial-text {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .client-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .client-name {
    font-size: 14px;
  }
  
  .client-role {
    font-size: 12px;
  }
  
  .quote-icon svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    min-width: 220px;
    max-width: 220px;
    padding: 18px;
  }
  
  .testimonials-track {
    animation-duration: 20s;
    gap: 15px;
  }
  
  .testimonial-text {
    font-size: 13px;
  }
}

/* Contact */
.contact {
  background: transparent; /* Removed blue/purple gradient background */
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 60px;
  overflow: visible; /* Changed from hidden to visible */
  align-items: center;
  max-width: 100%; /* Ensure it doesn't exceed container width */
}

/* Contact Unified */
.contact-unified {
  background: transparent; /* Transparent background */
  border: none; /* Remove border */
  border-radius: 0; /* Remove border radius */
  padding: 0; /* Remove padding */
  backdrop-filter: none; /* Remove backdrop filter */
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  flex: 1;
  align-self: stretch;
  margin: 0;
  max-width: none;
  width: 100%;
  box-shadow: none;
  outline: none;
}

/* Removed pseudo-element that was causing border issues */


.contact-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center form content */
  justify-content: center; /* Center vertically */
}

.contact-right {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center info content */
  justify-content: center; /* Center vertically */
}

.contact-intro {
  margin-bottom: 32px;
  text-align: center; /* Center the intro text */
}

.contact-intro h3 {
  font-size: 14px; /* Further reduced from 16px */
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px; /* Further reduced from 4px */
}

.contact-intro p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.contact-form .form-row {
  margin-bottom: 16px; /* Consistent spacing */
  position: relative;
}

.contact-form input,
.contact-form textarea {
  width: 120%;
  padding: 12px 16px; /* Improved padding for better usability */
  border-radius: 12px; /* Modern rounded corners */
  border: 3px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 14px; /* Improved readability */
  font-weight: 700; /* Heavier text weight */
  font-family: inherit;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(139,92,246,0.4);
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139,92,246,0.15);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.3), 0 8px 30px rgba(139,92,246,0.2);
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--dim);
}

.contact-submit-btn {
  width: 100%;
  padding: 14px 24px; /* Improved padding */
  background: linear-gradient(135deg, #8b5cf6, #06b6d4); /* Modern gradient */
  color: white;
  border: none;
  border-radius: 12px; /* Modern rounded corners */
  font-size: 14px; /* Improved readability */
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 20px rgba(139,92,246,0.3);
  position: relative;
  overflow: hidden;
}

.contact-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.contact-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(139,92,246,0.4);
  background: linear-gradient(135deg, #7c3aed, #0891b2);
}

.contact-submit-btn:hover::before {
  left: 100%;
}

.contact-submit-btn:active {
  transform: translateY(-1px);
}



.contact-info {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px; /* More rounded */
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 20px rgba(139,92,246,0.3);
}

.contact-item:hover .contact-icon {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(139,92,246,0.4);
}

.contact-text h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.contact-text p,
.contact-text a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-text a:hover {
  color: var(--accent);
}

.social-links h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.socials {
  display: flex;
  gap: 12px;
}

.social {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .resume-download-icon {
    top: 0px;
    right: 15px;
    width: 44px;
    height: 44px;
  }
  
  .resume-download-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .contact-unified {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
    margin: 20px 10px;
    max-width: calc(100% - 20px);
    width: calc(100% - 20px);
  }
  
  .contact-intro h3 {
    font-size: 18px;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 14px 18px;
    font-size: 16px; /* Better mobile readability */
  }
  
  .contact-submit-btn {
    padding: 16px 24px;
    font-size: 16px;
  }
  
  .contact-info {
    gap: 20px;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
  }
}


.contact-item:hover .contact-icon {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(139,92,246,0.4);
}

.contact-text h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.contact-item:hover .contact-text h4 {
  color: var(--accent);
}

/* Footer */
.footer { position: relative; padding-top: 18px; }
.gradient-border { height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: var(--glow); opacity: 0.6; }
.footer-inner { display: flex; align-items: center; justify-content: center; padding: 18px 0 24px; color: var(--dim); }
.to-top { position: fixed; right: 20px; bottom: 20px; background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.15); width: 42px; height: 42px; border-radius: 12px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 200ms ease, transform 200ms ease; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); box-shadow: var(--glow); }

/* Video Modal */
.video-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.9); z-index: 1000; }
.video-modal-content { position: relative; width: min(90vw, 1200px); height: min(60vh, 600px); background: #0e0e12; border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; box-shadow: var(--glow); overflow: hidden; }
.video-close-btn { position: absolute; top: 12px; right: 12px; z-index: 1001; background: rgba(0,0,0,0.7); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 200ms ease; }
.video-close-btn:hover { background: rgba(0,0,0,0.9); }
.video-container { width: 100%; height: 100%; position: relative; }
.video-container iframe { border-radius: 16px; }

/* Modal */
.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.8); opacity: 0; pointer-events: none; transition: opacity 240ms ease; z-index: 60; }
.modal.show { opacity: 1; pointer-events: auto; }
.modal-content { position: relative; width: min(1000px, 95%); background: #0e0e12; border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; box-shadow: var(--glow); overflow: hidden; }
.modal-body { position: relative; padding-top: 56.25%; }
.modal-body iframe, .modal-body video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-close { position: absolute; right: 15px; top: 15px; border: none; background: rgba(0,0,0,0.7); color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 18px; z-index: 10; transition: all 0.3s ease; }
.modal-close:hover { background: rgba(0,0,0,0.9); transform: scale(1.1); }
.modal-backdrop { position: absolute; inset: 0; }

/* Video Container */
.video-container { position: relative; width: 100%; height: 100%; }
.video-actions { position: absolute; bottom: 15px; right: 15px; z-index: 10; }
.external-link { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  padding: 8px 16px; 
  background: rgba(255,0,0,0.9); 
  color: white; 
  text-decoration: none; 
  border-radius: 8px; 
  font-size: 14px; 
  font-weight: 600; 
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255,0,0,0.3);
}
.external-link:hover { 
  background: #ff0000; 
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(255,0,0,0.4);
}

@media (max-width: 768px) {
  .modal-content { width: 98%; margin: 10px; }
  .modal-close { right: 10px; top: 10px; width: 35px; height: 35px; font-size: 16px; }
  .external-link { padding: 6px 12px; font-size: 12px; }
  .video-actions { bottom: 10px; right: 10px; }
}

/* Cursor Glow */
.cursor-glow { pointer-events: none; position: fixed; inset: 0; background: transparent; mix-blend-mode: screen; opacity: 0; z-index: 0; }

/* Reveal Animations */
.reveal-up { opacity: 0; transform: translateY(18px) scale(0.98); transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 700ms cubic-bezier(.2,.8,.2,1); }
.reveal-up.in-view { opacity: 1; transform: translateY(0) scale(1); }

/* Mobile Nav */
@media (max-width: 780px) {
  .nav-toggle { display: inline-block; }
  .nav-menu { position: absolute; right: 4%; top: 64px; flex-direction: column; gap: 10px; padding: 12px; background: rgba(14,14,18,0.9); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; display: none; }
  .nav-menu.show { display: flex; }
  
  /* Mobile-specific skill bar optimizations */
  .bar span { 
    transition: width 1.5s cubic-bezier(.2,.8,.2,1); 
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  /* Improve touch scrolling performance */
  .about { 
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
  }
}



