/* 
 * AIpornGeneratorMY.site Styles
 * Malaysian theme with unique color scheme
 */

:root {
    /* Colors - Malaysian flag inspired */
    --primary: #00A651;       /* Malaysia Green */
    --secondary: #0082CA;     /* Malaysia Blue */
    --accent: #FF4B4B;        /* Bright Red */
    --dark: #333333;
    --light: #f5f9f7;         /* Light greenish */
    --white: #ffffff;
    --gray: #6c757d;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --header-gradient: linear-gradient(to right, rgba(0, 166, 81, 0.9), rgba(0, 130, 202, 0.9));
    
    /* Shadows */
    --shadow-sm: 0 2px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    
    /* Typography */
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Border radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Base & Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary);
}

ul {
    list-style-type: none;
}

img, svg {
    max-width: 100%;
    height: auto;
}

.main-wrapper {
    position: relative;
    overflow: hidden;
}

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

section {
    padding: 80px 0;
    position: relative;
}

/* Typography */
h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.4rem;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--gray);
}

/* Header */
.site-header {
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.site-header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

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

.site-logo {
    z-index: 1001;
}

.logo-svg {
    display: block;
    height: auto;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--dark);
    margin: 5px 0;
    border-radius: 1px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--dark);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

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

/* Hero Section */
.hero-section {
    padding-top: 160px;
    padding-bottom: 120px;
    background-color: var(--white);
    overflow: hidden;
    position: relative;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-svg {
    max-width: 100%;
}

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 8px;
    background-color: rgba(0, 166, 81, 0.2);
    z-index: -1;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
    color: var(--gray);
}

.feature-list {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature-icon {
    fill: var(--primary);
    margin-right: 10px;
    flex-shrink: 0;
}

.cta-button {
    display: inline-block;
    background: var(--primary-gradient);
    color: var(--white);
    font-weight: 600;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 166, 81, 0.3);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 166, 81, 0.4);
    color: var(--white);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.wave-divider svg {
    width: 100%;
    height: 100px;
}

/* Features Section */
.features-section {
    background-color: var(--light);
    padding: 100px 0;
}

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

.feature-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    z-index: -1;
}

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

.feature-card-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    background-color: rgba(0, 166, 81, 0.1);
    border-radius: 50%;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* How To Section */
.how-to-section {
    background-color: var(--white);
    padding: 100px 0;
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 20px;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.step-box {
    position: relative;
    background-color: var(--white);
    border: 1px solid rgba(0, 166, 81, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
}

.step-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.steps-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.steps-divider::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    top: 50%;
    transform: translateY(-50%);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: var(--white);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-icon-container {
    margin-top: 1.5rem;
    color: var(--primary);
}

.step-icon {
    margin: 0 auto;
}

.cta-wrapper {
    text-align: center;
    margin-top: 2rem;
}

/* FAQ Section */
.faq-section {
    position: relative;
    background-color: var(--light);
    padding: 100px 0;
}

.wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-top svg {
    width: 100%;
    height: 100px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 3rem;
}

.faq-item {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.faq-toggle {
    color: var(--primary);
    transition: var(--transition);
}

.toggle-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    transition: var(--transition);
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 500px;
}

/* Footer */
.site-footer {
    background-color: #111;
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info {
    max-width: 360px;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
}

.footer-link-group h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.footer-link-group h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-gradient);
}

.footer-link-group ul li {
    margin-bottom: 0.75rem;
}

.footer-link-group a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-link-group a:hover {
    color: var(--primary);
}

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

.copyright {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.disclaimer {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding-top: 140px;
        padding-bottom: 100px;
    }
    
    .hero-section .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .steps-divider {
        display: none;
    }
    
    .step-box {
        margin-bottom: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-info {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-link-group h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        text-align: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        padding: 100px 40px;
        z-index: 1000;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        text-align: left;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
