/* ========================================
   Uplora - Custom Styles
   HTML/CSS/Bootstrap Version
   ======================================== */

/* Google Fonts are loaded in HTML */

:root {
    /* Light Theme Colors */
    --brand: #2563EB;
    --accent: #22C55E;
    --ink: #0F172A;
    --muted: #64748B;
    --light-bg: #F8FAFC;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    --background: #F8FAFC;
    --foreground: #0F172A;
    --card-bg: #FFFFFF;
}

.dark-theme {
    /* Dark Theme Colors */
    --dark-bg: #0A0F1D;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.5);
    --background: #0A0F1D;
    --foreground: #F8FAFC;
    --card-bg: #111827;
    --muted: #94A3B8;
}

/* ========================================
   Base Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 2rem);
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.3;
}

p {
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

.text-muted {
    color: var(--muted) !important;
}

/* Glassmorphism */

/* ========================================
   Glassmorphism
   ======================================== */

.glass {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 8px 32px var(--glass-shadow);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* ========================================
   Gradient Text
   ======================================== */

.gradient-text {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Neon Glow Effects
   ======================================== */

.neon-glow {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5),
                0 0 40px rgba(37, 99, 235, 0.3),
                0 0 60px rgba(37, 99, 235, 0.1);
}

.neon-glow:hover {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.7),
                0 0 50px rgba(37, 99, 235, 0.5),
                0 0 70px rgba(37, 99, 235, 0.3);
}

/* ========================================
   Animated Gradient Blobs
   ======================================== */

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: blob 20s infinite;
    pointer-events: none;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--accent), var(--brand));
    top: 50%;
    right: -150px;
    animation-delay: 7s;
}

.blob-3 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(34, 197, 94, 0.6));
    bottom: -100px;
    left: 30%;
    animation-delay: 14s;
}

@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ========================================
   Animations
   ======================================== */

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-children > * {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.7s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.8s; }
.stagger-children > *:nth-child(9) { animation-delay: 0.9s; }

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.magnetic {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.parallax {
    transition: transform 0.3s ease-out;
}

/* ========================================
   Header
   ======================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.dark-theme header.scrolled {
    background: rgba(10, 15, 29, 0.98) !important;
}

header.scrolled .navbar {
    padding: 0.75rem 0;
}

.navbar {
    padding: 1.5rem 0;
}

.navbar-brand img {
    width: 135px;
   
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--foreground);
    opacity: 0.8;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
    color: var(--brand);
}

/* Dropdown Menu Styles */
.dropdown:hover > .dropdown-menu {
    display: block;
    animation: fadeInDown 0.3s ease forwards;
}

.dropdown-menu {
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0 !important; /* Removed gap */
    background: var(--card-bg) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Invisible bridge to maintain hover state */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown-item {
    color: var(--foreground);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--brand);
    color: white;
    transform: translateX(5px);
}

.dark-theme .dropdown-menu {
    background: #111827 !important;
}

.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-icon {
    color: var(--brand);
}

.dark-theme .sun-icon {
    display: none !important;
}

.dark-theme .moon-icon {
    display: block !important;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
}

.badge-pill svg {
    color: var(--accent);
}

.hero-title {
    margin: 1.5rem 0;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--muted);
    max-width: 48rem;
    margin: 0 auto 2rem;
}

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

.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero Image Wrapper */
.hero-image-wrapper {
    position: relative;
    margin-top: 10rem;
    margin-bottom: 0;
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 0 1rem;
    padding-bottom: 0;
    overflow: visible;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    z-index: 1;
    overflow: visible;
}

.hero-illustration-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1.5rem;
    object-fit: contain;
    max-width: 100%;
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s cubic-bezier(0.22, 0.9, 0.32, 1),
                transform 0.8s cubic-bezier(0.22, 0.9, 0.32, 1);
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-illustration-img.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Metrics Container */
.hero-metrics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Metric Card Base Styles */
.hero-metric-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: opacity 0.6s cubic-bezier(0.22, 0.9, 0.32, 1),
                transform 0.6s cubic-bezier(0.22, 0.9, 0.32, 1);
    pointer-events: auto;
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Metric Icon Wrapper - Round Circle */
.metric-icon-wrapper {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(34, 197, 94, 0.2));
    border: 1px solid rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    flex-shrink: 0;
}

.metric-icon-wrapper svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
}

/* Metric Content */
.metric-content {
    flex: 1;
}

.metric-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.4;
}

/* All metric cards same width */
.hero-metric-card {
    min-width: 280px;
    width: 280px;
}

/* Metric Card Positions */
.metric-top-center {
    top: -15%;
    left: 50%;
    transform: translateX(-50%) translateY(-30px) scale(0.95);
    opacity: 0;
}

.metric-top-center.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.metric-left-first {
    top: 15%;
    left: -55%;
    transform: translateX(-50px) translateY(20px) scale(0.95);
    opacity: 0;
}

.metric-left-first.visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

.metric-left-second {
    top: 65%;
    left: -55%;
    transform: translateX(-50px) translateY(20px) scale(0.95);
    opacity: 0;
}

.metric-left-second.visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

.metric-right-first {
    top: 15%;
    right: -55%;
    transform: translateX(50px) translateY(20px) scale(0.95);
    opacity: 0;
}

.metric-right-first.visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

.metric-right-second {
    top: 65%;
    right: -55%;
    transform: translateX(50px) translateY(20px) scale(0.95);
    opacity: 0;
}

.metric-right-second.visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-image-wrapper {
        max-width: 28rem;
    }
    
    .hero-image {
        max-width: 24rem;
    }
    
    .hero-metric-card {
        padding: 12px 16px;
        gap: 12px;
        min-width: 260px;
        width: 260px;
    }
    
    .metric-icon-wrapper {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    
    .metric-icon-wrapper svg {
        width: 30px;
        height: 30px;
    }
    
    .metric-title {
        font-size: 17px;
    }
    
    .metric-left-first,
    .metric-left-second {
        left: -50%;
    }
    
    .metric-right-first,
    .metric-right-second {
        right: -50%;
    }
    
    .metric-top-center {
        top: -12%;
    }
}

@media (max-width: 992px) {
    .hero-image-wrapper {
        max-width: 26rem;
        margin-top: 8rem;
    }
    
    .hero-image {
        max-width: 22rem;
    }
    
    .hero-metric-card {
        min-width: 240px;
        width: 240px;
    }
    
    .metric-icon-wrapper {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }
    
    .metric-icon-wrapper svg {
        width: 28px;
        height: 28px;
    }
    
    .metric-title {
        font-size: 16px;
    }
    
    .hero-illustration-img {
        transform: translateY(70px);
    }
    
    .metric-icon-wrapper {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
    
    .metric-icon-wrapper svg {
        width: 24px;
        height: 24px;
    }
    
    .metric-title {
        font-size: 14px;
    }
    
    .metric-left-first,
    .metric-left-second {
        left: -48%;
    }
    
    .metric-right-first,
    .metric-right-second {
        right: -48%;
    }
    
    .metric-top-center {
        top: -11%;
    }
    
    .metric-left-first,
    .metric-right-first {
        top: 12%;
    }
    
    .metric-left-second,
    .metric-right-second {
        top: 68%;
    }
}

@media (max-width: 768px) {
    .hero-image-wrapper {
        margin-top: 7rem;
        padding: 0 0.5rem;
        max-width: 32rem;
    }
    
    .hero-image {
        max-width: 30rem;
    }
    
    .hero-illustration-img {
        border-radius: 1rem;
        transform: translateY(60px);
    }
    
    .hero-illustration-img.animate-in {
        transform: translateY(0);
    }
    
    /* Mobile: Center all metrics on person image - stacked vertically */
    .hero-metrics {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        pointer-events: none;
    }
    
    .hero-metric-card {
        position: relative;
        padding: 12px 16px;
        gap: 12px;
        border-radius: 12px;
        min-width: 280px;
        width: 280px;
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        left: auto !important;
        right: auto !important;
        top: auto !important;
        margin: 0;
    }
    
    .hero-metric-card.visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    
    .metric-icon-wrapper {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }
    
    .metric-icon-wrapper svg {
        width: 26px;
        height: 26px;
    }
    
    .metric-title {
        font-size: 15px;
    }
    
    /* Center all metrics on person image */
    .metric-top-center,
    .metric-left-first,
    .metric-left-second,
    .metric-right-first,
    .metric-right-second {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: translateY(20px) scale(0.95);
    }
    
    .metric-top-center.visible,
    .metric-left-first.visible,
    .metric-left-second.visible,
    .metric-right-first.visible,
    .metric-right-second.visible {
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 576px) {
    .hero-image-wrapper {
        margin-top: 5rem;
        max-width: 32rem;
    }
    
    .hero-image {
        max-width: 28rem;
    }
    
    .hero-illustration-img {
        transform: translateY(50px);
    }
    
    .hero-metrics {
        gap: 0.6rem;
    }
    
    .hero-metric-card {
        padding: 10px 14px;
        gap: 10px;
        border-radius: 10px;
        min-width: 260px;
        width: 260px;
        transform: translateY(15px) scale(0.95);
    }
    
    .hero-metric-card.visible {
        transform: translateY(0) scale(1);
    }
    
    .metric-icon-wrapper {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
    
    .metric-icon-wrapper svg {
        width: 24px;
        height: 24px;
    }
    
    .metric-title {
        font-size: 14px;
    }
    
    .metric-top-center,
    .metric-left-first,
    .metric-left-second,
    .metric-right-first,
    .metric-right-second {
        transform: translateY(15px) scale(0.95);
    }
    
    .metric-top-center.visible,
    .metric-left-first.visible,
    .metric-left-second.visible,
    .metric-right-first.visible,
    .metric-right-second.visible {
        transform: translateY(0) scale(1);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .hero-illustration-img,
    .hero-metric-card {
        transition: none;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .hero-illustration-img.animate-in,
    .hero-metric-card.visible {
        transform: none !important;
        opacity: 1 !important;
    }
}


.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-icon {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(37, 99, 235, 0.5);
    border-radius: 50px;
    position: relative;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 12px;
    background: var(--brand);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        top: 8px;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        top: 20px;
    }
}

/* ========================================
   Sections
   ======================================== */

section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted);
}

/* ========================================
   Services Section
   ======================================== */

.services-section {
    position: relative;
}

.service-card {
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

.service-icon {
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    display: inline-flex;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

.service-icon svg {
    color: var(--brand);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-description {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ========================================
   Portfolio Section
   ======================================== */

.portfolio-section {
    background: var(--card-bg);
    background: rgba(var(--card-bg), 0.5);
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--foreground);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: scale(1.05);
}

.filter-btn.active {
    background: var(--brand);
    color: white;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

.portfolio-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: none;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: none;
}

/* Website Development Cards - No hover scale, no content */
.portfolio-card-website {
    cursor: default;
}

.portfolio-card-website:hover {
    transform: none;
}

.portfolio-image {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(34, 197, 94, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.1);
}

/* Website Development Image Styles */
.portfolio-image-website {
    height: 300px;
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.portfolio-image-website .portfolio-img {
    width: 100%;
    height: auto;
    min-height: 300px;
    object-fit: cover;
    object-position: top center;
    transition: transform 2s ease-in-out;
    transform: translateY(0);
    display: block;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.portfolio-card-website:hover .portfolio-image-website .portfolio-img {
    transform: translateY(calc(-100% + 300px));
}

.modal-img {
    border-radius: 0.75rem;
    max-height: 400px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(37, 99, 235, 0.15));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #22C55E;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

.portfolio-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.portfolio-card:hover .portfolio-title {
    color: var(--brand);
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tag {
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--foreground);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portfolio-case-study-link {
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal Overrides */
.portfolio-modal-dialog {
    max-height: 90vh;
    margin: 2rem auto;
    display: flex;
    align-items: center;
}

.portfolio-modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    min-height: 600px;
    height: auto;
    position: relative;
}

.modal-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
    padding: 1.5rem;
    border-radius: 1.5rem 1.5rem 0 0;
}

.portfolio-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.portfolio-modal-body::-webkit-scrollbar {
    width: 8px;
}

.portfolio-modal-body::-webkit-scrollbar-track {
    background: var(--glass-bg);
    border-radius: 4px;
}

.portfolio-modal-body::-webkit-scrollbar-thumb {
    background: var(--brand);
    border-radius: 4px;
    opacity: 0.5;
}

.portfolio-modal-body::-webkit-scrollbar-thumb:hover {
    opacity: 0.8;
}

.portfolio-modal-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    flex-shrink: 0;
    padding: 1.5rem;
    margin-top: auto;
    border-radius: 0 0 1.5rem 1.5rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-modal-footer .btn {
    margin: 0;
}

.metric-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* ========================================
   About Section
   ======================================== */

.about-section {
    padding: 6rem 0;
}

.about-text {
    font-size: 1.125rem;
    color: var(--muted);
    line-height: 1.7;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.benefit-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.team-card {
    padding: 2rem;
    border-radius: 1.5rem;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.team-icon {
    padding: 0.75rem;
    border-radius: 0.75rem;
    display: inline-flex;
}

.team-icon svg {
    color: var(--brand);
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-avatars {
    display: flex;
    gap: -1rem;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    border: 2px solid var(--background);
    margin-left: -1rem;
}

.avatar:first-child {
    margin-left: 0;
}



/* ========================================
   Contact Section
   ======================================== */

.contact-section {
    padding: 6rem 0;
}

.contact-card {
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.contact-icon {
    padding: 0.75rem;
    border-radius: 0.75rem;
    display: inline-flex;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

.contact-icon svg {
    color: var(--brand);
}

.contact-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.contact-form {
    padding: 2rem;
    border-radius: 1.5rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control,
.form-select {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--foreground) !important;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
    cursor: pointer;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25),
                0 0 20px rgba(37, 99, 235, 0.2) !important;
    background-color: rgba(37, 99, 235, 0.05) !important;
    outline: none;
}

.form-control:hover,
.form-select:hover {
    border-color: rgba(37, 99, 235, 0.4) !important;
    background-color: rgba(37, 99, 235, 0.03) !important;
}

.form-select option {
    background: var(--card-bg);
    color: var(--foreground);
    padding: 0.75rem 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    margin: 0.25rem;
}

.form-select option:checked {
    background: var(--brand);
    color: white;
}

.form-select option:hover {
    background: rgba(37, 99, 235, 0.1);
}

/* Enhanced dropdown styling - works in some browsers */
.form-select {
    border-radius: 0.75rem !important;
}

/* For browsers that support it */
@supports (-webkit-appearance: none) or (appearance: none) {
    .form-select {
        border-radius: 0.75rem !important;
    }
}

/* Placeholder styling for select */
.form-select:invalid {
    color: var(--muted);
}

.form-select:valid {
    color: var(--foreground);
}


.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--glass-border);
}

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

.footer h5 {
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--brand);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

/* ========================================
   Bootstrap Overrides
   ======================================== */

.btn-primary {
    background: var(--brand);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--brand);
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    color: var(--foreground);
}

.btn-outline-primary:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
}

.navbar-toggler {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(37, 99, 235, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.toast {
    border-radius: 0.75rem;
    min-width: 300px;
    max-width: 400px;
}

.toast.show {
    display: block !important;
}

.toast-header {
    border-bottom: 1px solid var(--glass-border);
}

.btn-close {
    filter: invert(1);
}

.dark-theme .btn-close {
    filter: invert(0);
}

/* ========================================
   Toastr Custom Styling - Glassmorphism
   ======================================== */

#toast-container {
    z-index: 99999 !important;
    top: 20px !important;
    right: 20px !important;
}

#toast-container > div {
    border-radius: 0.75rem !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    min-width: 350px !important;
    max-width: 450px !important;
    padding: 15px !important;
    opacity: 1 !important;
}

/* Success Toast - Green Glassmorphism */
#toast-container > .toast-success,
.dark-theme #toast-container > .toast-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.9)) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(34, 197, 94, 0.95) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(34, 197, 94, 0.7),
                0 0 60px rgba(34, 197, 94, 0.9),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 0 rgba(34, 197, 94, 0.7) !important;
    color: #F8FAFC !important;
}

.dark-theme #toast-container > .toast-success .toast-title {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 8px rgba(34, 197, 94, 0.5) !important;
}

.dark-theme #toast-container > .toast-success .toast-message {
    color: #FFFFFF !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.dark-theme #toast-container > .toast-success .toast-progress {
    background: rgba(34, 197, 94, 0.5) !important;
    height: 3px !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5) !important;
}

/* Error Toast - Red Glassmorphism */
#toast-container > .toast-error,
.dark-theme #toast-container > .toast-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.9)) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(239, 68, 68, 0.95) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(239, 68, 68, 0.7),
                0 0 60px rgba(239, 68, 68, 0.9),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 0 rgba(239, 68, 68, 0.7) !important;
    color: #F8FAFC !important;
}

.dark-theme #toast-container > .toast-error .toast-title {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 8px rgba(239, 68, 68, 0.5) !important;
}

.dark-theme #toast-container > .toast-error .toast-message {
    color: #FFFFFF !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.dark-theme #toast-container > .toast-error .toast-progress {
    background: rgba(239, 68, 68, 0.5) !important;
    height: 3px !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5) !important;
}

/* General toast styling - Only apply if not error or success */
.dark-theme #toast-container > .toast:not(.toast-error):not(.toast-success) {
    background: rgba(15, 23, 42, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    color: #F8FAFC !important;
}

.dark-theme #toast-container .toast-title {
    font-weight: 700 !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
}

.dark-theme #toast-container .toast-message {
    color: #F8FAFC !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.dark-theme #toast-container > .toast-success .toast-close-button,
.dark-theme #toast-container > .toast-error .toast-close-button {
    color: #FFFFFF !important;
    opacity: 1 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.dark-theme #toast-container > .toast-success .toast-close-button:hover,
.dark-theme #toast-container > .toast-error .toast-close-button:hover {
    opacity: 1 !important;
    color: #FFFFFF !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.dark-theme #toast-container .toast-close-button {
    color: rgba(248, 250, 252, 0.8) !important;
    opacity: 1 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-shadow: none !important;
}

.dark-theme #toast-container .toast-close-button:hover {
    opacity: 1 !important;
    color: #F8FAFC !important;
}

/* Light theme toast styling - Only apply if not error or success */
#toast-container > .toast:not(.toast-error):not(.toast-success) {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    color: #0F172A !important;
}

/* ========================================
   Products & Featured Features
   ======================================== */

.products-section {
    padding: 100px 0;
    background: var(--background);
}

.product-featured-card {
    border-radius: 24px;
    overflow: hidden;
    margin-top: 3rem;
    background: var(--card-bg) !important;
    border: 1px solid var(--glass-border) !important;
}

.product-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.product-description {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.7;
}

.product-features {
    list-style: none;
    padding: 0;
}

.product-features li {
    margin-bottom: 0.75rem;
    color: var(--foreground);
    display: flex;
    align-items: center;
}

.product-features li i {
    color: var(--accent);
}

.product-image-container {
    background: #0A0F1D; /* Dark fallback */
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-featured-card:hover .product-image-container img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

@media (max-width: 767px) {
    .product-image-container {
        min-height: 300px;
        order: -1;
    }
}

/* ========================================
   Final CTA
   ======================================== */

.final-cta-section {
    margin-top: 50px;
}

.cta-banner {
    background: var(--card-bg) !important;
    border: 1px solid var(--glass-border) !important;
}

.animate-glow {
    position: relative;
    overflow: hidden;
}

.animate-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .hero-section {
        padding-top: 80px;
        padding-bottom: 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .section-header {
        margin-bottom: 2rem;
    }
}

/* ========================================
   Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}