/* ==========================
   ROOT VARIABLES
========================== */
:root {
  --bg: #121212;          /* Dark background */
  --fg: #e0e0e0;          /* Light text */
  --accent: #909090;       /* Subtle accent */
  --muted: #a0a0a0;       /* Subtext */
  --card: rgba(255,255,255,0.05); /* Glassy card bg */
  --overlay: rgba(0,0,0,0.6);
  --maxw: 1200px;
  --radius: 12px;
  --transition: 0.35s ease;
}

/* ==========================
   BASE STYLES
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  scroll-behavior: smooth;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}

/* ==========================
   CONTACT SECTION
========================== */
.contact-section {
  background: var(--bg);
  padding: 100px 20px;
  text-align: center;
}

.contact-section .section-title {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-section .section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 40px;
}

/* ==========================
   CONTACT CONTAINER
========================== */
.contact-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto 50px;
}

/* ==========================
   GLASSY CONTACT INFO CARD
========================== */
.contact-info {
  flex: 1 1 300px;
  text-align: left;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  color: var(--fg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-info:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.6);
}

.contact-info h3 {
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.contact-info p {
  margin-bottom: 10px;
  color: var(--fg);
  font-size: 0.95rem;
}

.contact-info a {
  color: var(--accent);
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
  color: #0077b5; /* LinkedIn Blue for social icons hover */
}

/* ==========================
   GLASSY CONTACT FORM
========================== */
.contact-form {
  flex: 1 1 400px;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: var(--fg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-form:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.6);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: "Poppins", sans-serif;
  background: rgba(255,255,255,0.05);
  color: var(--fg);
  transition: all var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.05);
}

/* ==========================
   BUTTON
========================== */
.contact-form button {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition), transform 0.2s ease;
}

.contact-form button:hover {
  background: #fff;
  color: var(--accent);
  transform: translateY(-2px);
}

.contact-form button:active {
  transform: translateY(0);
}

/* ==========================
   MAP CONTAINER
========================== */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  margin-top: 40px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: brightness(0.7); /* Darker map */
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 880px) {
  .contact-container {
    flex-direction: column;
    text-align: center;
  }

  .contact-info,
  .contact-form {
    text-align: center;
  }
}

/* ==========================
   SOCIAL ICONS
========================== */
.contact-info a {
  text-decoration: none;
  font-weight: 600;
  color: var(--fg);
}

.contact-info a i {
  margin-right: 8px;
  font-size: 1.7rem;
  color: var(--accent);
  transition: color var(--transition);
}

.contact-info a:hover i {
  color: #0077b5; /* LinkedIn Blue on hover */
}

.contact-info a:hover {
  color: #0077b5;
}

/* ==========================
   FOOTER
========================== */
footer {
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.15);
  color: var(--muted);
}

@media (max-width: 880px) {
  /* 2. Force the list to be hidden and positioned correctly */
  #navList {
    display: none;        /* This is the functionality: hide it! */
    position: absolute;
    top: 100%;           /* Places it right under the header */
    right: 0;
    width: 250px;
    background: var(--card);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 20px;
    border-radius: 0 0 0 12px;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 9999;       /* Ensure it's above all other content */
  }

  /* 3. This is the functionality: show it only when active */
  #navList.open {
    display: flex !important; 
    background-color: #000;
  }

  /* 4. Fix the hamburger visibility */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    z-index: 10000;
  }
}

