/* Professional Portfolio Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #3b82f6;
  --primary-purple: #8b5cf6;
  --primary-cyan: #06b6d4;
  --accent-green: #22c55e;
  
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  
  --bg-glass: rgba(255, 255, 255, 0.05);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --section-padding: 120px;
  --container-padding: 50px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  color: var(--slate-100);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* 3D Background */
.spline-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
  overflow: hidden;
}

.spline-background spline-viewer {
  width: 100%;
  height: 100%;
}

/* Watermark cover container */
.watermark-cover {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, 
    rgba(15, 23, 42, 1) 0%, 
    rgba(15, 23, 42, 0.8) 40%,
    rgba(15, 23, 42, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Watermark cover overlay - Bottom right corner */
.spline-background::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 60px;
  background: linear-gradient(to left, 
    rgba(15, 23, 42, 1) 0%, 
    rgba(15, 23, 42, 0.9) 70%, 
    rgba(15, 23, 42, 0) 100%);
  z-index: 999999;
  pointer-events: none;
}

/* Additional full-width bottom overlay */
.spline-background::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to top, 
    rgba(15, 23, 42, 0.8) 0%, 
    rgba(15, 23, 42, 0.4) 50%,
    rgba(15, 23, 42, 0) 100%);
  z-index: 999998;
  pointer-events: none;
}

/* Hide Spline watermark - Comprehensive approach */
.spline-background spline-viewer::part(logo),
.spline-background spline-viewer::part(watermark),
spline-viewer::part(logo),
spline-viewer::part(watermark) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Additional watermark hiding */
.spline-background spline-viewer [class*="logo"],
.spline-background spline-viewer [class*="watermark"],
.spline-background spline-viewer [class*="built"],
spline-viewer [class*="logo"],
spline-viewer [class*="watermark"],
spline-viewer [class*="built"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* More comprehensive watermark removal */
spline-viewer {
  --watermark-display: none !important;
}

spline-viewer::part(watermark),
spline-viewer::part(logo),
spline-viewer div[class*="watermark"],
spline-viewer div[class*="logo"],
spline-viewer div[class*="built"],
spline-viewer a[href*="spline"],
spline-viewer a[title*="Spline"],
spline-viewer [data-testid*="watermark"],
spline-viewer [data-testid*="logo"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Hide any bottom-positioned elements that might be watermarks */
spline-viewer > div:last-child,
spline-viewer div[style*="bottom"],
spline-viewer div[style*="position: absolute"] {
  display: none !important;
}

/* Ultra-aggressive watermark hiding */
spline-viewer * {
  pointer-events: none;
}

spline-viewer canvas {
  pointer-events: auto;
}

/* Hide any text containing "Built with Spline" */
spline-viewer *:before,
spline-viewer *:after {
  content: "" !important;
}

/* Specific targeting for common watermark positions */
spline-viewer > div:nth-last-child(1),
spline-viewer > div:nth-last-child(2),
spline-viewer > div:nth-last-child(3) {
  display: none !important;
}

/* Hide elements with Spline branding */
spline-viewer [style*="rgba(255, 255, 255, 0.6)"],
spline-viewer [style*="position: absolute"][style*="bottom"],
spline-viewer [style*="z-index: 999"],
spline-viewer [style*="z-index: 9999"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Cover watermark with overlay */
.spline-background::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: transparent;
  z-index: 999999;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

p {
  color: var(--slate-300);
  line-height: 1.7;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-purple);
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: 
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.3;
  }
}

.section {
  padding: var(--section-padding) var(--container-padding);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--slate-400);
  max-width: 600px;
  margin: 0 auto;
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--slate-900);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(59, 130, 246, 0.1);
  border-top: 3px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
    --container-padding: 20px;
  }
  
  .section {
    padding: var(--section-padding) var(--container-padding);
  }
  
  .glass-card {
    padding: 24px;
  }
}