/* RESET & BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: 100px;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(120deg, #f8fafc, #c3dafe 50%);
  overflow-x: hidden;
}

/* NAVIGATION */
nav {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(66, 99, 235, 0.08);
  padding: 0 40px;
  min-width: 340px;
  max-width: 100%;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: #4267eb;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 18px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  height: 100%;
}
a:hover,
a.active {
  background: #4267eb;
  color: #fff;
  box-shadow: 0 2px 8px rgba(66, 99, 235, 0.10);
}

/* SLIDES */
.slides {
  position: relative;
  height: calc(100vh - 90px);
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.7s ease, transform 0.7s ease;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(66, 99, 235, 0.08);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 2;
}

.slide.up {
  transform: translateY(-100%);
  opacity: 0;
  z-index: 1;
}

/* IMAGES */
.slide img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  max-height: 60vh;
  object-fit: cover;
}

.slide h1 {
  font-size: 40px;
  margin: 0 0 30px;
}

/* CONTACT SECTION */
.contact-section {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-radius: 16px;
  color: #fff;
  height: auto; 
  max-height: none;
  overflow: hidden;
  box-sizing: border-box;
  padding: 40px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: visible;
}

.contact-content {
  margin-top: 0;
  padding-top: 0;
  display: flex;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  margin-top: 0;
  padding-top: 0;
}

.contact-info p {
  font-size: 1.1rem;
  color: #bdc3c7;
  margin-bottom: 40px;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  background: rgba(255, 107, 53, 0.1);
  padding: 12px;
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-icon svg {
  color: #FF6B35;
}

.contact-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ecf0f1;
  margin-bottom: 5px;
}

.contact-item p {
  color: #bdc3c7;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* FORM */



.contact-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px 40px;
  color: #fff;
}

.contact-form .form-group {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 15px;
}

.contact-form .form-group label {
  flex-shrink: 0;
  width: 100px;
  font-weight: 600;
  color: #fff;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  width: 100%;  

  box-sizing: border-box;
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FF6B35;
}

/* BUTTON */
.submit-btn {
  width: 100%;                     /* or 70% if preferred */
  max-width: 100%;
  background: linear-gradient(135deg, #FF6B35, #FF8E53);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 16px;
  height: 44px;
  line-height: 1;
  display: block;
  box-shadow: 0 3px 8px rgba(255, 107, 53, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 10px auto 0;   /* center horizontally */
  box-sizing: border-box;
}


.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  background: linear-gradient(135deg, #FF8E53, #FF6B35);
}

.submit-btn:active {
  transform: translateY(0);
}

/* MESSAGES */
.form-message {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
  display: none;
}
.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  nav {
    min-width: 90%;
    padding: 0 12px;
    top: 10px;
    height: 50px;
    overflow-x: auto;
  }

  ul {
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  a {
    font-size: 1rem;
    padding: 6px 10px;
    white-space: nowrap;
  }

  .slides {
    height: calc(100vh - 80px);
  }

  .slide {
    padding: 20px 16px;
  }

  .slide h1 {
    font-size: 28px;
  }

  .slide img {
    max-height: 40vh;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-details {
    gap: 20px;
  }

  .contact-form .form-group {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form .form-group label {
    width: 100%;
    margin-bottom: 5px;
  }
}




@media (max-width: 700px) {
  .contact-section {
    max-height: 80vh;        /* max 80% viewport height */
    overflow-y: auto;        /* scroll if too tall */
    padding-left: 10px; 
    padding-right: 10px;
  }
  
  .contact-form,
  .contact-content,
  .contact-info {
    width: 100%;          /* make sure they use full width */
    max-width: 100%;      /* override any desktop max-width */
  }
  
  .contact-form .form-group input,
  .contact-form .form-group textarea,
  .submit-btn {
    width: 100%;          /* inputs and button fill width */
  }
}
@media (max-width: 700px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0; /* optional: remove default spacing */
  }
}
.contact-info,
.contact-content {
  margin: 0;
  padding: 0;
}