/* Base styles and custom utilities not covered by Tailwind */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Animations */
.animate-on-scroll {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.portfolio-item {
    transition: all 0.3s ease-in-out;
}

.animate-fade {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Custom Gradients and Overlays */
.hero-overlay {
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.3) 100%);
}

.card-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Icon box styling */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background-color: rgba(0, 105, 168, 0.1);
    color: #0069A8;
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    background-color: #0069A8;
    color: white;
}

/* Glow and Shiny Effects */
:root {
    --glow-color: rgba(0, 105, 168, 0.2);
    --accent-glow: rgba(245, 158, 11, 0.15);
}

/* Viewport Glow Overlay */
.viewport-glow::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 150px var(--glow-color);
    pointer-events: none;
    z-index: 5; /* Lowered to ensure it doesn't block interactions */
}

/* Glassmorphism Header */
.glass-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 105, 168, 0.1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000 !important; /* Extremely high to ensure interaction */
}

.glass-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

/* Shiny Button Effect */
.shiny-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0069A8 0%, #0088d9 50%, #0069A8 100%);
    box-shadow: 0 4px 15px rgba(0, 105, 168, 0.3);
    transition: all 0.3s ease;
}

.shiny-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.5s ease;
    pointer-events: none;
}

.shiny-btn:hover::after {
    left: 120%;
}

.shiny-btn:hover {
    box-shadow: 0 8px 25px rgba(0, 105, 168, 0.5);
    transform: translateY(-2px);
}

/* Section Radial Glow */
.section-glow {
    position: relative;
}

.section-glow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Floating Animation for elements */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #0069A8; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #005282; 
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: fadeIn 0.8s ease forwards;
}
