/* ========================================
   MS Market Solution - Digital Marketing Agency
   Dark Blue & Green Theme
   ======================================== */

:root {
  --primary-dark: #0a1628;
  --primary: #0d2137;
  --primary-light: #1a3a52;
  --accent: #14b8a6;
  --accent-light: #2dd4bf;
  --accent-dark: #0d9488;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --white: #ffffff;
  --gradient-accent: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--primary-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 184, 166, 0.1);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-light);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.logo span {
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-light);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--accent-light);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  background: 
    linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(13, 33, 55, 0.88) 50%, rgba(10, 22, 40, 0.95) 100%),
    url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1920&q=80') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2314b8a6' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subheadline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(20, 184, 166, 0.1);
  transform: translateY(-2px);
}

/* Section Styles */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* About Intro */
.about-intro {
  background: var(--primary);
  padding: 5rem 2rem;
}

.about-intro .content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-intro p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Why Choose Us */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--primary);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(20, 184, 166, 0.15);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(20, 184, 166, 0.3);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(20, 184, 166, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--accent-light);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Services Preview */
.services-preview {
  background: var(--primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.service-item {
  background: var(--primary-light);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.service-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-item .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-light);
}

.service-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, rgba(20, 184, 166, 0.2) 100%);
  text-align: center;
  border-radius: 16px;
  margin: 2rem;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  opacity: 0.1;
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: 1rem;
  position: relative;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(20, 184, 166, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
  display: inline-flex;
}

.footer-brand .logo-img {
  height: 32px;
  width: 32px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--accent-light);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-contact h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--accent-light);
}

.footer-contact p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-contact p i {
  margin-right: 0.5rem;
  color: var(--accent-light);
  width: 1.1em;
  display: inline-block;
}

.about-intro-image {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.about-intro-image img {
  width: 100%;
  height: auto;
  display: block;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Page Headers */
.page-hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(13, 33, 55, 0.85) 100%),
    url('https://images.unsplash.com/photo-1557804506-669a67965ba0?w=1920&q=80') center/cover no-repeat;
}

.page-hero-about {
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(13, 33, 55, 0.85) 100%),
    url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&q=80') center/cover no-repeat;
}

.page-hero-services {
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(13, 33, 55, 0.85) 100%),
    url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1920&q=80') center/cover no-repeat;
}

.page-hero-portfolio {
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(13, 33, 55, 0.85) 100%),
    url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1920&q=80') center/cover no-repeat;
}

.page-hero-contact {
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(13, 33, 55, 0.85) 100%),
    url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?w=1920&q=80') center/cover no-repeat;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Services Page */
.services-detail {
  padding: 4rem 2rem;
}

.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--primary);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(20, 184, 166, 0.15);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: rgba(20, 184, 166, 0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-icon {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  width: 52px;
  height: 52px;
  background: var(--gradient-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 1.4rem;
  box-shadow: var(--shadow);
}

.service-card-content {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-card-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.service-card-link:hover {
  color: var(--accent);
  gap: 0.75rem;
}

.services-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Portfolio Page */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  background: var(--primary);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(20, 184, 166, 0.15);
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(20, 184, 166, 0.3);
}

.portfolio-image {
  height: 220px;
  background: var(--primary-light) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Contact Page */
.contact-section {
  padding: 4rem 2rem;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-details .item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-details .item .icon {
  width: 44px;
  height: 44px;
  background: rgba(20, 184, 166, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  flex-shrink: 0;
}

.contact-details .item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-details .item p {
  margin: 0;
  color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
  background: var(--primary);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(20, 184, 166, 0.15);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--primary-light);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* About Page */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
}

.stat-item .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-light);
  display: block;
  margin-bottom: 0.25rem;
}

.stat-item span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
}

.animate-on-scroll.visible {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: var(--primary);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .social-links {
    justify-content: center;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }
}
