/* VIRELAXA Custom CSS */
:root {
    --primary-navy: #0A1A2F;
    --primary-blue: #1D4ED8;
    --primary-purple: #4F46E5;
    --primary-cyan: #0D9C9C;
    --primary-teal: #14B8A6;
    --primary-amber: #F5A524;
    --text-dark: #1E293B;
    --text-gray: #94A3B8;
    --bg-light: #F8FAFC;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}
html { scroll-padding-top: 90px; }
section[id] { scroll-margin-top: 90px; }

/* Typography & Colors */
.text-navy { color: var(--primary-navy) !important; }
.bg-navy { background-color: var(--primary-navy) !important; }
.text-purple { color: var(--primary-purple) !important; }
.bg-purple { background-color: var(--primary-purple) !important; }
.text-cyan { color: var(--primary-cyan) !important; }
.text-teal { color: var(--primary-teal) !important; }
.bg-teal { background-color: var(--primary-teal) !important; }
.text-amber { color: var(--primary-amber) !important; }
.bg-amber { background-color: var(--primary-amber) !important; }
.text-gray { color: var(--text-gray) !important; }
.text-gray-light { color: #CBD5E1 !important; }
.xs-text { font-size: 0.75rem; }
.tracking-wider { letter-spacing: 0.05em; }
.fw-medium { font-weight: 500; }

.text-gradient {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bg-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal)) !important;
}
.btn-gradient {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-teal));
    color: white;
    border: none;
    transition: all 0.3s ease;
}
.btn-gradient:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(20, 184, 166, 0.35);
}

/* Padding Utilities */
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

/* Navbar */
.navbar {
    transition: all 0.4s ease;
    padding: 1.25rem 0;
    background: linear-gradient(to bottom, rgba(10, 26, 47, 0.85) 0%, rgba(10, 26, 47, 0) 100%);
}
.navbar.scrolled {
    background: rgba(10, 26, 47, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.5rem 0.8rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.navbar-nav .nav-link:hover { color: #fff !important; }
@media (min-width: 1200px) and (max-width: 1399px) {
    .navbar-nav .nav-link { padding: 0.5rem 0.6rem; font-size: 0.82rem; }
}

/* Hero & Glassmorphism */
.hero-section {
    background-color: var(--primary-navy);
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
}
.hero-bg-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.16) 0%, rgba(29, 78, 216, 0.1) 40%, rgba(10, 26, 47, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}
.badge-custom {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(20, 184, 166, 0.12);
    color: var(--primary-teal);
    border: 1px solid rgba(20, 184, 166, 0.25);
}
.z-index-1 { z-index: 1; }
.z-index-2 { z-index: 2; }

/* Hero Visual Effects */
.dashboard-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    height: 350px;
}
.border-glass { border: 1px solid var(--glass-border); }
.bg-dark-glass { background: var(--glass-bg); }
.icon-box-glass {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}
.ui-card-sm {
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.7rem;
    color: #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.connection-line {
    position: absolute;
    top: 30px;
    left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-teal), var(--primary-cyan));
    opacity: 0.3;
    z-index: 0;
}
.floating-element-1 { animation: float 6s ease-in-out infinite; }
.floating-element-2 { animation: float 5s ease-in-out infinite 1s; }
.floating-element-3 { animation: float 7s ease-in-out infinite 2s; }
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.glow-orb {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 200px; height: 200px;
    background: var(--primary-blue);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: pulse 4s infinite alternate;
}
@keyframes pulse {
    0% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1.2); }
}

/* About Section Visual */
.about-visual-panel {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #0F2A44 100%);
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(10, 26, 47, 0.35);
}
.about-visual-glow {
    position: absolute;
    top: -20%; left: -10%;
    width: 70%; height: 70%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.35) 0%, rgba(20, 184, 166, 0) 70%);
    border-radius: 50%;
}
.about-orbit {
    width: 260px;
    height: 260px;
}
.orbit-ring {
    position: absolute;
    inset: 0;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    animation: spin 22s linear infinite;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.orbit-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 92px; height: 92px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    backdrop-filter: blur(6px);
}
.orbit-logo { width: 44px; height: auto; }
.orbit-node {
    position: absolute;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(10, 26, 47, 0.25);
    animation: float 5s ease-in-out infinite;
}
.node-1 { top: -10px; left: 50%; transform: translateX(-50%); color: var(--primary-blue); }
.node-2 { top: 50%; right: -10px; transform: translateY(-50%); color: var(--primary-purple); animation-delay: 1s; }
.node-3 { bottom: -10px; left: 50%; transform: translateX(-50%); color: var(--primary-amber); animation-delay: 2s; }
.node-4 { top: 50%; left: -10px; transform: translateY(-50%); color: var(--primary-teal); animation-delay: 1.5s; }

.about-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    z-index: 2;
}
.about-float-card i { font-size: 1.3rem; }
.card-1 { top: -22px; left: -18px; }
.card-2 { bottom: -22px; right: -18px; }
@media (max-width: 991px) {
    .about-float-card { position: relative; top: auto; left: auto; right: auto; bottom: auto; margin: 0.75rem auto 0; max-width: 280px; }
}

/* Why VIRELAXA Section */
.badge-soft {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    background: rgba(29, 78, 216, 0.08);
    color: var(--primary-blue);
    border: 1px solid rgba(29, 78, 216, 0.15);
}
.badge-soft-dark {
    background: rgba(20, 184, 166, 0.12);
    color: var(--primary-teal);
    border-color: rgba(20, 184, 166, 0.25);
}
.why-bg-shape {
    position: absolute;
    top: -15%; right: -8%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, rgba(20, 184, 166, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}
.why-card {
    border: 1px solid rgba(10, 26, 47, 0.06);
    transition: all 0.35s ease;
}
.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 45px -10px rgba(10, 26, 47, 0.15);
    border-color: transparent;
}
.why-card-num {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 2.75rem;
    font-weight: 800;
    color: rgba(10, 26, 47, 0.05);
    line-height: 1;
}
.why-icon {
    width: 58px; height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    transition: transform 0.35s ease;
}
.why-card:hover .why-icon { transform: scale(1.08) rotate(-4deg); }
.why-icon.bg-blue { background: linear-gradient(135deg, var(--primary-blue), #3B82F6); }
.why-icon.bg-teal { background: linear-gradient(135deg, var(--primary-teal), #5EEAD4); }
.why-icon.bg-amber { background: linear-gradient(135deg, var(--primary-amber), #FBBF24); }
.why-icon.bg-indigo { background: linear-gradient(135deg, var(--primary-purple), #818CF8); }

/* Icons & Cards */
.icon-lg { font-size: 2.5rem; }
.icon-md { width: 40px; height: 40px; font-size: 1.2rem; }
.animated-plus-left { position: absolute; left: -15px; top: 50%; transform: translateY(-50%); }
.animated-plus-right { position: absolute; right: -15px; top: 50%; transform: translateY(-50%); }
.animated-arrow { animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* Cards hover effect */
.transition-all { transition: all 0.3s ease; }
.group-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: #e2e8f0 !important;
}
.group-hover:hover .hover-bg-elem { opacity: 1 !important; transform: translateY(-10px); }
.group-hover:hover .group-hover-arrow { transform: translateX(5px); }

/* Custom Borders */
.border-top-primary { border-top: 4px solid var(--primary-blue) !important; }
.border-top-purple { border-top: 4px solid var(--primary-purple) !important; }
.border-top-cyan { border-top: 4px solid var(--primary-cyan) !important; }
.transform-scale { transform: scale(1.05); }

/* Forms & UI Elements */
.custom-form .form-control {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}
.custom-form .form-control:focus {
    background-color: #fff;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}
.custom-list li { margin-bottom: 0.5rem; }

/* Accordion */
.custom-accordion .accordion-item { overflow: hidden; }
.accordion-button:not(.collapsed) {
    background-color: rgba(29, 78, 216, 0.06);
    color: var(--primary-navy);
    box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: rgba(0,0,0,0.1); }

/* Footer */
.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover, .hover-white:hover { color: #fff !important; }
.social-links a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; transition: all 0.3s;
}
.social-links a:hover { background: var(--primary-blue); transform: translateY(-3px); }

/* Brand Mark */
.brand-mark {
    height: 34px;
    width: auto;
    display: inline-block;
}
footer .brand-mark { height: 38px; }

/* Voice Support: Call Waveform */
.call-waveform {
    height: 40px;
}
.call-waveform span {
    display: inline-block;
    width: 4px;
    border-radius: 2px;
    background: var(--primary-amber);
    animation: waveform 1.2s ease-in-out infinite;
}
.call-waveform span:nth-child(1) { height: 12px; animation-delay: 0s; }
.call-waveform span:nth-child(2) { height: 24px; animation-delay: 0.1s; }
.call-waveform span:nth-child(3) { height: 36px; animation-delay: 0.2s; }
.call-waveform span:nth-child(4) { height: 18px; animation-delay: 0.3s; }
.call-waveform span:nth-child(5) { height: 32px; animation-delay: 0.4s; }
.call-waveform span:nth-child(6) { height: 20px; animation-delay: 0.5s; }
.call-waveform span:nth-child(7) { height: 14px; animation-delay: 0.6s; }
@keyframes waveform {
    0%, 100% { transform: scaleY(0.5); opacity: 0.6; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* Start Small: Process Steps */
.process-row { padding-top: 10px; }
.process-line {
    position: absolute;
    top: 50%; left: 8%; right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.4) 20%, rgba(29, 78, 216, 0.4) 80%, transparent);
    transform: translateY(-50%);
    z-index: 0;
}
.process-connector {
    position: absolute;
    top: 50%;
    width: 34px; height: 34px;
    margin-left: -17px;
    transform: translateY(-50%);
    background: var(--primary-navy);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 0.7rem;
    z-index: 1;
}
.step-card {
    border-radius: 24px;
    transition: all 0.35s ease;
}
.step-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.18); }
.step-card-num {
    color: rgba(255, 255, 255, 0.06) !important;
    top: 1rem; right: 1.5rem;
}
.step-icon-badge {
    width: 78px; height: 78px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    position: relative;
}
.step-icon-badge::after {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    animation: spin 18s linear infinite;
}
.step-icon-blue { background: linear-gradient(135deg, var(--primary-blue), #3B82F6); box-shadow: 0 15px 30px -8px rgba(29, 78, 216, 0.5); }
.step-icon-teal { background: linear-gradient(135deg, var(--primary-teal), #5EEAD4); box-shadow: 0 15px 30px -8px rgba(20, 184, 166, 0.5); }
.step-icon-amber { background: linear-gradient(135deg, var(--primary-amber), #FBBF24); box-shadow: 0 15px 30px -8px rgba(245, 165, 36, 0.5); }
.step-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}
.active-step {
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.1), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(20, 184, 166, 0.35) !important;
    box-shadow: 0 25px 50px -15px rgba(20, 184, 166, 0.25);
}
@media (min-width: 992px) { .active-step { transform: scale(1.05); } .active-step:hover { transform: scale(1.05) translateY(-6px); } }
.active-step-tag {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-teal), var(--primary-blue));
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.35);
}

/* Sub-page Hero */
.page-hero {
    background-color: var(--primary-navy);
    min-height: 62vh;
    padding-top: 150px;
    padding-bottom: 70px;
    display: flex;
}
.page-breadcrumb { background: transparent; }
.page-breadcrumb .breadcrumb-item, .page-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    text-decoration: none;
}
.page-breadcrumb .breadcrumb-item a:hover { color: #fff; }
.page-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,0.85); }
.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.35); }
.page-hero-icon {
    width: 84px; height: 84px;
    border-radius: 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    backdrop-filter: blur(6px);
}

/* CTA Band */
.cta-band {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #0F2A44 100%);
}

/* Mini process steps (sub-pages) */
.mini-step {
    text-align: center;
    padding: 2rem 1.5rem;
}
.mini-step-num {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--primary-teal);
    color: var(--primary-navy);
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
}

/* Tech tag pills */
.tech-pill {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.3rem;
}

/* Team / Portfolio */
.team-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    text-align: center;
    transition: all 0.35s ease;
    border: 1px solid rgba(10,26,47,0.06);
    text-decoration: none;
    display: block;
}
.team-card:hover { transform: translateY(-8px); box-shadow: 0 24px 45px -10px rgba(10,26,47,0.15); }
.team-photo-wrap {
    background: linear-gradient(135deg, var(--primary-navy), #0F2A44);
    padding: 2.5rem 1rem 1.5rem;
    position: relative;
}
.team-photo {
    width: 108px; height: 108px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 3px solid rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 auto;
}
.team-card-body { padding: 1.5rem; }
.team-view-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-teal);
    letter-spacing: 0.5px;
}
.portfolio-hero-photo {
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 4px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 auto;
    overflow: hidden;
}
.portfolio-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.team-view-link { transition: gap 0.25s ease; }
.team-card:hover .team-view-link i { transform: translateX(3px); display:inline-block; transition: transform 0.25s ease; }
.social-links-dark .btn {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 991px) {
    .navbar { background: var(--primary-navy); padding: 1rem 0; }
    .hero-section { text-align: center; }
    .hero-section .d-flex { justify-content: center; }
    .transform-scale { transform: scale(1); }
    .btn-lg { width: 100%; margin-bottom: 10px; }
}
