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

:root {
  --color-dark-1: #021826;
  --color-dark-2: #03283e;
  --color-dark-3: #011c27;
  --color-teal-1: #01595a;
  --color-teal-2: #0f8d8c;
  --color-white: #ffffff;
  --color-gray: #94a3b8;
  --color-light-gray: #e2e8f0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  background-color: var(--color-dark-1);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(2, 24, 38, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 141, 140, 0.1);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(2, 24, 38, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  height: 40px;
  width: auto;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

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

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

.nav-link:hover {
  color: var(--color-teal-2);
}

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

.cta-button {
  background-color: var(--color-teal-2);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid var(--color-teal-2);
}

.cta-button:hover {
  background-color: transparent;
  transform: translateY(-2px);
}

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

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background-color: var(--color-white);
  transition: all 0.3s ease;
}

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

.hero-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  opacity: 0.15;
  pointer-events: none;
}

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

/* Mobile responsive hero background */
@media (max-width: 768px) {
  .hero-background {
    width: 80%;
    opacity: 0.25;
    top: 10%;
    right: -10%;
  }
  
  .hero-pattern {
    object-fit: contain;
    object-position: center right;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  animation: fadeInUp 1s ease;
}

/* Mobile apps page specific hero styles */
.mobile-hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  animation: fadeInUp 1s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  text-align: left;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mobile-img {
  max-width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
}

.title-line {
  display: block;
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-teal-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-gray);
  margin-bottom: 2.5rem;
  max-width: 700px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--color-teal-2);
  color: var(--color-white);
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--color-teal-2);
}

.hero-cta:hover {
  background-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(15, 141, 140, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-teal-2), transparent);
  animation: scrollAnimation 2s ease-in-out infinite;
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  color: var(--color-teal-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
}

/* About Section */
.about {
  padding: 6rem 0;
  background-color: var(--color-dark-2);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

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

.about-paragraph {
  font-size: 1.1rem;
  color: var(--color-gray);
  line-height: 1.8;
}

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

.stat-card {
  background: linear-gradient(135deg, var(--color-dark-3) 0%, var(--color-dark-1) 100%);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(15, 141, 140, 0.2);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-teal-2);
  box-shadow: 0 10px 30px rgba(15, 141, 140, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-teal-2);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-gray);
}

/* Services Section */
.services {
  padding: 6rem 0;
  background-color: var(--color-dark-1);
}

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

.service-card {
  background: linear-gradient(135deg, var(--color-dark-3) 0%, var(--color-dark-2) 100%);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(15, 141, 140, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-teal-2);
  box-shadow: 0 15px 40px rgba(15, 141, 140, 0.2);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(15, 141, 140, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-teal-2);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--color-teal-2);
  color: var(--color-white);
  transform: scale(1.1);
}

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

.service-description {
  font-size: 1rem;
  color: var(--color-gray);
  line-height: 1.7;
}

.service-btn {
  display: inline-block;
  background: linear-gradient(135deg, rgba(0, 200, 200, 0.8) 0%, rgba(0, 150, 150, 0.8) 100%);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: 1rem;
}

.service-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 200, 200, 0.3);
  background: linear-gradient(135deg, rgba(0, 150, 150, 0.9) 0%, rgba(0, 200, 200, 0.9) 100%);
}

/* Why Us Section */
.why-us {
  padding: 6rem 0;
  background-color: var(--color-dark-1);
}

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

.why-card {
  background: linear-gradient(135deg, var(--color-dark-3) 0%, var(--color-dark-2) 100%);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(15, 141, 140, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-teal-1), var(--color-teal-2));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.why-card:hover::before {
  transform: scaleX(1);
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-teal-2);
}

.why-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(15, 141, 140, 0.2);
  margin-bottom: 1rem;
}

.why-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.why-description {
  font-size: 1rem;
  color: var(--color-gray);
  line-height: 1.7;
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background-color: var(--color-dark-1);
}

.contact-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-info {
  position: sticky;
  top: 100px;
}

.contact-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-size: 1.3rem;
  color: var(--color-gray);
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-white);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(15, 141, 140, 0.05);
  border: 1px solid rgba(15, 141, 140, 0.1);
}

.contact-link:hover {
  color: var(--color-teal-2);
  background: rgba(15, 141, 140, 0.1);
  border-color: var(--color-teal-2);
  transform: translateX(5px);
}

.contact-link svg {
  color: var(--color-teal-2);
}

/* Contact Form */
.contact-form {
  background: linear-gradient(135deg, var(--color-dark-3) 0%, var(--color-dark-2) 100%);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(15, 141, 140, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  background-color: var(--color-dark-1);
  border: 2px solid rgba(15, 141, 140, 0.2);
  border-radius: 12px;
  color: var(--color-white);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-teal-2);
  box-shadow: 0 0 0 4px rgba(15, 141, 140, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--color-teal-2);
  color: var(--color-white);
  padding: 1rem 2rem;
  border: 2px solid var(--color-teal-2);
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(15, 141, 140, 0.3);
}

/* Footer */
.footer {
  background-color: var(--color-dark-3);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(15, 141, 140, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo-img {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--color-gray);
  font-size: 1rem;
  max-width: 300px;
}

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

.footer-heading {
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--color-gray);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--color-teal-2);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 141, 140, 0.1);
  text-align: center;
}

.footer-copyright {
  color: var(--color-gray);
  font-size: 0.9rem;
}

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

@keyframes scrollAnimation {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(20px);
    opacity: 0.5;
  }
}

/* Responsive Design */
@media (max-width: 968px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--color-dark-2);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(15, 141, 140, 0.2);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .cta-button {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .contact-info {
    position: static;
  }
}

@media (max-width: 640px) {

  .services-grid,
  .why-us-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-form {
    padding: 2rem;
  }
}

/* Portfolio Section */
.portfolio {
  padding: 6rem 0;
  background: var(--color-dark-2);
}

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

.portfolio-item {
  background: var(--color-dark-1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
  height: 200px;
  background: linear-gradient(135deg, var(--vibrant-teal) 0%, var(--medium-teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

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

.portfolio-placeholder {
  color: var(--white);
  font-size: 2.5rem;
}

.portfolio-content {
  padding: 2rem;
}

.portfolio-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.portfolio-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

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

  .tech-tag {
    background: var(--vibrant-teal);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
  }

/* Mobile responsive styles for hero with image */
@media (max-width: 768px) {
  .mobile-hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-mobile-img {
    max-height: 400px;
  }
}

/* Contact Page Styles */
.contact-main {
  padding: 8rem 0 6rem;
  background: var(--white);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.contact-main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--vibrant-teal);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.contact-main-subtitle {
  font-size: 1.25rem;
  color: var(--color-gray);
  line-height: 1.6;
  margin-bottom: 3rem;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 400px;
}

.contact-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 200, 200, 0.1);
  border-color: var(--vibrant-teal);
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  background: var(--vibrant-teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.contact-card-content {
  flex: 1;
}

.contact-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark-1);
  margin-bottom: 0.5rem;
}

.contact-card-detail {
  font-size: 0.9rem;
  color: var(--vibrant-teal);
  font-weight: 600;
  margin: 0;
}

.contact-logo-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-logo-container {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--vibrant-teal) 0%, var(--medium-teal) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 200, 200, 0.2);
}

.contact-favicon {
  width: 120px;
  height: auto;
}

/* Mobile responsive contact page */
@media (max-width: 768px) {
  .contact-main-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .contact-logo-container {
    width: 250px;
    height: 250px;
  }

  .contact-favicon {
    width: 100px;
  }

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

  .contact-card {
    padding: 1rem;
  }
}
