/* --- Root Variables Configuration --- */
:root {
    --primary-dark: #0F172A;
    --secondary-dark: #1E293B;
    --accent: #06B6D4;
    --accent-light: #22D3EE;
    --bg-light: #F8FAFC;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(226, 232, 240, 0.8);
    --font-primary: 'Poppins', 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Global Optimization Elements --- */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

.section-padding {
    padding: 100px 0;
}

.bg-light-gray {
    background-color: #F1F5F9;
}

.max-w-700 { max-width: 700px; }
.max-w-600 { max-width: 600px; }
.max-w-900 { max-width: 900px; }

.tracking-wider { letter-spacing: 0.05em; }

/* --- Custom Components & Badges --- */
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(6, 182, 212, 0.1);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    margin-bottom: 20px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.badge-accent-light {
    background-color: rgba(34, 211, 238, 0.15);
    color: var(--accent-light);
    border: 1px solid rgba(34, 211, 238, 0.25);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- Glassmorphism UI Style --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* --- Premium Buttons --- */
.btn-accent {
    background-color: var(--accent);
    color: #ffffff;
    font-weight: 500;
    border-radius: 8px;
    padding: 10px 24px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.btn-accent:hover {
    background-color: var(--accent-light);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

.btn-primary-dark {
    background-color: var(--primary-dark);
    color: #ffffff;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.btn-primary-dark:hover {
    background-color: var(--secondary-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- 1. Sticky Navigation Bar --- */
#mainNavbar {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: var(--transition-smooth);
    padding: 18px 0;
}

#mainNavbar.navbar-scrolled {
    padding: 12px 0;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#mainNavbar.navbar-scrolled .navbar-brand,
#mainNavbar.navbar-scrolled .nav-link {
    color: #F8FAFC !important;
}

#mainNavbar.navbar-scrolled .nav-link:hover,
#mainNavbar.navbar-scrolled .nav-link.active {
    color: var(--accent) !important;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    display: inline-block;
    border-radius: 50%;
}

.nav-link {
    color: var(--secondary-dark);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 6px 16px !important;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.text-accent { color: var(--accent); }

/* --- 2. Hero Section --- */
.hero-section {
    background-color: var(--primary-dark);
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 100px;
    color: #ffffff;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: -10%;
    right: -10%;
    z-index: 0;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.badge-dot-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #94A3B8;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 620px;
}

.main-hero-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    padding: 24px;
}

.card-terminal-head {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.term-dot.red { background-color: #EF4444; }
.term-dot.yellow { background-color: #F59E0B; }
.term-dot.green { background-color: #10B981; }

.code-block {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #E2E8F0;
    margin: 0;
}

.token-keyword { color: #F472B6; }
.token-string { color: #34D399; }
.token-number { color: #FB923C; }
.token-comment { color: #64748B; }
.token-func { color: #60A5FA; }

/* --- 3. Company Statistics Section --- */
.stats-section {
    margin-top: -50px;
    position: relative;
    z-10: 5;
}

.stats-wrapper {
    padding: 40px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.stat-number::after {
    content: '+';
    color: var(--accent);
    font-size: 2rem;
    vertical-align: top;
    margin-left: 2px;
}

.stats-wrapper .col-md-3:first-child .stat-number::after {
    content: '%';
}
.stats-wrapper .col-md-3:last-child .stat-number::after {
    content: '/7';
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- 4. About Vetrion Technologies --- */
.about-img-frame .about-accent-box {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 24px;
    top: 20px;
    left: 20px;
    z-index: 0;
}

.about-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.text-primary-dark { color: var(--primary-dark); }

/* --- 5. Services Section --- */
.service-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 40px 30px;
    height: 100%;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-dark);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--accent);
    transform: scale(1.05);
}

.service-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.92.5rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- 6. Technology Stack Section --- */
.tech-cat-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tech-list li {
    padding: 10px 0;
    border-bottom: 1px solid #E2E8F0;
    font-size: 0.95rem;
    color: var(--secondary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-list li:last-child { border-bottom: none; }

.version-tag {
    font-size: 0.75rem;
    background: #F1F5F9;
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* --- 7. Industries Section --- */
.industry-card {
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.industry-card:hover {
    transform: scale(1.03);
    border-color: #E2E8F0;
    box-shadow: 0 30px 50px rgba(15, 23, 42, 0.08) !important;
}

.industry-icon {
    font-size: 2.5rem;
    color: var(--accent);
}

.industry-card h5 {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 14px;
}

/* --- 8. Portfolio Section --- */
.portfolio-item-card {
    transition: var(--transition-smooth);
    border: 1px solid #E2E8F0;
}

.portfolio-item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 60px rgba(15, 23, 42, 0.1) !important;
}

.portfolio-img-container {
    overflow: hidden;
}

.portfolio-image {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    height: 280px;
    object-fit: cover;
}

.portfolio-item-card:hover .portfolio-image {
    transform: scale(1.06);
}

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    transition: var(--transition-smooth);
}

.portfolio-img-container:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-project-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.status-badge-deployed {
    font-size: 0.78rem;
    font-weight: 600;
    color: #10B981;
    background: rgba(16, 105, 129, 0.08);
    padding: 4px 10px;
    border-radius: 100px;
}

.portfolio-project-desc {
    font-size: 0.925rem;
    line-height: 1.6;
}

.tech-pill {
    background: #F1F5F9;
    color: var(--secondary-dark);
    font-weight: 500;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 6px;
    margin-right: 6px;
    border: 1px solid #E2E8F0;
}

/* --- 9. Why Choose Us --- */
.bg-primary-dark { background-color: var(--primary-dark); }

.section-bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, rgba(0,0,0,0) 70%);
    bottom: -20%;
    left: -10%;
}

.link-accent-arrow {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.link-accent-arrow:hover {
    color: #ffffff;
}

.why-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: var(--transition-smooth);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
    transform: translateY(-4px);
}

.why-icon-box {
    font-size: 1.6rem;
}

/* --- 10. Development Process Timeline --- */
.timeline-container {
    padding-left: 30px;
}

.timeline-line {
    position: absolute;
    top: 0; left: 45px; width: 2px; height: 100%;
    background: #E2E8F0;
    z-index: 1;
}

.timeline-item {
    position: relative;
    z-index: 2;
}

.timeline-meta {
    width: 40px;
}

.timeline-step {
    width: 32px;
    height: 32px;
    background: var(--primary-dark);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--bg-light);
    box-shadow: 0 0 0 1px var(--primary-dark);
}

.timeline-item:hover .timeline-step {
    background: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.timeline-content {
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.04) !important;
}

/* --- 11. Testimonials --- */
.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.65;
}

.user-avatar-placeholder {
    width: 44px;
    height: 44px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-placeholder.text-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

/* --- 12. Call To Action Section --- */
.cta-section {
    background: var(--primary-dark);
}

.cta-gradient-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(6, 182, 212, 0.3) 100%);
}

/* --- 13. Contact Form Section --- */
.contact-icon {
    width: 40px;
    height: 40px;
    background: #F1F5F9;
    color: var(--primary-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.form-control, .form-select {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    font-size: 0.95rem;
    background-color: #ffffff;
    color: var(--primary-dark);
    transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}

/* --- 14. Footer --- */
.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover, .hover-white:hover {
    color: #ffffff !important;
}

/* --- Responsive Adaptations --- */
@media (max-width: 991.98px) {
    .hero-title { font-size: 2.75rem; }
    .section-title { font-size: 1.85rem; }
    .section-padding { padding: 70px 0; }
    .timeline-line { left: 16px; }
    .timeline-step { width: 28px; height: 28px; font-size: 0.75rem; }
    .timeline-meta { width: 30px; }
    .navbar-collapse {
        background: #ffffff;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-top: 10px;
    }
    #mainNavbar.navbar-scrolled .navbar-collapse {
        background: var(--secondary-dark);
    }
}