/* 
   undresserMY.love CSS
   Malaysian-themed design with hexagonal pattern layout
   Colors: Malaysian flag blue (#0052B4), red (#ED1C24), yellow (#FFDA44)
*/

/* Base Styles & Reset */
:root {
    --primary: #0052B4;
    --secondary: #ED1C24;
    --accent: #FFDA44;
    --dark: #222222;
    --light: #ffffff;
    --gray: #f8f9fa;
    --dark-gray: #444444;
    --medium-gray: #777777;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-alt: linear-gradient(135deg, var(--secondary), var(--accent));
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --radius: 10px;
    --transition: all 0.3s ease;
    --font: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    font-size: 16px;
    position: relative;
    overflow-x: hidden;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(0, 82, 180, 0.03), rgba(237, 28, 36, 0.03));
    z-index: -1;
    pointer-events: none;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.8em;
}

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.site-wrapper {
    position: relative;
}

/* Hexagonal Design Elements */
.hex {
    position: absolute;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex-divider {
    height: 100px;
    width: 100%;
    background-color: var(--gray);
    position: relative;
    overflow: hidden;
    margin-top: -50px;
}

.hex-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, var(--primary) 25%, transparent 25%, transparent 50%, var(--secondary) 50%, var(--secondary) 75%, transparent 75%, transparent);
    background-size: 20px 100%;
    opacity: 0.05;
}

.hex-divider-alt {
    background-color: var(--light);
}

/* Header & Navigation */
.site-header {
    position: relative;
    min-height: 80px;
}

.main-nav {
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

.main-nav.sticky {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    padding: 10px 0;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    fill: var(--accent);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.highlight {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

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

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

.nav-btn {
    padding: 8px 20px;
    background: var(--gradient);
    color: var(--light) !important;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 9px;
}

.menu-toggle span:nth-child(3) {
    top: 18px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* Hero Section */
.hero-section {
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 90% 10%, var(--primary) 0%, transparent 60%);
    opacity: 0.05;
    z-index: -1;
}

.hex-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-content h1 .highlight {
    color: var(--secondary);
    background: none;
    position: relative;
    z-index: 1;
}

.hero-content h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 218, 68, 0.3);
    z-index: -1;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.primary-btn, .outline-btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.primary-btn {
    background: var(--gradient);
    color: var(--light);
    box-shadow: var(--shadow);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--light);
}

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

.outline-btn:hover {
    background: var(--primary);
    color: var(--light);
}

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

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.hero-visual {
    position: relative;
    height: 400px;
}

.hex-1, .hex-2, .hex-3 {
    position: absolute;
}

.hex-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient);
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.9;
}

.hex-2 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    right: 60px;
    top: 30%;
    transform: translateY(-30%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.5;
}

.hex-3 {
    width: 150px;
    height: 150px;
    background: var(--light);
    right: 120px;
    top: 60%;
    transform: translateY(-60%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 3px solid var(--primary);
    opacity: 0.7;
}

.hex-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hex.small {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    top: 20%;
    right: 30%;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.hex.medium {
    width: 70px;
    height: 70px;
    background-color: var(--secondary);
    bottom: 30%;
    right: 20%;
    opacity: 0.15;
    animation: float 10s ease-in-out infinite reverse;
}

.hex.large {
    width: 90px;
    height: 90px;
    background-color: var(--accent);
    top: 60%;
    right: 10%;
    opacity: 0.1;
    animation: float 12s ease-in-out infinite 2s;
}

.hex.small.alt {
    background-color: var(--secondary);
    top: 70%;
    left: 10%;
    animation-delay: 1s;
}

.hex.medium.alt {
    background-color: var(--primary);
    bottom: 10%;
    left: 20%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--medium-gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--gray);
    position: relative;
}

.about-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    background-color: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
}

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

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

.about-icon {
    margin-bottom: 20px;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: var(--light);
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.about-card p {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

/* Features Section */
.features-section {
    padding: 100px 0;
}

.features-grid {
    align-items: center;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.features-list svg {
    min-width: 24px;
    height: 24px;
    color: var(--primary);
}

.features-visual {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.hex-pattern-alt {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hex.medium-alt {
    width: 200px;
    height: 200px;
    background: var(--gradient);
    top: 20%;
    right: 0;
    opacity: 0.7;
}

.hex.large-alt {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 40%;
    right: 10%;
    opacity: 0.2;
}

.hex.small-alt {
    width: 100px;
    height: 100px;
    background: var(--secondary);
    bottom: 15%;
    right: 30%;
    opacity: 0.5;
}

.features-cta {
    text-align: center;
    margin-top: 50px;
}

/* How It Works */
.how-section {
    padding: 100px 0;
    background-color: var(--light);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    background-color: var(--gray);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

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

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.step-card p {
    color: var(--medium-gray);
}

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

.testimonial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 90%, var(--primary) 0%, transparent 40%);
    opacity: 0.05;
    z-index: 0;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
}

.quote-mark {
    font-size: 6rem;
    position: absolute;
    top: -30px;
    left: 20px;
    color: var(--primary);
    opacity: 0.1;
    font-family: serif;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 25px;
    position: relative;
}

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

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

.testimonial-rating {
    color: var(--accent);
    font-size: 1.3rem;
}

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

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

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

.accordion-item:hover {
    box-shadow: var(--shadow-lg);
}

.accordion-header {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-icon {
    position: relative;
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.accordion-icon::before, .accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary);
    transition: var(--transition);
}

.accordion-icon::before {
    top: 9px;
    left: 0;
    width: 100%;
    height: 2px;
}

.accordion-icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 100%;
}

.accordion-item.active .accordion-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

.accordion-content p {
    padding: 0 20px 20px;
    color: var(--medium-gray);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(rgba(0, 82, 180, 0.8), rgba(237, 28, 36, 0.8)),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M10 0L20 10 10 20 0 10z" fill="white" opacity="0.05"/></svg>');
    background-size: cover, 40px 40px;
    position: relative;
    color: var(--light);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Footer */
.site-footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 80px 0 30px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    fill: var(--accent);
}

.brand-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.brand-info p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
}

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

.footer-column ul {
    display: grid;
    gap: 10px;
}

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

.footer-column a:hover {
    color: var(--accent);
}

.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;
    font-size: 0.9rem;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .hex-grid, .about-grid, .steps-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .features-visual {
        display: none;
    }
    
    .features-list {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: var(--light);
        flex-direction: column;
        padding: 30px;
        transition: var(--transition);
        box-shadow: var(--shadow);
        z-index: 100;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .hex-grid, .about-grid, .steps-container, .footer-content {
        grid-template-columns: 1fr;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        height: 300px;
        margin-top: 30px;
    }
    
    .testimonial-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .primary-btn, .outline-btn {
        width: 100%;
    }
    
    .about-grid {
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
}
