/* Importing Fonts for CSS from Google Fonts*/
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
html{
    scroll-behavior: smooth;
}

/* Global */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: black;
  color: white;
}

button{
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: none;
  background: red;
  color: black;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;    
}

button:hover{
    background: white;
}


button:hover:not(.active) {
  background: red; 
}

button.active {
  background: red; 
}


.nav {
    background: #333;
    color: black;
    background: red;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 22px;
}

.nav:hover {
    background: white;
}

/* Container styling */
.container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.button-container {
  display: flex;
  justify-content: center; 
  align-items: center;     
}


.toggle-btn {
  padding: 10px 20px;
  margin-right: 10px;
  border: none;
  background: white;
  cursor: pointer;
  font-size: 16px;
  border-radius: 6px;
  transition: 0.2s;
}

.toggle-btn.active {
  background: red;
  color: black;
}

.carousel-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.carousel-wrapper .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 0, 0, 0.8);
    color: black;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-wrapper .prev {
    left: 10px;
}

.carousel-wrapper .prev:hover {
    background: white;
}

.carousel-wrapper .next {
    right: 10px;
}

.carousel-wrapper .next:hover {
    background: white;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.carousel {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
}

.carousel img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    border: 2px solid white;
    box-sizing: border-box;
}

.preloader-logo {
    width: 300px;       /* Adjust as needed */
    height: auto;
    margin-bottom: 20px; 
} 

/* Fullscreen overlay */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: black;
}

/* Spinner animation */
.spinner {
    border-top: 6px solid grey;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

/* Keyframes for spinning effect */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.content-block {
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, height 0.4s ease;
  padding: 0 15px;
  border-radius: 6px;
  pointer-events: none;
}

/* Active section fades in AND expands */
.content-block.active {
  opacity: 1;
  height: auto;
  padding: 15px;
  pointer-events: auto;
}


/* Header container specific */
.header-container .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-container .header-text {
  flex: 1;
}

/* Headings */
h1{
  margin-top: 0;
}

h2{
  margin-top: 0;
  font-size:medium;
}

/* Paragraphs */
p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e0e0e0;
}

li {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e0e0e0;
}

ol{
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e0e0e0;
}

.profile-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

a {
  color: red;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.price{
  color: green;
}

.markdown-price{
  color: red;
  text-decoration: line-through;
}

.divider-gradient {
  height: 2px;
  background: linear-gradient(to right, transparent, #FF0000, transparent);
  border: none;
  margin: 2rem 0;
}

/* Contact Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-form label {
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'Roboto', sans-serif;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid red;
  background: rgba(255, 255, 255, 0.15);
}

.contact-form button {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: none;
  background: red;
  color: black;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
  }

  .contact-form button {
    width: 100%;
  }
}

.success-message {
  color: green;
  font-weight: bold;
  margin-bottom: 15px;
}

.error-message {
  color: red;
  font-weight: bold;
  margin-bottom: 15px;
}

footer{
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    margin: 1rem;
    padding: 1.5rem;
  }

  .header-container .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-img {
    width: 150px;
    height: 150px;
    margin-top: 1rem;
  }

  p {
    font-size: 1rem;
  }
  
  .carousel img {
        max-width: 100%;
    }

    .carousel-wrapper .nav {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
    
    .header-container .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    .profile-img {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 480px) {
  .container {
    margin: 0.5rem;
    padding: 1rem;
  }

  .header-container h1 {
    font-size: 1.6rem;
  }

  .header-container h2 {
    font-size: 1.3rem;
  }

  .profile-img {
    width: 120px;
    height: 120px;
  }

  p {
    font-size: 0.95rem;
  }
  
  .carousel img {
        max-width: 100%;
    }

    .carousel-wrapper .nav {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .carousel-wrapper .prev {
        left: 5px;
    }

    .carousel-wrapper .next {
        right: 5px;
    }
    
    .button-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .toggle-btn {
        width: 100%;
        text-align: center;
    }
    
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1rem;
    }

    .profile-img {
        width: 130px;
        height: 130px;
    }
}
