@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary: #c48b26; /* Gold from logo */
  --primary-hover: #a1701a;
  --bg-dark: #0f172a; /* Deep slate */
  --bg-darker: #020617;
  --bg-card: rgba(30, 41, 59, 0.7);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(15, 23, 42, 0.85);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-darker);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Typography Utility */
.text-primary { color: var(--primary); }
.text-center { text-align: center; }
.section-title {
  font-size: 2.5rem;
  margin: 0 auto 1rem auto;
  text-align: center;
  position: relative;
  display: table;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}
.section {
  padding: 6rem 0;
  position: relative;
  background-image: linear-gradient(rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.92)), url('../img/gallery_1.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.bg-dark {
  background-color: #0b1120;
  background-image: linear-gradient(rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.95)), url('../img/gallery_2.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(196, 139, 38, 0.39);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 139, 38, 0.23);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo img {
  height: 50px;
}

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

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-main);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 1)), url('../img/hero_bg.png') center/cover;
  z-index: -1;
  animation: scaleBg 20s infinite alternate;
}
@keyframes scaleBg {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.hero-content {
  max-width: 800px;
}
.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}
.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Services Grid (Home) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-card p {
  color: var(--text-muted);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}
.statutory-list {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
}
.statutory-list h3 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}
.statutory-list ul li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}
.statutory-list ul li:last-child {
  border-bottom: none;
}
.statutory-list ul li span:first-child {
  font-weight: 600;
}

/* Service Detail (Services Page) */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 6rem;
}
.service-detail:nth-child(even) {
  direction: rtl;
}
.service-detail:nth-child(even) > * {
  direction: ltr;
}
.service-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  position: relative;
}
.service-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  border-radius: 1rem;
  pointer-events: none;
}
.service-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}
.service-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}
.service-list li i {
  color: var(--primary);
}

/* Career Form */
.career-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-main);
  font-family: var(--font-body);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196, 139, 38, 0.2);
}
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5em 1.5em;
}
select.form-control option {
  background: var(--bg-dark);
  color: var(--text-main);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
}
.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(196, 139, 38, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.contact-info-item h4 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.contact-info-item p {
  color: var(--text-muted);
}
.map-container {
  height: 100%;
  min-height: 400px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}
.blog-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.blog-content {
  padding: 2rem;
}
.blog-date {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}
.blog-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.blog-excerpt {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}
.footer-about p {
  color: var(--text-muted);
  margin-top: 1.5rem;
}
.footer-links h4 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}
.footer-links ul li {
  margin-bottom: 0.75rem;
}
.footer-links ul li a {
  color: var(--text-muted);
}
.footer-links ul li a:hover {
  color: var(--primary);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* Page Header */
.page-header {
  padding: 120px 0 60px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 1)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.page-header p {
  font-size: 1.25rem;
  color: var(--primary);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  .hero-content h1 { font-size: 2.5rem; }
  .about-grid, .service-detail, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .service-detail:nth-child(even) {
    direction: ltr;
  }
  }
}

/* Floating Social & Enquiry Bar */
.floating-widget {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(10, 15, 30, 0.9);
    padding: 15px 10px;
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 0 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: none;
    backdrop-filter: blur(10px);
}
.floating-widget a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}
.floating-widget a:hover {
    background: var(--primary);
    transform: translateX(5px);
    color: #000;
}
.floating-widget .enquiry-btn {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    width: auto;
    height: auto;
    padding: 15px 5px;
    border-radius: 5px;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.floating-widget .enquiry-btn:hover {
    background: #fff;
    transform: rotate(180deg) translateX(-5px);
}

/* Why Choose Us Section */
.why-section {
    background: linear-gradient(135deg, rgba(10,15,30,0.95), rgba(2,6,23,0.98)), url('../img/hero_bg.png') center/cover fixed;
    position: relative;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.why-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(196,139,38,0.2);
    border-radius: 1rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.why-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(196,139,38,0.15);
}
.why-card:hover::before {
    transform: scaleX(1);
}
.why-card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.why-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}
.why-card p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
}
/* ---- Dropdown menus (navigation is managed in Admin > My Menu) ---- */
.nav-links .nav-item {
    position: relative;
}
.nav-caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.45rem;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
}
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 0.5rem 0;
    flex-direction: column;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 1100;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
    display: flex;
}
.nav-dropdown a {
    display: block;
    padding: 0.55rem 1.25rem;
    white-space: nowrap;
    color: var(--text-muted);
}
.nav-dropdown a::after {
    display: none;
}
.nav-dropdown a:hover,
.nav-dropdown a.active {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
}
.nav-dropdown .nav-dropdown {
    top: 0;
    left: 100%;
}
.nav-dropdown .nav-caret {
    float: right;
    margin-top: 0.55rem;
    transform: rotate(-90deg);
}

@media (max-width: 768px) {
    /* In the mobile panel, sub menus are always open and indented */
    .nav-dropdown,
    .nav-dropdown .nav-dropdown {
        display: flex;
        position: static;
        min-width: 0;
        padding: 0.25rem 0 0 1rem;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .nav-dropdown a {
        padding: 0.4rem 0;
    }
    .nav-dropdown .nav-caret {
        display: none;
    }
}
