/* =========================================
   Vigna IT Solutions - SaaS Dark Theme
   ========================================= */

:root {
    /* Core Colors */
    --bg-dark: #030712;      /* Ultra dark blue/black */
    --bg-card: #0f172a;      /* Slate dark */
    --bg-card-hover: #1e293b;
    
    --primary: #012462;      /* Original Brand Navy */
    --accent: #3b82f6;       /* Bright blue */
    --accent-light: #60a5fa;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    
    /* Text Colors */
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Typography */
    --font-main: 'Plus Jakarta Sans', sans-serif;
    
    /* Effects */
    --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
    --border-glow: 1px solid rgba(59, 130, 246, 0.3);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.2);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    overflow-x: hidden !important;
    width: 100vw !important;
}

body {
    font-family: var(--font-main);
    color: var(--text-white);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden !important;
    width: 100vw !important;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================================
   Utility Classes
   ========================================= */
.text-center { text-align: center; }
.text-white { color: var(--text-white) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.font-bold { font-weight: 700; }
.d-block { display: block; }
.flex-align { display: flex; align-items: center; gap: 1rem; }
.max-w-md { max-width: 28rem; }
.max-w-xs { max-width: 20rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.tracking-wide { letter-spacing: 0.05em; }

.text-blue { color: var(--accent); }
.text-green { color: var(--accent-green); }

.hover-text-blue:hover { color: var(--accent) !important; }

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Typography Base */
.h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-white);
}

/* =========================================
   Background Glowing Orbs
   ========================================= */
.bg-glow-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: drift 15s infinite alternate ease-in-out;
}

.glow-1 {
    top: -10%; left: -10%;
    width: 600px; height: 600px;
    background: rgba(1, 36, 98, 0.6); /* Brand Primary */
}

.glow-2 {
    top: 40%; right: -20%;
    width: 500px; height: 500px;
    background: rgba(59, 130, 246, 0.3); /* Accent Blue */
    animation-delay: -5s;
}

.glow-3 {
    bottom: -10%; left: 20%;
    width: 700px; height: 700px;
    background: rgba(6, 182, 212, 0.2); /* Cyan */
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.2); }
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: var(--border-subtle);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.btn-block {
    width: 100%;
}

/* =========================================
   Header
   ========================================= */
.header {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1200px;
    z-index: 1000;
    background: #ffffff;
    border-radius: 100px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.header.scrolled {
    top: 0.5rem;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    height: 55px; /* Big enough for the side-by-side image */
    object-fit: contain;
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem; /* Increased from 1.25rem */
    letter-spacing: -0.5px;
    color: #fff;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
}

.nav-link:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    padding: 10rem 0 6rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.badge-wrap { margin-bottom: 2rem; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent-light);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pulse-dot {
    width: 6px; height: 6px;
    background: var(--accent-light);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-light);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(96, 165, 250, 0); }
    100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 5rem;
}

/* Dashboard Mockup Visual */
.hero-visual {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1000px;
}

.dashboard-wrapper {
    position: relative;
    border-radius: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-subtle);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(1, 36, 98, 0.5);
    transform: rotateX(2deg);
    transition: transform 0.5s ease;
}

.dashboard-wrapper:hover {
    transform: rotateX(0deg) translateY(-10px);
}

.dashboard-img {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Cards on Dashboard */
.float-card {
    position: absolute;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: float-element 6s ease-in-out infinite;
    text-align: left;
}

.float-left {
    top: 20%; left: -5%;
    animation-delay: 0s;
}

.float-right {
    bottom: 20%; right: -5%;
    animation-delay: 2s;
}

@keyframes float-element {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* =========================================
   Trusted By Marquee
   ========================================= */
.trusted-by {
    padding: 4rem 0;
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
    background: rgba(15, 23, 42, 0.3);
    overflow: hidden;
}

.logo-marquee {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.logo-marquee i {
    width: 32px; height: 32px;
}

/* =========================================
   Bento Grid Solutions
   ========================================= */
.bento-section {
    padding: 8rem 0;
}

.section-head { margin-bottom: 4rem; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.bento-large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #080f1a 100%);
}

.icon-box {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    color: #fff;
}

.bg-blue-glow { background: rgba(59, 130, 246, 0.2); border: 1px solid rgba(59, 130, 246, 0.3); color: var(--accent-light); }
.bg-purple-glow { background: rgba(139, 92, 246, 0.2); border: 1px solid rgba(139, 92, 246, 0.3); color: var(--accent-purple); }
.bg-green-glow { background: rgba(16, 185, 129, 0.2); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--accent-green); }

.bento-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.bento-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.bento-visual {
    height: 100%;
    min-height: 250px;
    border-radius: 16px;
    border: var(--border-subtle);
}

.tech-pattern {
    position: relative;
    overflow: hidden;
}

.bento-image-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: var(--transition);
}

.bento-card:hover .bento-image-cover {
    transform: scale(1.05);
    opacity: 1;
}

.tech-pattern::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent, var(--bg-card));
}

/* =========================================
   Split Content Section (About Us)
   ========================================= */
.split-section {
    padding: 8rem 0;
    background: rgba(15, 23, 42, 0.3);
    border-top: var(--border-subtle);
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.image-stack {
    position: relative;
}

.main-stack-img {
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: var(--border-subtle);
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: var(--border-subtle);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: float-element 4s ease-in-out infinite alternate;
}

.feature-list {
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-list i {
    margin-top: 0.25rem;
}

/* =========================================
   Contact & CTA Section
   ========================================= */
.cta-section {
    padding: 6rem 0;
}

.cta-wrapper {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9) 0%, rgba(3, 7, 18, 0.9) 100%);
    border: var(--border-subtle);
    border-radius: 32px;
    padding: 4rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

/* Add a glowing edge effect */
.cta-wrapper::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

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

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.c-icon {
    width: 40px; height: 40px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-light);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}

.modern-form {
    background: rgba(3, 7, 18, 0.5);
    padding: 2.5rem;
    border-radius: 20px;
    border: var(--border-subtle);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-white);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    padding: 4rem 0 2rem;
    background: #020408;
}

.footer-brand .logo-box {
    background: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.border-top { border-top: var(--border-subtle); }

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

.footer-links ul li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-light); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.social-links { display: flex; gap: 1rem; }
.social-links a {
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.social-links a:hover {
    color: #fff; background: var(--accent);
}

/* =========================================
   Responsive Adjustments
   ========================================= */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .bento-large { grid-template-columns: 1fr; }
    .bento-visual { min-height: 200px; }
    .split-grid { grid-template-columns: 1fr; gap: 4rem; }
    .floating-badge { right: 20px; bottom: 20px; }
    .cta-grid { grid-template-columns: 1fr; gap: 2rem; }
    .cta-wrapper { padding: 2rem; }
}

@media (max-width: 768px) {
    .nav { 
        display: none; 
        position: absolute;
        top: calc(100% + 1rem);
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 24px;
        padding: 0.75rem 1.25rem;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.05);
    }
    
    @keyframes dropDown {
        from { opacity: 0; transform: translateY(-15px) scale(0.98); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
    
    .nav.active { 
        display: block; 
        animation: dropDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    
    .nav-list { 
        flex-direction: column; 
        gap: 0; 
        align-items: stretch; 
    }
    
    .nav-link { 
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1.1rem; 
        font-weight: 500;
        color: rgba(255, 255, 255, 0.85) !important;
        text-align: left;
        padding: 1.25rem 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0;
        background: transparent;
        transition: color 0.2s ease;
    }
    
    .nav-list li:last-child .nav-link {
        border-bottom: none;
    }
    
    .nav-link::after {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        border-top: 2px solid rgba(255,255,255,0.3);
        border-right: 2px solid rgba(255,255,255,0.3);
        transform: rotate(45deg);
        transition: all 0.2s ease;
    }
    
    .nav-link:active, .nav-link:hover {
        color: var(--cyan) !important;
        background: transparent;
        transform: none;
    }
    
    .nav-link:active::after, .nav-link:hover::after {
        border-color: var(--cyan);
        transform: rotate(45deg) scale(1.1);
    }
    
    .mobile-menu-btn { display: block; }
    .header-actions .btn { display: none; } /* Hide 'Book Demo' on mobile header to fit logo properly */
    
    .header {
        border-radius: 16px;
        padding: 0.75rem 1rem;
    }
    .header.scrolled {
        padding: 0.5rem 1rem;
    }
    
    .logo-container { max-width: 75%; }
    .logo {
        height: auto;
        max-height: 32px;
        width: 100%;
        max-width: 180px;
        object-fit: contain;
    }
    
    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .float-card { display: none; } /* Hide floating cards on mobile to save space */
    
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large { grid-column: span 1; }
    
    .cta-wrapper { padding: 1.5rem 1rem; border-radius: 24px; }
    .modern-form { padding: 1.5rem 1rem; border-radius: 16px; }
    
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
