/* CSS Variables & Reset */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #6366f1;
    --accent: #8b5cf6;
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 25px rgba(14, 165, 233, 0.3);
    --radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Floating Background Shapes */
.floating-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.35;
    animation: float 25s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -150px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: 10%;
    left: -100px;
    animation-delay: -8s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    left: 40%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -60px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.bg-alt {
    background: rgba(241, 245, 249, 0.6);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: rgba(14, 165, 233, 0.3);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.glow-btn {
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero-section {
    padding-top: 180px;
    padding-bottom: 120px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-dark);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 28px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.hero-section h1 {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 28px;
    background: linear-gradient(135deg, var(--text-main), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-intro {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 80px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-card {
    padding: 28px 40px;
    text-align: center;
    min-width: 180px;
}

.stat-card .counter {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-card p {
    margin-top: 8px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Services Grid */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.service-card {
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-list li {
    margin-bottom: 8px;
}

.feature-list li::before {
    content: '✓ ';
    color: var(--primary);
    font-weight: 800;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 36px;
}

.timeline-dot {
    position: absolute;
    left: 15px;
    top: 28px;
    width: 22px;
    height: 22px;
    background: white;
    border: 4px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

.timeline-content {
    padding: 28px;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

/* Portfolio Abstract Placeholders */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    height: 320px;
    border-radius: var(--radius);
}

.abstract-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.placeholder-1 { background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%); }
.placeholder-2 { background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%); }
.placeholder-3 { background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%); }

.shape-circle {
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    top: 15%;
    left: 15%;
}

.shape-rect {
    position: absolute;
    width: 220px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    bottom: 15%;
    right: 10%;
    transform: rotate(-15deg);
}

.shape-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 90px solid transparent;
    border-right: 90px solid transparent;
    border-bottom: 150px solid rgba(255,255,255,0.15);
    top: 25%;
    right: 20%;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    color: white;
    padding: 28px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.portfolio-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Article Styling */
.article-container {
    max-width: 900px;
}

.article-header {
    text-align: center;
    margin-bottom: 56px;
}

.article-header h1 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.article-content h2 {
    font-size: 2rem;
    margin: 48px 0 24px;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.article-content h3 {
    font-size: 1.3rem;
    margin: 28px 0 16px;
    color: var(--primary-dark);
}

.article-content p {
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: #334155;
}

.article-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(14, 165, 233, 0.3);
    transition: border-color 0.3s;
}

.article-content a:hover {
    border-color: var(--primary);
}

.callout-box {
    padding: 24px;
    border-radius: 16px;
    margin: 32px 0;
    border-left: 5px solid;
    font-size: 1.05rem;
}

.warning-box {
    background: rgba(239, 68, 68, 0.08);
    border-color: #ef4444;
    color: #991b1b;
}

.tip-box {
    background: rgba(16, 185, 129, 0.08);
    border-color: #10b981;
    color: #065f46;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 36px 0;
}

.mini-card {
    padding: 28px;
}

.mini-card h4 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.mini-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: 16px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.comparison-table th, .comparison-table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.comparison-table td {
    color: #475569;
    font-size: 0.95rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* FAQ Accordion */
.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 24px 28px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 28px;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 28px 24px;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.testimonial-card {
    padding: 36px;
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.testimonial-card > p {
    color: #475569;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.6;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.client-avatar {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.client-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.client-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 36px;
}

.contact-info, .contact-form-wrapper {
    padding: 44px;
}

.contact-info h3, .contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 28px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
}

.info-icon {
    font-size: 1.6rem;
    margin-top: 4px;
}

.info-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-main);
}

.info-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255,255,255,0.6);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    background: white;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 100px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 48px;
    margin-bottom: 60px;
}

.footer-col h3 {
    margin-bottom: 24px;
    font-size: 1.2rem;
    color: white;
}

.footer-col p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-icons span {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.8rem;
    color: #94a3b8;
}

.social-icons span:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #64748b;
    font-size: 0.9rem;
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow-soft);
        gap: 24px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero-section h1 {
        font-size: 2.4rem;
    }
    
    .hero-section {
        padding-top: 140px;
        padding-bottom: 80px;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}