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

:root {
  --primary-color: #4f46e5;
  --primary-dark: #4338ca;
  --secondary-color: #10b981;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

/* Fade-in animation base */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  padding: 6rem 0;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.highlight {
  background: linear-gradient(120deg, #fde047 0%, #facc15 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s infinite;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--white);
  color: var(--primary-color);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.icon {
  width: 20px;
  height: 20px;
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  background-color: var(--white);
}

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

.service-card {
  background: var(--bg-light);
  padding: 2.5rem;
  border-radius: 1rem;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.service-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.service-icon svg {
  width: 40px;
  height: 40px;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1rem;
}

/* Portfolio Showcase */
.portfolio-showcase {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 3rem;
  border-radius: 1.5rem;
  margin-bottom: 3rem;
  color: var(--white);
}

.portfolio-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.portfolio-description {
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.portfolio-img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

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

/* Contact CTA */
.contact-cta {
  text-align: center;
  padding: 3rem;
  background: var(--bg-light);
  border-radius: 1.5rem;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

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

/* Apps Section */
.apps-section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

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

.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  animation: fadeIn 0.8s ease-out;
}

/* App Card */
.app-card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.app-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow: hidden;
}

.app-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.app-card:hover .app-image {
  transform: scale(1.05);
}

.app-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.app-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.app-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  margin-top: auto;
}

.app-link:hover {
  color: var(--primary-dark);
  gap: 0.75rem;
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
}

.footer p {
  opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes shimmer {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

/* Responsive Design */

/* Large Tablets and Small Desktops (769px - 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 2.5rem;
  }

  .hero {
    padding: 5rem 0;
  }

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

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

  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }

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

  .portfolio-images {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .portfolio-showcase {
    padding: 2.5rem;
  }

  .services-section,
  .apps-section {
    padding: 4rem 0;
  }
}

/* Tablets (481px - 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero {
    padding: 3.5rem 0;
    clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
  }

  .hero-title {
    font-size: 2.25rem;
    line-height: 1.3;
  }

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

  .hero-description {
    font-size: 1rem;
    line-height: 1.7;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }

  .services-section,
  .apps-section {
    padding: 3.5rem 0;
  }

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

  .service-card {
    padding: 2rem;
  }

  .portfolio-showcase {
    padding: 2rem;
    border-radius: 1rem;
  }

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

  .portfolio-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .portfolio-images {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .contact-cta {
    padding: 2.5rem 1.5rem;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .cta-description {
    font-size: 1.125rem;
  }

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

  .app-card.expanded {
    grid-column: span 1;
  }

  /* Ensure proper touch targets */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.75rem;
  }

  .app-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Mobile Phones (320px - 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 2.5rem 0 3rem;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  }

  .hero-title {
    font-size: 1.875rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }

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

  .hero-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .section-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 2rem;
  }

  .services-section,
  .apps-section {
    padding: 3rem 0;
  }

  .service-card {
    padding: 1.75rem;
  }

  .service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.25rem;
  }

  .service-icon svg {
    width: 35px;
    height: 35px;
  }

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

  .service-description {
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .portfolio-showcase {
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
  }

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

  .portfolio-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
  }

  .portfolio-images {
    gap: 1rem;
  }

  .contact-cta {
    padding: 2rem 1.25rem;
    border-radius: 1rem;
  }

  .cta-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .cta-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-height: 48px;
  }

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

  .app-name {
    font-size: 1.125rem;
  }

  .app-description {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .app-link {
    font-size: 0.875rem;
    min-height: 44px;
  }

  .footer {
    padding: 1.5rem 0;
    margin-top: 3rem;
  }

  .footer p {
    font-size: 0.875rem;
  }
}

/* Very Small Phones (320px - 374px) */
@media (max-width: 374px) {
  .container {
    padding: 0 0.875rem;
  }

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

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

  .hero-description {
    font-size: 0.875rem;
  }

  .btn {
    padding: 0.8125rem 1.25rem;
    font-size: 0.875rem;
  }

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

  .service-card {
    padding: 1.5rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  .service-icon svg {
    width: 30px;
    height: 30px;
  }

  .service-title {
    font-size: 1.125rem;
  }

  .service-description {
    font-size: 0.875rem;
  }

  .portfolio-showcase {
    padding: 1.25rem;
  }

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

  .portfolio-description {
    font-size: 0.875rem;
  }

  .contact-cta {
    padding: 1.75rem 1rem;
  }

  .cta-title {
    font-size: 1.375rem;
  }

  .cta-description {
    font-size: 0.9375rem;
  }
}

/* Notification Banner */
.notification-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--secondary-color);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 90%;
  text-align: center;
}

.notification-banner.show {
  transform: translateX(-50%) translateY(0);
}

/* Mobile notification adjustments */
@media (max-width: 768px) {
  .notification-banner {
    top: 10px;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    max-width: 95%;
  }
}

@media (max-width: 480px) {
  .notification-banner {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
  }

  .notification-banner .icon {
    width: 18px;
    height: 18px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
  font-size: 1.125rem;
}

/* Error State */
.error {
  text-align: center;
  padding: 3rem;
  color: #ef4444;
  font-size: 1.125rem;
}
