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

:root {
  /* Updated color system for modern Apple-style design */
  --bg-primary: #ffffff;
  --bg-secondary: #f9f9f9;
  --text-primary: #1d1d1d;
  --text-secondary: #666666;
  --border-color: #e5e5e5;
  --accent: #000000;
  --accent-light: #f5f5f5;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
}

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

/* Header with sticky positioning and minimal design */
.header {
  position: fixed;
  left: 0;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex: 1;
}

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

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

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

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  width: 24px;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero section with large typography */
.hero {
  padding: 8rem 0 6rem;
}

.hero .container {
  /* display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 550px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-visual {
  flex: 1;
  height: 500px;
  overflow: hidden;
  aspect-ratio: 1;
  /* background: linear-gradient(135deg, var(--accent-light) 0%, #f0f0f0 100%); */
  /* border-radius: 12px; */
}

.hero-visual canvas{
  width: 100%;
  height: 100%;
  transform: scale(2);
}

.hero-visual img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo{
  color: var(--accent);
  text-decoration: none;
}

button:disabled{
  opacity: .5;
}

/* Button styles with hover effects */
.btn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  width: fit-content;
}

.px-0{
  padding-inline: 0;
}

.my-3{
  margin: 30px auto;
}

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

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Section title styling */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* Services section with numbered cards */
.services {
  padding: 6rem 0;
}

app-root{
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

app-support{
  flex: 1;
}

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

.mx-0{
  margin-inline: 0!important;
}

.service-card {
  padding: 2.5rem;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  background-color: var(--bg-primary);
  border-color: var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Portfolio section with image galleries */
.portfolio {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

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

.portfolio-item {
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.portfolio-item:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.portfolio-image {
  width: 100%;
  overflow: hidden;
  background-color: var(--accent-light);
}

.portfolio-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-info {
  padding: 2rem;
}

.portfolio-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portfolio-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-stack span {
  padding: 0.4rem 0.8rem;
  background-color: var(--accent-light);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Stats section with large numbers */
.stats {
  padding: 6rem 0;
  background-color: var(--bg-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

/* About section with two-column layout */
.about {
  padding: 6rem 0;
}

.about-grid {
  display: flex;
}

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

.about-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.feature {
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: 8px;
}

.feature h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Contact section with form */
.contact {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

.contact-form {
  max-width: 600px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.contact-form button {
  align-self: center;
}

/* Footer with dark background */
.footer {
  background-color: var(--accent);
  color: var(--bg-primary);
  padding: 4rem 0 2rem;
}

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

.footer-section h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--bg-primary);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* Responsive design for tablets and mobile */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--bg-primary);
    padding: 1rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: none;
  }

  .nav.active {
    display: flex;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-visual {
    aspect-ratio: 1;
    min-height: 300px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .services,
  .about,
  .contact {
    padding: 4rem 0;
  }

  .portfolio {
    padding: 4rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-form {
    padding: 0;
  }

  .btn {
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }
}
