/* --- Variables & Reset --- */
:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --primary: #06b6d4; /* Cyan */
    --primary-glow: rgba(6, 182, 212, 0.5);
    --secondary: #6366f1; /* Indigo */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Background Orbs --- */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--secondary);
    top: -200px;
    right: -200px;
    animation: floatOrb 15s infinite alternate ease-in-out;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    bottom: -100px;
    left: -200px;
    animation: floatOrb 20s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* --- Utilities --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.highlight {
    color: var(--primary);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.15);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--primary-glow);
}

.btn-glow {
    background: var(--primary);
    color: var(--bg-dark);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.btn-text {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
}

.full-width { width: 100%; }

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.animated-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

h1 {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
}

.trust-indicators {
    display: flex;
    gap: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-visual {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    padding: 24px;
    text-align: center;
    animation: floatCard 6s infinite ease-in-out;
}

.card-1 { top: 0; left: 20%; animation-delay: 0s; }
.card-2 { top: 30%; right: 0; animation-delay: 1s; }
.card-3 { bottom: 0; left: 10%; animation-delay: 2s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Services --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 32px;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin-bottom: 20px;
}

.feature-list li {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* --- 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: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-marker {
    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: 2;
}

.timeline-content {
    padding: 24px;
    flex: 1;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    margin-bottom: 8px;
    color: var(--primary);
}

/* --- Portfolio (CSS Placeholders) --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.portfolio-card {
    overflow: hidden;
    position: relative;
    height: 300px;
}

.css-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.placeholder-1 {
    background: linear-gradient(45deg, #1e293b, #334155);
    background-image: radial-gradient(circle at 30% 30%, rgba(6, 182, 212, 0.2) 0%, transparent 50%),
                      repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
}

.placeholder-2 {
    background: linear-gradient(135deg, #312e81, #1e1b4b);
    background-image: radial-gradient(circle at 70% 70%, rgba(99, 102, 241, 0.3) 0%, transparent 50%);
}

.placeholder-3 {
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    background-image: conic-gradient(from 90deg at 50% 50%, rgba(6, 182, 212, 0.1) 0deg, transparent 60deg, rgba(99, 102, 241, 0.1) 120deg, transparent 180deg);
}

.portfolio-card:hover .css-placeholder {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    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;
}

/* --- Article Layout --- */
.article-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.article-sidebar {
    position: sticky;
    top: 100px;
    padding: 24px;
}

.article-sidebar h4 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--primary);
}

.article-sidebar ul {
    list-style: none;
    margin-bottom: 30px;
}

.article-sidebar li {
    margin-bottom: 12px;
}

.article-sidebar a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.article-sidebar a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.sidebar-cta {
    background: rgba(6, 182, 212, 0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.sidebar-cta p {
    margin-bottom: 15px;
    font-weight: 600;
}

.premium-article {
    padding: 48px;
}

.article-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 30px;
}

.category-tag {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premium-article h1 {
    font-size: 2.8rem;
    margin-top: 16px;
    margin-bottom: 16px;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.premium-article h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.premium-article h3 {
    font-size: 1.3rem;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--primary);
}

.premium-article p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.premium-article ul, .premium-article ol {
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-left: 24px;
}

.premium-article li {
    margin-bottom: 12px;
}

.premium-article a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
    color: #fca5a5;
}

.tip-box {
    background: rgba(6, 182, 212, 0.1);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
    color: #67e8f9;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.feature-box h4 {
    color: var(--text-main);
    margin-bottom: 10px;
}

.feature-box p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.comparison-table th, .comparison-table td {
    padding: 16px;
    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;
}

.comparison-table td {
    color: var(--text-muted);
}

/* --- FAQ --- */
.faq-wrapper {
    margin-top: 40px;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--text-main);
    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(--primary);
    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;
}

.faq-answer p {
    padding-bottom: 20px;
    margin-bottom: 0;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    padding: 32px;
}

.rating {
    color: #fbbf24;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-card p {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 24px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.client-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.client-info small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Contact --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-info {
    padding: 40px;
}

.contact-info h2 {
    font-family: var(--font-heading);
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.c-icon {
    font-size: 1.5rem;
}

.contact-detail strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-main);
}

.contact-detail p, .contact-detail a {
    color: var(--text-muted);
    text-decoration: none;
}

.hours-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: 12px;
    margin-top: 32px;
    border: 1px solid var(--glass-border);
}

.hours-card h4 {
    margin-bottom: 16px;
    color: var(--primary);
}

.hours-card ul {
    list-style: none;
}

.hours-card li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-form-container {
    padding: 40px;
}

.contact-form-container h3 {
    font-family: var(--font-heading);
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* --- Footer --- */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    .article-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }
    .article-sidebar li {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .trust-indicators { justify-content: center; flex-wrap: wrap; }
    .hero-visual { display: none; }
    .nav-links { 
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-links.active { display: flex; }
    .hamburger { display: flex; }
    .contact-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .premium-article { padding: 24px; }
}