/* ==========================================================================
   CSS Index & Variables (SaaS Design with Dark Glassmorphism)
   ========================================================================== */
:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(22, 30, 49, 0.65);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.4);
    --accent: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.3);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-heading: #ffffff;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --radius-lg: 16px;
    --radius-md: 10px;
    --transition-fast: 0.25s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: #38bdf8;
}

h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.25rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

/* Glassmorphism Styling */
.glass-card, .glass-nav {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 0.95rem;
    border: none;
}

.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-glow:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px var(--accent-glow);
    color: #ffffff;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--bg-card-border);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.full-width {
    width: 100%;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 1240px;
    z-index: 1000;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 11rem 0 6rem;
    overflow: hidden;
    text-align: center;
}

.hero-bg-blobs {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
}

.blob-1 {
    width: 450px;
    height: 450px;
    background: var(--primary);
    top: -100px;
    left: 20%;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: 100px;
    right: 20%;
}

.badge-animated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-section h1 {
    font-size: 3.25rem;
    font-weight: 800;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    letter-spacing: -0.02em;
}

.hero-intro {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 2.5rem;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

/* Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-heading);
}

.plus {
    font-size: 1.5rem;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    font-size: 2.25rem;
}

.section-header p {
    color: var(--text-muted);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-card-border);
}

.service-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 850px;
    margin: 0 auto;
}

.timeline-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.timeline-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--accent);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-content {
    padding: 1.5rem 2rem;
    width: 100%;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 260px;
    border: 1px solid var(--bg-card-border);
}

.abstract-placeholder {
    width: 100%;
    height: 100%;
    transition: var(--transition-smooth);
}

.geo-pattern-1 {
    background: linear-gradient(135deg, #1e1b4b, #312e81, #0f172a);
}

.geo-pattern-2 {
    background: linear-gradient(135deg, #064e3b, #047857, #022c22);
}

.geo-pattern-3 {
    background: linear-gradient(135deg, #4c1d95, #6d28d9, #1e1b4b);
}

.portfolio-card:hover .abstract-placeholder {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(11, 15, 25, 0.95));
}

.portfolio-overlay h4 {
    margin-bottom: 0.2rem;
}

.portfolio-overlay p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Article Styling (1600+ Word Content Section) */
.article-container {
    max-width: 900px;
}

.article-header {
    margin-bottom: 2.5rem;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.article-body {
    padding: 3rem;
    font-size: 1.05rem;
    color: #d1d5db;
}

.lead-paragraph {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.article-body h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--bg-card-border);
    padding-bottom: 0.5rem;
}

.article-body h3 {
    font-size: 1.3rem;
    margin-top: 1.75rem;
}

.callout-box, .tip-box, .warning-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.callout-box {
    background: rgba(79, 70, 229, 0.1);
    border-left: 4px solid var(--primary);
}

.tip-box {
    background: rgba(6, 182, 212, 0.1);
    border-left: 4px solid var(--accent);
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #f59e0b;
}

.callout-icon, .tip-icon, .warning-icon {
    font-size: 1.5rem;
}

/* Article Tables */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.comparison-table th, .comparison-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--bg-card-border);
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-heading);
}

.stat-callout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.mini-stat {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--bg-card-border);
}

.mini-stat h4 {
    font-size: 1.75rem;
    color: var(--accent);
    margin: 0;
}

.mini-stat p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.styled-list {
    margin: 1.5rem 0 1.5rem 1.5rem;
}

.styled-list li {
    margin-bottom: 0.75rem;
}

/* FAQ Accordion */
.accordion-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-heading);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-icon {
    font-size: 1.25rem;
    color: var(--accent);
    transition: var(--transition-fast);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.35s ease;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem 1.5rem;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    padding: 2rem;
}

.rating {
    color: #f59e0b;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    color: var(--text-main);
    font-size: 0.95rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

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

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3.5rem;
}

.info-details {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--bg-card-border);
    padding: 0.85rem;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Footer */
.site-footer {
    background: #060911;
    border-top: 1px solid var(--bg-card-border);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

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

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a, .footer-col p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-link-highlight {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--accent) !important;
    font-weight: 600;
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .hero-section h1 { font-size: 2.5rem; }
    .services-grid, .portfolio-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-toggle { display: flex; }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 1.5rem;
        border-radius: var(--radius-lg);
        border: 1px solid var(--bg-card-border);
    }
    
    .hero-stats { grid-template-columns: 1fr; }
    .services-grid, .portfolio-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .article-body { padding: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-cta-group { flex-direction: column; }
}