:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --gray: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.bg-darker {
    background-color: rgba(15, 23, 42, 0.6);
}

/* Floating 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(--primary);
    top: -100px;
    left: -100px;
}

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

.shape-3 {
    width: 200px;
    height: 200px;
    background: #8b5cf6;
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

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

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

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background: rgba(15, 23, 42, 0.9);
    padding: 10px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--light);
    text-decoration: none;
}

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

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

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

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

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

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--light);
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.glow-btn {
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

.glow-btn:hover {
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.8);
}

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

.btn-secondary:hover {
    background: var(--light);
    color: var(--dark);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    color: var(--secondary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-buttons {
    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: 20px 40px;
    border-radius: 16px;
    text-align: center;
    min-width: 150px;
}

.stat-card .counter {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

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

.service-card {
    padding: 30px;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px) perspective(1000px) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.text-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 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(--secondary));
}

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

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

.timeline-content {
    padding: 25px;
    border-radius: 12px;
    flex-grow: 1;
}

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

.portfolio-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.abstract-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.placeholder-1 { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }
.placeholder-2 { background: linear-gradient(135deg, #064e3b 0%, #022c22 100%); }
.placeholder-3 { background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%); }

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.6;
}

.shape-a { width: 150px; height: 150px; background: #10b981; top: 20%; left: 20%; }
.shape-b { width: 100px; height: 100px; background: #3b82f6; bottom: 20%; right: 20%; }
.shape-c { width: 120px; height: 120px; background: #f59e0b; top: 30%; right: 30%; }
.shape-d { width: 80px; height: 80px; background: #ec4899; bottom: 30%; left: 30%; }
.shape-e { width: 180px; height: 180px; background: #8b5cf6; top: 10%; left: 10%; }
.shape-f { width: 90px; height: 90px; background: #14b8a6; bottom: 10%; right: 10%; }

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

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

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

.article-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 30px;
}

.article-category {
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.article-header h1 {
    font-size: 2.8rem;
    margin: 15px 0;
    line-height: 1.2;
}

.article-meta {
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.article-content h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--light);
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: #cbd5e1;
}

.article-content p {
    margin-bottom: 20px;
    color: #cbd5e1;
    font-size: 1.05rem;
}

.article-content a {
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

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

.callout-box {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--secondary);
}

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

.summary-box {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    overflow: hidden;
}

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

.comparison-table th {
    background: rgba(255,255,255,0.05);
    font-weight: 600;
    color: var(--secondary);
}

.process-list, .benefit-list {
    margin: 20px 0;
    padding-left: 20px;
}

.process-list li, .benefit-list li {
    margin-bottom: 15px;
    color: #cbd5e1;
}

/* FAQ Accordion */
.faq-container {
    margin-top: 40px;
}

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

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

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--secondary);
    transition: transform 0.3s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--gray);
}

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

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

.testimonial-card {
    padding: 30px;
    border-radius: 16px;
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: #cbd5e1;
}

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

.author-initials {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

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

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

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    padding: 40px;
    border-radius: 20px;
}

.contact-info h3, .contact-form-container h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
}

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

.info-icon {
    font-size: 1.5rem;
}

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

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #cbd5e1;
}

.form-group input, .form-group select, .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(--light);
    font-family: inherit;
    transition: border-color 0.3s;
}

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

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

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

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-col h3 span {
    color: var(--secondary);
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--light);
}

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

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

.footer-col ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--secondary);
}

.footer-col p {
    color: var(--gray);
    margin-bottom: 15px;
}

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

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

.social-icons a:hover {
    background: var(--primary);
}

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

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

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

/* Responsive */
@media (max-width: 968px) {
    .hero-title { font-size: 2.5rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: 0.3s;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero-title { font-size: 2rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
    .article-header h1 { font-size: 2rem; }
}