/* 
 * nudeifySG.site - Modern CSS Styles
 * Colors: Teal (#00796B) and Amber (#FFC107)
 * Unique design for Singapore market with clean, modern aesthetics
 */

/* Base Styles & Variables */
:root {
    --primary: #00796B;
    --secondary: #FFC107;
    --primary-light: #B2DFDB;
    --primary-dark: #004D40;
    --secondary-light: #FFECB3;
    --secondary-dark: #FFA000;
    --text-dark: #212121;
    --text-medium: #757575;
    --text-light: #FAFAFA;
    --background: #FFFFFF;
    --background-alt: #F5F5F5;
    --background-dark: #263238;
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* Reset & Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 10px base for easier rems */
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 1.6rem;
    color: var(--text-medium);
}

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

a:hover {
    color: var(--primary-dark);
}

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

/* Container */
.container {
    width: 90%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-lg {
    padding: 1.6rem 3.2rem;
    font-size: 1.8rem;
}

.btn-sm {
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-3px);
}

.btn-white {
    background-color: var(--text-light);
    color: var(--primary);
}

.btn-white:hover {
    background-color: var(--background);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background);
    z-index: 1000;
    padding: 2rem 0;
    transition: var(--transition);
}

.header.sticky {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.logo-svg {
    height: 4rem;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 3rem;
}

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

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

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

.nav-cta {
    margin-left: 2rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 3.2rem;
    height: 2.4rem;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.nav-toggle span:first-child {
    top: 0;
}

.nav-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle span:last-child {
    bottom: 0;
}

.nav-toggle.active span:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

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

.nav-toggle.active span:last-child {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Hero Section */
.hero {
    padding: 18rem 0 10rem;
    position: relative;
    overflow: hidden;
    background-color: var(--background-alt);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 5;
}

.hero-badge {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background-color: var(--secondary);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.4rem;
    border-radius: 3rem;
    margin-bottom: 2.4rem;
}

.hero h1 {
    margin-bottom: 2.4rem;
}

.hero h1 span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: var(--secondary);
    border-radius: 3px;
    opacity: 0.6;
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 4rem;
    max-width: 54rem;
}

.hero-actions {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 4rem;
}

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

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

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

.hero-visual {
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-decoration {
    width: 100%;
    height: auto;
    opacity: 0.8;
}

.hero-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5rem;
    overflow: hidden;
    line-height: 0;
}

.hero-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 5rem;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 121, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 121, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 121, 107, 0);
    }
}

/* Section Styles */
.section-header {
    text-align: center;
    max-width: 70rem;
    margin: 0 auto 6rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.6rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

/* Features Section */
.features {
    padding: 10rem 0;
    background-color: var(--background);
}

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

.feature-card {
    padding: 3rem;
    border-radius: var(--border-radius);
    background-color: var(--background-alt);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 8rem;
    height: 8rem;
    margin-bottom: 2.4rem;
}

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

/* How It Works Section */
.how-it-works {
    padding: 10rem 0;
    background-color: var(--background-alt);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 6rem;
}

.step {
    flex: 1;
    min-width: 25rem;
    text-align: center;
    padding: 2rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    background-color: var(--primary);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 auto 2.4rem;
}

.step-content h3 {
    margin-bottom: 1.6rem;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem;
    background-color: var(--primary);
    border-radius: var(--border-radius);
    color: var(--text-light);
}

.cta-content h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--primary-light);
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials {
    padding: 10rem 0;
    background-color: var(--background);
    position: relative;
    overflow: hidden;
}

.testimonials-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20rem;
    z-index: 1;
}

.testimonials .container {
    position: relative;
    z-index: 5;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
}

.testimonial-card {
    padding: 3rem;
    border-radius: var(--border-radius);
    background-color: var(--background);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.testimonial-card.featured {
    border: 2px solid var(--secondary);
    transform: scale(1.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card.featured:hover {
    transform: translateY(-5px) scale(1.05);
}

.testimonial-rating {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 1.6rem;
}

.testimonial-text {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 2.4rem;
    color: var(--text-dark);
}

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

/* FAQ Section */
.faq {
    padding: 10rem 0;
    background-color: var(--background-alt);
}

.faq-list {
    max-width: 80rem;
    margin: 0 auto;
}

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

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

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

.faq-toggle {
    position: relative;
    width: 2.4rem;
    height: 2.4rem;
}

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

.faq-toggle::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    transform: translateY(-50%);
}

.faq-toggle::after {
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    transform: translateX(-50%);
}

.faq-item.active .faq-toggle::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    padding: 0 2.4rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 2.4rem 2.4rem;
    max-height: 20rem;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
    background-color: var(--primary);
    color: var(--text-light);
    text-align: center;
}

.cta-section h2 {
    color: var(--text-light);
    margin-bottom: 2.4rem;
}

.cta-section p {
    color: var(--primary-light);
    margin-bottom: 4rem;
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    padding: 8rem 0 2rem;
    background-color: var(--background-dark);
    color: var(--text-light);
}

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

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

.footer-svg {
    height: 4rem;
    width: auto;
    margin-bottom: 2rem;
}

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

.footer-col h4 {
    color: var(--text-light);
    margin-bottom: 2.4rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1rem;
    width: 4rem;
    height: 3px;
    background-color: var(--secondary);
}

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

.footer-col li {
    margin-bottom: 1.2rem;
}

.footer-col a {
    color: var(--text-light);
    opacity: 0.7;
    transition: var(--transition);
}

.footer-col a:hover {
    opacity: 1;
    color: var(--secondary);
}

.footer-bottom {
    padding-top: 2.4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    color: var(--text-light);
    opacity: 0.7;
    margin: 0;
}

.footer-icon {
    display: flex;
    align-items: center;
}

.favicon-svg {
    width: 3.2rem;
    height: auto;
}

/* Animations for scrolling */
.animated {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    html {
        font-size: 56.25%; /* 9px base */
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%; /* 8px base */
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 4rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: block;
        z-index: 1000;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
