/* 
 * AIpornGeneratorMY.pw - Gaya CSS
 * Tema: Terinspirasi dari warna-warna Malaysia
 * Dikemaskini: 21 Ogos 2025
 */

:root {
  /* Warna bendera Malaysia */
  --blue: #0033A0;
  --red: #FF0000;
  --yellow: #FFC100;
  --white: #ffffff;
  --dark: #222222;
  --light-grey: #f7f7f7;
  --grey: #e0e0e0;
  --dark-grey: #666666;
  --gradient: linear-gradient(135deg, var(--blue) 0%, #001A52 100%);
  --red-gradient: linear-gradient(135deg, var(--red) 0%, #CC0000 100%);
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 10px 25px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.25s ease;
}

/* Reset dan gaya asas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--white);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.6rem;
  background: linear-gradient(to right, var(--blue), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--blue);
  position: relative;
  padding-bottom: 15px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--yellow);
  border-radius: 4px;
}

h3 {
  font-size: 1.4rem;
  color: var(--dark);
}

p {
  margin-bottom: 1rem;
  color: var(--dark-grey);
}

a {
  text-decoration: none;
  color: var(--blue);
  transition: var(--transition);
}

section {
  padding: 90px 0;
}

/* Butang */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  margin: 10px 5px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.primary-btn {
  background: var(--blue);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow);
}

.primary-btn:hover {
  background: #002A85;
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.secondary-btn {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.secondary-btn:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* Header dan navigasi */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  padding: 15px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo svg {
  margin-right: 12px;
}

.logo span {
  background: linear-gradient(to right, var(--blue), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 35px;
}

.nav-menu a {
  color: var(--dark);
  font-weight: 600;
  position: relative;
  font-size: 1rem;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--yellow);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background-color: var(--blue);
  margin-bottom: 5px;
  border-radius: 3px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero Section */
.hero {
  padding: 170px 0 100px;
  background: linear-gradient(to bottom right, rgba(0, 51, 160, 0.03), rgba(255, 193, 0, 0.05));
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.03);
  z-index: -1;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.hero h1 {
  margin-bottom: 25px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--dark-grey);
}

.disclaimer {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding: 12px 20px;
  background-color: rgba(255, 0, 0, 0.1);
  border-radius: var(--border-radius);
  max-width: fit-content;
}

.disclaimer svg {
  margin-right: 12px;
}

.disclaimer span {
  color: var(--red);
  font-weight: 600;
  font-size: 0.95rem;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
  margin-top: 20px;
}

/* Bahagian ciri-ciri */
.features {
  background-color: var(--light-grey);
  position: relative;
}

.features::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100px;
  bottom: -50px;
  left: 0;
  background: var(--light-grey);
  transform: skewY(-3deg);
  z-index: -1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 35px 25px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-bottom: 3px solid transparent;
}

.feature-card:nth-child(odd) {
  border-bottom-color: var(--blue);
}

.feature-card:nth-child(even) {
  border-bottom-color: var(--red);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

.feature-icon {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
}

.feature-card h3 {
  margin-bottom: 18px;
  color: var(--blue);
}

.feature-card:nth-child(even) h3 {
  color: var(--red);
}

.feature-card p {
  color: var(--dark-grey);
  font-size: 0.95rem;
}

/* Bahagian cara guna */
.how-it-works {
  background-color: var(--white);
  padding-top: 130px;
}

.steps {
  max-width: 850px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 60px;
  transition: var(--transition);
  position: relative;
}

.step::after {
  content: '';
  position: absolute;
  left: 25px;
  top: 60px;
  height: calc(100% + 20px);
  width: 2px;
  background: linear-gradient(to bottom, var(--yellow), rgba(255, 193, 0, 0.1));
  z-index: 0;
}

.step:last-child {
  margin-bottom: 0;
}

.step:last-child::after {
  display: none;
}

.step:hover {
  transform: translateX(10px);
}

.step-number {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--yellow);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-right: 30px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.step:hover .step-number {
  background: linear-gradient(135deg, var(--blue), var(--red));
  color: var(--white);
}

.step-content {
  padding-top: 5px;
}

.step-content h3 {
  color: var(--blue);
}

/* Testimonials */
.testimonials {
  background: var(--gradient);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--white);
  transform: skewY(3deg);
}

.testimonials h2 {
  color: var(--white);
}

.testimonials h2::after {
  background: var(--yellow);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.testimonial {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 30px;
  position: relative;
  transition: var(--transition);
  backdrop-filter: blur(5px);
  border-left: 4px solid var(--yellow);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.1);
  font-family: serif;
  line-height: 1;
}

.testimonial:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-strong);
  background: rgba(255, 255, 255, 0.15);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  color: var(--yellow);
  font-weight: 600;
}

/* FAQ */
.faq {
  background-color: var(--white);
  position: relative;
}

.accordion {
  max-width: 850px;
  margin: 50px auto 0;
}

.accordion-item {
  margin-bottom: 20px;
  background: var(--light-grey);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.accordion-item:nth-child(1), .accordion-item:nth-child(3) {
  border-left: 4px solid var(--blue);
}

.accordion-item:nth-child(2), .accordion-item:nth-child(4) {
  border-left: 4px solid var(--red);
}

.accordion-header {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.accordion-header:hover {
  background: rgba(0, 51, 160, 0.05);
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.accordion-icon {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  transition: var(--transition);
}

.accordion-item:nth-child(2) .accordion-icon,
.accordion-item:nth-child(4) .accordion-icon {
  color: var(--red);
}

.accordion-item.active:nth-child(1) .accordion-icon,
.accordion-item.active:nth-child(3) .accordion-icon {
  transform: rotate(45deg);
  color: var(--blue);
}

.accordion-item.active:nth-child(2) .accordion-icon,
.accordion-item.active:nth-child(4) .accordion-icon {
  transform: rotate(45deg);
  color: var(--red);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0, 51, 160, 0.02);
}

.accordion-content p {
  padding: 5px 25px 25px;
  color: var(--dark-grey);
}

.accordion-item.active .accordion-content {
  max-height: 300px;
}

/* CTA Section */
.cta {
  text-align: center;
  background: var(--red-gradient), url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMjUgMTVDMTUgMTUgMTUgNDUgMzAgNDVDNDUgNDUgNDUgMTUgMzUgMTUiIHN0cm9rZT0iI2ZmZmZmZjEwIiBzdHJva2Utd2lkdGg9IjIiIGZpbGw9Im5vbmUiLz48L3N2Zz4=");
  background-position: center;
  color: var(--white);
  padding: 100px 0;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--white);
  transform: skewY(-3deg);
}

.cta h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta h2::after {
  background: var(--yellow);
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.cta .primary-btn {
  background: var(--yellow);
  color: var(--dark);
}

.cta .primary-btn:hover {
  background: #e5ad00;
  transform: translateY(-3px);
}

.disclaimer-small {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background-color: var(--blue);
  color: var(--white);
  padding: 80px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.footer-logo {
  max-width: 350px;
  margin-bottom: 30px;
}

.footer-logo svg {
  margin-bottom: 15px;
}

.footer-logo h3 {
  color: var(--white);
  margin-bottom: 15px;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-top: 10px;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-column h4 {
  color: var(--yellow);
  margin-bottom: 25px;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 12px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--red);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 15px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: var(--yellow);
  padding-left: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.keywords {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

/* Media queries */
@media screen and (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-content, .hero-image {
    flex: 100%;
  }
  
  .hero-image {
    margin-top: 50px;
  }
  
  .features-grid, .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  section {
    padding: 70px 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 50px;
    transition: all 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    margin: 20px 0;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-links {
    gap: 40px;
    flex-direction: column;
    margin-top: 30px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-buttons .btn {
    width: 100%;
  }
  
  .hero {
    padding: 130px 0 70px;
  }
  
  .cta p {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 1.9rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .step {
    flex-direction: column;
  }
  
  .step-number {
    margin-bottom: 15px;
    margin-right: 0;
  }
  
  .step::after {
    left: 25px;
    top: 50px;
    height: calc(100% + 30px);
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .disclaimer {
    padding: 10px 15px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
}
