/* ===== GLOBAL STYLES ===== */
:root {
  --primary: #2f3cff;
  --accent: #f5c542;
  --dark: #0f172a;
  --text: #334155;
  --bg: #f7f9fc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  padding-top: 80px; /* Space for fixed navbar */
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
  line-height: 1.4;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.98); /* Fallback for browsers without backdrop-filter */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  padding: 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
  max-width: 260px;
  overflow: visible;
  white-space: nowrap;
}

.logo-icon {
  width: 60px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.logo-text span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark);
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-btn.call-btn {
  border-color: #1a73e8;
}

.nav-btn.call-btn:hover {
  background: linear-gradient(135deg, #1a73e8, #4285f4);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 115, 232, 0.3);
}

.nav-btn.whatsapp-btn {
  border-color: #25d366;
}

.nav-btn.whatsapp-btn:hover {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(47, 60, 255, 0.1);
  transition: all 0.3s ease;
}

.call-btn .btn-icon {
  background: rgba(26, 115, 232, 0.1);
}

.whatsapp-btn .btn-icon {
  background: rgba(37, 211, 102, 0.1);
}

.nav-btn:hover .btn-icon {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.btn-icon i {
  font-size: 1.2rem;
  color: inherit;
}

.btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.btn-label {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  color: inherit;
}

.btn-info {
  font-size: 0.65rem;
  opacity: 0.8;
  line-height: 1;
  color: inherit;
  font-weight: 500;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  background: none;
  border: none;
}

/* ===== HEADER ===== */
header {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at top right, #e0e7ff, #f7f9fc 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.6rem;
  line-height: 1.2;
  margin-bottom: 32px;
}

.hero-text h1 span {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.15rem;
  margin-bottom: 48px;
}

.btn {
  padding: 16px 38px;
  background: linear-gradient(90deg, var(--primary), #5b6bff);
  color: #fff;
  border-radius: 40px;
  font-weight: 600;
  display: inline-block;
  transition: 0.4s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 40px rgba(47,60,255,0.3);
}

.hero-image img {
  width: 100%;
  border-radius: 26px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.18);
}

/* ===== SECTION BASE ===== */
section {
  padding: 50px 0;
}

.section-title {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 32px;
}

.section-title span {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-sub {
  max-width: 760px;
  margin: 0 auto 80px;
  text-align: center;
  font-size: 1.1rem;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: stretch;
  justify-items: center;
}

.about-box {
  background: #fff;
  padding: 60px;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.about-box ul {
  margin-top: 24px;
}

.about-box li {
  list-style: none;
  padding-left: 26px;
  margin-bottom: 18px;
  position: relative;
}

.about-box li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.about-box:nth-child(2) {
  padding: 60px 50px; /* increased padding inside */
  margin-top: 0; /* remove extra space for alignment */
}
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    justify-items: center;
  }
  .about-box {
    width: 100%;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
  }
  .about-card {
    align-items: center;
    text-align: center;
  }
  .about-card-header {
    justify-content: center;
    width: 100%;
  }
}

.about-box:nth-child(2) h3 {
  font-size: 1.9rem; /* slightly bigger header */
}

.about-box:nth-child(2) p {
  font-size: 1rem;
  line-height: 1.8; /* more vertical spacing */
}

/* About Card Styles */
.about-card {
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.about-card p {
 font-size: 1rem;
}

.about-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.about-card-icon {
  font-size: 2rem;
  color: #1a73e8;
  display: flex;
  align-items: center;
}
.about-card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin: 0;
  color: #1175bd;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
}
.about-card-desc {
  font-size: 1em;
  color: #333;
  margin: 0;
  font-family: 'Inter', sans-serif;
}
.about-card-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #444;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}
.about-card-list li {
  list-style: none;
  padding-left: 26px;
  margin-bottom: 18px;
  position: relative;
  font-family: 'Inter', sans-serif;
}
.about-card-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary);
}
.about-card-note {
  margin: 0;
  color: #555;
  font-size: 1em;
  font-family: 'Inter', sans-serif;
}

/* ===== SERVICES - FIXED FLIP EFFECT ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.service-card {
  height: 380px;
  perspective: 1000px;
  cursor: pointer;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 26px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 26px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.service-card-front {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.service-card-back {
  background: linear-gradient(135deg, #f0f4ff, #e0e7ff);
  transform: rotateY(180deg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

.service-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.service-card-front p {
  color: var(--text);
  opacity: 0.9;
}

.service-card-back h4 {
  color: var(--dark);
  margin-bottom: 20px;
  font-size: 1.3rem;
  width: 100%;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(47, 60, 255, 0.1);
}

.service-card-back ul {
  width: 100%;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}

.service-card-back li {
  list-style: none;
  padding: 10px 0 10px 30px;
  margin-bottom: 8px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.service-card-back li:last-child {
  border-bottom: none;
}

.service-card-back li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Scrollbar styling */
.service-card-back ul::-webkit-scrollbar {
  width: 5px;
}

.service-card-back ul::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
}

.service-card-back ul::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* ===== CONTACT ===== */
.contact {
  background: linear-gradient(135deg, var(--dark), #020617);
  color: #e5e7eb;
}

.contact-box {
  max-width: 720px;
  margin: auto;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  padding: 60px;
  border-radius: 30px;
}

.contact-box h2 {
  color: #fff;
}

.contact-box p {
  text-align: center;
  margin-top: 16px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.contact-form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-size: 1rem;
  background: rgba(255,255,255,0.9);
  color: #0f172a;
  transition: 0.3s;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 12px rgba(47,60,255,0.3);
}

.contact-form button.btn {
  align-self: flex-start;
  padding: 16px 40px;
  border-radius: 40px;
  font-weight: 600;
  background: linear-gradient(90deg, var(--primary), #5b6bff);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: 0.4s;
}

.contact-form button.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 20px 40px rgba(47,60,255,0.3);
}

/* Responsive for mobile */
@media(max-width: 600px) {
  .contact-form button.btn {
    width: 100%;
  }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.08);
  transition: transform 0.4s, box-shadow 0.4s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 70px rgba(0,0,0,0.12);
}

.product-image {
  width: 100%;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: auto;      /* Keeps original image resolution */
  display: block;
}

.product-card h3,
.product-card .price,
.product-card .description,
.product-card .btn-interested {
  padding: 0 20px;  /* Add horizontal padding */
}

.product-card h3 {
  font-size: 1.25rem;
  margin: 16px 0 6px;
}

.product-card .price {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card .description {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 16px;
}

.btn-interested {
  display: block;             /* Center horizontally with margin auto */
  padding: 10px 24px !important;         /* Top/bottom 10px, left/right 24px */
  font-weight: 600;
  border-radius: 30px;
  background: #34d399;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  margin: 20px auto 20px;    /* Top 20px, bottom 20px, centered horizontally */
}

.btn-interested:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(52,211,153,0.3);
}

/* ===== FOOTER ===== */
footer {
  background: #020617;
  color: #94a3b8;
  text-align: center;
  padding: 30px;
  font-size: 0.95rem;
}

/* ===== RESPONSIVE ===== */
@media(max-width: 1024px) {
  .nav-links {
    gap: 30px;
  }
}

@media(max-width: 900px) {
  .hero-grid, .about-grid { 
    grid-template-columns: 1fr; 
  }
  
  header { 
    height: auto; 
    padding: 140px 0; 
  }
  
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .about-box {
    padding: 40px;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 30px;
    gap: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }
  
  .service-card {
    height: 360px;
  }
  
  .service-card-front,
  .service-card-back {
    padding: 30px 20px;
  }
  
  .service-card i {
    font-size: 2.5rem;
  }
  
  .service-card h3 {
    font-size: 1.3rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .contact-box {
    padding: 40px 30px;
  }
  
  body {
    padding-top: 70px;
  }
  
  .navbar {
    height: 70px;
  }
  
  .nav-container {
    height: 70px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .btn {
    padding: 14px 30px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    height: 350px;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .service-card-front,
  .service-card-back {
    padding: 25px 20px;
  }
  
  section {
    padding: 80px 0;
  }
  
  .logo-text {
    font-size: 1.3rem;
  }
  
  .logo-icon {
    width: 55px;
    height: 35px;
    font-size: 1.1rem;
  }
}

/* ===== CONTACT SECTION STYLES ===== */
.contact-info {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.contact-info p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--text);
}

.contact-info i {
  color: var(--primary);
  width: 20px;
}

.quick-contact-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 30px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  min-width: 130px;
  justify-content: center;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.call-btn {
  background: linear-gradient(135deg, #1a73e8, #4285f4);
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.email-btn {
  background: linear-gradient(135deg, #ea4335, #d33b2c);
}

.contact-btn i {
  font-size: 1.1rem;
}

/* Mobile Navigation and Contact Improvements */
@media (max-width: 768px) {
  .nav-buttons {
    gap: 10px;
  }
  
  .nav-btn {
    padding: 8px 12px;
    min-width: 120px;
    gap: 8px;
  }
  
  .btn-icon {
    width: 28px;
    height: 28px;
  }
  
  .btn-icon i {
    font-size: 1rem;
  }
  
  .btn-label {
    font-size: 0.75rem;
  }
  
  .btn-info {
    font-size: 0.6rem;
  }
  
  .quick-contact-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  .contact-btn {
    width: 200px;
    padding: 16px 24px;
  }
  
  .contact-info {
    gap: 12px;
  }
  
  .contact-info p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .nav-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .nav-btn {
    padding: 8px 10px;
    min-width: 100px;
    gap: 6px;
  }
  
  .btn-icon {
    width: 24px;
    height: 24px;
  }
  
  .btn-icon i {
    font-size: 0.9rem;
  }
  
  .btn-label {
    font-size: 0.7rem;
  }
  
  .btn-info {
    font-size: 0.55rem;
  }
  
  .contact-btn {
    width: 180px;
    padding: 14px 20px;
    font-size: 0.9rem;
  }
}
