/* =========================
   RIVIERA DIGITAL - FUTURISTIC THEME
   Clean Modern Purple/Indigo Design
   ========================= */

/* CSS Variables */
:root {
    --primary-indigo: #6366F1;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary-purple: #8B5CF6;
    --accent-violet: #A78BFA;
    --accent-pink: #EC4899;
    --accent-cyan: #22D3EE;
    --bg-dark: #0f0f23;
    --bg-darker: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-light: #ffffff;
    --text-grey: #94a3b8;
    --text-muted: #64748b;
    --gradient-primary: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --gradient-purple: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-indigo: 0 0 30px rgba(99, 102, 241, 0.4);
    --glow-purple: 0 0 30px rgba(139, 92, 246, 0.3);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0f1628 100%);
    background-attachment: fixed;
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    outline: none;
    user-select: none;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Background Effects */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
    animation: bgPulse 10s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 0;
    pointer-events: none;
}

/* =========================
   ANIMATIONS
   ========================= */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.5); }
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes rise {
    0% { 
        bottom: -10px; 
        opacity: 0; 
        transform: translateX(0) scale(0.5);
    }
    10% { 
        opacity: 0.8; 
        transform: scale(1);
    }
    90% { 
        opacity: 0.6; 
    }
    100% { 
        bottom: 100vh; 
        opacity: 0; 
        transform: translateX(20px) scale(0.8);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* =========================
   LAYOUT - Container
   ========================= */

.custom-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .custom-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .custom-container {
        padding: 0 0.75rem;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.row > * {
    padding: 0 0.75rem;
    width: 100%;
}

.row.g-3 {
    margin: -0.5rem;
}

.row.g-3 > * {
    padding: 0.5rem;
}

.row.g-4 {
    margin: -0.75rem;
}

.row.g-4 > * {
    padding: 0.75rem;
}

/* Grid System */
.col-12 { width: 100%; }
.col-md-6 { width: 100%; }
.col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-10 { width: 100%; }

@media (min-width: 768px) {
    .col-md-6 { width: 50%; }
}

@media (min-width: 992px) {
    .col-lg-2 { width: 16.666%; }
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.333%; }
    .col-lg-5 { width: 41.666%; }
    .col-lg-6 { width: 50%; }
    .col-lg-7 { width: 58.333%; }
    .col-lg-8 { width: 66.666%; }
    .col-lg-10 { width: 83.333%; }
}

.justify-content-center { justify-content: center; }
.text-center { text-align: center; }
.h-100 { height: 100%; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.ms-1 { margin-left: 0.25rem; }
.ms-2 { margin-left: 0.5rem; }

/* =========================
   MAIN LAYOUT
   ========================= */

main {
    position: relative;
    z-index: 1;
}

/* =========================
   NAVBAR
   ========================= */

#mainNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1050;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
    transition: var(--transition);
}

#mainNav.scrolled {
    background: rgba(15, 15, 35, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0;
}

#mainNav .custom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand */
#mainNav .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

#mainNav .navbar-brand .navbar-logo {
    height: 55px;
    width: auto;
    transition: var(--transition);
}

#mainNav .navbar-brand .navbar-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
    letter-spacing: -0.02em;
}

#mainNav .navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

#mainNav .navbar-brand:hover .navbar-logo-text {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav Links Container */
#mainNav .navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

#mainNav .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

#mainNav .nav-item {
    position: relative;
}

#mainNav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--text-grey);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--text-light);
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
    width: 60%;
}

#mainNav .nav-link i {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--glass-border);
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-grey);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-light);
    box-shadow: var(--glow-indigo);
}

/* Mobile Menu */
.navbar-toggler {
    display: none;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem;
    cursor: pointer;
}

.navbar-toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    position: relative;
    transition: var(--transition);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    left: 0;
    transition: var(--transition);
}

.navbar-toggler-icon::before { top: -7px; }
.navbar-toggler-icon::after { bottom: -7px; }

@media (max-width: 991px) {
    .navbar-toggler {
        display: block;
    }
    
    #mainNav .navbar-collapse {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
    }
    
    #mainNav .navbar-collapse.show {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
    }
    
    #mainNav .navbar-nav {
        flex-direction: column !important;
        gap: 0.5rem;
        width: 100%;
    }
    
    #mainNav .nav-link {
        padding: 1rem;
        justify-content: center;
    }
    
    .language-selector {
        margin: 1rem 0 0;
        padding: 1rem 0 0;
        border-left: none;
        border-top: 1px solid var(--glass-border);
        justify-content: center;
    }
}

/* =========================
   BUTTONS
   ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius-sm);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-indigo);
    color: var(--primary-light);
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* =========================
   HERO SECTION
   ========================= */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 5rem;
    overflow: hidden;
}

.hero-bg-element {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-bg-element-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    top: auto;
    bottom: -150px;
    right: auto;
    left: -150px;
    animation-delay: 4s;
}

/* Particles */
.particles-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particles span {
    position: absolute;
    bottom: -20px;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-purple));
    border-radius: 50%;
    animation: rise 20s linear infinite;
    box-shadow: 
        0 0 10px rgba(99, 102, 241, 0.5),
        0 0 20px rgba(139, 92, 246, 0.3);
}

.particles span:nth-child(odd) {
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-pink));
}

.particles span:nth-child(3n) {
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary-light));
    box-shadow: 
        0 0 10px rgba(34, 211, 238, 0.5),
        0 0 20px rgba(99, 102, 241, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-grey);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    color: var(--text-grey);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* =========================
   PAGE HERO (Sub-pages)
   ========================= */

.page-hero {
    position: relative;
    padding: 10rem 0 5rem;
    text-align: center;
    overflow: hidden;
}

.page-hero-compact {
    padding: 8rem 0 3rem;
}

.page-hero .hero-bg-element {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.page-hero .hero-content {
    position: relative;
    z-index: 2;
}

.page-hero .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.page-hero .hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-grey);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================
   SECTIONS
   ========================= */

section {
    position: relative;
    padding: 5rem 0;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-grey);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================
   CARDS
   ========================= */

.product-card,
.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover,
.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Prevent hover effects on animating elements */
.product-card.animate-on-scroll:not(.animate-in):hover,
.service-card.animate-on-scroll:not(.animate-in):hover {
    transform: translateY(30px);
}

.product-header {
    margin-bottom: 1.5rem;
}

.product-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-sm);
    font-size: 1.5rem;
    color: var(--text-light);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.product-body p {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.5rem;
}

/* =========================
   TECH GRID & CAROUSEL
   ========================= */

.tech-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto 2rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn i {
    pointer-events: none;
}

.tech-carousel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    flex: 1;
    overflow: hidden;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
}

.tech-item i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-grey);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--glass-border);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(99, 102, 241, 0.5);
}

.carousel-dot.active {
    background: var(--gradient-primary);
    width: 30px;
    border-radius: 5px;
}

/* =========================
   CTA SECTION
   ========================= */

.cta-section {
    padding: 6rem 0;
}

.cta-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: calc(var(--border-radius) * 1.5);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.cta-content h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-grey);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================
   CONTACT SECTION
   ========================= */

.contact-section {
    padding: 4rem 0 6rem;
}

.contact-form-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    position: relative;
}

.form-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(99, 102, 241, 0.15);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.form-icon-wrapper i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-response-text {
    color: var(--text-grey);
    font-size: 0.95rem;
    margin: 0;
}

.form-floating-group {
    margin-bottom: 0.75rem;
    position: relative;
}

.form-floating-group.focused .form-label {
    color: var(--primary-light);
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-grey);
    margin-bottom: 0.4rem;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 0.75rem 0.875rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-indigo);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 0 20px rgba(99, 102, 241, 0.2);
}

.form-control:hover:not(:focus) {
    border-color: rgba(99, 102, 241, 0.3);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366F1' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select.form-control option {
    background: #1a1a3e;
    color: var(--text-light);
}

.submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    margin-top: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-info-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    position: relative;
}

.contact-info-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 1px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: var(--transition);
}

.contact-info-card:hover::after {
    opacity: 1;
}

.contact-info-card h4 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-light);
    text-align: left;
}

.info-items-wrapper {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
}

.info-item-highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

.info-item-highlight .info-icon {
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary-light));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(99, 102, 241, 0.5);
    }
}

.info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-sm);
    color: var(--text-light);
    flex-shrink: 0;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.info-item:hover .info-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-content a,
.info-content span:last-child,
.info-value {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
    text-decoration: none;
}

.info-content a:hover,
.info-value:hover {
    color: var(--primary-light);
}

.social-section {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--glass-border);
}

.social-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius-sm);
    color: var(--text-grey);
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    border-color: transparent;
    color: var(--text-light);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.social-link i {
    position: relative;
    z-index: 1;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInDown 0.5s ease;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert span {
    flex: 1;
}

.text-danger {
    color: #f87171;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
    animation: fadeInUp 0.3s ease;
}

.small {
    font-size: 0.85rem;
}

/* Validation States */
.form-control.valid {
    border-color: var(--primary-indigo);
}

.form-control.invalid {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.05);
}

.form-control.invalid:focus {
    border-color: rgba(239, 68, 68, 0.7);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15), 0 0 20px rgba(239, 68, 68, 0.2);
}

/* =========================
   SERVICES PAGE
   ========================= */

.services-section,
.products-section {
    padding: 4rem 0 6rem;
}

.service-detail-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service-detail-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-detail-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    font-size: 1.75rem;
    color: var(--text-light);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

.service-detail-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.service-detail-card p {
    color: var(--text-grey);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-grey);
}

.feature-list li i {
    color: var(--accent-cyan);
    font-size: 0.85rem;
}

/* =========================
   ABOUT PAGE
   ========================= */

.about-content-section {
    padding: 5rem 0;
}

.about-story-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: calc(var(--border-radius) * 1.5);
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
}

.about-story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.story-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.story-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-light);
    margin-top: 1rem;
}

.story-content {
    margin-bottom: 3rem;
}

.story-content p {
    color: var(--text-grey);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--glass-border);
}

.story-stat-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.story-stat-item:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-3px);
}

.story-stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    font-size: 1.5rem;
    color: var(--text-light);
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.story-stat-content {
    display: flex;
    flex-direction: column;
}

.story-stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.story-stat-label {
    font-size: 0.9rem;
    color: var(--text-grey);
}

.features-section {
    padding: 5rem 0;
}

.why-feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.why-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.why-feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.why-feature-card:hover::before {
    opacity: 1;
}

.why-feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    font-size: 1.75rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.why-feature-card:hover .why-feature-icon {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-light);
    transform: scale(1.1);
}

.why-feature-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.why-feature-card p {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.about-section {
    padding: 4rem 0 6rem;
}

.about-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-card p {
    color: var(--text-grey);
    line-height: 1.8;
    font-size: 1.05rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.value-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.value-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: var(--primary-light);
}

.value-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

/* =========================
   PORTFOLIO SECTION - MODERN REDESIGN
   ========================= */

.portfolio-section {
    padding: 5rem 0;
    background: rgba(10, 10, 26, 0.3);
}

.portfolio-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.portfolio-card:hover::before {
    opacity: 1;
}

/* Carousel */
.portfolio-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    overflow: hidden;
}

.portfolio-carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.portfolio-carousel-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.portfolio-carousel-item.active {
    opacity: 1;
    pointer-events: auto;
}

.portfolio-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-carousel-item.active img {
    transform: scale(1.05);
}

.portfolio-carousel-controls {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 3;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
}

.portfolio-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.portfolio-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.portfolio-carousel-dot.active {
    background: var(--primary-light);
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

.portfolio-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    z-index: 3;
    opacity: 0;
    font-size: 1rem;
}

.portfolio-card:hover .portfolio-carousel-nav {
    opacity: 1;
}

.portfolio-carousel-nav:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
}

.portfolio-carousel-nav.prev {
    left: 1.25rem;
}

.portfolio-carousel-nav.next {
    right: 1.25rem;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 60%);
    animation: pulse 3s ease-in-out infinite;
}

.portfolio-placeholder i {
    font-size: 5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.4;
    position: relative;
    z-index: 1;
}

/* Content */
.portfolio-content {
    padding: 2.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.portfolio-header h5 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.portfolio-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-category {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.portfolio-category i {
    font-size: 0.7rem;
}

.portfolio-description {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
    flex: 1;
}

/* Highlights */
.portfolio-highlights {
    margin-bottom: 1.75rem;
}

.portfolio-highlights-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-highlights-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.portfolio-highlights-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.65rem;
}

.portfolio-highlight-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.portfolio-highlight-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-highlight-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateX(3px);
}

.portfolio-highlight-item:hover::before {
    opacity: 1;
}

.portfolio-highlight-item i {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.portfolio-highlight-item span {
    color: var(--text-grey);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Technologies */
.portfolio-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--glass-border);
}

.portfolio-tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-grey);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.portfolio-tech-tag:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-light);
    transform: translateY(-2px);
}

.portfolio-tech-tag i {
    font-size: 0.75rem;
    color: var(--primary-light);
}

/* Action Button */
.portfolio-action {
    margin-top: 1.25rem;
}

.portfolio-action .btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-carousel {
        height: 240px;
    }
    
    .portfolio-content {
        padding: 1.75rem;
    }
    
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .portfolio-category {
        align-self: flex-start;
    }
    
    .portfolio-highlights-list {
        grid-template-columns: 1fr;
    }
    
    .portfolio-carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .portfolio-carousel-nav.prev {
        left: 0.75rem;
    }
    
    .portfolio-carousel-nav.next {
        right: 0.75rem;
    }
    
    .portfolio-placeholder i {
        font-size: 3.5rem;
    }
}

@media (max-width: 576px) {
    .portfolio-carousel {
        height: 200px;
    }
    
    .portfolio-content {
        padding: 1.5rem;
    }
    
    .portfolio-header h5 {
        font-size: 1.15rem;
    }
    
    .portfolio-carousel-controls {
        bottom: 0.75rem;
        gap: 0.4rem;
        padding: 0.4rem 0.6rem;
    }
    
    .portfolio-carousel-dot {
        width: 8px;
        height: 8px;
    }
    
    .portfolio-carousel-dot.active {
        width: 24px;
    }
}

/* =========================
   FOOTER
   ========================= */

footer {
    position: relative;
    background: rgba(10, 10, 26, 0.8);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand .footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand .footer-logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h5,
.footer-contact h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-grey);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-grey);
    font-size: 0.95rem;
}

.footer-contact-item i {
    color: var(--primary-light);
    width: 20px;
}

.footer-contact-item a {
    color: var(--text-grey);
    transition: var(--transition);
}

.footer-contact-item a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-grey);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-light);
    transform: translateY(-3px);
}

/* =========================
   UTILITIES & SPINNER
   ========================= */

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--primary-indigo);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
    .custom-container {
        padding: 0 1.25rem;
    }
    
    section {
        padding: 3.5rem 0;
    }
    
    .hero-section {
        padding: 7rem 0 4rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .page-hero {
        padding: 8rem 0 3rem;
    }
    
    .page-hero-compact {
        padding: 7rem 0 2rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .cta-card {
        padding: 2.5rem 1.5rem;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 1.75rem;
    }
    
    .contact-info-card h4 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .info-item {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .info-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .product-card,
    .service-card {
        padding: 1.5rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-carousel {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .form-header i {
        font-size: 2rem;
    }
    
    .form-header p {
        font-size: 0.9rem;
    }
    
    .contact-info-card {
        padding: 1.5rem;
    }
    
    .contact-info-card h4 {
        font-size: 1.15rem;
    }
    
    .info-item {
        padding: 0.75rem;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* =========================
   BLAZOR SPECIFIC
   ========================= */

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 1rem;
    text-align: center;
    z-index: 9999;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    margin-left: 1rem;
    text-decoration: underline;
}

.valid.modified:not([type=checkbox]) {
    border-color: rgba(34, 197, 94, 0.5);
}

.invalid {
    border-color: rgba(239, 68, 68, 0.5) !important;
}

.validation-message {
    color: #f87171;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* =========================
   LANGUAGE DROPDOWN
   ========================= */

.nav-item.dropdown {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius-sm);
}

.language-btn .lang-code {
    font-weight: 600;
}

.language-btn .fa-chevron-down {
    font-size: 0.7rem;
    transition: var(--transition);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    min-width: 120px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 1100;
}

.language-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-grey);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.language-option:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-light);
}

.language-option.active {
    background: var(--gradient-primary);
    color: var(--text-light);
}

/* =========================
   FOOTER EXTENDED STYLES
   ========================= */

footer .row.g-4 {
    margin: -0.75rem;
}

footer .row.g-4 > * {
    padding: 0.75rem;
}

footer h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand svg {
    flex-shrink: 0;
}

.footer-brand .brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
}

.footer-desc {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

footer .social-links {
    display: flex;
    gap: 0.75rem;
}

footer .social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-grey);
    font-size: 1rem;
    transition: var(--transition);
}

footer .social-links a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-light);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-grey);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-grey);
    font-size: 0.95rem;
}

.footer-contact li i {
    color: var(--primary-light);
    width: 18px;
    flex-shrink: 0;
}

.footer-contact li a {
    color: var(--text-grey);
    transition: var(--transition);
}

.footer-contact li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* =========================
   SERVICES PAGE - VERTICAL TABS LAYOUT
   ========================= */

.services-tabs-section {
    padding: 4rem 0 6rem;
}

/* Left Sidebar */
.services-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-header {
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.sidebar-subtitle {
    color: var(--text-grey);
    font-size: 1rem;
    margin: 0;
}

.services-tabs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Service Tab Item */
.service-tab-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-tab-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.service-tab-item:hover,
.service-tab-item.active {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateX(5px);
}

.service-tab-item:hover::before,
.service-tab-item.active::before {
    opacity: 1;
}

.service-tab-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
    transition: var(--transition);
}

.service-tab-icon i {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-tab-item:hover .service-tab-icon,
.service-tab-item.active .service-tab-icon {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.service-tab-item:hover .service-tab-icon i,
.service-tab-item.active .service-tab-icon i {
    -webkit-text-fill-color: var(--text-light);
}

.service-tab-text {
    flex: 1;
}

.service-tab-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.service-tab-text p {
    font-size: 0.85rem;
    color: var(--text-grey);
    margin: 0;
    line-height: 1.4;
}

.service-tab-indicator {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: var(--transition);
}

.service-tab-item:hover .service-tab-indicator,
.service-tab-item.active .service-tab-indicator {
    color: var(--primary-light);
    transform: translateX(3px);
}

/* Service Detail Panel (Right Side) */
.service-detail-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 3rem;
    min-height: 600px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.panel-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    font-size: 2.5rem;
    color: var(--text-light);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    flex-shrink: 0;
}

.panel-header-text {
    flex: 1;
}

.panel-header-text h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.panel-header-text p {
    color: var(--text-grey);
    font-size: 1.1rem;
    margin: 0;
}

.panel-description {
    margin-bottom: 2.5rem;
}

.panel-description p {
    color: var(--text-grey);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

/* Panel Sections */
.panel-section {
    margin-bottom: 1.25rem;
}

.panel-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.panel-section-title i {
    color: var(--accent-cyan);
}

/* Features List */
.features-list-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.feature-item-panel:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateX(5px);
}

.feature-check-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-check-icon i {
    color: var(--text-light);
    font-size: 0.85rem;
}

.feature-item-panel span {
    color: var(--text-grey);
    font-size: 1rem;
    font-weight: 500;
}

/* Benefits Section */
.benefits-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.benefits-list-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.benefit-item-panel {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-check-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.benefit-check-icon i {
    color: var(--primary-light);
    font-size: 0.9rem;
}

.benefit-item-panel span {
    color: var(--text-grey);
    font-size: 1rem;
    line-height: 1.6;
}

/* Panel Actions */
.panel-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.panel-actions-full {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.panel-actions-full .btn {
    flex: 1;
    min-width: 200px;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    justify-content: center;
}

/* =========================
   SERVICES PAGE - MODERN REDESIGN
   ========================= */

.services-grid-section {
    padding: 4rem 0 6rem;
}

.modern-service-card {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.modern-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.modern-service-card:hover::before,
.modern-service-card.active::before {
    opacity: 1;
}

.modern-service-card:hover,
.modern-service-card.active {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-card-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card-icon i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-service-card:hover .service-card-icon,
.modern-service-card.active .service-card-icon {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.1);
}

.modern-service-card:hover .service-card-icon i,
.modern-service-card.active .service-card-icon i {
    -webkit-text-fill-color: var(--text-light);
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.service-card-desc {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.service-card-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--primary-light);
    font-size: 1.25rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.modern-service-card:hover .service-card-arrow,
.modern-service-card.active .service-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Service Detail Section */
.service-detail-section {
    padding: 3rem 0 5rem;
    background: rgba(10, 10, 26, 0.3);
}

.service-detail-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.service-detail-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    font-size: 2rem;
    color: var(--text-light);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    flex-shrink: 0;
}

.service-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.service-detail-subtitle {
    color: var(--text-grey);
    font-size: 1.05rem;
    margin: 0;
}

.service-detail-description {
    color: var(--text-grey);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.service-features-section {
    margin-bottom: 2.5rem;
}

.features-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.features-title i {
    color: var(--accent-cyan);
}

.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.feature-item-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.feature-item-modern:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateX(5px);
}

.feature-check {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-check i {
    color: var(--text-light);
    font-size: 0.75rem;
}

.feature-item-modern span {
    color: var(--text-grey);
    font-size: 0.95rem;
    font-weight: 500;
}

.service-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

/* Benefits Card */
.benefits-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.benefits-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.benefits-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.benefits-card-header i {
    font-size: 2rem;
    color: var(--accent-cyan);
}

.benefits-card-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
}

.benefits-list-modern {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.benefit-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
}

.benefit-item-modern:hover {
    transform: translateX(5px);
}

.benefit-icon-modern {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.benefit-icon-modern i {
    color: var(--primary-light);
    font-size: 0.9rem;
}

.benefit-item-modern span {
    color: var(--text-grey);
    font-size: 1rem;
    line-height: 1.6;
}

/* Why Choose Section */
.why-choose-section {
    padding: 5rem 0;
}

.why-choose-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.why-choose-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.why-choose-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--text-light);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.why-choose-card:hover .why-choose-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

.why-choose-card h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.why-choose-card p {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* =========================
   SERVICES PAGE EXTENDED
   ========================= */

.service-nav-section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.service-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.service-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-grey);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
    text-decoration: none;
}

.service-nav-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-light);
    background: rgba(99, 102, 241, 0.05);
}

.service-nav-item.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-light);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.service-nav-item i {
    font-size: 0.85rem;
}

.service-detail-section {
    padding: 4rem 0;
}

/* =========================
   SCROLL ANIMATIONS - ALTERNATING SECTIONS
   ========================= */

/* All sections start invisible */
section:not(.hero-section):not(.page-hero) {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Base state for animated cards */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Section slide directions */
section.slide-from-left {
    transform: translateX(-80px);
}

section.slide-from-right {
    transform: translateX(80px);
}

/* Active state - fully visible */
section.animate-in {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.animate-on-scroll.animate-in {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* Cards and elements - fade up with bounce */
.animate-on-scroll.fade-up {
    transform: translateY(50px);
}

/* Smoother animations for cards */
.service-card.animate-on-scroll,
.product-card.animate-on-scroll,
.value-card.animate-on-scroll,
.portfolio-item.animate-on-scroll {
    transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Faster for smaller elements */
.stat-item.animate-on-scroll,
.info-item.animate-on-scroll,
.tech-item.animate-on-scroll {
    transition-duration: 0.6s;
}

/* Service tabs keep their left slide */
.service-tab-item.animate-on-scroll {
    transform: translateX(-40px);
    transition: opacity 0.5s ease-out,
                transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================
   PAGE TRANSITIONS
   ========================= */

/* Remove body transitions - handled by overlay */
body {
    opacity: 1;
    overflow-x: hidden;
}

/* Main content always visible - overlay handles transitions */
main {
    opacity: 1;
}

/* Hero sections always visible - never participate in scroll animations */
.hero-section,
.page-hero {
    opacity: 1 !important;
    transform: none !important;
    animation: fadeInScale 0.5s ease-out 0.15s both;
}

/* Prevent hero re-animation if already visible */
.hero-section.animate-in,
.page-hero.animate-in {
    animation: none;
    opacity: 1;
    transform: scale(1);
}

/* Cards should only animate on scroll, not on page load */
.service-card:not(.animate-on-scroll),
.product-card:not(.animate-on-scroll) {
    animation: none;
}

/* Remove initial page-load cascade animations */
.service-card,
.product-card {
    animation: none;
}

/* Stats animate in sequence on hero only */
.hero-section .stat-item:nth-child(1) {
    animation: fadeInScale 0.5s ease-out 0.4s backwards;
}

.hero-section .stat-item:nth-child(2) {
    animation: fadeInScale 0.5s ease-out 0.5s backwards;
}

.hero-section .stat-item:nth-child(3) {
    animation: fadeInScale 0.5s ease-out 0.6s backwards;
}

/* Form elements should only animate on scroll */
.contact-form-card,
.contact-info-card {
    animation: none;
}

.contact-form-card.animate-on-scroll,
.contact-info-card.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.contact-form-card.animate-on-scroll.animate-in,
.contact-info-card.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Reduce animations on mobile for performance and subtlety */
@media (max-width: 768px) {
    /* Faster transitions on mobile */
    .animate-on-scroll,
    section:not(.hero-section):not(.page-hero) {
        transition-duration: 0.5s !important;
    }
    
    /* Smaller translate distances on mobile */
    section.slide-from-left,
    section:not(.hero-section):not(.page-hero):nth-of-type(odd) {
        transform: translate(-40px, 0);
    }
    
    section.slide-from-right,
    section:not(.hero-section):not(.page-hero):nth-of-type(even) {
        transform: translate(40px, 0);
    }
    
    .animate-on-scroll.fade-up {
        transform: translateY(30px);
    }
    
    .service-tab-item.animate-on-scroll {
        transform: translateX(-20px);
    }
}

/* =========================
   PAGE TRANSITION OVERLAY
   ========================= */

.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.98) 0%, rgba(26, 26, 62, 0.98) 50%, rgba(15, 22, 40, 0.98) 100%);
    backdrop-filter: blur(10px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, visibility 0s linear 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-transition-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity 0.2s ease-in-out, visibility 0s linear 0s;
}

/* Loading indicator */
.page-transition-overlay::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366F1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    opacity: 0.8;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
    
    body {
        opacity: 1;
    }
    
    .page-transition-overlay {
        display: none;
    }
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    font-size: 1.75rem;
    color: var(--text-light);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}

.service-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.service-tagline {
    color: var(--text-grey);
    font-size: 1rem;
    margin: 0;
}

.service-description {
    color: var(--text-grey);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.features-grid {
    margin-bottom: 2rem;
}

.features-grid h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    color: var(--text-grey);
    font-size: 0.85rem;
}

.feature-tag i {
    color: var(--accent-cyan);
    font-size: 0.75rem;
}

.service-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.benefits-panel {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.benefits-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
    font-weight: 600;
}

.benefits-header i {
    font-size: 1.25rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.benefit-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 0.65rem;
    color: var(--text-light);
    margin-top: 0.1rem;
}

.benefit-item span {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.5;
}

.why-section {
    padding: 3rem 0 5rem;
}

.why-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
    height: 100%;
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.why-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--primary-light);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.why-content h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.why-content p {
    font-size: 0.85rem;
    color: var(--text-grey);
    margin: 0;
}

.text-primary {
    color: var(--primary-light) !important;
}

.align-items-start {
    align-items: flex-start;
}

.g-3 {
    gap: 1rem;
}

/* =========================
   PRODUCTS PAGE EXTENDED
   ========================= */

.products-detail-section {
    padding: 4rem 0;
}

.product-showcase-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    height: 100%;
    overflow: hidden;
    transition: var(--transition);
}

.product-showcase-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.product-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.product-content {
    position: relative;
    z-index: 1;
}

.product-header-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.product-icon-box {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    font-size: 1.5rem;
    color: var(--text-light);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}

.product-info {
    flex: 1;
}

.product-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
}

.product-action {
    flex-shrink: 0;
}

.product-action .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.product-desc {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.product-long-desc {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* =========================
   COL-LG-2 ADDITION
   ========================= */

.col-lg-2 { width: 100%; }

@media (min-width: 992px) {
    .col-lg-2 { width: 16.666%; }
}

/* =========================
   RESPONSIVE UPDATES
   ========================= */

@media (max-width: 991px) {
    .service-nav {
        justify-content: flex-start;
    }
    
    .service-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .benefits-panel {
        margin-top: 2rem;
    }
    
    .service-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .service-detail-content {
        padding: 2rem;
    }
    
    .benefits-card {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .features-grid-modern {
        grid-template-columns: 1fr;
    }
    
    /* Vertical Tabs Responsive */
    .services-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
    
    .sidebar-title {
        font-size: 1.75rem;
    }
    
    .service-tab-item {
        padding: 1.25rem;
    }
    
    .service-tab-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-tab-icon i {
        font-size: 1.25rem;
    }
    
    .service-detail-panel {
        padding: 2rem;
        min-height: auto;
    }
    
    .panel-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .panel-header-text h2 {
        font-size: 1.75rem;
    }
    
    /* Stack columns on tablet */
    .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-10 {
        width: 100%;
    }
}

@media (max-width: 768px) {
.service-nav-item {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}
    
.product-header-row {
    flex-wrap: wrap;
}
    
.product-action {
    width: 100%;
    margin-top: 1rem;
}
    
.product-action .btn {
    width: 100%;
}
    
.product-showcase-card {
    padding: 1.75rem;
}
    
    .language-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .modern-service-card {
        padding: 1.75rem;
    }
    
    .service-card-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-card-icon i {
        font-size: 1.75rem;
    }
    
    .service-detail-content {
        padding: 1.75rem;
    }
    
    .service-detail-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-detail-title {
        font-size: 1.5rem;
    }
    
    .benefits-card {
        padding: 1.75rem;
    }
    
    .why-choose-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Vertical Tabs Mobile */
    .sidebar-title {
        font-size: 1.5rem;
    }
    
    .service-tab-item {
        padding: 1rem;
        gap: 1rem;
    }
    
    .service-tab-icon {
        width: 45px;
        height: 45px;
    }
    
    .service-tab-icon i {
        font-size: 1.15rem;
    }
    
    .service-tab-text h4 {
        font-size: 1rem;
    }
    
    .service-tab-text p {
        font-size: 0.8rem;
    }
    
    .service-detail-panel {
        padding: 1.5rem;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    
    .panel-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .panel-header-text h2 {
        font-size: 1.5rem;
    }
    
    .panel-header-text p {
        font-size: 1rem;
    }
    
    .benefits-section {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    /* Stack all columns on mobile */
    .col-md-6 {
        width: 100%;
    }
}
