/* =========================================
   1. RESET & BASE STYLES
   ========================================= */
:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.6);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent-1: #6366f1;
    --accent-2: #a855f7;
    --accent-3: #ec4899;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   2. FLOATING DECORATIVE SHAPES
   ========================================= */
.floating-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-1);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-2);
    top: 40%;
    right: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-3);
    bottom: -100px;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* =========================================
   3. UTILITY & LAYOUT
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   4. GLASSMORPHISM & CARDS
   ========================================= */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px) perspective(1000px) rotateX(2deg);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* =========================================
   5. BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
}

.animated-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--accent-1);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 50px;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =========================================
   7. STATS & SERVICES
   ========================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

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

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent-2);
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =========================================
   8. TIMELINE
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-3));
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 30px;
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border: 2px solid var(--accent-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-1);
    z-index: 2;
}

/* =========================================
   9. PORTFOLIO (CSS ABSTRACT)
   ========================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.portfolio-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

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

.art-1 { background: linear-gradient(135deg, #1e293b 0%, #4f46e5 50%, #ec4899 100%); }
.art-2 { background: linear-gradient(45deg, #0f172a 0%, #06b6d4 50%, #8b5cf6 100%); }
.art-3 { background: linear-gradient(225deg, #1e1b4b 0%, #f59e0b 50%, #ef4444 100%); }

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-card:hover .css-abstract {
    transform: scale(1.05);
}

/* =========================================
   10. ARTICLE STYLES (1600+ Words Layout)
   ========================================= */
.article-section {
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.article-container {
    max-width: 900px;
}

.article-header {
    text-align: center;
    margin-bottom: 50px;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

.article-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-1);
    padding-left: 16px;
}

.article-content h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
    color: var(--accent-2);
}

.article-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.article-content a {
    color: var(--accent-1);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-1);
    transition: var(--transition);
}

.article-content a:hover {
    color: var(--accent-3);
    border-bottom-style: solid;
}

.lead {
    font-size: 1.2rem !important;
    color: var(--text-primary) !important;
    font-weight: 500;
}

/* Article Elements */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-box {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 20px;
    border-radius: 12px;
}

.feature-box h4 {
    color: var(--accent-1);
    margin-bottom: 10px;
}

.warning-box {
    background: rgba(251, 191, 36, 0.1);
    border-left: 4px solid var(--warning);
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
    color: #fcd34d;
}

.comparison-table-container {
    overflow-x: auto;
    margin: 30px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
    font-weight: 600;
}

.comparison-table td {
    color: var(--text-secondary);
}

.pros-cons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 30px 0;
}

.pros-box, .cons-box {
    padding: 24px;
    border-radius: 12px;
}

.pros-box {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.cons-box {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.pros-box h4 { color: var(--success); margin-bottom: 15px; }
.cons-box h4 { color: var(--danger); margin-bottom: 15px; }

.pros-box ul, .cons-box ul {
    list-style: none;
    padding: 0;
}

.pros-box li, .cons-box li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.pros-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.cons-box li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: bold;
}

.article-quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-3);
    padding-left: 24px;
    margin: 40px 0;
    background: rgba(236, 72, 153, 0.05);
    padding: 24px;
    border-radius: 0 12px 12px 0;
}

.summary-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 16px;
    margin-top: 40px;
}

.summary-box h4 {
    margin-bottom: 15px;
    color: var(--accent-2);
}

.summary-box ul {
    list-style: none;
    padding: 0;
}

.summary-box li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
}

.summary-box li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-1);
    font-weight: bold;
}

/* =========================================
   11. FAQ ACCORDION
   ========================================= */
.faq-container {
    max-width: 800px;
    margin: 40px auto;
}

.faq-item {
    margin-bottom: 16px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-1);
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    margin: 0;
}

/* =========================================
   12. TESTIMONIALS
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
}

.stars {
    color: var(--warning);
    font-size: 1.2rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-card p {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 24px;
    flex-grow: 1;
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.testimonial-author strong {
    display: block;
    color: var(--text-primary);
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* =========================================
   13. CONTACT SECTION
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.info-item svg {
    color: var(--accent-1);
    flex-shrink: 0;
    margin-top: 4px;
}

.info-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--accent-1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* =========================================
   14. FOOTER
   ========================================= */
.footer {
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-1);
    padding-left: 4px;
}

.footer-col p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent-1);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =========================================
   15. SCROLL REVEAL ANIMATION
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   16. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 968px) {
    .hero h1 { font-size: 2.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .pros-cons-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        padding: 40px 20px;
        gap: 24px;
        transform: translateX(-100%);
        transition: var(--transition);
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .trust-indicators { flex-direction: column; gap: 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
}