/* Havteq Solutions - Custom Styles */
/* Color Scheme inspired by Havteq.com */

:root {
    --primary-color: #0066CC;
    --primary-dark: #003366;
    --primary-light: #3399FF;
    --secondary-color: #00CCFF;
    --accent-color: #FF6B35;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --text-muted: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Override Bootstrap Primary Color */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-info {
    border: none;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-text {
    color: var(--white);
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-subtext {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 400;
    margin-left: 5px;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

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

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

/* Modern Hero Section with Glassmorphism */
.modern-hero {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.hero-gradient-bg {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 204, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 204, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.modern-hero .container {
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stats {
    padding: 20px 0;
}

.stat-item {
    padding-right: 20px;
    border-right: 2px solid #e9ecef;
}

.stat-item:last-child {
    border-right: none;
}

/* Glass Card Effect (Glassmorphism) */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Hero Visual Container */
.hero-visual-container {
    position: relative;
    height: 600px;
}

.floating-card {
    position: absolute;
    animation: floatCard 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 0;
    right: 0;
    width: 280px;
}

.floating-card:nth-child(2) {
    top: 50%;
    right: 50px;
    width: 260px;
    transform: translateY(-50%);
}

.floating-card:nth-child(3) {
    bottom: 0;
    right: 100px;
    width: 240px;
}

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

.floating-card:nth-child(2) {
    animation-delay: 1s;
}

.floating-card:nth-child(3) {
    animation-delay: 2s;
}

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

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

.animate-fade-in-delay-1 {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

/* Modern Feature Cards */
.modern-feature-card {
    padding: 40px 30px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modern-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modern-feature-card:hover::before {
    opacity: 1;
}

.modern-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
    border-color: var(--primary-color);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.modern-feature-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
}

/* Legacy Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-top: 3px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
    border-top-color: var(--accent-color);
}

.service-detail-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.service-detail-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
}

.product-image {
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover .product-image {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.product-card:hover .product-image i {
    color: var(--white) !important;
}

/* Page Header */
.page-header {
    padding-top: 10px;
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

/* Contact Form */
.contact-form-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.contact-info-card {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
}

.form-control {
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

/* Stats Counter */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

.counter {
    transition: all 0.3s ease;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
}

footer a {
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Scroll to Top Button */
#scrollTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
}

#scrollTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
}

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Value Cards */
.value-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.value-card:hover {
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
    transform: translateY(-5px);
}

/* Expertise Items */
.expertise-item {
    transition: all 0.3s ease;
}

.expertise-item:hover {
    transform: scale(1.1);
}

.expertise-item:hover i {
    color: var(--accent-color) !important;
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(0, 51, 102, 0.95);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 5px;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
    }
}

@media (max-width: 768px) {
    
    .display-3 {
        font-size: 2.5rem !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* Smooth Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease;
}

a, button {
    cursor: pointer;
}

/* Utility Classes */
.shadow-custom {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Rounded Buttons */
.btn-lg.rounded-pill {
    padding: 14px 32px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-lg.rounded-pill:hover {
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.25);
}

.btn-outline-dark.rounded-pill {
    border-width: 2px;
    background: white;
}

.btn-outline-dark.rounded-pill:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: white;
}

/* Tracking Wide Text */
.tracking-wide {
    letter-spacing: 0.1em;
}

/* Smooth Section Transitions */
section {
    position: relative;
}

/* Badge Enhancements */
.badge.rounded-pill {
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 10px 20px;
}

/* Improved Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideInUp 0.8s ease-out;
}

/* Modern Shadow Utilities */
.shadow-modern {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.shadow-modern-hover:hover {
    box-shadow: 0 20px 60px rgba(0, 102, 204, 0.15);
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Responsive Hero Title */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-visual-container {
        height: 400px;
        margin-top: 50px;
    }
    
    .floating-card:nth-child(1) {
        width: 240px;
    }
    
    .floating-card:nth-child(2) {
        width: 220px;
    }
    
    .floating-card:nth-child(3) {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item {
        border-right: none;
        border-bottom: 2px solid #e9ecef;
        padding-bottom: 15px;
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .hero-visual-container {
        display: none;
    }
}

/* Micro Interactions */
@keyframes micro-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

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

/* Improved Focus States */
.btn:focus,
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

/* Modern Card Hover Effects */
.service-card,
.product-card {
    position: relative;
    overflow: hidden;
}

.service-card::after,
.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.service-card:hover::after,
.product-card:hover::after {
    transform: translateX(0);
}

/* Service Icon Cards */
.service-icon-card {
    background: var(--white);
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-icon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
    border-color: var(--primary-color);
}

.service-icon-card i {
    transition: all 0.3s ease;
}

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