@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #10B981;
    /* Emerald Green */
    --primary-dark: #059669;
    --secondary: #0EA5E9;
    /* Sky Blue */
    --dark: #0F172A;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --gray: #64748B;
    --gray-light: #E2E8F0;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Prevent long words from breaking layout */
    overflow-wrap: break-word;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(3px);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
    white-space: normal;
}

/* Features/Services */
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: var(--transition);
    z-index: -1;
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
}

/* Blog Prev Section */
.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-img-wrapper {
    overflow: hidden;
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.blog-title a:hover {
    color: var(--primary);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Article Page */
.article-header {
    padding: 8rem 0 4rem;
    background: var(--white);
    text-align: center;
}

.article-hero-img {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    object-fit: cover;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

.article-content {
    background: var(--white);
    padding: 4rem 0;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
}

.article-body h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--dark);
}

.article-body p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #334155;
}

.article-body img {
    border-radius: 12px;
    margin: 2rem 0 0.5rem 0;
    /* Adjusted for caption */
    box-shadow: var(--shadow);
}

/* Feature Additions for Blog */
/* -------------------------- */

/* Table of Contents */
.toc-container {
    background: var(--light);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0 3rem;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--dark);
}

.toc-content {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

.toc-content.active {
    display: block;
}

.toc-content ul {
    list-style: none;
    padding-left: 0;
}

.toc-content li {
    margin-bottom: 0.75rem;
}

.toc-content a {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 1.05rem;
}

.toc-content a:hover {
    text-decoration: underline;
    color: var(--primary);
}

/* Image Caption */
.img-caption {
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
    margin-bottom: 2rem;
    display: block;
    font-style: italic;
}

/* Read Also */
.read-also {
    background: rgba(14, 165, 233, 0.05);
    border-left: 4px solid var(--secondary);
    padding: 1.2rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
}

.read-also strong {
    margin-right: 0.5rem;
    color: var(--dark);
}

.read-also a {
    color: var(--secondary);
    font-weight: 600;
}

.read-also a:hover {
    text-decoration: underline;
}

/* Blockquote */
.custom-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--dark);
    padding: 2.5rem 2rem 2rem;
    margin: 3rem 0;
    position: relative;
    background: linear-gradient(to right, var(--light), #ffffff);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border-left: 4px solid var(--primary);
}

.custom-quote::before {
    content: '\0022';
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: -20px;
    left: 20px;
    font-family: serif;
    line-height: 1;
}

.quote-author {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 1rem;
    font-style: normal;
}

/* FAQ Section */
.faq-section {
    margin: 4rem 0;
}

.faq-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    background: var(--light);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark);
    font-size: 1.1rem;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--white);
}

.faq-answer p {
    padding: 1.25rem 1.5rem;
    margin: 0;
    color: #475569;
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Author Profile */
.author-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: #f1f5f9;
    border-radius: 12px;
    margin: 3rem 0;
}

.author-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
}

.author-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.author-info p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--gray);
}

/* Social Share */
.social-share {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
}

.social-share span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
    margin-right: 0.5rem;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

.share-wa {
    background: #25D366;
}

.share-fb {
    background: #1877F2;
}

.share-x {
    background: #000000;
}

.share-ig {
    background: #0a66c2;
}

/* using linked in color for variety, since standard ig is gradient */

/* Related Articles */
.related-articles {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--gray-light);
}


/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer p {
    color: #94A3B8;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94A3B8;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .section {
        padding: 4rem 0;
    }

    .hero {
        min-height: 80vh;
        padding-top: 6rem;
    }

    .hero-content {
        max-width: 100%;
        word-wrap: break-word;
    }

    .article-header {
        padding: 6rem 0 2rem;
    }

    .article-hero-img {
        height: 250px;
    }

    .article-content {
        padding: 2rem 0;
    }

    .custom-quote {
        padding: 2rem 1.5rem 1.5rem;
        margin: 2rem 0;
        font-size: 1.1rem;
    }

    .author-profile {
        padding: 1.5rem;
        gap: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .toc-container {
        padding: 1.2rem;
        margin: 1.5rem 0;
    }

    .toc-header {
        font-size: 1.1rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .faq-answer p {
        padding: 1rem 1.25rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 250px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 6rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .author-profile {
        flex-direction: column;
        text-align: center;
    }

    .social-share {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero-content {
        text-align: center;
    }

    .wa-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Floating WhatsApp */
.wa-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 10px #999;
}