:root {
    --primary: #2563eb;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --bg-dark: #0f172a;
    --bg-alt: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Floating Background Shapes */
.floating-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: floatShape 20s infinite ease-in-out;
}

.shape-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; left: -100px; }
.shape-2 { width: 300px; height: 300px; background: var(--secondary); bottom: 10%; right: -50px; animation-delay: -5s; }
.shape-3 { width: 250px; height: 250px; background: var(--accent); top: 40%; left: 30%; animation-delay: -10s; }

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }
.bg-alt { background-color: var(--bg-alt); }
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism */
.glass, .glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.nav-container { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0; }
.logo { font-weight: 800; font-size: 1.2rem; letter-spacing: 1px; }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { color: var(--text-light); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent); }
.mobile-menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.glow-btn {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.5); }
    50% { box-shadow: 0 0 35px rgba(37, 99, 235, 0.8); }
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover { background: var(--glass-bg); border-color: var(--accent); }
.btn-text { background: none; border: none; color: var(--accent); cursor: pointer; font-weight: 600; margin-top: 15px; }
.text-link { color: var(--accent); text-decoration: underline; font-weight: 600; }

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-intro {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-actions { display: flex; gap: 20px; justify-content: center; margin-bottom: 60px; }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-card {
    padding: 25px 40px;
    text-align: center;
    min-width: 150px;
}

.stat-card .counter { font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.stat-card p { color: var(--text-muted); margin-top: 5px; }

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

.service-card {
    padding: 30px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(5deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

.icon-box { font-size: 2.5rem; margin-bottom: 20px; }
.service-card h3 { margin-bottom: 15px; font-size: 1.3rem; }
.service-card p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; }
.feature-list { list-style: none; color: var(--text-muted); font-size: 0.9rem; }
.feature-list li { margin-bottom: 8px; padding-left: 20px; position: relative; }
.feature-list li::before { content: '✓'; color: var(--accent); position: absolute; left: 0; }

/* 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(--primary), var(--accent));
}

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

.timeline-marker {
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
    flex-shrink: 0;
}

.timeline-content {
    margin-left: 30px;
    padding: 25px;
    flex: 1;
}

/* Results / Abstract Placeholders */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

.abstract-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.abstract-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    animation: floatShape 6s ease-in-out infinite;
}

.result-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top: 1px solid var(--glass-border);
}

.result-card:hover .result-overlay { transform: translateY(0); }

/* Article Styling */
.article-container { max-width: 900px; }
.article-main-title { font-size: 2.2rem; margin-bottom: 30px; color: var(--text-light); }
.article-container h2 { font-size: 1.8rem; margin: 40px 0 20px; color: var(--accent); }
.article-container h3 { font-size: 1.4rem; margin: 25px 0 15px; color: var(--text-light); }
.article-container p { margin-bottom: 20px; color: var(--text-muted); font-size: 1.05rem; }

.callout-box {
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 4px solid;
}

.tip-box { background: rgba(6, 182, 212, 0.1); border-color: var(--accent); }
.warning-box { background: rgba(239, 68, 68, 0.1); border-color: #ef4444; }
.callout-box h4 { margin-bottom: 10px; font-size: 1.2rem; }

.checklist { list-style: none; margin: 20px 0; }
.checklist li {
    padding: 12px 0 12px 35px;
    position: relative;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
}
.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.comparison-table-container { overflow-x: auto; margin: 30px 0; }
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    border-radius: 12px;
    overflow: hidden;
}

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

.comparison-table th { background: rgba(37, 99, 235, 0.2); color: var(--text-light); font-weight: 600; }
.comparison-table td { color: var(--text-muted); }

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.mini-card { padding: 25px; text-align: center; }
.mini-card h4 { color: var(--accent); margin-bottom: 10px; }
.mini-card p { color: var(--text-muted); font-size: 0.95rem; }

/* FAQ Accordion */
.faq-container { margin-top: 40px; }
.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon { font-size: 1.5rem; transition: transform 0.3s; }
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px;
}

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

.faq-answer p { color: var(--text-muted); font-size: 0.95rem; }

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

.testimonial-card { padding: 30px; }
.testimonial-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.rating { color: #fbbf24; letter-spacing: 2px; }
.testimonial-card p { color: var(--text-muted); font-style: italic; margin-bottom: 15px; }
.location { color: var(--accent); font-size: 0.9rem; font-weight: 600; }

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info, .contact-form-wrapper { padding: 40px; }
.contact-info h2, .contact-form-wrapper h2 { margin-bottom: 15px; font-size: 1.8rem; }
.contact-info > p { color: var(--text-muted); margin-bottom: 30px; }

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.info-item span { font-size: 1.5rem; }
.info-item strong { display: block; margin-bottom: 5px; color: var(--text-light); }
.info-item p { color: var(--text-muted); font-size: 0.95rem; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    transition: border-color 0.3s;
}

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

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

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

.footer-col h3 { font-size: 1.3rem; margin-bottom: 20px; color: var(--text-light); }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 20px; color: var(--accent); }
.footer-col p { color: var(--text-muted); margin-bottom: 15px; font-size: 0.95rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-map-link { color: var(--accent); text-decoration: none; font-weight: 600; display: inline-block; margin-top: 10px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--glass-border); color: var(--text-muted); font-size: 0.9rem; }

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .contact-container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-section h1 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero-actions { flex-direction: column; align-items: center; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .timeline::before { left: 15px; }
    .timeline-marker { width: 30px; height: 30px; font-size: 0.9rem; }
}