/* CSS Variables for Glassmorphism Theme */
:root {
  --background: rgb(31, 31, 31);
  --foreground: rgb(250, 250, 250);
  --card: rgba(38, 38, 38, 0.1);
  --card-foreground: rgb(250, 250, 250);
  --primary: rgb(99, 102, 241);
  --primary-foreground: rgb(250, 250, 250);
  --secondary: rgb(147, 51, 234);
  --secondary-foreground: rgb(250, 250, 250);
  --muted: rgb(64, 64, 64);
  --muted-foreground: rgb(179, 179, 179);
  --accent: rgb(34, 197, 194);
  --accent-foreground: rgb(250, 250, 250);
  --border: rgba(77, 77, 77, 0.2);
  --ring: rgba(99, 102, 241, 0.5);
  --radius: 12px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Glassmorphism Utilities */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.glass-card:hover {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

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

.text-glow {
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.background-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, var(--background) 50%, rgba(147, 51, 234, 0.1) 100%);
}

.animated-bg-1 {
  position: absolute;
  top: 5rem;
  left: 2.5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 50%;
  filter: blur(3rem);
  animation: pulse 3s ease-in-out infinite;
}

.animated-bg-2 {
  position: absolute;
  bottom: 5rem;
  right: 2.5rem;
  width: 24rem;
  height: 24rem;
  background: rgba(34, 197, 194, 0.2);
  border-radius: 50%;
  filter: blur(3rem);
  animation: pulse 3s ease-in-out infinite 1s;
}

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

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
}

.hero-card {
  padding: 3rem 2rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.sparkles-icon {
  width: 2rem;
  height: 2rem;
  margin-right: 0.75rem;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
  .hero-card {
    padding: 4rem 3rem;
  }
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: rgba(99, 102, 241, 0.9);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.arrow-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.btn:hover .arrow-icon {
  transform: translateX(0.25rem);
}

/* Section Styles */
section {
  padding: 5rem 0;
}

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

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin: 0 auto;
}

/* About Section */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-main {
  padding: 2rem;
}

.about-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.about-text {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  padding: 0.75rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

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

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.primary-bg {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary);
}

.secondary-bg {
  background: rgba(147, 51, 234, 0.2);
  color: var(--secondary);
}

.accent-bg {
  background: rgba(34, 197, 194, 0.2);
  color: var(--accent);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Services Section */
.services-section {
  background: linear-gradient(to bottom, var(--background), rgba(64, 64, 64, 0.05));
}

.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card {
  padding: 1.5rem;
  cursor: pointer;
  group: true;
}

.service-icon {
  padding: 0.75rem;
  border-radius: 0.5rem;
  width: fit-content;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

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

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

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

.service-description {
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* Why Work With Me Section */
.why-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.why-card {
  padding: 2rem;
  text-align: center;
}

.why-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.why-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.why-description {
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.portfolio-card {
  padding: 0;
  overflow: hidden;
}

.portfolio-image {
  height: 12rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-placeholder {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.portfolio-description {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.portfolio-metrics {
  display: flex;
  gap: 1rem;
}

.metric {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
}

.cta-card {
  padding: 4rem 2rem;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.cta-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-card {
    padding: 2rem 1.5rem;
  }

  .about-main,
  .feature-card,
  .service-card,
  .why-card {
    padding: 1.5rem;
  }

  .cta-card {
    padding: 2rem 1.5rem;
  }
}
