/* Base variables (inherit/extend from style.css conceptually, but redefined here for independence if needed) */
:root {
    --primary-color: #6366f1; /* Indigo */
    --primary-hover: #4f46e5;
    --primary-light: #e0e7ff;
    --secondary-color: #8b5cf6; /* Violet */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-body: #ffffff;
    --bg-gray: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Nunito', sans-serif;
    
    /* Utility Colors */
    --color-purple: #8b5cf6;
    --color-purple-light: #ede9fe;
    --color-blue: #3b82f6;
    --color-blue-light: #dbeafe;
    --color-orange: #f97316;
    --color-orange-light: #ffedd5;
    --color-green: #10b981;
    --color-green-light: #d1fae5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.text-center { text-align: center; }
.bg-gray { background-color: var(--bg-gray); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

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

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.btn-light:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
}

.btn-outline-light:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 16px;
    position: relative;
}

.nav-links a:not(.btn):hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-title {
    font-size: 36px;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    padding: 180px 0 120px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-main), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Search Box */
.search-wrapper {
    background: white;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-wrapper:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(99,102,241,0.15);
    border-color: var(--primary-light);
}

.search-input-group {
    display: flex;
    align-items: center;
    background: var(--bg-gray);
    border-radius: 10px;
    padding: 5px 5px 5px 20px;
}

.search-input-group .search-icon {
    font-size: 24px;
    color: var(--primary-color);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 20px;
    font-size: 18px;
    font-family: inherit;
    outline: none;
    color: var(--text-main);
}

.search-input::placeholder {
    color: var(--text-light);
}

.btn-search {
    background: var(--primary-color);
    color: white;
    padding: 15px 35px;
    font-size: 16px;
}

.btn-search:hover {
    background: var(--primary-hover);
}

.popular-searches {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.popular-searches a {
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.popular-searches a:hover {
    background: var(--primary-color);
    color: white;
}

/* Decorative Hero Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
}
.shape-1 {
    top: -10%; left: -5%;
    width: 400px; height: 400px;
    background: var(--primary-light);
}
.shape-2 {
    bottom: -10%; right: -5%;
    width: 300px; height: 300px;
    background: var(--color-purple-light);
}

/* Grid System */
.grid {
    display: grid;
    gap: 30px;
}

.cat-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.content-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Category Cards */
.cat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    top: 0;
}

.cat-card:hover {
    top: -10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: transparent;
}

.cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.cat-card:hover .cat-icon {
    transform: scale(1.1);
}

.bg-purple-light { background-color: var(--color-purple-light); }
.text-purple { color: var(--color-purple); }
.bg-blue-light { background-color: var(--color-blue-light); }
.text-blue { color: var(--color-blue); }
.bg-orange-light { background-color: var(--color-orange-light); }
.text-orange { color: var(--color-orange); }
.bg-green-light { background-color: var(--color-green-light); }
.text-green { color: var(--color-green); }

.cat-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.cat-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 15px;
}

.cat-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-family: var(--font-heading);
}

/* Content Cards (Featured) */
.featured-section .section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.view-all:hover {
    gap: 10px;
}

.content-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.card-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-img-icon {
    font-size: 64px;
    color: white;
    opacity: 0.8;
}

.card-body {
    padding: 30px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-purple { background: var(--color-purple-light); color: var(--color-purple); }
.badge-blue { background: var(--color-blue-light); color: var(--color-blue); }
.badge-green { background: var(--color-green-light); color: var(--color-green); }

.card-meta .date {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.content-card .card-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.content-card .card-title a {
    color: var(--text-main);
}

.content-card .card-title a:hover {
    color: var(--primary-color);
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 32px;
    height: 32px;
    background: var(--bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.author span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

/* Latest Section (List Layout) */
.list-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.list-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}

.item-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-muted);
    margin-right: 25px;
    transition: all 0.3s ease;
}

.list-item:hover .item-icon {
    background: var(--primary-color);
    color: white;
}

.item-content {
    flex: 1;
}

.item-title {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.list-item:hover .item-title {
    color: var(--primary-color);
}

.item-desc {
    color: var(--text-muted);
    font-size: 14px;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 30px;
}

.item-meta .date {
    font-size: 14px;
    color: var(--text-light);
}

.item-arrow {
    font-size: 24px;
    color: var(--border-color);
    transition: all 0.3s ease;
}

.list-item:hover .item-arrow {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* CTA Banner */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4xIi8+PC9zdmc+') repeat;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.cta-content h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    margin-bottom: 60px;
}

.footer-logo .logo-text {
    color: white;
}

.footer-desc {
    color: var(--text-light);
    margin: 20px 0;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 15px;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
    .hero-title {
        font-size: 42px;
    }
}

/* Dropdown Styles */
.dropdown { position: relative; display: inline-block; cursor: pointer; height: 100%; display: flex; align-items: center;}
.dropdown > a { display: flex; align-items: center; gap: 4px; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--bg-card); min-width: 200px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 12px; padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; z-index: 100; border: 1px solid var(--border-color); }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block !important; padding: 10px 20px; color: var(--text-muted); font-weight: 500; font-size: 15px; border: none !important; }
.dropdown-menu a::after { display: none !important; }
.dropdown-menu a:hover { color: var(--primary-color) !important; background: var(--bg-gray); padding-left: 25px; }

/* Hamburger Menu */
.hamburger { display: none; font-size: 28px; cursor: pointer; color: var(--text-main); margin-left: auto; margin-right: 15px;}

@media (max-width: 768px) {
    .hamburger { display: block; z-index: 1000; }
    .nav-links { position: fixed; top: 0; left: -100%; width: 300px; height: 100vh; background: var(--bg-card); flex-direction: column; align-items: flex-start !important; padding: 80px 30px 30px; box-shadow: 20px 0 50px rgba(0,0,0,0.1); transition: left 0.3s ease; z-index: 999; overflow-y: auto; gap: 0;}
    .nav-links.active { left: 0; }
    .nav-links a:not(.btn) { display: block !important; width: 100%; padding: 15px 0; border-bottom: 1px solid var(--border-color); }
    .dropdown { width: 100%; display: block; height: auto;}
    .dropdown > a { padding: 15px 0; border-bottom: 1px solid var(--border-color); justify-content: space-between;}
    .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding-left: 20px; display: none; }
    .dropdown.active .dropdown-menu { display: block; }
    .theme-toggle-btn { margin: 20px 0; }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    .hero-section {
        padding: 140px 0 80px;
    }
    .search-input-group {
        flex-direction: column;
        padding: 10px;
        background: transparent;
    }
    .search-input {
        width: 100%;
        background: var(--bg-gray);
        border-radius: 10px;
        margin-bottom: 10px;
    }
    .btn-search {
        width: 100%;
        border-radius: 10px;
    }
    .search-icon {
        display: none;
    }
    .featured-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .item-meta {
        width: 100%;
        justify-content: space-between;
    }
    .item-icon {
        margin-right: 0;
    }
    .cta-buttons {
        flex-direction: column;
    }
}


/* Dark Mode Variables */
[data-theme='dark'] {
    --bg-body: #0f172a;
    --bg-gray: #1e293b;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --primary-light: rgba(99, 102, 241, 0.15);
    --color-purple-light: rgba(139, 92, 246, 0.15);
    --color-blue-light: rgba(59, 130, 246, 0.15);
    --color-orange-light: rgba(249, 115, 22, 0.15);
    --color-green-light: rgba(16, 185, 129, 0.15);
}

/* Dark Mode Specific Overrides */
[data-theme='dark'] .navbar { background: rgba(15, 23, 42, 0.95); }
[data-theme='dark'] .hero-section { background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%); }
[data-theme='dark'] .hero-title { background: linear-gradient(135deg, #ffffff, var(--primary-color)); -webkit-background-clip: text; }
[data-theme='dark'] .content-card, [data-theme='dark'] .cat-card, [data-theme='dark'] .list-item, [data-theme='dark'] .pricing-card, [data-theme='dark'] .team-member, [data-theme='dark'] .integration-card { background: var(--bg-card); }
[data-theme='dark'] .search-wrapper { background: var(--bg-card); border-color: var(--border-color); }
[data-theme='dark'] .timeline-content { background: var(--bg-card); }
[data-theme='dark'] .timeline-date { background: var(--bg-body); }
[data-theme='dark'] .contact-form-card, [data-theme='dark'] .contact-info-card { background: var(--bg-card); }
