/* 
 * Webter-Media - Custom Styles
 */

:root {
    --primary-color: #0066cc;
    --secondary-color: #004999;
    --accent-color: #0080ff;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: #ffffff !important;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    max-height: 52px;
    width: auto;
}

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

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background-image: url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.85), rgba(0, 73, 153, 0.90));
    z-index: 0;
}

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

.hero-section h1,
.hero-section .lead {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section h1 {
    background: none !important;
    -webkit-text-fill-color: white !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.hero-section .btn-primary {
    background: white;
    color: var(--primary-color) !important;
    border: 2px solid white;
    text-shadow: none;
}

.hero-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--secondary-color);
}

.hero-section .btn-outline-primary {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.hero-section .btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
}

.hero-logo {
    max-width: 400px;
    animation: float 6s ease-in-out infinite;
}

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

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

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Services Section */
.service-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-icon {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

/* Contact Section */
#contact .card {
    border: none;
    border-radius: 15px;
}

/* Custom Message Styles */
#contactMessage {
    display: none;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    border-left: 4px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#contactMessage.message-success {
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
    border-left-color: #28a745;
    color: #155724;
}

#contactMessage.message-success::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

#contactMessage.message-success {
    padding-left: 4rem;
}

#contactMessage.message-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #fadbd8 100%);
    border-left-color: #dc3545;
    color: #721c24;
}

#contactMessage.message-danger::before {
    content: '✕';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

#contactMessage.message-danger {
    padding-left: 4rem;
}

#contactMessage.message-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left-color: #ffc107;
    color: #856404;
}

#contactMessage.message-warning::before {
    content: '⚠';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #ffc107;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

#contactMessage.message-warning {
    padding-left: 4rem;
}

#contactForm .form-control {
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

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

#contactForm .form-label {
    font-weight: 500;
    color: var(--text-dark);
}

#contactForm .invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

#contactForm .is-invalid ~ .invalid-feedback,
#contactForm .was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}

#contactForm .is-invalid,
#contactForm .was-validated .form-control:invalid {
    border-color: #dc3545;
}

#contactForm .form-control:valid {
    border-color: #28a745;
}

/* References Section */
.reference-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.reference-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.reference-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

.reference-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.reference-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.reference-card .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

.reference-card .card-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.reference-card .badge.bg-light {
    border: 1px solid #dee2e6;
}

.reference-card .card-footer a {
    transition: all 0.3s ease;
}

.reference-card .card-footer a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Footer */
.footer-custom {
    background: linear-gradient(135deg, #4a5568, #5a6778) !important;
}

.footer-logo {
    max-height: 60px;
    width: auto;
}

.text-light-gray {
    color: #e2e8f0 !important;
}

.footer-heading {
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white !important;
    transform: translateX(5px);
}

.footer-company-btn {
    transition: all 0.3s ease;
    padding: 0.5rem 1.25rem;
}

.footer-company-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #e2e8f0;
    transition: all 0.3s ease;
    cursor: default;
}

.keyword-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* Modal */
.company-modal {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.company-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    border: none;
    padding: 1.5rem 2rem;
    color: white;
}

.company-modal-header .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.company-info-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.company-info-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.company-info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.info-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.info-value {
    font-size: 1rem;
    color: #212529;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 60px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-logo {
        max-width: 250px;
        margin-top: 2rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

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

/* Loading animation for form submission */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

