/* ============================
   CONSOLIDATED MIDIAN TECHNOLOGIES STYLES
   ============================ */

/* CSS Variables */
:root {
  --primary: #000066;
  --accent: #ffcc00;
  --light: #ffffff;
  --dark: #1a1a1a;
  --gray: #f4f4f8;
  --whatsapp-green: #25D366;
  --brand-blue: #000066;
  --accent-yellow: #ffcc00;
  --blue: #000066;
  --gold: #ffcc00;
  --white: #ffffff;
}

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

body {
  font-family: "Poppins", sans-serif;
  background: var(--gray);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ============================
   HEADER STYLES
   ============================ */

/* Default Header (index.html, about.html) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--primary);
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Site Header (catalog.html, contact.html) */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary);
  color: var(--light);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Brand Styles */
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

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

.logo-ellipse {
  background: white;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.logo-ellipse img,
.brand img,
.logo {
  width: 40px;
  height: auto;
  object-fit: contain;
}

.brand-title,
header h1 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--light);
  letter-spacing: 1px;
}

/* ============================
   NAVIGATION
   ============================ */

nav {
  display: flex;
  align-items: center;
}

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

nav a,
.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover,
nav a.active,
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* ============================
   HAMBURGER MENU
   ============================ */

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 1001;
}

.burger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 900;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 70px;
  right: 15px;
  background: var(--primary);
  border-radius: 10px;
  padding: 1rem;
  width: 220px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  z-index: 1000;
}

.mobile-nav.show,
.nav-links.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.mobile-nav a,
.nav-links a {
  color: #fff;
  padding: 0.6rem 0;
  text-align: left;
  text-decoration: none;
  font-weight: 500;
}

.mobile-nav a:hover,
.nav-links a:hover {
  color: var(--accent);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive */
@media (max-width: 900px) {
  nav ul {
    display: none;
  }
  
  .burger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    right: 15px;
    background: var(--primary);
    border-radius: 10px;
    padding: 1rem;
    width: 220px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    z-index: 100;
  }
  
  .burger {
    display: flex;
  }
}

/* ============================
   HERO SECTIONS
   ============================ */

/* Index Hero - Full screen with background image */
.hero {
  height: 60vh;
  min-height: 400px;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('./assets/images/bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 0 1rem;
  margin-top: 70px;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin-bottom: 1.8rem;
}

.hero a {
  background: var(--accent);
  color: var(--primary);
  padding: 0.8rem 1.8rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: 0.3s;
}

.hero a:hover {
  background: white;
}

/* Standard Hero Sections (About, Catalog, Contact, Testimonials) */
section.hero {
  background: linear-gradient(135deg, var(--primary), #000033);
  color: var(--light);
  text-align: center;
  padding: 3rem 1rem 2rem;
  margin-top: 70px;
}

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

section.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: auto;
  opacity: 0.9;
}

/* Catalog specific hero button */
section.hero .btn {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  margin-top: 1.5rem;
  text-decoration: none;
  transition: 0.3s;
}

section.hero .btn:hover {
  background: white;
  transform: translateY(-3px);
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================
   CONTENT SECTIONS
   ============================ */

/* Content Sections */
.services {
  padding: 4rem 2rem;
  text-align: center;
  background: white;
  position: relative;
  z-index: 10;
  margin-top: -70px;
  padding-top: 100px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

/* Ensure all content sections have proper z-index */
.about-preview,
.history,
.team,
.cta-row,
footer {
  position: relative;
  z-index: 10;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
}

/* About Preview */
.about-preview {
  background: #eef0ff;
  padding: 4rem 2rem;
  text-align: center;
}

.about-preview p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.about-preview a {
  background: var(--accent);
  color: var(--primary);
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 25px;
  font-weight: bold;
  transition: 0.3s;
}

.about-preview a:hover {
  background: white;
  border: 2px solid var(--accent);
}

/* About Page Sections */
.intro {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 3rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.history {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.history-text h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.history img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Team Section */
.team {
  padding: 4rem 1rem;
  background: #eef1ff;
}

.team h2 {
  color: var(--primary);
  margin-bottom: 3rem;
  text-align: center;
  font-size: 2rem;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto 4rem auto;
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.team-member.photo-left {
  flex-direction: row;
}

.team-member.photo-right {
  flex-direction: row-reverse;
}

.member-image {
  flex: 0 0 300px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.team-member img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.member-info {
  flex: 1;
  text-align: left;
}

.team-member h4 {
  margin: 0 0 0.5rem 0;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.team-member .role {
  margin: 0 0 1rem 0;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
}

.team-member .description {
  margin: 0;
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

/* CTA Section */
.cta-row {
  text-align: center;
  margin: 3rem 0;
}

.btn {
  display: inline-block;
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  margin: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

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

.btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* ============================
   CATALOG PAGE STYLES
   ============================ */

/* Portfolio Section */
.portfolio {
  text-align: center;
  padding: 4rem 1rem 3rem;
  background: white;
}

.portfolio h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.portfolio p {
  color: #333;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-button-container {
  text-align: center;
  margin: 3rem 0;
}

.portfolio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, #000066, #000088);
  color: white;
  padding: 1.5rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 102, 0.3);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.portfolio-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 102, 0.4);
  background: linear-gradient(135deg, #000088, #0000aa);
  border-color: var(--accent);
}

.portfolio-btn:active {
  transform: translateY(-1px);
}

.btn-icon {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-text {
  font-size: 1.2rem;
  font-weight: 700;
}

.btn-arrow {
  font-size: 0.85rem;
  opacity: 0.8;
  font-style: italic;
}

/* Services Menu */
.services {
  padding: 4rem 1rem;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.service-category {
  margin-bottom: 3rem;
}

.service-category h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.price-table th,
.price-table td {
  padding: 0.8rem;
  border: 1px solid #ddd;
  text-align: left;
}

.price-table th {
  background: var(--primary);
  color: white;
}

.price-table tr:nth-child(even) {
  background: #f8f8ff;
}

/* ============================
   TESTIMONIALS PAGE STYLES
   ============================ */

.testimonials {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: auto;
}

.testimonials h2 {
  color: var(--blue);
  margin-bottom: 2rem;
  font-size: 2rem;
}

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

.testimonial {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial h4 {
  color: var(--blue);
  font-weight: 600;
}

/* Ratings */
.ratings {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem;
}

.ratings span {
  color: var(--gold);
  font-size: 1.2rem;
}

/* Share Experience Form */
.share {
  padding: 3rem 1rem;
  text-align: center;
}

.share h3 {
  color: var(--blue);
  margin-bottom: 1rem;
}

.share form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.share input, .share textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.share button {
  background: var(--gold);
  color: var(--blue);
  font-weight: 600;
  border: none;
  padding: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.share button:hover {
  background: #e6b800;
}

/* CTA */
.cta {
  text-align: center;
  padding: 2rem 1rem;
}

.cta a {
  background: var(--gold);
  color: var(--blue);
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.cta a:hover {
  background: #e6b800;
}

/* ============================
   CONTACT PAGE STYLES
   ============================ */

.contact-section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: auto;
}

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

.contact-grid form {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 2rem;
}

form h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

form input,
form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  resize: none;
}

form button {
  background: var(--accent);
  border: none;
  color: black;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  background: #e6b800;
  transform: translateY(-2px);
}

.contact-info {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 2rem;
}

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.8rem;
}

.map {
  margin-top: 1rem;
  border-radius: 10px;
  overflow: hidden;
  height: 250px;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================
   FOOTER STYLES
   ============================ */

footer,
.site-footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

footer a,
.site-footer a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.social-icons {
  margin-top: 1rem;
}

.social-icons a {
  color: white;
  margin: 0 8px;
  font-size: 1.3rem;
  text-decoration: none;
}

.back-to-top {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: #ffcc00;
  color: #000;
  padding: 0.6rem;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
}

/* ============================
   WHATSAPP STYLES
   ============================ */

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  padding: 15px;
  border-radius: 50%;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s;
  z-index: 1000;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* WhatsApp Arrow Indicator (About Page) */
.whatsapp-arrow {
  position: fixed;
  bottom: 100px;
  right: 40px;
  z-index: 99;
  animation: blinkArrow 2s infinite;
}

.arrow-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.whatsapp-btn-with-text {
  background: #25D366;
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.whatsapp-btn-with-text:hover {
  transform: scale(1.05);
}

.whatsapp-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-text {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.arrow-icon {
  font-size: 2rem;
  color: #25D366;
  animation: bounceArrow 1s infinite;
  transform: rotate(45deg);
}

@keyframes blinkArrow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes bounceArrow {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(-5px); }
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */

@media (max-width: 768px) {
  .history {
    grid-template-columns: 1fr;
  }
  
  .team-member.photo-left,
  .team-member.photo-right {
    flex-direction: column;
    text-align: center;
  }

  .member-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .member-info {
    text-align: center !important;
    margin-top: 1.5rem;
  }

  .team-member {
    padding: 1.5rem;
    gap: 0;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .price-table th, .price-table td {
    font-size: 0.9rem;
  }
  
  .portfolio-btn {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.2rem 2rem;
    text-align: center;
  }

  .btn-text {
    font-size: 1.1rem;
  }

  .btn-arrow {
    font-size: 0.8rem;
  }
  
  .whatsapp-arrow {
    bottom: 80px;
    right: 30px;
  }
  
  .whatsapp-btn-with-text {
    padding: 0.6rem 1rem;
    gap: 0.6rem;
  }
  
  .whatsapp-icon {
    font-size: 1.2rem;
  }
  
  .whatsapp-text {
    font-size: 0.8rem;
  }
  
  .arrow-icon {
    font-size: 1.5rem;
  }
}
