/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15), 0 6px 6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar:hover {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
    display: inline-block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a5f3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--accent-color);
    color: var(--white);
}

.cta-button.large {
    padding: 20px 50px;
    font-size: 18px;
}

.hero-image {
    animation: fadeInRight 1s ease;
}

.floating-image {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    animation: floating 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.floating-image:hover {
    transform: scale(1.05) rotate(2deg);
    animation-play-state: paused;
}

/* Social Share */
.social-share {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid #e2e8f0;
}

.social-share .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.share-text {
    font-weight: 600;
    color: var(--text-dark);
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.pinterest {
    background: #e60023;
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

.article-content {
    background: var(--white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.8s ease;
}

.content-section {
    margin-bottom: 50px;
}

.content-section:last-child {
    margin-bottom: 0;
}

h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

h2 {
    font-size: 36px;
    margin-bottom: 25px;
    color: var(--text-dark);
    font-weight: 700;
}

.gradient-heading {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.gradient-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Table of Contents */
.table-of-contents {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    border-left: 4px solid var(--primary-color);
}

.table-of-contents h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
}

.table-of-contents ul {
    list-style: none;
}

.table-of-contents li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.table-of-contents li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.table-of-contents a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
}

.table-of-contents a:hover {
    color: var(--primary-color);
    text-decoration: none;
    padding-left: 5px;
    transition: padding 0.3s ease;
}

/* Feature Highlight */
.feature-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 4px solid #f59e0b;
}

.feature-highlight h3 {
    color: #92400e;
    margin-bottom: 15px;
}

.feature-highlight p {
    color: #78350f;
}

/* Features Table */
.features-table {
    margin: 40px 0;
    overflow-x: auto;
}

.features-table h3 {
    margin-bottom: 20px;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

thead {
    background: var(--gradient-1);
    color: var(--white);
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-light);
}

tr:hover {
    background: #f8fafc;
    transition: background 0.3s ease;
}

tr:last-child td {
    border-bottom: none;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.tip-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.tip-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.tip-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* Product Spotlight */
.product-spotlight {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    padding: 40px;
    border-radius: 20px;
    margin: 30px 0;
    border: 3px solid var(--accent-color);
    box-shadow: var(--shadow-md);
}

.product-spotlight h3 {
    color: #831843;
    margin-bottom: 20px;
    font-size: 28px;
}

.product-spotlight p {
    color: #831843;
    font-size: 16px;
}

/* Pro Tips */
.pro-tips {
    margin: 40px 0;
}

.pro-tips h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.tip-section {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.tip-section:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.tip-section h4 {
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 20px;
}

.tip-section p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    margin: 60px 0;
    animation: fadeIn 1s ease;
}

.cta-box {
    background: var(--gradient-1);
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-xl);
}

.cta-box h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-box p {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* FAQ Section */
.faq-section {
    margin-top: 60px;
}

.faq-container {
    margin-top: 30px;
}

.faq-item {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.faq-item h3 {
    color: var(--text-dark);
    font-size: 20px;
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Author Section */
.author-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
}

.author-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.author-info h3 {
    color: var(--text-dark);
    font-size: 28px;
    margin-bottom: 10px;
}

.author-info h4 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 20px;
}

.author-info p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.author-social {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.author-social p {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--text-dark);
}

.social-link {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.social-link.website {
    background: var(--primary-color);
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.author {
    background: var(--secondary-color);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-image {
        text-align: center;
    }

    .article-content {
        padding: 40px 30px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 40px 30px;
    }

    .cta-box h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .article-content {
        padding: 30px 20px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 20px;
    }

    .features-table {
        font-size: 14px;
    }

    th, td {
        padding: 10px;
    }

    .social-share .container {
        flex-direction: column;
        gap: 15px;
    }

    .share-buttons {
        justify-content: center;
    }

    .author-card {
        padding: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 14px;
    }

    .cta-button.large {
        padding: 15px 35px;
        font-size: 16px;
    }

    .article-content {
        padding: 20px 15px;
    }

    .table-of-contents,
    .feature-highlight,
    .product-spotlight {
        padding: 20px;
    }

    .cta-box {
        padding: 30px 20px;
    }

    .cta-box h2 {
        font-size: 24px;
    }

    .cta-box p {
        font-size: 16px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--white);
}