/* BH IT Hub - Global Styles */

/* CSS Custom Properties for better maintainability */
:root {
    --primary:   #FF6A00;
    --secondary: #00C853;
    --accent:    #64DD17;
    --highlight: #FF8A00;
    --dark:      #0B0F19;
    --card:      #121826;
    --border:    #1F2937;
    --text-secondary: #9CA3AF;
    
    /* New design tokens for 2025-2026 trends */
    --glass-bg: rgba(255,255,255,0.03);
    --glass-border: rgba(255,255,255,0.07);
    --shadow-glow: 0 0 40px rgba(255,106,0,0.25);
    --transition-smooth: cubic-bezier(0.175,0.885,0.32,1.275);
    --border-radius-lg: 2rem;
    --border-radius-xl: 3rem;
}

/* Base styles with modern resets */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--dark);
    color: white;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-image: url("https://grains.vercel.app/grain.png");
    opacity: 0.12;
    pointer-events: none;
    z-index: 100;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Focus styles for better accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.font-poppins { font-family: 'Poppins', sans-serif; }

/* Enhanced Glass morphism effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
    transition: all 0.3s var(--transition-smooth);
}

.glass:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

/* Enhanced Glass Card with micro-interactions */
.glass-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    transition: all 0.35s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255,106,0,0.1) 50%,
        transparent 100%
    ); */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    border-color: rgba(255,106,0,0.35);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,106,0,0.15), var(--shadow-glow);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium gradient text (hero only) */
.text-gradient-premium {
    background: linear-gradient(90deg, #FF8A00, #FF5E00, #00C853, #64DD17);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Primary Button with modern effects */
.btn-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s var(--transition-smooth);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.75rem;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-gradient:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 28px rgba(255,106,0,0.35), 0 0 60px rgba(0,200,83,0.15), 0 10px 25px rgba(0,0,0,0.3);
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:active {
    transform: scale(0.98);
}

/* Outline Button */
.btn-outline {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

/* Wave Background */
.waves-container {
    position: absolute;
    top: 0; left: 0;
    width: 200%; height: 100%;
    z-index: -1;
    opacity: 0.12;
    pointer-events: none;
}

.wave-path {
    fill: none;
    stroke: url(#wave-gradient);
    stroke-width: 2;
    stroke-dasharray: 5,5;
}

/* Enhanced UI Components for Agentic AI Page */

/* Shimmer animation for icons */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

/* Enhanced floating animation */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-20px) rotate(1deg); 
    }
    50% { 
        transform: translateY(-10px) rotate(-1deg); 
    }
    75% { 
        transform: translateY(-15px) rotate(0.5deg); 
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Enhanced hover animations for feature cards */
.feature-card-hover {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card-hover:hover {
    transform: translateY(-12px) scale(1.02);
}

/* Industry tag styling */
.industry-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

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

/* Check circle styling */
.check-circle {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: currentColor;
    position: relative;
}

.check-circle::before {
    content: '';
    position: absolute;
    width: 0.25rem;
    height: 0.5rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

/* Enhanced glass card with depth */
.glass-card-enhanced {
    background: linear-gradient(
        135deg,
        rgba(18, 24, 38, 0.9),
        rgba(18, 24, 38, 0.7)
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
}

.glass-card-enhanced:hover {
    transform: translateY(-8px) rotateX(2deg);
    border-color: rgba(255, 106, 0, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 106, 0, 0.1),
        0 0 40px rgba(255, 106, 0, 0.2);
}

/* Icon container enhancements */
.icon-container {
    position: relative;
    transition: all 0.3s ease;
}

.icon-container::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon-container:hover::after {
    opacity: 1;
}

/* Enhanced text shadows for better readability */
.text-enhanced {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Gradient background animations */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .glass-card-enhanced:hover {
        transform: translateY(-4px);
    }
    
    .animate-float {
        animation-duration: 8s;
    }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Text glow */
.text-glow {
    text-shadow: 0 0 40px rgba(255,106,0,0.25);
}

.section-padding {
    padding-top: 120px;
    padding-bottom: 120px;
}

::selection { background: var(--primary); color: white; }

/* Animations */
@keyframes wave-animation {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

.animate-slow-wave { animation: wave-animation 20s linear infinite; }
.animate-float     { animation: float 6s ease-in-out infinite; }

/* Service line accent */
.service-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Portfolio card hover */
.portfolio-card:hover img {
    transform: scale(1.08);
    filter: grayscale(0);
}

/* Form inputs */
.form-input {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.1rem 1.5rem;
    width: 100%;
    color: #fff;
    transition: border-color 0.3s, background 0.3s;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,106,0,0.04);
}

option{
    color: #000;
}

/* Active nav link */
.nav-active {
    color: var(--primary) !important;
}

/* Gradient border on hover for cards */
.gradient-border-hover {
    position: relative;
}
.gradient-border-hover::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}
.gradient-border-hover:hover::after { opacity: 1; }

/* Enhanced Particle Animation System */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 15s infinite;
}

.particle-1 {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.particle-2 {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle-3 {
    width: 3px;
    height: 3px;
    top: 40%;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.particle-4 {
    width: 5px;
    height: 5px;
    top: 80%;
    left: 20%;
    animation-delay: 6s;
    animation-duration: 19s;
}

.particle-5 {
    width: 4px;
    height: 4px;
    top: 30%;
    left: 70%;
    animation-delay: 4s;
    animation-duration: 21s;
}

.particle-6 {
    width: 20px;
    height: 20px;
    top: 15%;
    left: 25%;
    animation-delay: 6s;
    animation-duration: 17s;
}

.particle-7 {
    width: 2px;
    height: 2px;
    top: 75%;
    left: 45%;
    animation-delay: 8s;
    animation-duration: 23s;
}

.particle-8 {
    width: 20px;
    height: 20px;
    top: 50%;
    left: 80%;
    animation-delay: 10s;
    animation-duration: 16s;
}

.particle-9 {
    width: 3px;
    height: 3px;
    top: 35%;
    left: 15%;
    animation-delay: 12s;
    animation-duration: 20s;
}

.particle-10 {
    width: 5px;
    height: 5px;
    top: 65%;
    left: 60%;
    animation-delay: 14s;
    animation-duration: 18s;
}

.particle-11 {
    width: 7px;
    height: 7px;
    top: 25%;
    left: 85%;
    animation-delay: 16s;
    animation-duration: 15s;
}

.particle-12 {
    width: 20px;
    height: 20px;
    top: 55%;
    left: 30%;
    animation-delay: 18s;
    animation-duration: 22s;
}

@keyframes particle-float {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(0);
    }
    10% {
        opacity: 0.4;
        transform: translateY(-20px) translateX(10px) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-100px) translateX(50px) scale(1.2);
    }
    90% {
        opacity: 0.4;
        transform: translateY(-200px) translateX(100px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(-300px) translateX(150px) scale(0);
    }
}

/* Enhanced button styles */
.btn-gradient:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 0 40px rgba(255,106,0,0.4), 0 0 80px rgba(0,200,83,0.2), 0 15px 35px rgba(0,0,0,0.3);
}

/* Enhanced glass morphism */
.glass {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transition: all 0.4s var(--transition-smooth);
}

.glass:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* Enhanced text glow */
.text-glow {
    text-shadow: 0 0 60px rgba(255,106,0,0.3), 0 0 100px rgba(0,200,83,0.1);
}

/* Enhanced floating animation */
@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotate(1deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-10px) rotate(-1deg); 
    }
}

/* Enhanced responsive typography */
@media (max-width: 768px) {
    .text-glow {
        text-shadow: 0 0 30px rgba(255,106,0,0.25);
    }
}

/* Mega Menu Responsive Styles */
/* Default desktop positioning */
.mega-menu-container {
    position: absolute;
    top: 100%;
    left: 75%;
    transform: translateX(-50%);
    margin-top: 1.25rem;
    width: 100vw;
    max-width: 80rem;
    padding-left: 1rem;
    padding-right: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    transform: translateX(-50%) translateY(0.5rem);
}

.mega-menu-container:hover,
.group:hover .mega-menu-container {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 1280px) {
    /* Extra large screens - 4 columns */
    .mega-menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    /* Large tablets - 3 columns */
    .mega-menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Tablets - 2 columns */
    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Adjust mega menu positioning for tablets */
    .mega-menu-container {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 1535px) {
    .mega-menu-container {
        left: 250px !important;
        transform: translateX(-50%) !important;
        width: 85vw !important;
        max-width: 92vw !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 480px) {
    /* Mobile phones - 1 column */
    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Adjust mega menu positioning for mobile */
    .mega-menu-container {
        left: 0 !important;
        transform: none !important;
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 0.5rem !important;
    }
    
    .mega-menu-header h4 {
        font-size: 1rem !important;
    }
    
    .mega-menu-header p {
        font-size: 0.875rem !important;
    }
    
    .mega-menu-column h5 {
        font-size: 0.875rem !important;
    }
    
    .mega-menu-item {
        padding: 0.5rem !important;
    }
    
    .mega-menu-item span {
        font-size: 0.8rem !important;
    }
}

/* Enhanced wave animation */
.wave-path {
    stroke-width: 3;
    stroke-dasharray: 8, 4;
    animation: wave-flow 3s linear infinite;
}

@keyframes wave-flow {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -24;
    }
}
