:root {
    --tech-blue: #0071dc;
    --tech-cyan: #00f2ff;
    --tech-dark: #0b1b2b;
    --tech-gradient: linear-gradient(135deg, #0071dc 0%, #00c6ff 100%);
}

/* Global Smoothness */
html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--tech-blue);
    color: #fff;
}

/* 1. Page Transition - Fade In */
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    animation: pageFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Advanced Tech Buttons */
.default-btn {
    background: var(--tech-gradient) !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(0, 113, 220, 0.3) !important;
}

/* Remove old pseudo-elements if they conflict, or adapt them */
.default-btn::before {
    background: rgba(255, 255, 255, 0.2) !important;
    width: 0% !important; /* Reset old effect */
    transition: width 0.3s ease !important;
}

.default-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.5) !important;
}

.default-btn:active {
    transform: translateY(1px) scale(0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 113, 220, 0.3) !important;
}

/* Shine Effect on Hover */
.default-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: none;
    z-index: -1;
}

.default-btn:hover::after {
    left: 100%;
    transition: left 0.6s ease-in-out;
}

/* 3. Interactive Cards */
.services-card, 
.work-process-card, 
.blog-card,
.case-study-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; /* Bouncy effect */
    border-bottom: 3px solid transparent !important;
}

/* 3D Styling for About Content Cards (PC/Mobile/PDA) */
.about-content-card {
    background: #f8fbff !important; /* Slightly off-white blueish tint */
    box-shadow: 
        6px 6px 12px rgba(0, 71, 145, 0.08), 
        -4px -4px 12px #ffffff !important; /* Stronger shadow contrast */
    border-radius: 12px !important;
    border: 1px solid #dce5eb !important; /* Slightly darker border */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 25px 15px !important;
    margin-bottom: 20px !important;
    z-index: 1;
}

/* Icon Enhancement */
.about-content-card i {
    font-size: 45px !important;
    background: linear-gradient(135deg, #0071dc 0%, #00c6ff 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block !important;
    margin-bottom: 15px !important;
    transition: transform 0.3s ease !important;
    filter: drop-shadow(0 5px 10px rgba(0, 113, 220, 0.2));
}

.about-content-card h3 {
    color: #0b1b2b !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    transition: color 0.3s ease !important;
}

/* Hover Interaction */
.about-content-card:hover {
    transform: translateY(-8px) scale(1.03) !important;
    background: #ffffff !important; /* White on hover for pop effect */
    box-shadow: 
        12px 12px 30px rgba(0, 113, 220, 0.18), 
        -5px -5px 20px #ffffff !important;
    border-color: var(--tech-blue) !important;
}

.about-content-card:hover i {
    transform: scale(1.15) rotate(-5deg) !important;
    filter: drop-shadow(0 8px 15px rgba(0, 113, 220, 0.4));
}

.about-content-card:hover h3 {
    color: var(--tech-blue) !important;
}

/* Specific 3D Effect for Technology Cards - High Contrast Version */
.technology-card {
    background: #f8fbff !important; /* Slightly off-white blueish tint */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important; /* Clean soft shadow */
    border-radius: 12px !important;
    border: 1px solid #dce5eb !important; /* Distinct border */
    transition: all 0.3s ease-in-out !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1;
    padding: 25px 15px !important; /* Ensure spacing */
}

/* Remove Glassmorphism Overlay causing blur/low contrast */
.technology-card::before {
    display: none !important;
}

.technology-card h3 {
    color: #0b1b2b !important; /* Dark bold text */
    font-weight: 700 !important;
    margin-top: 15px !important;
}

.technology-card i {
    color: var(--tech-blue) !important;
    font-size: 40px !important;
    margin-bottom: 10px !important;
    display: inline-block;
}

.technology-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(0, 113, 220, 0.15) !important; /* Blue glow on hover */
    border-color: var(--tech-blue) !important; /* Blue border on hover */
    background: #ffffff !important;
}

/* Tech Card Icon & Text Interaction */
.technology-card i, .technology-card h3 {
    transition: all 0.3s ease !important;
}

.technology-card:hover i {
    transform: scale(1.1);
}

.technology-card:hover h3 {
    color: var(--tech-blue) !important;
}

/* 3D Highlight for Active Accordion Items */
.accordion-title {
    margin-bottom: 8px !important; /* Reduced gap between titles */
    transition: all 0.3s ease;
}

.accordion-title.active {
    background: linear-gradient(135deg, #0071dc 0%, #00c6ff 100%) !important;
    color: #ffffff !important;
    box-shadow: 
        0 10px 20px rgba(0, 113, 220, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3) !important; /* Top inner highlight for 3D bevel */
    border: none !important;
    transform: translateY(-2px) !important;
    border-radius: 8px !important;
    position: relative !important;
    z-index: 2 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    margin-bottom: 10px !important; /* Reduced gap when active */
}

/* Add a bottom "lip" for 3D thickness */
.accordion-title.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 2%;
    width: 96%;
    height: 10px;
    background: rgba(0, 113, 220, 0.2);
    filter: blur(8px);
    z-index: -1;
    border-radius: 50%;
}

.accordion-title.active i {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1) !important;
}

/* Accordion Content Spacing */
.accordion-content {
    padding-top: 15px !important;
    padding-bottom: 25px !important;
}

/* Right Floating Navigation - Tech Upgrade */
.right_nav li {
    background: linear-gradient(135deg, #0071dc 0%, #00c6ff 100%) !important;
    margin: 6px 0 !important; /* Slightly more space */
    padding: 12px !important;
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    box-shadow: -4px 4px 10px rgba(0, 113, 220, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-right: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.right_nav li:hover {
    background: linear-gradient(135deg, #005bb5 0%, #0071dc 100%) !important;
    transform: translateX(-5px) !important;
    box-shadow: -6px 6px 15px rgba(0, 113, 220, 0.5) !important;
    padding-right: 20px !important; /* Stretch effect */
}

.right_nav li h4 {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

.right_nav li img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.2)) !important; /* Ensure icons are white */
}

/* Fix: QR Code should not be filtered to white */
.right_nav li:first-child img, 
.right_nav li img[src*="ewm"] {
    filter: none !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* Icons Animation */
.services-card:hover i,
.work-process-card:hover i {
    animation: pulse 1s infinite;
    color: var(--tech-blue) !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 4. Navigation Links */
.navbar-nav .nav-item .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-item .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--tech-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-item .nav-link:hover::after,
.navbar-nav .nav-item .nav-link.active::after {
    width: 80%;
}

/* 5. Ripple Effect CSS (JS triggers class) */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.7);
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
