/* 
   Malaysian Website Style - nudeifyMY.site
   Colors inspired by Malaysian flag:
   - Dark Blue: #000E54
   - Red: #CC0000
   - Yellow: #FFD100
*/

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #000E54;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 80px;
    background: linear-gradient(to right, #000E54, #CC0000, #FFD100);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: #000E54;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #CC0000;
}

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

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.content {
    padding: 80px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #000E54, #000a42);
    color: white;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 14, 84, 0.2);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 14, 84, 0.3);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #CC0000, #a30000);
}

.btn-tertiary {
    background: linear-gradient(135deg, #FFD100, #e6bc00);
    color: #000E54;
}

.btn-tertiary:hover {
    color: #000E54;
}

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

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

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000E54;
}

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

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

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

.nav-menu li a {
    font-weight: 600;
    color: #333;
    position: relative;
}

.nav-menu li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #000E54, #CC0000, #FFD100);
    transition: width 0.3s ease;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #000E54;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    padding-top: 100px;
    background: linear-gradient(135deg, #000E54 0%, #001e94 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50,15 L60,35 L82,35 L65,50 L75,70 L50,55 L25,70 L35,50 L18,35 L40,35 L50,15' stroke='%23FFD100' fill='none' opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 30px;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Features Section */
.features {
    background-color: white;
    position: relative;
}

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

.feature-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid #FFD100;
}

.feature-icon {
    margin-bottom: 20px;
}

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

/* How It Works */
.how-works {
    background-color: #f6f9fc;
    position: relative;
}

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

.step {
    text-align: center;
    position: relative;
    padding: 0 15px;
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 25px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, #000E54, #FFD100);
    display: none;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #FFD100;
    color: #000E54;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

/* Benefits Section */
.benefits {
    background-color: white;
    position: relative;
}

.benefits-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.benefits-content {
    flex: 1;
}

.benefits-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.benefit-icon {
    margin-right: 15px;
    flex-shrink: 0;
}

.benefit-text {
    flex: 1;
}

.benefit-text h4 {
    margin-bottom: 5px;
}

/* FAQ Section */
.faq {
    background-color: #f6f9fc;
    position: relative;
}

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

.faq-item {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    font-weight: 700;
    color: #000E54;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
}

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

.faq-item.active .faq-question {
    color: #CC0000;
}

.faq-item.active .faq-question:after {
    content: '−';
}

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

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #CC0000 0%, #ff3333 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    color: white;
}

.cta h2:after {
    left: 50%;
    transform: translateX(-50%);
    background: #FFD100;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
}

.cta .btn {
    background: linear-gradient(135deg, #FFD100, #ffe566);
    color: #000E54;
}

/* Footer */
.footer {
    background-color: #0a1342;
    color: white;
    padding: 80px 0 40px;
}

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

.footer-about {
    margin-right: 30px;
}

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

.footer-logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    margin-left: 10px;
    color: white;
}

.footer-heading {
    color: #FFD100;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b7b9c2;
}

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

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b7b9c2;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .step:after {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .content {
        padding: 60px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .hero-container {
        flex-direction: column;
        padding: 40px 0;
    }

    .hero-content, .hero-image {
        width: 100%;
        padding: 0;
        margin-bottom: 40px;
    }

    .benefits-container {
        flex-direction: column-reverse;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .feature-cards, .steps {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}
