/* Tech Background - Circuit Pattern */
.bg-tech {
    background-color: #020420;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(0, 86, 179, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 168, 204, 0.05) 0%, transparent 25%);
}

.circuit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e3a8a' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

/* Service Card Hover Effect */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 86, 179, 0.2);
    border-color: #0056b3;
}

/* Tech Button Glow */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease-out;
}

.btn-glow:hover::after {
    transform: scale(1);
}

/* Project Image Overlay */
.project-card .overlay {
    background: linear-gradient(to top, #020420 0%, transparent 100%);
    opacity: 0.9;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020420;
}

::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* 
   NEW HERO STYLES for "Professional & Different" Look 
   Added in Redesign Phase 2
*/

/* Custom Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Unique Asymmetrical Hero */
.hero-clip {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-image-container {
    position: relative;
    perspective: 1000px;
}

.hero-card-stack {
    transform-style: preserve-3d;
    transform: rotateY(-15deg) rotateX(5deg);
}

.floating-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.floating-card:hover {
    transform: translateZ(20px) scale(1.02);
}

.text-gradient-gold {
    background: linear-gradient(to right, #fbbf24, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- ENHANCEMENTS --- */

/* Tech Roadmap (Vertical Timeline) */
.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #0056b3, #00a8cc, transparent);
}

.timeline-node {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #020420;
    border: 2px solid #00a8cc;
    box-shadow: 0 0 10px #00a8cc;
    position: relative;
    z-index: 10;
}

.timeline-node::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #00a8cc;
    border-radius: 50%;
}

/* Live Stats */
.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #00a8cc;
    box-shadow: 0 0 15px rgba(0, 168, 204, 0.2);
}

/* Holographic CTA */
.bg-holographic {
    background-size: 200% 200%;
    animation: holographic 3s ease infinite;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.8), rgba(0, 168, 204, 0.8));
    position: relative;
    overflow: hidden;
}

.bg-holographic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.2)'/%3E%3C/svg%3E");
    opacity: 0.3;
}

@keyframes holographic {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-holo {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), inset 0 0 10px rgba(0, 255, 255, 0.2);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.btn-holo:hover {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6), inset 0 0 20px rgba(0, 255, 255, 0.4);
    transform: scale(1.05);
    border-color: #fff;
}