/**
 * Atechfusion Corporate Website
 * Black Theme with Blue & Orange Accents
 */

/* Global Styles */
:root {
    --primary-blue: #00a8ff;
    --primary-orange: #ff6b35;
    --dark-bg: #0a0a0a;
    --darker-bg: #000000;
    --card-bg: #141414;
    --card-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #c9d2e0;
    --text-muted: #a7b1c2;
    --border-color: #2a2a2a;
    --gradient-blue: linear-gradient(135deg, #00a8ff 0%, #0097e6 100%);
    --gradient-orange: linear-gradient(135deg, #ff6b35 0%, #ff5722 100%);
    --gradient-hero: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    --glass-bg: rgba(255, 255, 255, 0.055);
    --glass-bg-strong: rgba(255, 255, 255, 0.075);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    --glass-inner-highlight: rgba(255, 255, 255, 0.14);
    --glass-inner-shadow: rgba(0, 0, 0, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--darker-bg);
    color: var(--text-primary);
    padding-top: 120px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography + heading glow */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.14);
}

p, li, label, .lead {
    color: var(--text-secondary);
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 168, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Navbar Styles */
.navbar,
.navbar-night {
    background: rgba(10, 10, 10, 0.52) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.navbar-night.navbar-night-scrolled {
    background: rgba(0, 0, 0, 0.60) !important;
    backdrop-filter: blur(16px);
    border-bottom-color: rgba(255, 255, 255, 0.10);
    padding: 0.65rem 0;
}

.navbar-brand span {
    color: var(--text-primary);
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Logo Loading Animation */
@keyframes logoSpin {
    0% {
        transform: rotate(0deg) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(0, 168, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(0, 168, 255, 0.8)) drop-shadow(0 0 30px rgba(0, 168, 255, 0.4));
    }
}

.navbar-brand img.logo-loading {
    animation: logoSpin 1.5s ease-in-out, logoGlow 2s ease-in-out infinite;
}

.navbar-brand img.logo-loaded {
    animation: logoGlow 3s ease-in-out infinite;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1.25rem !important;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-blue);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background: var(--gradient-blue);
    box-shadow: 0 0 18px rgba(0, 168, 255, 0.28);
}

.navbar-nav .nav-link.active {
    color: #ffffff !important;
    background: var(--gradient-blue);
    box-shadow: 0 0 22px rgba(0, 168, 255, 0.40);
    text-shadow: 0 0 16px rgba(0, 168, 255, 0.60);
}

.navbar-nav .nav-link.active::before {
    box-shadow: 0 0 14px rgba(0, 168, 255, 0.55);
}

/* Development Banner */
.development-banner {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #ffc107 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.development-banner small {
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

canvas {
    display: block;
    vertical-align: bottom;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: transparent;
    pointer-events: none;
}

/* Video Overlay for better text readability */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(10, 10, 10, 0.50) 0%, rgba(0, 0, 0, 0.42) 50%, rgba(10, 10, 10, 0.50) 100%),
        radial-gradient(circle at 20% 50%, rgba(0, 168, 255, 0.14) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.14) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
    animation: overlayPulse 8s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% {
        opacity: 0.95;
    }
    50% {
        opacity: 0.85;
    }
}

/* Hero Content Wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 5s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

#particles-js > canvas {
    position: absolute;
    top: 0;
    left: 0;
    filter: drop-shadow(0 0 16px rgba(47, 214, 255, 0.65));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.min-vh-75 {
    min-height: 75vh;
}

.bg-gradient-primary {
    background: var(--gradient-hero);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image i {
    font-size: 8rem;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(0, 168, 255, 0.5));
    animation: float 3s ease-in-out infinite;
}

.hero-image .hero-logo {
    max-width: 520px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 168, 255, 0.35));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Card Styles */
.card {
    border: 1px solid transparent;
    border-radius: 12px;
    background:
        radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.045) 50%, rgba(255, 255, 255, 0.028) 100%) padding-box,
        linear-gradient(135deg, rgba(0, 168, 255, 0.22), rgba(255, 107, 53, 0.16)) border-box;
    backdrop-filter: blur(14px) saturate(135%);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    box-shadow:
        0 16px 46px rgba(0, 0, 0, 0.60),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 10px 35px rgba(0, 168, 255, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card::after {
    /* glossy sheen */
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: linear-gradient(
        115deg,
        rgba(255, 255, 255, 0.00) 40%,
        rgba(255, 255, 255, 0.12) 48%,
        rgba(255, 255, 255, 0.00) 56%
    );
    transform: translateX(-20%) rotate(0deg);
    opacity: 0.28;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.6s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    background:
        radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.055) 50%, rgba(255, 255, 255, 0.032) 100%) padding-box,
        linear-gradient(135deg, rgba(0, 168, 255, 0.32), rgba(255, 107, 53, 0.24)) border-box;
    box-shadow:
        0 22px 62px rgba(0, 0, 0, 0.68),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 14px 52px rgba(0, 168, 255, 0.10);
}

.card.animated {
    animation-fill-mode: both;
}

.card:hover::after {
    opacity: 0.45;
    transform: translateX(18%) rotate(0deg);
}

.card .card-body {
    position: relative;
}

.card .card-body::before {
    /* top inner highlight */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.00), var(--glass-inner-highlight), rgba(255,255,255,0.00));
    opacity: 0.9;
    pointer-events: none;
}

.card .card-body::after {
    /* subtle bottom shadow for depth */
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -18px;
    height: 24px;
    background: radial-gradient(circle, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.0) 70%);
    pointer-events: none;
}

.card-title,
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
    color: var(--text-primary) !important;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
}

.card-text,
.card p,
.card li {
    color: var(--text-muted) !important;
}

.service-card {
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
}

.service-card.animated {
    animation-fill-mode: both;
}

/* Feature Icons */
.feature-icon {
    color: var(--primary-blue);
    filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.5));
}

.service-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(0, 168, 255, 0.4));
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 168, 255, 0.6);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* Form Styles */
.form-control {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    background:
        radial-gradient(130% 90% at 15% 0%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 55%, rgba(255, 255, 255, 0.028) 100%) padding-box,
        linear-gradient(135deg, rgba(0, 168, 255, 0.20), rgba(255, 107, 53, 0.14)) border-box;
    backdrop-filter: blur(12px) saturate(135%);
    -webkit-backdrop-filter: blur(12px) saturate(135%);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.form-control:focus {
    background:
        radial-gradient(130% 90% at 15% 0%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 55%, rgba(255, 255, 255, 0.032) 100%) padding-box,
        linear-gradient(135deg, rgba(0, 168, 255, 0.35), rgba(255, 107, 53, 0.20)) border-box;
    box-shadow: 0 0 0 0.2rem rgba(0, 168, 255, 0.25);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1rem;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(25, 135, 84, 0.2);
    border-left: 4px solid #198754;
    color: #75b798;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border-left: 4px solid #dc3545;
    color: #f1aeb5;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border-left: 4px solid #ffc107;
    color: #ffda6a;
}

.alert-info {
    background: rgba(0, 168, 255, 0.2);
    border-left: 4px solid var(--primary-blue);
    color: #66d9ff;
}

.alert i {
    font-size: 1.2rem;
}

/* Footer Styles */
footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

footer a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-blue) !important;
    text-decoration: none !important;
    transform: translateX(5px);
}

footer .text-muted {
    color: var(--text-muted) !important;
}

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
}

.bg-light {
    background: rgba(255, 255, 255, 0.03) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bg-primary {
    background: var(--gradient-blue) !important;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.text-white {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Page Headers */
section.bg-primary {
    background: var(--gradient-hero) !important;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

section.bg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(0, 168, 255, 0.05) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 107, 53, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }

    .hero-video-overlay {
        background: 
            linear-gradient(135deg, rgba(10, 10, 10, 0.85) 0%, rgba(0, 0, 0, 0.75) 50%, rgba(10, 10, 10, 0.85) 100%),
            radial-gradient(circle at 20% 50%, rgba(0, 168, 255, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.15) 0%, transparent 50%);
    }

    .hero-image i {
        font-size: 5rem;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    section {
        padding: 3rem 0;
    }

    .navbar-brand img {
        height: 45px;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-orange {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5) !important;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }
}

/* Additional Glow Effects */
.glow-blue {
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
}

.glow-orange {
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}
