/* Premium Design System */
:root {
  /* Sophisticated color palette with depth */
  --primary-bg: #0a0a0a;
  --secondary-bg: #111111;
  --accent-primary: #FF6B6B;
  --accent-secondary: #4ECDC4;
  --accent-tertiary: #FFE66D;
  --text-primary: #FFFFFF;
  --text-secondary: #B8B8B8;
  --text-muted: #6B6B6B;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --shadow-glow: 0 0 40px rgba(78, 205, 196, 0.3);
  --shadow-depth: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Premium Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Syne:wght@400;500;600;700;800&display=swap');

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--primary-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  width: 100%;
  max-width: 100vw;
}

/* Noise texture overlay for depth */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  z-index: 1;
  pointer-events: none;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj4KPGZpbHRlciBpZD0ibm9pc2UiPgo8ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC45IiBudW1PY3RhdmVzPSI0IiAvPgo8L2ZpbHRlcj4KPHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI25vaXNlKSIgb3BhY2l0eT0iMSIvPgo8L3N2Zz4=');
}

/* Premium Navigation */
.premium-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 3rem;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--card-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-nav.scrolled {
  padding: 1rem 3rem;
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  position: relative;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.nav-logo .logo-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-left: 0.25rem;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 0.3px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

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

.nav-cta {
  background: var(--gradient-accent);
  color: var(--primary-bg);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-secondary);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

.nav-cta:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero Section with Depth */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 3rem 0 3rem;
  background: radial-gradient(ellipse at top right, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at bottom left, rgba(245, 87, 108, 0.1) 0%, transparent 50%);
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  z-index: 2;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-name-intro {
  font-size: 1.25rem;
  color: var(--accent-secondary);
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 1;
  animation: fadeInUp 0.6s ease forwards;
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 3rem;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 50%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite, fadeInUp 0.8s ease 0.2s forwards;
  opacity: 1;
  position: relative;
}

.hero-name::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 65%;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: scaleIn 1s ease 1s forwards;
}

/* Specialty Badge */
.specialty-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(78, 205, 196, 0.12);
  color: var(--accent-secondary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.8rem;
  border: 1px solid rgba(78, 205, 196, 0.25);
  margin-bottom: 1rem;
  opacity: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.15);
}

.badge-icon {
  font-size: 1rem;
}

.badge-text {
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes scaleIn {
  to {
    transform: scaleX(1);
  }
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
  opacity: 1;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

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

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  line-height: 1.6;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(78, 205, 196, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-accent);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.cta-primary {
  background: var(--gradient-accent);
  color: var(--primary-bg);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(78, 205, 196, 0.4);
}

.cta-secondary {
  color: var(--text-primary);
  padding: 1rem 2.5rem;
  border: 2px solid var(--card-border);
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.cta-secondary:hover {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 30px rgba(78, 205, 196, 0.2);
}

/* 3D floating elements */
.floating-element {
  position: absolute;
  opacity: 0.1;
  animation: float3D 20s infinite ease-in-out;
}

@keyframes float3D {
  0%, 100% { transform: translate3d(0, 0, 0) rotateX(0) rotateY(0); }
  33% { transform: translate3d(30px, -30px, 50px) rotateX(180deg) rotateY(90deg); }
  66% { transform: translate3d(-20px, 20px, -30px) rotateX(90deg) rotateY(180deg); }
}

.floating-cube {
  width: 200px;
  height: 200px;
  background: var(--gradient-primary);
  top: 10%;
  right: 10%;
  border-radius: 30px;
  filter: blur(40px);
}

.floating-sphere {
  width: 300px;
  height: 300px;
  background: var(--gradient-secondary);
  bottom: 10%;
  left: 5%;
  border-radius: 50%;
  filter: blur(60px);
}

/* About Section */
.about-section {
  padding: 6rem 3rem;
  position: relative;
  background: var(--secondary-bg);
}

/* Personal Brand Signature */
.brand-signature {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Mohit Brand Monogram */
.mohit-monogram {
  position: absolute;
  font-family: 'Syne', sans-serif;
  font-size: 15rem;
  font-weight: 900;
  color: var(--text-primary);
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
  letter-spacing: -10px;
  transform: rotate(-15deg);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--accent-secondary);
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 3rem;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(78, 205, 196, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

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

.service-number {
  font-family: 'Syne', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.service-features {
  list-style: none;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-features li::before {
  content: '→';
  color: var(--accent-secondary);
  font-weight: 600;
}

/* Philosophy Section */
.philosophy-section {
  padding: 6rem 3rem;
  background: var(--primary-bg);
  position: relative;
  overflow: hidden;
}

.philosophy-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.philosophy-text {
  position: relative;
  z-index: 2;
}

.philosophy-title {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.philosophy-quote {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--accent-secondary);
  margin-bottom: 2rem;
  position: relative;
  padding-left: 2rem;
}

.philosophy-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 4rem;
  color: var(--accent-secondary);
  opacity: 0.3;
  font-family: serif;
}

.philosophy-author {
  font-size: 1.2rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-top: -1rem;
  margin-bottom: 2rem;
  font-family: 'Syne', sans-serif;
}

.philosophy-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* About Image Styling */
.about-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--card-border);
  transition: all 0.3s ease;
}

.about-image:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border-color: var(--accent-secondary);
}

.philosophy-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: rgba(78, 205, 196, 0.3);
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.value-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.value-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Philosophy Visual Elements */
.philosophy-visual {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: flex-start;
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 3;
}

/* Full-width philosophy values */
.philosophy-values-full-width {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  width: 100%;
}

.philosophy-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 400px;
}

.philosophy-icon-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2rem 1.5rem;
  border-radius: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.philosophy-icon-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.philosophy-icon-card:hover {
  transform: translateY(-10px);
  border-color: rgba(78, 205, 196, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.philosophy-icon-card:hover::before {
  opacity: 1;
}

.icon-wrapper {
  position: relative;
  z-index: 1;
}

.animated-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.philosophy-icon-card[data-icon="privacy"] .animated-icon {
  animation-delay: 0s;
}

.philosophy-icon-card[data-icon="free"] .animated-icon {
  animation-delay: 0.5s;
}

.philosophy-icon-card[data-icon="ads"] .animated-icon {
  animation-delay: 1s;
}

.philosophy-icon-card[data-icon="open"] .animated-icon {
  animation-delay: 1.5s;
}

.philosophy-icon-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.philosophy-icon-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Code Snippet Visual */
.passion-quote-visual {
  width: 100%;
  max-width: 420px;
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 5;
}

.code-snippet {
  background: var(--secondary-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  overflow: hidden;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 10;
}

.code-header {
  background: var(--card-bg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--card-border);
}

.code-dots {
  display: flex;
  gap: 0.5rem;
}

.code-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27ca3f; }

.code-title {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.code-content {
  padding: 1.5rem;
  line-height: 1.6;
}

.code-line {
  margin-bottom: 0.5rem;
  opacity: 0;
}

/* Animate code lines when parent has animate class */
.code-snippet.animate .code-line {
  animation: fadeInUp 0.6s ease forwards;
  animation-fill-mode: forwards;
}

.code-snippet.animate .code-line:nth-child(1) { animation-delay: 0.1s; }
.code-snippet.animate .code-line:nth-child(2) { animation-delay: 0.2s; }
.code-snippet.animate .code-line:nth-child(3) { animation-delay: 0.3s; }
.code-snippet.animate .code-line:nth-child(4) { animation-delay: 0.4s; }
.code-snippet.animate .code-line:nth-child(5) { animation-delay: 0.5s; }
.code-snippet.animate .code-line:nth-child(6) { animation-delay: 0.6s; }
.code-snippet.animate .code-line:nth-child(7) { animation-delay: 0.7s; }
.code-snippet.animate .code-line:nth-child(8) { animation-delay: 0.8s; }
.code-snippet.animate .code-line:nth-child(9) { animation-delay: 0.9s; }
.code-snippet.animate .code-line:nth-child(10) { animation-delay: 1.0s; }
.code-snippet.animate .code-line:nth-child(11) { animation-delay: 1.1s; }
.code-snippet.animate .code-line:nth-child(12) { animation-delay: 1.2s; }
.code-snippet.animate .code-line:nth-child(13) { animation-delay: 1.3s; }

.code-indent {
  padding-left: 2rem;
}

.code-keyword { color: #ff79c6; }
.code-variable { color: #50fa7b; }
.code-property { color: #8be9fd; }
.code-boolean { color: #bd93f9; }
.code-number { color: #ffb86c; }
.code-string { color: #f1fa8c; }
.code-comment { color: #6272a4; font-style: italic; }

/* Projects Section */
.projects-section {
  padding: 6rem 3rem;
  background: var(--secondary-bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  group: card;
}

.project-card::after {
  content: 'mohit';
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  color: var(--text-primary);
  opacity: 0.05;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.project-card:hover::after {
  opacity: 0.1;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(78, 205, 196, 0.3);
}

.project-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image {
  transform: scale(1.1);
}

.project-content {
  padding: 2rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  background: rgba(78, 205, 196, 0.1);
  color: var(--accent-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-link {
  color: var(--accent-secondary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.project-link:hover {
  gap: 1rem;
}

/* Contact Section */
.contact-section {
  padding: 6rem 3rem;
  background: var(--primary-bg);
  position: relative;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(78, 205, 196, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--primary-bg);
  color: var(--primary-bg);
  transition: transform 0.3s ease;
}

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

.contact-label {
  font-weight: 600;
}

.contact-value {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Footer */
.footer {
  padding: 3rem;
  background: var(--secondary-bg);
  border-top: 1px solid var(--card-border);
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-heart {
  color: var(--accent-primary);
  animation: heartbeat 1.5s ease-in-out infinite;
}

/* Footer break control for desktop */
.mobile-break {
  display: none;
}

.desktop-break {
  display: inline;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

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

/* Custom Branded Cursor */
body {
  cursor: none;
}

a, button, input, textarea, select {
  cursor: none !important;
}

.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-secondary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s ease, border-color 0.3s ease;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.custom-cursor::after {
  content: '@mohit';
  position: absolute;
  top: 100%;
  left: 100%;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent-secondary);
  font-family: 'Syne', sans-serif;
  margin: 2px;
}

.custom-cursor:hover {
  border-color: var(--accent-primary);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu-close {
  display: none;
}

.mobile-cta-wrapper {
  display: none;
}

/* Tablet-specific styles */
@media (min-width: 768px) and (max-width: 1024px) {
  .premium-nav {
    padding: 1rem 2rem;
  }
  
  .nav-container {
    gap: 1rem;
  }
  
  .nav-menu {
    gap: 1.5rem;
  }
  
  .nav-cta {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  
  .nav-logo {
    font-size: 1.5rem;
  }
  
  .nav-link {
    font-size: 0.95rem;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  /* Prevent any overflow */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Fix body pseudo-elements */
  body::before {
    width: 100vw;
    left: 0;
    right: 0;
  }
  
  .premium-nav {
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .nav-container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: var(--primary-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 5rem 2rem 2rem 2rem;
    gap: 0.5rem;
    display: none;
    z-index: 999;
    overflow-y: auto;
    justify-content: center;
    align-items: center;
  }
  
  .nav-menu.active {
    display: flex;
    animation: fadeIn 0.3s ease;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .nav-menu li {
    text-align: center;
    width: 100%;
    max-width: 300px;
    opacity: 0;
    animation: slideInUp 0.5s ease forwards;
  }
  
  .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
  .nav-menu.active li:nth-child(2) { animation-delay: 0.15s; }
  .nav-menu.active li:nth-child(3) { animation-delay: 0.2s; }
  .nav-menu.active li:nth-child(4) { animation-delay: 0.25s; }
  .nav-menu.active li:nth-child(5) { animation-delay: 0.3s; }
  
  @keyframes slideInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
    from {
      opacity: 0;
      transform: translateY(30px);
    }
  }
  
  .nav-menu a {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1.2rem 2rem;
    display: block;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
  }
  
  .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav-menu a:hover,
  .nav-menu a.active {
    background: rgba(78, 205, 196, 0.1);
    border-color: rgba(78, 205, 196, 0.2);
    color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.15);
  }
  
  .nav-menu a:hover::after,
  .nav-menu a.active::after {
    width: 60%;
  }
  
  .mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1002;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
  }
  
  .mobile-menu-close:hover {
    background: var(--card-bg);
    transform: rotate(90deg);
  }
  
  .nav-menu .mobile-cta-wrapper {
    margin-top: 2rem;
    width: 100%;
    max-width: 300px;
    display: block;
  }
  
  .mobile-cta {
    background: rgba(78, 205, 196, 0.1);
    color: var(--accent-secondary) !important;
    padding: 1.2rem 2rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1.5rem;
    display: block;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 2px solid rgba(78, 205, 196, 0.3);
    position: relative;
  }
  
  .mobile-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .mobile-cta:hover {
    background: rgba(78, 205, 196, 0.15);
    border-color: rgba(78, 205, 196, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.2);
  }
  
  .mobile-cta:hover::after {
    width: 60%;
  }
  
  .nav-cta {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
    z-index: 1001;
    transition: opacity 0.3s ease;
  }
  
  /* Hide hamburger when menu is open */
  .nav-menu.active ~ .nav-cta ~ .mobile-menu-toggle {
    opacity: 0;
    pointer-events: none;
  }
  
  .hero-section {
    padding: 100px 1.5rem 0 1.5rem;
  }
  
  .hero-name {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    margin-bottom: 2rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-name-intro {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .specialty-badge {
    font-size: 0.95rem;
    padding: 0.6rem 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .badge-icon {
    font-size: 1.1rem;
  }
  
  .hero-name::after {
    width: 75%;
  }
  
  .mohit-monogram {
    display: none;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-features {
    grid-template-columns: 1fr;
  }
  
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-primary,
  .cta-secondary {
    width: 100%;
    text-align: center;
  }
  
  .philosophy-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .philosophy-visual {
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .philosophy-values-full-width {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
  }
  
  .code-snippet {
    font-size: 0.75rem;
  }
  
  .code-header {
    padding: 0.75rem 1rem;
  }
  
  .code-content {
    padding: 1rem;
  }
  
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .floating-cube,
  .floating-sphere {
    display: none;
  }
  
  /* Restore default cursor on mobile */
  body {
    cursor: auto;
  }
  
  a, button, input, textarea, select {
    cursor: pointer !important;
  }
  
  .custom-cursor {
    display: none;
  }
  
  .contact-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .contact-card {
    padding: 1.5rem;
  }
}

/* Additional mobile styles for smaller screens */
@media (max-width: 480px) {
  .premium-nav {
    padding: 0.5rem 0.75rem;
    width: 100vw;
    box-sizing: border-box;
  }
  
  .nav-container {
    justify-content: space-between;
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }
  
  .nav-logo {
    font-size: 1.4rem;
    flex-shrink: 0;
  }
  
  .mobile-menu-toggle {
    flex-shrink: 0;
    font-size: 1.2rem;
  }
  
  .nav-menu {
    top: 60px;
    padding: 1rem 0.75rem;
    gap: 0.75rem;
    width: 100vw;
    left: 0;
    right: 0;
  }
  
  .nav-menu a {
    font-size: 0.95rem;
    padding: 0.6rem;
  }
  
  .hero-section {
    padding: 80px 1rem 0 1rem;
    min-height: auto;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-name {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }
  
  .hero-title {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
  }
  
  .hero-features {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .feature-card {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .feature-icon {
    margin: 0 auto 1rem auto;
  }
  
  .feature-title {
    font-size: 1rem;
    text-align: center;
  }
  
  .feature-desc {
    font-size: 0.9rem;
    text-align: center;
  }
  
  .hero-cta-group {
    margin-top: 2rem;
    gap: 1rem;
  }
  
  .cta-primary, .cta-secondary {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .section-container {
    padding: 0 1rem;
  }
  
  /* Ensure all main sections have consistent padding */
  .about-section,
  .services-section,
  .projects-section,
  .philosophy-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
  
  .services-grid, .projects-grid {
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .service-number {
    font-size: 3rem;
  }
  
  .service-title {
    font-size: 1.1rem;
  }
  
  .service-description {
    font-size: 0.9rem;
  }
  
  .service-features li {
    font-size: 0.85rem;
  }
  
  .specialty-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    margin-bottom: 0.75rem;
  }
  
  .project-card {
    border-radius: 20px;
  }
  
  .project-content {
    padding: 1.5rem;
  }
  
  .project-title {
    font-size: 1.1rem;
  }
  
  .project-description {
    font-size: 0.9rem;
  }
  
  .philosophy-section {
    padding: 3rem 0;
  }
  
  .philosophy-content {
    gap: 1.5rem;
  }
  
  .philosophy-title {
    font-size: 1.5rem;
  }
  
  .philosophy-quote {
    font-size: 1rem;
  }
  
  .philosophy-description {
    font-size: 0.9rem;
  }
  
  .philosophy-values-full-width {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .value-card {
    padding: 1rem;
  }
  
  .value-title {
    font-size: 0.9rem;
  }
  
  .value-desc {
    font-size: 0.8rem;
  }
  
  .contact-section {
    padding: 3rem 1rem;
  }
  
  .contact-options {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .contact-card {
    padding: 1.25rem;
    min-height: auto;
  }
  
  .contact-icon {
    font-size: 1.5rem;
  }
  
  .contact-label {
    font-size: 0.8rem;
    font-weight: 500;
  }
  
  .contact-value {
    font-size: 0.85rem;
    word-break: break-all;
    line-height: 1.3;
  }
  
  .mohit-monogram {
    display: none;
  }
  
  /* Footer mobile break */
  .mobile-break {
    display: inline;
  }
  
  .desktop-break {
    display: none;
  }
}

/* Underline adjustment for small devices */
@media (max-width: 640px) {
  .hero-name::after {
    width: 100% !important;
  }
}