/* ===================================
   Custom Styles for Proxysoft Worldwide
   =================================== */

/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --success-color: #198754;
    --danger-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

/* 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 {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: #764ba2;
}

/* Feature Icons */
.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Technologies Section */
.tech-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.tech-icon:hover {
    color: white;
    transform: scale(1.2);
}

/* Page Header */
.page-header {
    padding-top: 120px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
}

/* Value Icons */
.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.value-icon:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Stats Section */
.stat-item {
    padding: 20px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

/* Team Cards */
.team-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

.team-card img {
    transition: all 0.3s ease;
    height: 300px;
    object-fit: cover;
}

.team-card:hover img {
    transform: scale(1.05);
}

/* Contact Icons */
.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

/* Form Styles */
.form-control,
.form-select {
    border-radius: 10px;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
    background: linear-gradient(135deg, #0b5ed7, #6a3f96);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Cards */
.card {
    border-radius: 15px;
    transition: all 0.3s ease;
}

/* Accordion */
.accordion-item {
    border-radius: 10px !important;
    margin-bottom: 1rem;
}

.accordion-button {
    border-radius: 10px !important;
    font-weight: 600;
    background-color: #f8f9fa;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

/* Footer */
footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

/* Utilities */
.shadow-sm {
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Map Container */
.ratio {
    border-radius: 15px;
    overflow: hidden;
}

/* Alert Messages */
.alert {
    border-radius: 10px;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .service-icon,
    .tech-icon {
        font-size: 2.5rem;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .team-card img {
        height: 250px;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .stat-item h2 {
        font-size: 2rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* Scroll to Top Button (if needed) */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    .scroll-to-top {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    body {
        font-size: 12pt;
    }
}

/* Fix text-muted contrast issues */
.text-muted {
    color: #4a5568 !important;
}

.bg-light .text-muted,
.card .text-muted,
.bg-white .text-muted {
    color: #2d3748 !important;
}

.bg-dark .text-muted,
.bg-primary .text-muted,
footer .text-muted {
    color: #cbd5e0 !important;
}

/* Ensure all text has proper contrast */
p.text-muted,
.lead.text-muted {
    color: #4a5568 !important;
}

.card-text.text-muted {
    color: #4a5568 !important;
}

/* Fix small text visibility */
small.text-muted {
    color: #4a5568 !important;
}

footer small.text-muted,
.bg-dark small.text-muted {
    color: #cbd5e0 !important;
}