/* 
   Vectari Styling 
   Premium, Dark-Mode, Glassmorphism Aesthetic
*/

:root {
    /* Colors */
    --bg-dark: #0a0a0f;
    --bg-surface: #12121c;
    --bg-glass: rgba(18, 18, 28, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --accent-electric: #00f0ff;
    --accent-indigo: #4f46e5;
    --accent-purple: #9333ea;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --gradient-glow: linear-gradient(135deg, var(--accent-electric), var(--accent-indigo));
    --gradient-text: linear-gradient(to right, var(--text-primary), #94a3b8);
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
}

.orb-1 {
    top: -10%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-indigo) 0%, transparent 60%);
    animation: float 20s ease-in-out infinite alternate;
}

.orb-2 {
    top: 40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-electric) 0%, transparent 60%);
    animation: float 25s ease-in-out infinite alternate-reverse;
}

.orb-3 {
    bottom: -10%;
    left: 20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    animation: float 30s ease-in-out infinite alternate;
}

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

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 800;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3vw, 3rem); }
h3 { font-size: 1.5rem; }

.text-gradient {
    background: linear-gradient(to right, var(--accent-electric), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    color: var(--text-secondary);
}

.text-gray {
    color: var(--text-secondary);
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }

/* Containers & Grids */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.section {
    padding: 8rem 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.relative { position: relative; }
.z-10 { z-index: 10; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--gradient-glow);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.5);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-outline:hover {
    background: var(--border-glass);
    border-color: rgba(255,255,255,0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 100;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.nav-links a:not(.btn):hover {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-btn span:nth-child(3) { bottom: 0; }

.mobile-menu-btn.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }


/* Hero Section */
.hero {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

/* Vector Animated Background for Hero */
.vector-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(10, 10, 15, 1) 0%, rgba(5, 5, 8, 1) 100%);
}

.vector-waves {
    width: 240%;
    min-width: 1800px;
    height: 100%;
    transform: translateX(-30%);
}

.wave-path {
    transform-origin: center;
}

.path-1 { animation: waveDrift 25s ease-in-out infinite alternate; }
.path-2 { animation: waveDrift 30s ease-in-out infinite alternate-reverse; }
.path-3 { animation: waveDrift 28s ease-in-out infinite alternate; }
.path-4 { animation: waveDrift 35s ease-in-out infinite alternate-reverse; }

@keyframes waveDrift {
    0% { transform: translate(0, 0) scale(1.0); }
    50% { transform: translate(-50px, 20px) scale(1.05); }
    100% { transform: translate(50px, -20px) scale(1.0); }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 9999px;
    color: var(--accent-electric);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.icon-check {
    color: var(--accent-electric);
    background: rgba(0, 240, 255, 0.1);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-style: normal;
    font-size: 0.8rem;
}

/* Section Header */
.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
}

/* Cards */
.glass-card {
    padding: 2.5rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255,255,255,0.15);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: var(--bg-surface);
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 15px;
    border: 1px solid var(--border-glass);
}

/* Tabs */
.tabs-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--gradient-glow);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.tab-content-area {
    padding: 3rem;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-pane.active {
    display: block;
}

.service-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

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

.feature-list strong {
    color: var(--text-primary);
}

.service-sidebar {
    background: rgba(0,0,0,0.2);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-glass);
}

.criteria-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.criteria-tags span {
    background: rgba(255,255,255,0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 0.875rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Frameworks Marquee */
.frameworks-section {
    padding-bottom: 4rem;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
}

/* Gradient Mask for fading edges */
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.marquee-content {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.framework-card {
    min-width: 320px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.framework-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.4);
}

.framework-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.framework-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--accent-electric);
}

.framework-card p {
    font-size: 0.95rem;
    margin: 0;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); } /* Shift by exactly half the container to loop seamlessly */
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 4rem 0 2rem;
    background: rgba(0,0,0,0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer h3 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.legal-links a:hover {
    color: white;
}

/* Contact Form Section */
.contact-section {
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info {
    max-width: 500px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: rgba(79, 70, 229, 0.4);
}

.contact-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

.contact-label {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.contact-item p {
    margin: 0;
    font-size: 0.95rem;
}

.contact-item a {
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent-electric);
}

.ghl-form-container {
    width: 100%;
    padding: 2rem;
    border-radius: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delays for staggered animations inside same container */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Subpages and Article Layout */
.subpage-main {
    min-height: calc(100vh - 300px); /* Adjust based on footer height */
}

.pt-32 { padding-top: 8rem; }
.pb-16 { padding-bottom: 4rem; }
.p-8 { padding: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.pb-6 { padding-bottom: 1.5rem; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.text-sm { font-size: 0.875rem; }
.text-electric { color: var(--accent-electric); }
.font-semibold { font-weight: 600; }
.bg-surface { background: var(--bg-surface); }
.rounded-xl { border-radius: 1rem; }
.border { border-width: 1px; border-style: solid; }

.border-glass { border-color: var(--border-glass); }

.article-container {
    max-width: 900px;
    margin: 0 auto;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content .lead-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 300;
}

.article-content a {
    color: var(--accent-electric);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.article-content a:hover {
    color: #fff;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.location-card {
    padding: 1.5rem;
}
.location-card p {
    margin-bottom: 0;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .service-layout, .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 100;
    }

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

    .mobile-menu-btn {
        display: block;
    }
    
    .tab-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        /* Hide scrollbar for Chrome, Safari and Opera */
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    
    .tab-buttons::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        width: auto;
        flex: 0 0 auto;
        white-space: nowrap;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .md\:p-12 {
        padding: 2rem;
    }
}

@media (min-width: 769px) {
    .md\:p-12 {
        padding: 3rem;
    }
}
