/* Custom CSS Styles for SoftwarePro Website */

/* Root Variables */
:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

/* Navigation Styles */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(33, 37, 41, 0.95) !important;
    transition: var(--transition);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 1rem !important;
}

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

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

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

/* Hero Carousel Styles */
.carousel-item {
    height: 100vh;
    min-height: 600px;
}

.hero-slide {
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--info));
    position: relative;
    overflow: hidden;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="80" r="3" fill="white" opacity="0.05"/><circle cx="40" cy="70" r="1" fill="white" opacity="0.1"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.slide-1 {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
}

.slide-2 {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1547394765-185e1e68f34e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
}

.slide-3 {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1563986768609-322da13575f3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

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

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

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

/* Page Header Styles */
.page-header {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Page-specific background images */
.page-header.bg-primary {
    background-image: linear-gradient(rgba(13, 110, 253, 0.85), rgba(13, 110, 253, 0.85)), 
                      url('https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
}

.page-header.bg-success {
    background-image: linear-gradient(rgba(25, 135, 84, 0.85), rgba(25, 135, 84, 0.85)), 
                      url('https://images.unsplash.com/photo-1617042375876-a13e36732a04?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
}

.page-header.bg-warning {
    background-image: linear-gradient(rgba(255, 193, 7, 0.85), rgba(255, 193, 7, 0.85)), 
                      url('https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
}

.page-header.bg-info {
    background-image: linear-gradient(rgba(13, 202, 240, 0.85), rgba(13, 202, 240, 0.85)), 
                      url('https://images.unsplash.com/photo-1603322327561-68efdae0d837?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%);
    background-size: 30px 30px;
    animation: move 10s linear infinite;
}

@keyframes move {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 30px 30px, -30px 30px; }
}

/* Card Styles */
.feature-card,
.product-card,
.service-card,
.hosting-plan-card,
.contact-card,
.custom-solution-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.feature-card:hover,
.product-card:hover,
.service-card:hover,
.hosting-plan-card:hover,
.contact-card:hover,
.custom-solution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Product Card Specific Styles */
.product-card {
    position: relative;
}

.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.product-image img {
    transition: var(--transition);
    border-radius: 15px 15px 0 0;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.price {
    font-size: 1.25rem;
}

/* Hosting Plan Cards */
.hosting-plan-card.popular {
    position: relative;
    border: 2px solid var(--success);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Domain and Contact Forms */
.domain-search-card,
.contact-form-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
}

.domain-price-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.domain-price-card:hover::before {
    left: 100%;
}

.domain-price-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Process Steps */
.process-step {
    position: relative;
    padding: 2rem;
}

.step-number {
    position: relative;
    z-index: 2;
}

.step-icon {
    margin-top: 1rem;
}

/* Technology Cards */
.tech-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.tech-card:hover {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: var(--shadow-lg);
}

/* Pricing Model Cards */
.pricing-model-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
}

.pricing-model-card.popular {
    border: 2px solid var(--success);
    transform: scale(1.02);
}

.pricing-model-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Location Cards */
.location-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Icon Boxes */
.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

/* Form Styles */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: var(--transition);
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Button Styles */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Map Container */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Social Links */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

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

.hover-primary:hover {
    color: var(--primary) !important;
    transform: translateX(5px);
    transition: var(--transition);
}

/* Accordion Styles */
.accordion-item {
    border-radius: 10px !important;
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

.accordion-button {
    border-radius: 10px !important;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary);
    color: white;
}

/* Loading Animation */
.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;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slide {
        height: 80vh;
        min-height: 500px;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .hosting-plan-card.popular {
        transform: none;
        margin-top: 2rem;
    }
    
    .pricing-model-card.popular {
        transform: none;
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-slide {
        height: 70vh;
        min-height: 400px;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .feature-icon i,
    .service-icon i {
        font-size: 2rem !important;
    }
}

/* Section Background Images */
.stats-section {
    background: linear-gradient(rgba(33, 37, 41, 0.9), rgba(33, 37, 41, 0.9)), 
                url('https://images.unsplash.com/photo-1488229297570-58520851e868?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.cta-section {
    background: linear-gradient(rgba(13, 110, 253, 0.85), rgba(13, 110, 253, 0.85)), 
                url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.footer-bg {
    background: linear-gradient(rgba(33, 37, 41, 0.95), rgba(33, 37, 41, 0.95)), 
                url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Custom Utilities */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--info));
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success), #20c997);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning), #fd7e14);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(45deg, var(--primary), var(--info)) 1;
}

/* Customer Login Button */
.login-button {
    background-color: var(--primary);
    color: white !important;
    border-radius: 8px;
    padding: 0.5rem 1rem !important;
    margin-left: 0.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
}

.login-button:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.4);
}

.login-button i {
    margin-right: 0.5rem;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .feature-card,
    .product-card,
    .service-card,
    .hosting-plan-card,
    .contact-card,
    .custom-solution-card,
    .domain-price-card,
    .tech-card,
    .pricing-model-card,
    .location-card {
        background: #2d3748;
        color: white;
        border-color: rgba(255,255,255,0.1);
    }
}