/* BTC Site Styles - Color Palette: ecfeff, 3262af, 2db3ab, 3364b1 */
:root {
  --bg-light: #ecfeff;
  --primary-blue: #3262af;
  --accent-green: #2db3ab;
  --gradient-blue: #3364b1;
  --text-dark: #1a1a2e;
  --text-muted: #6b7280;
  --white: #ffffff;
  --shadow: rgba(50, 98, 175, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
  color: var(--text-dark);
  min-height: 100vh;
}

/* Header Styles */
.header {
  background: linear-gradient(135deg, var(--gradient-blue) 0%, var(--primary-blue) 50%, var(--accent-green) 100%);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header a {
  text-decoration: none;
}

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

.header .logo {
  max-width: 80px;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.header .logo:hover {
  transform: scale(1.05);
}

.header .company-name {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: var(--bg-light);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Navigation */
.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.nav a.active {
  background: var(--accent-green);
  box-shadow: 0 2px 8px rgba(45, 179, 171, 0.3);
}

.nav a.login-link {
  background: var(--accent-green);
  margin-left: auto;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(45, 179, 171, 0.3);
}

.nav a.login-link:hover {
  background: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(50, 98, 175, 0.4);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* Main Content */
main h1 {
  color: var(--primary-blue);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--gradient-blue), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

main h2 {
  color: var(--gradient-blue);
  font-size: 1.8rem;
  margin-top: 2rem;
}

main p {
  line-height: 1.6;
  color: var(--text-dark);
  font-size: 1.1rem;
}

main section {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  margin-top: 2rem;
  border-left: 4px solid var(--accent-green);
}

main section a {
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

main section a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* Lists */
ul {
  list-style: none;
  padding: 0;
}

ul li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bg-light);
  color: var(--text-dark);
}

ul li:last-child {
  border-bottom: none;
}

ul li::before {
  content: "▸";
  color: var(--accent-green);
  font-weight: bold;
  margin-right: 0.75rem;
}

/* Contact/Address */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info h2 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-top: 0;
}

address {
  font-style: normal;
  line-height: 2;
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

address strong {
  color: var(--primary-blue);
}

address a {
  color: var(--accent-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

address a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper h2 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  border-top: 4px solid var(--accent-green);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--bg-light);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: all 0.3s ease;
}

.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(45, 179, 171, 0.1);
}

.submit-btn {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, var(--gradient-blue), var(--primary-blue));
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(50, 98, 175, 0.3);
  margin-top: 0.5rem;
}

.submit-btn:hover {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(50, 98, 175, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* Login Form */
.login-container {
  max-width: 450px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.login-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px var(--shadow);
  border-top: 4px solid var(--accent-green);
}

.login-card h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--gradient-blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--bg-light);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(45, 179, 171, 0.1);
}

.login-btn {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, var(--gradient-blue), var(--primary-blue));
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(50, 98, 175, 0.3);
  margin-top: 1rem;
}

.login-btn:hover {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(50, 98, 175, 0.4);
}

.login-btn:active {
  transform: translateY(0);
}

.form-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-footer a {
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 600;
}

.form-footer a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* Service Cards */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  border-top: 4px solid var(--accent-green);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(50, 98, 175, 0.2);
}

.service-card h2 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.discover-link {
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.discover-link:hover {
  color: var(--primary-blue);
  transform: translateX(5px);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal:target {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-content {
  background: var(--white);
  margin: auto;
  padding: 2.5rem;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--primary-blue);
}

.modal-content h2 {
  color: var(--primary-blue);
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--accent-green);
}

.modal-body h3 {
  color: var(--gradient-blue);
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-body p {
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.btn-close {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, var(--gradient-blue), var(--primary-blue));
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(50, 98, 175, 0.3);
}

.btn-close:hover {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(50, 98, 175, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .header .logo {
    max-width: 70px;
  }

  .header .company-name {
    font-size: 1rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .nav a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .container {
    padding: 0 1rem;
    margin: 1rem auto;
  }

  main h1 {
    font-size: 2rem;
  }

  main h2 {
    font-size: 1.5rem;
  }

  .hero-carousel {
    height: 300px;
  }

  .service-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }

  .modal-content h2 {
    font-size: 1.5rem;
  }

  .modal-body h3 {
    font-size: 1.15rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .header .logo {
    max-width: 60px;
  }

  .header .company-name {
    font-size: 0.85rem;
  }

  .nav {
    gap: 0.5rem;
  }

  main h1 {
    font-size: 1.75rem;
  }

  .hero-carousel {
    height: 250px;
  }
}
