body {
  margin: 0;
  padding: 0;
  background: black !important;
  font-family: 'Raleway', sans-serif;
  color: white;
  overflow-x: hidden;
  overflow-y: auto;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar but allow scrolling */
body::-webkit-scrollbar {
  display: none;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

/* Ensure navbar stays in same position as other pages - matching styles.css exactly */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(21, 20, 20, 0.345);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
  margin: 0;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
}

/* Remove homepage background image - we'll use team page background instead */
body::after {
  display: none !important;
}

/* Video Background - Fixed to viewport (same as team page) */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  object-fit: cover;
  background: #000;
}

/* Fallback background image if video doesn't load */
body {
  background-image: url('/public/Untitled design (3).jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark overlay for readability - Fixed to viewport */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  pointer-events: none;
  display: block !important;
}

/* Image Overlay on Video - Fixed to viewport */
.video-overlay-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-overlay-image .overlay-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

.contact-section {
  width: 100% !important;
  max-width: 100vw !important;
  min-height: calc(100vh - 80px);
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding-top: 120px; /* More space for fixed navbar (desktop) */
  margin: 0 auto !important;
  box-sizing: border-box;
  position: relative !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  top: auto !important;
  z-index: 3 !important; /* Above video and overlay */
  overflow: visible !important;
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 135px;
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: calc(100vw - 40px) !important;
  box-sizing: border-box;
  overflow: visible !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  left: 0 !important;
  right: 0 !important;
}

@media (max-width: 1200px) {
  .contact-container {
    gap: 80px;
    padding: 60px 20px;
  }
}

.contact-info {
  max-width: 540px;
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

.contact-title {
  font-family: 'Rakkas', cursive;
  font-size: 64px;
  font-weight: 400;
  margin-bottom: 25px;
}

.contact-description {
  font-family: 'Raleway', sans-serif;
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 60px;
  line-height: 1.6;
}

.contact-email h2,
.contact-socials h2 {
  font-family: 'Rakkas', cursive;
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 10px;
}

.email-box {
  background: rgba(255, 0, 0, 0.22);
  border-radius: 5px;
  padding: 5px 5px;
  width: fit-content;
  margin-top: 5px;
}

.email-address {
  color: #ff0000;
  font-size: 20px;
}

.contact-socials {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-top: 10px;
}

.contact-socials h2 {
  margin-bottom: 0;
  margin-right: 20px;
  line-height: 1.2;
}

.contact-socials ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  align-items: baseline;
  flex-wrap: wrap;
  line-height: 1.2;
}

.contact-socials ul li {
  margin-bottom: 0;
}

.contact-socials ul li a {
  color: white;
  text-decoration: underline;
  font-size: 16px;
  white-space: nowrap;
  line-height: 1.2;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
  width: 100%;
  box-sizing: border-box;
  overflow: visible !important;
}

.contact-form label {
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  background: #f5f5f5;
  border: none;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 4px;
  resize: none;
  box-sizing: border-box;
}

.contact-form textarea {
  height: 165px;
}

.contact-form button {
  background: white;
  color: black;
  font-size: 20px;
  font-weight: 400;
  font-family: 'Gajraj One', cursive;
  padding: 13px 0;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.contact-form button:hover {
  background: #ff0000;
  color: white;
}

.contact-form button:disabled {
  background: #999;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Form Status Messages */
.form-status {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Raleway', sans-serif;
  margin-top: 10px;
  text-align: center;
  min-height: 20px;
  transition: all 0.3s ease;
}

.form-status.success {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.4);
}

.form-status.error {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.4);
}

/* Laptop - Scale down slightly but keep same layout */
@media (min-width: 1201px) and (max-width: 1440px) {
  .contact-container {
    gap: 100px;
    padding: 50px 20px;
    max-width: 1200px;
  }

  .contact-info {
    max-width: 480px;
  }

  .contact-title {
    font-size: 56px;
  }

  .contact-description {
    font-size: 19px;
  }

  .contact-email h2,
  .contact-socials h2 {
    font-size: 28px;
  }

  .contact-form {
    max-width: 500px;
  }
}

/* Tablet Styles */
@media (max-width: 1024px) {
  .contact-container {
    gap: 80px;
    padding: 50px 30px;
  }

  .contact-info {
    max-width: 450px;
  }

  .contact-form {
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding-top: 130px; /* More space for mobile navbar */
    min-height: calc(100vh - 70px);
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: 100vw !important;
    overflow: visible !important;
    display: flex;
  }

  .contact-container {
    flex-direction: column;
    gap: 50px;
    padding: 40px 15px;
    align-items: center;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: visible !important;
    display: flex;
    justify-content: center;
  }

  .contact-info {
    max-width: 100% !important;
    width: 100% !important;
    text-align: left;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: visible !important;
  }

  .contact-title {
    font-size: 42px;
    margin-bottom: 20px;
    text-align: left;
  }

  .contact-description {
    font-size: 18px;
    margin-bottom: 35px;
    text-align: left;
  }

  .contact-email {
    margin-bottom: 30px;
  }

  .contact-email h2,
  .contact-socials h2 {
    font-size: 28px;
    margin-bottom: 15px;
    text-align: left;
  }

  .contact-socials {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .contact-socials h2 {
    margin-bottom: 0;
    margin-right: 0;
  }

  .contact-socials ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .contact-socials ul li {
    text-align: left;
  }

  .email-box {
    width: 100%;
    padding: 8px 12px;
    margin: 0;
    text-align: left;
    box-sizing: border-box;
  }

  .email-address {
    font-size: 18px;
    word-break: break-all;
    text-align: left;
  }

  .contact-form {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: visible !important;
  }

  .contact-form label {
    font-size: 13px;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding-top: 120px; /* Extra space for mobile navbar */
    min-height: calc(100vh - 60px);
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: 100vw !important;
    display: flex;
    overflow: visible !important;
  }

  .contact-container {
    padding: 25px 15px;
    gap: 40px;
    align-items: center;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .contact-info {
    text-align: left;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: visible !important;
  }

  .contact-title {
    font-size: 32px;
    margin-bottom: 15px;
    line-height: 1.2;
    text-align: left;
  }

  .contact-description {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
    text-align: left;
  }

  .contact-email h2,
  .contact-socials h2 {
    font-size: 24px;
    margin-bottom: 12px;
    text-align: left;
  }

  .contact-socials {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .contact-socials h2 {
    margin-bottom: 0;
    margin-right: 0;
  }

  .contact-socials ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .email-box {
    padding: 6px 10px;
  }

  .email-address {
    font-size: 16px;
  }

  .contact-socials ul li {
    margin-bottom: 12px;
  }

  .contact-socials ul li a {
    font-size: 15px;
  }

  .contact-form {
    gap: 15px;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: visible !important;
  }

  .contact-form label {
    font-size: 12px;
    text-align: left;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
    padding: 10px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-form textarea {
    height: 140px;
  }

  .contact-form button {
    font-size: 16px;
    padding: 12px 0;
    margin-top: 5px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .contact-info {
    text-align: center;
  }
}
