.footer-flex { flex-wrap: wrap; gap: 1.5rem; }
.footer-contact, .footer-links { min-width: 180px; }
/* contact.css - Madhura Cauvery Borewell 
   Comprehensive Styles: Header, Premium Form, & Corrected Mobile Dropdown
*/

:root {
  --primary: #0a1158;
  --primary-light: #1e299a;
  --accent: #ffb300;
  --accent-glow: rgba(255, 179, 0, 0.4);
  --bg: #f8fafc;
  --white: #ffffff;
  --text-main: #1e293b;
  --text-muted: #475569;
  --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 25px 50px -12px rgba(10, 17, 88, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.8;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(255, 179, 0, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(10, 17, 88, 0.05) 0px, transparent 50%);
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- HEADER & DESKTOP NAVIGATION --- */
.main-header {
  background: #0a1158; /* Solid background to prevent text overlap ghosting */
  backdrop-filter: blur(12px);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 2000; /* Highest layer to stay above dropdown */
  padding: 0.8rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

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

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
}

.main-nav {
  display: flex; 
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  margin-left: 1.8rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  transition: var(--transition);
  position: relative;
}

.main-nav a:hover { opacity: 1; color: var(--accent); }
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.main-nav a:hover::after { width: 100%; }

/* --- HIDE MOBILE ELEMENTS ON DESKTOP --- */
.mobile-menu-icon, .mobile-nav {
  display: none; 
}

/* --- CONTACT SECTION CONTENT --- */
.contact-section {
  padding: 6rem 0;
  animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary);
  text-align: left;
  margin-bottom: 2rem;
}

.contact-info h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 6px;
  background: var(--accent);
  margin-top: 10px;
  border-radius: 10px;
}

.contact-info h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 2.5rem 0 1rem;
  font-weight: 800;
}

.contact-info p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

/* INFO CARDS */
.contact-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.contact-info li {
  background: var(--white);
  padding: 1.8rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--accent);
  transition: var(--transition);
}

.contact-info li:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
}

/* --- PREMIUM FORM UI --- */
.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.02);
}

.contact-form h3 {
  margin-bottom: 2rem;
  color: var(--primary);
  font-weight: 800;
}

.contact-form input, 
.contact-form textarea {
  width: 100%;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  border: 2px solid #eef2f6;
  border-radius: 16px;
  background: #fcfdfe;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  transition: var(--transition);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.contact-form textarea {
  height: 180px;
  resize: vertical;
  line-height: 1.6;
}

/* Message Box Focus Effects */
.contact-form input:focus, 
.contact-form textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-glow), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.contact-form button {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  padding: 1.3rem;
  border: none;
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition);
}

.contact-form button:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 179, 0, 0.4);
}

/* --- FOOTER (Synced with Index) --- */
.main-footer {
  background: var(--primary);
  color: var(--white);
  padding: 6rem 0 3rem;
  border-radius: 60px 60px 0 0;
  margin-top: 5rem;
}

.footer-flex {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: 0.3s;
}

.footer-links a:hover { color: var(--accent); transform: translateX(5px); }

.footer-contact strong { color: var(--accent); display: block; margin-bottom: 0.5rem; }

.footer-copy {
  text-align: center;
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  opacity: 0.6;
  letter-spacing: 2px;
}

/* --- MOBILE BREAKPOINT (900px) --- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  
  .mobile-menu-icon { 
    display: flex; 
    flex-direction: column; 
    gap: 6px; 
    cursor: pointer;
    position: relative;
    z-index: 2100; /* Above the header */
  }
  
  .mobile-menu-icon span { width: 28px; height: 3px; background: white; transition: 0.4s; }

  /* TRUE DROPDOWN BEHAVIOR */
  .mobile-nav {
    position: fixed;
    top: 0; /* Align with top of screen */
    left: 0;
    width: 100%;
    background: var(--primary);
    display: none; 
    flex-direction: column;
    z-index: 1500; /* Behind main-header (2000) but above content */
    padding: 80px 0 2rem 0; /* Space to prevent header overlap */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideDown 0.4s ease-out;
  }
  
  .mobile-nav.open { display: flex; }
  .mobile-nav a { 
    color: white; 
    padding: 1.5rem; 
    text-align: center; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    text-decoration: none; 
    font-weight: 700;
    text-transform: uppercase;
  }

  /* Mobile Content Adjustments */
  .contact-flex { grid-template-columns: 1fr; gap: 3rem; }
  .contact-info h2 { font-size: 2.2rem; text-align: center; }
  .contact-info h2::after { margin: 10px auto; }
  .contact-form { padding: 2rem; }

  /* Mobile Footer Sync */
  .footer-flex { text-align: center; }
  .main-footer { border-radius: 40px 40px 0 0; padding: 4rem 0 2rem; }
}

/* --- ANIMATIONS --- */
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar for Textarea */
.contact-form textarea::-webkit-scrollbar { width: 8px; }
.contact-form textarea::-webkit-scrollbar-track { background: transparent; }
.contact-form textarea::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.contact-form textarea::-webkit-scrollbar-thumb:hover { background: var(--accent); }