/* COCODUCK Official Website Stylesheet */
:root {
    --primary-yellow: #FFD21E;
    --primary-yellow-hover: #F2C200;
    --dark-bg: #12131a;
    --card-bg-dark: #1b1c26;
    --white-bg: #ffffff;
    --light-gray: #f8f9fa;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-gold: 0 10px 20px -3px rgba(255, 210, 30, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

/* Navigation bar */
header {
    background-color: rgba(18, 19, 26, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.nav-btn {
    background-color: var(--primary-yellow);
    color: var(--dark-bg) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600 !important;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(255, 210, 30, 0.3);
}

.nav-btn:hover {
    background-color: var(--primary-yellow-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 210, 30, 0.4);
}

/* Font Gradient styling */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 10%, #fff7d6 50%, #ffd21e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Hero Section with Duck Background Pattern */
.hero-section {
    position: relative;
    background: radial-gradient(circle at top right, #1d1e2b 0%, var(--dark-bg) 100%);
    /* Yellow duck repeating background pattern (subtle overlay) */
    background-image: 
        radial-gradient(circle at top right, #1d1e2b 0%, var(--dark-bg) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%23ffd21e' fill-opacity='0.025'%3E%3Cpath d='M30 45c0-10 15-10 15 0c0 3 2 5 5 5c5 0 8-5 8 0c0 10-13 15-23 15C20 65 15 55 30 45zM22 48c-3 0-5 2-3 4c2 2 6 0 6-4z'/%3E%3Ccircle cx='32' cy='44' r='2' fill='%23ffd21e'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    padding: 8rem 2rem 6rem 2rem;
    text-align: center;
    color: #ffffff;
    border-bottom: 4px solid var(--primary-yellow);
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-yellow);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: var(--dark-bg);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background-color: var(--primary-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 210, 30, 0.35);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Features grid / White element section */
.features-section {
    padding: 6rem 2rem;
    background-color: var(--white-bg);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    color: var(--primary-yellow-hover);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

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

.feature-card {
    background-color: var(--light-gray);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-yellow-hover);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-desc {
    color: var(--text-muted);
}

/* Pricing Plan Section with White Cards */
.pricing-section {
    padding: 6rem 2rem;
    background-color: var(--light-gray);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
    margin-top: 3rem;
}

.pricing-card {
    background-color: var(--white-bg);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.pricing-card.popular {
    border: 2px solid var(--primary-yellow);
    box-shadow: var(--shadow-gold);
    transform: scale(1.03);
}

.popular-badge {
    position: absolute;
    top: 12px;
    right: -32px;
    background-color: var(--primary-yellow);
    color: var(--dark-bg);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 2.5rem;
    transform: rotate(45deg);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-yellow);
}

.pricing-card.popular:hover {
    transform: translateY(-5px) scale(1.03);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.plan-price-box {
    margin-bottom: 1.5rem;
}

.plan-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
}

.plan-period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.plan-features li {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-features li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
}

.btn-plan {
    background-color: var(--light-gray);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: block;
    transition: var(--transition);
}

.pricing-card.popular .btn-plan {
    background-color: var(--primary-yellow);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
}

.pricing-card:hover .btn-plan {
    background-color: var(--primary-yellow);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
}

/* Articles Section */
.articles-section {
    padding: 6rem 2rem;
    background-color: var(--white-bg);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.article-card {
    background-color: var(--white-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-yellow);
}

.article-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.article-link {
    color: var(--primary-yellow-hover);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

.article-link:hover {
    gap: 0.5rem;
}

/* Single Article Layout */
.blog-header {
    background: radial-gradient(circle at top right, #1d1e2b 0%, var(--dark-bg) 100%);
    padding: 6rem 2rem 4rem 2rem;
    text-align: center;
    color: #ffffff;
    border-bottom: 4px solid var(--primary-yellow);
}

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

.blog-meta-info {
    color: var(--primary-yellow);
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.blog-content {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.blog-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 2.5rem 0 1rem 0;
    color: var(--text-dark);
    border-left: 5px solid var(--primary-yellow);
    padding-left: 1rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content strong {
    color: var(--text-dark);
}

.blog-content blockquote {
    border-left: 4px solid var(--primary-yellow);
    padding: 1rem 1.5rem;
    background-color: var(--light-gray);
    margin: 2rem 0;
    font-style: italic;
}

.blog-content a {
    color: var(--primary-yellow-hover);
    text-decoration: underline;
    font-weight: 600;
}

.blog-content a:hover {
    color: var(--dark-bg);
}

/* User Reviews Section */
.reviews-section {
    padding: 6rem 2rem;
    background-color: var(--light-gray);
}

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

.review-card {
    background-color: var(--white-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-yellow);
}

.review-stars {
    color: var(--primary-yellow);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffe066;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--dark-bg);
}

.user-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.user-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
    padding: 6rem 2rem;
    background-color: var(--white-bg);
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background-color: var(--light-gray);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    user-select: none;
}

.faq-question:hover {
    background-color: #fffdec;
}

.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: none;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-icon::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
}

.faq-item.active .faq-icon::after {
    content: "−";
}

/* Footer Section */
footer {
    background-color: var(--dark-bg);
    color: #ffffff;
    padding: 4rem 2rem 2rem 2rem;
    border-top: 4px solid var(--primary-yellow);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-links h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--primary-yellow);
}

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

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-yellow);
    padding-left: 0.25rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive adjustment for Mobile Viewports */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.8rem 2rem;
        justify-content: center;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-5px) scale(1);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .blog-header {
        padding: 4rem 1rem 3rem 1rem;
    }
    
    .blog-main {
        padding: 2rem 1rem;
    }
}
