:root {
    --primary: #06b6d4;
    --primary-dark: #0891b2;
    --secondary: #8b5cf6;
    --accent: #10b981;
    --bg-dark: #0f172a;
    --bg-alt: #1e293b;
    --text-light: #f8fafc;
    --text-dim: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --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', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

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

.section-padding {
    padding: 120px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

/* Floating Shapes */
.floating-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.25;
    animation: float 30s infinite ease-in-out;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -200px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: 10%;
    right: -150px;
    animation-delay: -10s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: 40%;
    left: 20%;
    animation-delay: -20s;
}

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

/* Glassmorphism Utilities */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Navigation */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.logo-icon {
    color: var(--primary);
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.3);
}

.glow-btn {
    animation: glow 3s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 15px rgba(6, 182, 212, 0.2); }
    to { box-shadow: 0 0 35px rgba(6, 182, 212, 0.5); }
}

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

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--primary);
}

.full-width {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding-top: 200px;
    padding-bottom: 140px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 32px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 28px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-dim);
    max-width: 750px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 100px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    padding: 40px 24px;
    text-align: center;
}

.stat-card .counter {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card p {
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.section-header h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-dim);
    font-size: 1.15rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.service-card {
    padding: 40px;
}

.icon-box {
    color: var(--primary);
    margin-bottom: 28px;
    background: rgba(6, 182, 212, 0.1);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--text-light);
    font-weight: 600;
}

.service-card p {
    color: var(--text-dim);
    margin-bottom: 28px;
    font-size: 1rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.feature-list li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-number {
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.timeline-content {
    padding: 32px;
    flex: 1;
}

.timeline-content h3 {
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 1.3rem;
}

.timeline-content p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
}

/* Portfolio CSS Placeholders */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    height: 350px;
    border-radius: var(--radius);
}

.css-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.placeholder-1 {
    background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
}

.placeholder-2 {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
}

.placeholder-3 {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

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

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

.portfolio-card:hover .css-placeholder {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.portfolio-overlay p {
    color: var(--text-dim);
    font-size: 1rem;
}

/* Article Styling */
.article-container {
    max-width: 900px;
}

.article-content {
    padding: 64px;
}

.article-content h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 32px;
    line-height: 1.2;
    color: var(--text-light);
    letter-spacing: -0.5px;
}

.article-content h2 {
    font-size: 1.9rem;
    margin-top: 56px;
    margin-bottom: 24px;
    color: var(--primary);
    font-weight: 700;
}

.article-content h3 {
    font-size: 1.4rem;
    margin-top: 36px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-weight: 600;
}

.article-content p {
    margin-bottom: 28px;
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content .lead {
    font-size: 1.35rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.7;
}

.text-link {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: var(--transition);
    font-weight: 600;
}

.text-link:hover {
    color: var(--accent);
}

.callout-box, .warning-box {
    padding: 28px;
    border-radius: 16px;
    margin: 40px 0;
    border-left: 4px solid;
    font-size: 1.1rem;
    line-height: 1.6;
}

.callout-box {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--primary);
    color: var(--text-light);
}

.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: var(--text-light);
}

.checklist {
    list-style: none;
    margin: 28px 0;
}

.checklist li {
    padding: 16px 0 16px 40px;
    position: relative;
    color: var(--text-dim);
    border-bottom: 1px solid var(--glass-border);
    font-size: 1.1rem;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.3rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

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

.comparison-table th {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.comparison-table td {
    color: var(--text-dim);
    font-size: 1.05rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* FAQ Accordion */
.faq-section {
    margin-top: 56px;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 8px;
}

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

.faq-question::after {
    content: '+';
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
    font-weight: 300;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s;
}

.faq-answer p {
    padding-bottom: 28px;
    color: var(--text-dim);
    line-height: 1.7;
    font-size: 1.05rem;
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.testimonial-card {
    padding: 40px;
}

.stars {
    color: #fbbf24;
    font-size: 1.3rem;
    margin-bottom: 24px;
    letter-spacing: 4px;
}

.testimonial-card p {
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 32px;
    line-height: 1.7;
    font-size: 1.1rem;
}

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

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

.testimonial-author h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 600;
}

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

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

.contact-info h3, .contact-form-wrapper h3 {
    margin-bottom: 36px;
    font-size: 1.8rem;
    color: var(--text-light);
}

.info-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.info-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.info-item p, .info-item a {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
    line-height: 1.5;
}

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

.contact-buttons {
    margin-top: 48px;
}

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

.form-group label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1.05rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
    padding: 100px 0 40px;
}

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

.footer-col h3 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    color: var(--text-light);
}

.footer-col h4 {
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 1.15rem;
    font-weight: 600;
}

.footer-col p {
    color: var(--text-dim);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

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

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

.footer-col ul li a {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

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

.social-icons a {
    width: 48px;
    height: 48px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1.1rem;
}

.social-icons a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
}

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

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 85px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 48px 32px;
        gap: 32px;
        transform: translateY(-150%);
        transition: var(--transition);
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-content {
        padding: 32px;
    }

    .article-content h1 {
        font-size: 2.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-number {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }
    
    .timeline-item {
        gap: 24px;
    }
}