/* ========================================
   Firstmedex - Main Stylesheet
   ======================================== */

/* ----------------------------------------
   CSS Variables
   ---------------------------------------- */
:root {
  --teal: #3BBFBF;
  --teal-dark: #2A9D9D;
  --teal-light: #E8F7F7;
  --charcoal: #2C3E50;
  --slate: #5A6C7D;
  --light-gray: #F8FAFB;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(59, 191, 191, 0.12);
  --shadow-hover: 0 12px 40px rgba(59, 191, 191, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ----------------------------------------
   Header
   ---------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(59, 191, 191, 0.1);
  transition: all 0.3s ease;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo a {
  display: flex;
  align-content: center;
}

.logo img {
  width: 48px;
  height: 48px;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
}

.logo-text span {
  color: var(--teal);
}

nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

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

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

nav a:hover {
  color: var(--teal);
}

nav a:hover::after {
  width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--charcoal);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--white) 0%, var(--teal-light) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(59, 191, 191, 0.08) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

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

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.hero-text h1 span {
  color: var(--teal);
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--slate);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.stat {
  text-align: left;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--slate);
  margin-top: 0.25rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 24px;
  box-shadow: var(--shadow-hover);
}


/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--teal);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(59, 191, 191, 0.3);
}

.cta-button:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 191, 191, 0.4);
}

.cta-button svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.cta-button:hover svg {
  transform: translateX(4px);
}

/* ----------------------------------------
   Section Styles
   ---------------------------------------- */
section {
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--slate);
  font-size: 1.1rem;
}

/* ----------------------------------------
   Products Section
   ---------------------------------------- */
#products {
  background: var(--light-gray);
}

.products-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  position: relative;
}

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

.product-image {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--teal);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-content {
  padding: 2rem;
}

.product-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.product-content p {
  color: var(--slate);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.feature-tag {
  background: var(--teal-light);
  color: var(--teal-dark);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(59, 191, 191, 0.15);
}

.spec {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spec svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
}

.spec span {
  font-size: 0.85rem;
  color: var(--slate);
}

/* Skills List */
.skills-list {
  margin: 1.5rem 0;
}

.skills-list h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skills-list h4 svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
}

.skills-list ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skills-list li {
  background: var(--light-gray);
  color: var(--slate);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

.section-header h2 a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

.section-header h2 a:hover {
  color: var(--teal);
}
/* ----------------------------------------
   About Section
   ---------------------------------------- */
#about {
  background: var(--white);
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--slate);
  margin-bottom: 1rem;
}

.about-features {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.about-feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--teal-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--teal);
}

.about-feature h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.about-feature p {
  font-size: 0.95rem;
  margin: 0;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

/* ----------------------------------------
   Contact Section
   ---------------------------------------- */
#contact {
  background: linear-gradient(135deg, var(--charcoal) 0%, #1a252f 100%);
  color: var(--white);
}

#contact .section-header h2 {
  color: var(--white);
}

#contact .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

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

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.contact-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.contact-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.contact-card a {
  color: var(--teal);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
footer {
  background: #1a252f;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo img {
  width: 36px;
  height: 36px;
}

.footer-logo span {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

.footer-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

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

.footer-links a:hover {
  color: var(--teal);
}

/* ----------------------------------------
   Responsive Design
   ---------------------------------------- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 400px;
    margin: 0 auto;
  }

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

  .about-image {
    order: -1;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }

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

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

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat {
    text-align: center;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    padding: 0 0.5rem;
  }

  .product-card {
    border-radius: 16px;
  }

  .product-image {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0.75rem 1rem;
  }

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

  .logo-text {
    font-size: 1.25rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

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

  .product-content {
    padding: 1.5rem;
  }

  .product-content h3 {
    font-size: 1.25rem;
  }
}
