/* Main Styles for domain - Accounting Services in Malaysia */

/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  background: linear-gradient(135deg, #4B0082, #00CED1);
  color: #FFFFFF;
  line-height: 1.6;
  min-height: 100vh;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-container {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 40px;
  margin: 40px auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  color: #FFFFFF;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #FFD700;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #FF6F61;
}

.btn {
  display: inline-block;
  background-color: #FFD700;
  color: #2E2E2E;
  padding: 12px 30px;
  border-radius: 30px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #FF6F61;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(46, 46, 46, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFFFFF;
  text-transform: lowercase;
  background: linear-gradient(90deg, #FFD700, #FF6F61);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: #FFFFFF;
  font-weight: 500;
}

nav ul li a:hover {
  color: #FFD700;
}

/* Hamburger Menu for Mobile */
.hamburger {
  display: none;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

/* Hero Section */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-top: 0;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #FFFFFF;
}

/* About Section */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-content h2 {
  margin-bottom: 20px;
  font-size: 2.5rem;
  color: #FFD700;
}

.about-content p {
  margin-bottom: 20px;
}

/* Services Section */
#services .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #FFD700;
}

/* Advantages Section */
#advantages .advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.advantage-item {
  padding: 20px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

.advantage-item:hover {
  transform: translateY(-5px);
}

.advantage-item h3 {
  margin-bottom: 15px;
  color: #FFD700;
}

/* Form Section */
#form {
  padding: 60px 0;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-container h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #FFD700;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #FFD700;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23FFFFFF' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 35px;
}

select.form-control option {
  background-color: #FFFFFF;
  color: #2E2E2E;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkbox-group input {
  margin-right: 10px;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

/* Testimonials Section */
#testimonials .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-content {
  position: relative;
  padding-left: 25px;
  margin-bottom: 20px;
}

.testimonial-content::before {
  content: """;
  position: absolute;
  left: 0;
  top: -20px;
  font-size: 60px;
  line-height: 1;
  color: #FFD700;
  font-family: serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author-name {
  font-weight: bold;
  color: #FFD700;
}

.testimonial-author-title {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* FAQ Section */
#faq .faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.faq-question {
  position: relative;
  padding: 20px;
  cursor: pointer;
}

.faq-checkbox {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-label {
  display: block;
  position: relative;
  padding-right: 40px;
  font-weight: bold;
  cursor: pointer;
}

.faq-label::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.faq-checkbox:checked + .faq-label::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
  padding: 0 20px 20px;
}

/* CTA Section */
#cta {
  text-align: center;
  padding: 80px 0;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #FFD700;
}

.cta-content p {
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background-color: rgba(46, 46, 46, 0.9);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #FFD700;
}

.footer-contact-item {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 320px;
  background-color: rgba(46, 46, 46, 0.95);
  color: #FFFFFF;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: none;
}

.cookie-popup.show {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

.cookie-popup p {
  margin-bottom: 15px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  transition: all 0.3s ease;
}

.cookie-accept {
  background-color: #FFD700;
  color: #2E2E2E;
}

.cookie-accept:hover {
  background-color: #E5C100;
}

.cookie-decline {
  background-color: transparent;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
}

.cookie-decline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Thank You Page */
.thankyou-container {
  text-align: center;
  max-width: 600px;
  margin: 8rem auto 5rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.thankyou-container h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #FFD700;
}

.thankyou-container p {
  margin-bottom: 25px;
}

/* Policy Pages */
.policy-container {
  max-width: 900px;
  margin: 120px auto 60px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.policy-container h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #FFD700;
  text-align: center;
}

.policy-container h2 {
  font-size: 1.8rem;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #FFD700;
}

.policy-container p {
  margin-bottom: 20px;
}

.policy-container ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.policy-container ul li {
  margin-bottom: 10px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .section-container {
    padding: 30px;
  }
  
  #about .about-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  /* Navigation for mobile */
  .hamburger {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
  }
  
  .hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  .hamburger span:nth-child(1) {
    top: 0;
  }
  
  .hamburger span:nth-child(2) {
    top: 9px;
  }
  
  .hamburger span:nth-child(3) {
    top: 18px;
  }
  
  #menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
  }
  
  #menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }
  
  #menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(46, 46, 46, 0.95);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  #menu-toggle:checked ~ nav {
    max-height: 500px;
  }
  
  nav ul {
    flex-direction: column;
    padding: 20px;
  }
  
  nav ul li {
    margin: 10px 0;
  }
  
  /* Other responsive styles */
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .section-container {
    padding: 25px;
    margin: 30px 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .form-container {
    padding: 20px;
  }
  
  .section-container {
    padding: 20px;
    margin: 20px 0;
  }
  
  .btn {
    padding: 10px 20px;
  }
}
