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

:root {
  --primary: #00d4aa;
  --dark: #1a1a1a;
  --darker: #0f0f0f;
  --text: #ffffff;
  --text-muted: #b0b0b0;
  --accent: #2196f3;
  --subtle: #2a2a2a;
  --card-bg: #222222;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.loading-text {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Floating Particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.1;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1000;
  transition: width 0.1s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, #00d4aa15 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, #2196f315 0%, transparent 50%);
  opacity: 0.1;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.2; }
}

/* Geometric Background Elements */
.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: 0.1;
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.geometric-shape {
  position: absolute;
  border: 1px solid var(--accent);
  opacity: 0.1;
}

.shape-1 {
  top: 10%;
  left: 5%;
  width: 100px;
  height: 100px;
  animation: float-up 6s ease-in-out infinite;
}

.shape-2 {
  bottom: 15%;
  right: 5%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  animation: float-down 8s ease-in-out infinite;
}

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

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

.hero-content {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease 0.5s forwards;
}

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

.hero-tagline {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  animation: slideInLeft 0.8s ease 0.8s forwards;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  opacity: 0;
  animation: typewriter 2s steps(40) 1.2s forwards;
  border-right: 2px solid var(--primary);
  white-space: nowrap;
  overflow: hidden;
}

@keyframes typewriter {
  from {
    width: 0;
    opacity: 1;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeIn 1s ease 3s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}

.stat.animate {
  animation: statAppear 0.6s ease forwards;
}

.stat:nth-child(1) { animation-delay: 3.5s; }
.stat:nth-child(2) { animation-delay: 3.8s; }
.stat:nth-child(3) { animation-delay: 4.1s; }

@keyframes statAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  transition: transform 0.3s ease;
}

.stat:hover .stat-number {
  transform: scale(1.1);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 1s ease 4.5s forwards;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.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.5s;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--dark);
  box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(0, 212, 170, 0.5); }
}

.btn-primary:hover {
  background: #00b894;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 212, 170, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--subtle);
  position: relative;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

/* Hook Section */
.hook {
  padding: 5rem 0;
  background: var(--darker);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hook::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 49%, var(--primary) 50%, transparent 51%);
  opacity: 0.02;
  animation: slide 10s ease-in-out infinite;
}

@keyframes slide {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.hook-text {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(30px);
}

.hook-text.animate {
  animation: slideUp 0.8s ease forwards;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hook-highlight {
  color: var(--primary);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.hook-highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.hook-highlight:hover::after {
  width: 100%;
}

/* Video Section */
.video-section {
  padding: 6rem 0;
  background: var(--subtle);
  text-align: center;
  position: relative;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 2rem auto 0;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s ease;
}

.video-wrapper.animate {
  opacity: 1;
  transform: scale(1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: width 0.6s ease;
}

.section-title.animate::before {
  width: 80px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

/* What I Do Section */
.what-i-do {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

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

.capability {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  transition: all 0.6s ease;
  opacity: 0;
  transform: translateY(50px);
  position: relative;
  overflow: hidden;
}

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

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

.capability.animate {
  opacity: 1;
  transform: translateY(0);
}

.capability:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 212, 170, 0.2);
  border-left-width: 8px;
}

.capability h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.capability:hover h3 {
  transform: translateX(5px);
}

/* Projects Section */
.projects {
  padding: 6rem 0;
  background: var(--subtle);
  position: relative;
}

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

.project-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.6s ease;
  opacity: 0;
  transform: translateY(50px) rotateX(10deg);
  perspective: 1000px;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 212, 170, 0.1), rgba(33, 150, 243, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

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

.project-card.animate {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.project-image {
  height: 200px;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.3s ease;
}

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

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

.project-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: var(--accent);
}

.project-problem, .project-note, .project-solution, .project-result {
  color: var(--text-muted);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.project-card:hover .project-problem,
.project-card:hover .project-solution,
.project-card:hover .project-result {
  transform: translateX(5px);
}

.project-problem {
  font-style: italic;
}

.project-note {
  font-size: 0.9rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.project-solution {
  flex-grow: 1;
}

.project-result {
  color: var(--primary);
  font-weight: 600;
}

.project-buttons {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
}

.project-card:hover .btn-small {
  transform: translateY(0);
  opacity: 1;
}

.project-card:hover .btn-small:nth-child(1) { transition-delay: 0.1s; }
.project-card:hover .btn-small:nth-child(2) { transition-delay: 0.2s; }

/* Case Study Section */
.case-study { 
  padding: 6rem 0;
  position: relative;
}

.case-study-content { 
  max-width: 800px; 
  margin: 3rem auto 0 auto; 
}

.case-study-content h3 { 
  color: var(--primary); 
  font-size: 1.8rem; 
  margin-top: 3rem; 
  margin-bottom: 1.5rem; 
  border-left: 3px solid var(--primary); 
  padding-left: 1rem;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.case-study-content h3.animate {
  opacity: 1;
  transform: translateX(0);
}

.case-study-content p { 
  color: var(--text-muted); 
  margin-bottom: 1.5rem; 
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.case-study-content p.animate {
  opacity: 1;
  transform: translateY(0);
}

.case-study-content blockquote { 
  background: var(--card-bg); 
  border-left: 3px solid var(--accent); 
  padding: 1.5rem; 
  margin: 1rem 0 2rem 0; 
  border-radius: 8px; 
  font-family: monospace; 
  color: #e0e0e0; 
  font-size: 1rem; 
  white-space: pre-wrap; 
  word-wrap: break-word;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.6s ease;
}

.case-study-content blockquote.animate {
  opacity: 1;
  transform: scale(1);
}

.case-study-content blockquote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(33, 150, 243, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.case-study-content blockquote:hover::before {
  transform: translateX(100%);
}

/* Positioning Section */
.positioning {
  padding: 6rem 0;
  text-align: center;
  background: var(--darker);
  position: relative;
  overflow: hidden;
}

.positioning::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    var(--primary) 2px,
    var(--primary) 4px
  );
  opacity: 0.03;
  animation: moveStripes 20s linear infinite;
}

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

.positioning-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.positioning-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.positioning-title.animate {
  opacity: 1;
  transform: translateY(0);
}

.positioning-points {
  text-align: left;
  margin: 2rem 0;
}

.positioning-points li {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  list-style: none;
  position: relative;
  padding-left: 2rem;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.positioning-points li.animate {
  opacity: 1;
  transform: translateX(0);
}

.positioning-points li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  transition: transform 0.3s ease;
}

.positioning-points li:hover::before {
  transform: translateX(5px);
}

/* Footer */
.footer {
  padding: 3rem 0;
  background: var(--dark);
  text-align: center;
  border-top: 1px solid var(--subtle);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: var(--primary);
  animation: expand 2s ease-in-out infinite;
}

@keyframes expand {
  0%, 100% { width: 100px; }
  50% { width: 200px; }
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: 75vh; 
    text-align: center;
  }
  
  .hero-title {
    white-space: normal;
    border-right: none;
    width: auto !important; /* Fix for mobile typewriter */
  }
  
  .hero-content {
    width: 100%;
    padding-top: 5rem; 
  }
  
  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .capabilities {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .geometric-shape {
    display: none;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Selection */
::selection {
  background: var(--primary);
  color: var(--dark);
}

