/**
 * Xpress Digital - Modern Redesign (Royal Amethyst Theme)
 * Central Stylesheet
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Royal Amethyst */
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    --primary-gradient-hover: linear-gradient(135deg, #4338ca 0%, #7e22ce 100%);
    --primary-solid: #4f46e5;
    --primary-dark: #3730a3;
    --secondary-solid: #10B981;
    --accent-solid: #f59e0b;

    /* Neutral Colors */
    --bg-deep: #0f172a;
    --bg-surface: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.85);
    --text-header: #f8fafc;
    --text-body: #94a3b8;
    --text-muted: #64748b;

    /* Glassmorphism */
    --glass-bg: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-blur: blur(16px);

    /* Shadows & Transitions */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --transition-base: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Responsive Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-header);
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

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

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h5 {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

h6 {
    font-size: clamp(0.875rem, 2vw, 1rem);
}

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

/* Header & Navigation */
.main-header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-base);
}

.main-header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
}

.top-bar {
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 0;
    font-size: 0.85rem;
}

.top-bar a {
    color: var(--text-body);
}

.top-bar a:hover {
    color: var(--text-header);
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 35px;
        max-width: 140px;
    }
}
}

.navbar-nav .nav-link {
    color: var(--text-body) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    margin: 0 0.2rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-header) !important;
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: clamp(60px, 10vh, 120px) 0;
    background: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}



/* Cards & Components */
.card,
.service-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: var(--transition-base);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.card:hover,
.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    transition: var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
    background: var(--primary-gradient);
    filter: brightness(1.1);
}

.btn-outline-primary {
    border: 2px solid var(--primary-solid);
    background: transparent;
    color: var(--primary-solid);
    padding: 10px 26px;
    border-radius: 12px;
}

.btn-outline-primary:hover {
    background: var(--primary-solid);
    color: #fff;
}

/* Footer */
.footer {
    background: #020617;
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.footer h5 {
    color: var(--text-header);
    margin-bottom: 1.5rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-body);
    margin-right: 10px;
}

.social-icons a:hover {
    background: var(--primary-gradient);
    color: #fff;
    transform: scale(1.1);
}

/* Utilities */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

/* Animations */
[data-aos] {
    transition-duration: 800ms !important;
}

/* Legal Pages */
.legal-page {
    background: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    min-height: 100vh;
}

.legal-hero-section {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-hero-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.legal-content h3 {
    color: #F8FAFC;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-content p {
    color: #94A3B8;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.transform-hover:hover {
    transform: translateY(-5px);
}

.hover-bg-light:hover {
    background-color: #f8f9fa;
    color: var(--primary-solid) !important;
    font-weight: 600;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-base);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1) translateY(-5px);
}

@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }

    /* Responsive Adjustments for Cards */
    .card,
    .service-card,
    .service-card-home,
    .feature-box-home {
        margin-left: 0;
        margin-right: 0;
    }

    .service-card-home {
        margin-top: 40px;
    }

    .testimonial-card,
    .team-card {
        padding: 20px;
    }

    .portfolio-item {
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-section {
        padding: 40px 0;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer h5 {
        font-size: 1.2rem;
        text-align: center;
    }

    .footer .col-md-3 {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
        display: flex;
    }
}

/* Home Page Specific Styles */
.hero-home {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    overflow: hidden;
}

.particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content-home {
    position: relative;
    z-index: 10;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #2563EB;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: #7c3aed;
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: #06b6d4;
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }

    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }

    75% {
        transform: translate(20px, 30px) rotate(270deg);
    }
}

.btn-glow {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.8);
    transform: translateY(-2px);
}

.typed-text-wrapper {
    display: inline-block;
    min-height: 2.2rem;
}

.tech-icon {
    width: 25px;
    height: 25px;
}

/* Home Page Specific Cards */
.service-card-home {
    position: relative;
    overflow: visible;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: 60px;
}

.service-card-home:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3) !important;
}

.service-card-home .card-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1E293B, #2563EB);
    z-index: -1;
    border-radius: 24px;
    opacity: 0.95;
}

.service-card-home .service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-top: -40px;
    position: relative;
    z-index: 3;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.service-card-home .service-icon i {
    font-size: 32px;
    color: #2563EB;
    transition: all 0.4s ease;
}

.service-card-home h4 {
    margin-top: 25px;
    color: white;
    transition: all 0.3s ease;
}

.service-card-home p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.service-card-home .card-body {
    padding-bottom: 0;
}

.feature-icon-home {
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.4s ease;
}

.feature-icon-home i {
    font-size: 12px;
    color: #2563EB;
}

.service-card-home .feature-list {
    color: rgba(255, 255, 255, 0.9);
}

.service-card-home .btn-service {
    background-color: white;
    color: #2563EB;
    position: relative;
    z-index: 2;
    overflow: hidden;
    transition: all 0.4s ease;
    border-color: white;
    margin-top: 0;
}

.service-card-home .btn-service:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.service-card-home .card-footer {
    padding-top: 0;
    margin-top: 0;
}

.feature-box-home {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 35px;
    margin-bottom: 30px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-box-home:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 45px rgba(37, 99, 235, 0.15);
    border-color: transparent;
}

.feature-box-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, #1E293B, #2563EB);
    transition: all 0.5s ease;
    z-index: -1;
    opacity: 0;
    border-radius: 15px;
}

.feature-box-home:hover::before {
    height: 100%;
    opacity: 1;
}

.feature-icon-wrap-home {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.feature-box-home:hover .feature-icon-wrap-home {
    background: white;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon-home-big {
    font-size: 32px;
    color: #2563EB;
    transition: all 0.4s ease;
}

.feature-box-home:hover .feature-icon-home-big {
    transform: rotate(-10deg);
}

.feature-title-home {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.feature-box-home:hover .feature-title-home {
    color: white;
}

.feature-text-home {
    transition: all 0.3s ease;
}

.feature-box-home:hover .feature-text-home {
    color: rgba(255, 255, 255, 0.9) !important;
}

.feature-counter-home {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 72px;
    font-weight: 800;
    color: rgba(37, 99, 235, 0.05);
    transition: all 0.4s ease;
}

.feature-box-home:hover .feature-counter-home {
    color: rgba(255, 255, 255, 0.1);
    transform: scale(1.2);
}

.why-choose-img-home {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.why-choose-img-home:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 45px rgba(37, 99, 235, 0.2);
}

.img-overlay-home {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(30, 41, 59, 0.8), transparent);
    opacity: 0;
    transition: all 0.5s ease;
}

.why-choose-img-home:hover .img-overlay-home {
    opacity: 1;
}

.img-badge-home {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #2563EB;
    color: white;
    padding: 10px 15px;
    border-radius: 30px;
    font-weight: 700;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.6s ease;
}

.why-choose-img-home:hover .img-badge-home {
    transform: translateY(0);
    opacity: 1;
}

.why-choose-title-home {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.why-choose-title-home::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: #2563EB;
    border-radius: 2px;
}

.stats-wrap-home {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    gap: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease;
}

.why-choose-img-home:hover .stats-wrap-home {
    transform: translateY(0);
    opacity: 1;
}

.stat-item-home {
    text-align: center;
    color: white;
}

.stat-label-home {
    font-size: 14px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .service-card-home {
        margin-top: 50px;
    }

    .service-icon-home {
        width: 70px;
        height: 70px;
        margin-top: -35px;
    }

    .service-icon-home i {
        font-size: 28px;
    }
}

/* Form Styles and Overrides */
.form-control,
.form-select {
    border-radius: 12px;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    border-color: var(--primary-solid);
    background-color: #ffffff;
}

/* Section Padding Override for Modern Whitespace */
.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Portfolio Card Enhancements */
.portfolio-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.portfolio-img-container img {
    transition: transform 0.6s ease;
}

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