/*
 * undressaiMY.love - Main Stylesheet
 * Malaysian AI undressing tool website
 * Color scheme: Purple and violet with dark accents
 */

/* Base styles and reset */
:root {
    --primary-color: #9c27b0;
    --secondary-color: #673ab7;
    --accent-color: #ff4081;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --text-gradient: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --border-radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    color: #333;
    background-color: #f0f2f5;
    line-height: 1.6;
}

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

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
}

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

.primary-btn {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(156, 39, 176, 0.6);
    color: white;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background: rgba(156, 39, 176, 0.1);
    transform: translateY(-2px);
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
}

.logo-icon {
    margin-right: 10px;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

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

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

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

.menu-toggle {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
}

.hamburger {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -10px;
}

.hamburger::after {
    bottom: -10px;
}

.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Hero Section */
.hero-section {
    padding: 100px 0 120px;
    background-color: var(--dark-color);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
    background: linear-gradient(90deg, white, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-shape {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 80%;
    height: 200%;
    background: var(--gradient);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.6;
    transform: rotate(-15deg);
}

.hero-glow {
    position: absolute;
    top: 20%;
    right: 15%;
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    filter: blur(90px);
    opacity: 0.3;
    border-radius: 50%;
}

/* Intro Section */
.intro-section {
    background-color: white;
}

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

.benefit-item {
    text-align: center;
    padding: 40px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    background-color: white;
}

.benefit-item:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 50%;
}

.benefit-icon svg {
    fill: white;
}

.benefit-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Features Section */
.features-section {
    background-color: #f9f9f9;
    position: relative;
}

.features-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C27B0' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background-color: white;
    padding: 35px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.feature-card:hover::before {
    width: 100%;
}

.feature-card:hover {
    color: white;
}

.feature-card:hover h3 {
    color: white;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Tutorial Section */
.tutorial-section {
    background-color: white;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25px;
    height: 100%;
    width: 2px;
    background: var(--gradient);
    opacity: 0.3;
}

.step-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

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

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: bold;
    margin-right: 25px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.3);
    position: relative;
    z-index: 2;
}

.step-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.cta-container {
    text-align: center;
    margin-top: 60px;
}

/* FAQ Section */
.faq-section {
    background-color: #f9f9f9;
}

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

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 30px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

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

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 30px 20px;
}

/* Call to Action */
.call-to-action {
    padding: 80px 0;
    background: var(--gradient);
    text-align: center;
    color: white;
}

.call-to-action h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.call-to-action p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.call-to-action .btn {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.call-to-action .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 70px 0 30px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-icon {
    margin-right: 15px;
}

.footer-title h3 {
    color: white;
    margin-bottom: 5px;
}

.footer-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.footer-col a:hover {
    color: white;
}

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

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

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

/* Media Queries */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .main-nav.active {
        max-height: 300px;
        padding: 20px 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .footer-links {
        gap: 30px;
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding: 80px 0 100px;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .step-item {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 15px;
    }
    
    .steps-container::before {
        display: none;
    }
}
