/* css/style.css - Mythri Connects - PERFECT ON TABLET, MOBILE, DESKTOP */
:root {
  --primary: #4F46E5;
  --deep-blue: #2563EB;
  --purple: #7C3AED;
  --silver: #C0C0C0;
  --bg-dark: #0D1117;
  --text-light: #D1D5DB;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.7;
}

/* Glassmorphic */
.glassmorphic {
  background: rgba(13, 17, 23, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header - Tablet Perfect */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 24px;
  transition: padding 0.3s ease;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.logo {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 4px 8px rgba(79, 70, 229, 0.3));
}
header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
}
header p {
  font-size: 0.875rem;
  color: var(--silver);
  margin: 0;
  line-height: 1.3;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 60;
}
.hamburger span {
  width: 100%;
  height: 3px;
  background: #FFFFFF;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}
#nav-toggle:checked ~ .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
#nav-toggle:checked ~ .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}
#nav-toggle:checked ~ .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Desktop Nav */
.desktop-nav {
  display: flex;
  gap: 16px;
}
.desktop-nav a {
  color: var(--silver);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
}
.desktop-nav a:hover {
  color: #FFFFFF;
  background: rgba(79, 70, 229, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.4);
}

/* Mobile Menu - Perfect Center */
#mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(13, 17, 23, 0.98);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 20px 40px;
  z-index: 50;
  overflow-y: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#mobile-nav a {
  padding: 16px 32px;
  font-size: 1.6rem;
  text-align: center;
  margin: 10px 0;
  width: 80%;
  max-width: 320px;
  border-radius: 16px;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(79, 70, 229, 0.1);
  transition: all 0.3s ease;
}
#mobile-nav a:hover {
  background: rgba(79, 70, 229, 0.3);
  transform: translateY(-3px);
}
#close-menu {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  color: #FFFFFF;
  cursor: pointer;
  z-index: 60;
}

/* Body Lock */
body.menu-open {
  overflow: hidden;
  height: 100vh;
}

/* Hero - Tablet Perfect */
.hero {
  padding: 100px 24px;
  text-align: center;
  background: linear-gradient(rgba(13, 17, 23, 0.7), rgba(13, 17, 23, 0.9)), url("https://lh3.googleusercontent.com/aida-public/AB6AXuAde5PZeP5-D3FnWuS_KYc6zOa8cjdIdV9OuZ8BxkTH-1tA1ABhxBuWi96vEXyUohbvuKtHkLTKQJOZDxfLeKWRGYenIQHe9PT6QR1AyWPckrI2tWA51-VuxwYFChVdvr0CksfQ0cXUXKOcX3lMaH89Ers5pTaRcavZHZGAUco43fZCrocYQLt8ckaLKqSXVngOGR4Q02L0V1i_Z3o7q7mFwzOPa0MHW2-SgwvHSdwVorQoIdIVvIxz01TCr1oNHLI5ViSsM-HBlKo");
  background-size: cover;
  background-position: center;
}
.hero-text h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero-text p {
  font-size: 1.2rem;
  color: #D1D5DB;
  max-width: 800px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.cta-btn {
  display: inline-block;
  background: linear-gradient(to right, #2563EB, #7C3AED);
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 16px 48px;
  border-radius: 50px;
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.6);
  transition: all 0.4s ease;
}
.cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(79, 70, 229, 0.5);
}
.hero-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 48px auto 0;
  max-width: 1200px;
  padding: 0 16px;
}
.image-item {
  width: 100%;
  height: 240px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--primary);
  transition: all 0.4s ease;
}
.image-item:hover {
  transform: scale(1.05) translateY(-6px);
  border-color: var(--purple);
  box-shadow: 0 0 24px rgba(79, 70, 229, 0.5);
}

/* Sections */
.features, .testimonials, .portfolio {
  padding: 80px 24px;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}
.features h2, .testimonials h2, .portfolio h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}
.feature-grid, .testimonial-grid, .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.feature-item, .testimonial-item, .portfolio-item {
  padding: 32px;
  border-radius: 16px;
  background: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}
.feature-item:hover, .testimonial-item:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

/* Footer */
footer {
  padding: 64px 24px 48px;
  background: linear-gradient(to right, rgba(37, 99, 235, 0.1), #0D1117, rgba(124, 58, 237, 0.1));
  text-align: center;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}
.social-icons a:hover {
  transform: scale(1.3);
  color: #7C3AED;
}

/* RESPONSIVE - TABLET PERFECT */
@media (max-width: 1024px) and (min-width: 769px) {
  /* Tablet Only */
  header { padding: 14px 20px; }
  .header-content { gap: 16px; }
  header h1 { font-size: 1.6rem; }
  header p { font-size: 0.8rem; }
  .hero { padding: 80px 20px; }
  .hero-text h2 { font-size: 2.8rem; }
  .hero-text p { font-size: 1.1rem; }
  .cta-btn { padding: 14px 40px; font-size: 1.1rem; }
  .hero-images { gap: 20px; }
  .image-item { height: 220px; }
  .features, .testimonials, .portfolio { padding: 70px 20px; }
  .feature-grid, .testimonial-grid, .portfolio-grid { gap: 28px; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .desktop-nav { display: none; }
  header { padding: 12px 16px; }
  header h1 { font-size: 1.5rem; }
  header p { font-size: 0.75rem; }
  .hero { padding: 70px 16px; }
  .hero-text h2 { font-size: 2.2rem; }
  .hero-text p { font-size: 1rem; }
  .cta-btn { padding: 12px 36px; font-size: 1rem; }
  .hero-images { grid-template-columns: 1fr; gap: 16px; }
  .image-item { height: 180px; }
  .feature-grid, .testimonial-grid, .portfolio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 550px) {
  header h1 { font-size: 1.3rem; }
  .hero-text h2 { font-size: 1.9rem; }
  .image-item { height: 160px; }
}

/* TAILWIND .hidden FIX */
#mobile-nav.hidden {
  display: flex !important;
  transform: translateX(-100%);
  opacity: 0;
}
#mobile-nav.show {
  transform: translateX(0);
  opacity: 1;
}