/* style.css - UPDATED WITH RESPONSIVE NAV FIXES */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  background: #f8f9fa;
  min-height: 100vh;
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
}

/* ROOT VARIABLES FOR CONSISTENT COLORS */
:root {
  --nav-bg-transparent: rgba(255, 255, 255, 0.15);
  --nav-bg-transparent-hover: rgba(255, 255, 255, 0.25);
  --nav-border-transparent: rgba(255, 255, 255, 0.3);
  --nav-text-color: #fff;
  --hero-overlay: linear-gradient(rgba(0, 168, 255, 0.4), rgba(0, 0, 0, 0.5));
  --nav-gradient: linear-gradient(to right, #1e5799 0%, #3ccdbb 0%, #16c9f6 100%);
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

li {
  list-style: none;
}

p {
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 400;
  color: #606060;
}

.extradiv h2,
.servicediv h2 {
  font-size: 0.9rem;
  margin: 20px 0 15px 0;
  font-weight: bold;
  line-height: 1.1;
  word-spacing: 4px;
}

i {
  color: #2fccd0;
}

/* XXXXXXXXXXXXXXXXXXXXX common style ends here XXXXXXXXXXXXXXXXXXX */

.header {
  width: 100%;
  height: 100vh;
  clip-path: polygon(100% 0, 100% 77%, 50% 100%, 0 75%, 0 0);
  position: relative;
  overflow: hidden;
}

/* ===== RESPONSIVE NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s ease;
  background: transparent;
}

/* Navbar when scrolled (will be added via JavaScript) */
.navbar.scrolled {
  background: black;
  
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
/* When navbar is scrolled, invert the logo */
.navbar.scrolled .logo-img {
  filter: brightness(0) invert(1);
}
/* Menu button styling */
.menu-btn {
  background: white;
  border: 1px solid var(--nav-border-transparent);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  color: black;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
  backdrop-filter: blur(5px);
  white-space: nowrap;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.menu-icon {
  font-size: 16px;
  opacity: 0.9;
}

.menu-text {
  color: black;
}

/* Logo styling */
.logo-img {
  height: 35px;
  width: auto;
  object-fit: contain;
  
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

/* Navbar responsive adjustments */
@media (max-width: 768px) {
  .navbar {
    height: 60px;
    padding: 0 15px;
  }
  
  .menu-btn {
    padding: 6px 12px;
    font-size: 13px;
    gap: 6px;
  }
  
  .menu-icon {
    font-size: 14px;
  }
  
  .logo-img {
    height: 30px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0 10px;
  }
  
  .menu-text {
    display: none; /* Hide text on very small screens */
  }
  
  .menu-btn {
    padding: 8px;
    width: 40px;
    height: 40px;
    justify-content: center;
    gap: 0;
  }
  
  .logo-img {
    height: 28px;
  }
}

/* ===== CENTERED MENU OVERLAY ===== */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: black;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* MENU HEADER - CENTERED */
.menu-header {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 15px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.close-icon {
  font-size: 16px;
  opacity: 0.9;
}

.overlay-logo {
  height: 35px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.overlay-logo:hover {
  opacity: 1;
}

/* MENU CONTENT - CENTERED AND RESPONSIVE */
.menu-content {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  padding: 40px;
  flex: 1;
  max-width: 1400px;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  align-self: center;
}

/* MENU COLUMNS - CENTERED */
.menu-col {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  text-align: left;
}

.menu-col:nth-child(1) { animation-delay: 0.1s; }
.menu-col:nth-child(2) { animation-delay: 0.2s; }
.menu-col:nth-child(3) { animation-delay: 0.3s; }
.menu-col:nth-child(4) { animation-delay: 0.4s; }
.menu-col:nth-child(5) { animation-delay: 0.5s; }

.menu-col h4 {
  font-size: 16px;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid #00a8ff;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.menu-col h4::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #00a8ff;
  transition: width 0.3s ease;
}

.menu-col:hover h4::after {
  width: 100%;
}

.contact-heading {
  margin-top: 40px;
}

.menu-col a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin-bottom: 16px;
  font-size: 17px;
  font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 20px;
  text-align: left;
}

.menu-col a::before {
  content: "›";
  color: #00a8ff;
  position: absolute;
  left: 0;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.menu-col a:hover {
  color: #fff;
  transform: translateX(8px);
}

.menu-col a:hover::before {
  transform: scale(1.3);
  color: #fff;
}

.menu-col a.active {
  color: #f5b400;
  font-weight: 500;
}



.copyright {
  color: white;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE MENU OVERLAY ===== */
@media (max-width: 1200px) {
  .menu-content {
    gap: 30px;
    padding: 40px 30px;
  }
  
  .menu-header,
  .menu-footer {
    padding: 20px 30px;
  }
}

@media (max-width: 1024px) {
  .menu-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 40px;
    max-height: calc(100vh - 140px);
  }
  
  .menu-col h4 {
    font-size: 15px;
  }
  
  .menu-col a {
    font-size: 16px;
  }
  
  .menu-header,
  .menu-footer {
    max-width: 100%;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .menu-overlay {
    justify-content: flex-start;
  }
  
  .menu-header {
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 101;
  }
  
  .menu-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 20px;
    width: 100%;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    align-self: flex-start;
  }
  
  .menu-col {
    animation-delay: 0.1s !important;
    text-align: center;
  }
  
  .menu-col h4 {
    font-size: 15px;
    margin-bottom: 20px;
    text-align: center;
  }
  
  .menu-col a {
    font-size: 16px;
    margin-bottom: 14px;
    text-align: center;
    padding-left: 0;
  }
  
  .menu-col a::before {
    display: none;
  }
  
  .contact-heading {
    margin-top: 30px;
  }
  
  .close-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .overlay-logo {
    height: 30px;
  }
  
  .menu-footer {
    padding: 15px 20px;
    position: sticky;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
  }
}

@media (max-width: 480px) {
  .menu-header {
    padding: 12px 15px;
  }
  
  .close-btn .close-text {
    display: none;
  }
  
  .close-btn {
    padding: 8px;
    width: 40px;
    height: 40px;
    justify-content: center;
    gap: 0;
  }
  
  .close-icon {
    font-size: 18px;
  }
  
  .overlay-logo {
    height: 25px;
  }
  
  .menu-content {
    padding: 20px 15px;
    gap: 25px;
  }
  
  .menu-col h4 {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .menu-col a {
    font-size: 15px;
    margin-bottom: 10px;
  }
  
  .menu-footer {
    padding: 12px 15px;
  }
  
  .copyright {
    font-size: 12px;
  }
  
  .menu-content::-webkit-scrollbar {
    width: 4px;
  }
  
  .menu-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .menu-content::-webkit-scrollbar-thumb {
    background: rgba(245, 180, 0, 0.5);
    border-radius: 2px;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .menu-header {
    padding: 10px;
  }
  
  .menu-content {
    padding: 15px 10px;
    gap: 20px;
  }
  
  .menu-col h4 {
    font-size: 13px;
    margin-bottom: 12px;
  }
  
  .menu-col a {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .menu-footer {
    padding: 10px;
  }
}

/* Landscape mode on mobile */
@media (max-height: 600px) and (max-width: 768px) {
  .menu-header {
    padding: 10px 15px;
  }
  
  .menu-content {
    padding: 15px;
    gap: 20px;
    max-height: calc(100vh - 80px);
  }
  
  .menu-col a {
    margin-bottom: 8px;
    font-size: 14px;
  }
  
  .menu-footer {
    padding: 10px 15px;
  }
  
  .copyright {
    font-size: 12px;
  }
}

/* Fix for menu content scrolling on iOS */
@supports (-webkit-touch-callout: none) {
  .menu-content {
    height: calc(100vh - 140px);
  }
}

/* Center alignment fix for menu content */
@media (min-width: 1025px) {
  .menu-overlay {
    justify-content: center;
  }
  
  .menu-content {
    align-self: center;
    margin: auto;
  }
}