/* Modern Style Enhancements */

/* Case Cards */
.case-card {
    display: flex;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin-bottom: 25px;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.case-image {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
}

.case-image img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.case-image img:hover {
    transform: scale(1.05);
}

.case-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.case-content h3 {
    color: #667eea;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.case-content p {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.case-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .case-card {
        flex-direction: column;
    }
    
    .case-image {
        flex: none;
        padding: 15px;
    }
    
    .case-content {
        padding: 20px;
    }
}

/* Enhanced Navigation */
.am-topbar {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 0 !important;
}

.am-topbar-nav > li > a {
    transition: all 0.3s ease;
    position: relative;
}

.am-topbar-nav > li > a:hover {
    background: rgba(255,255,255,0.1) !important;
    transform: translateY(-1px);
}

.am-topbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.am-topbar-nav > li > a:hover::after {
    width: 80%;
}

/* Enhanced Tables */
.am-table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.am-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.am-table td {
    vertical-align: middle;
    padding: 15px;
    border-bottom: 1px solid #f1f3f4;
}

.am-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* Enhanced Buttons */
.am-btn {
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    padding: 10px 25px;
}

.am-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.am-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Enhanced Forms */
.am-form-field {
    margin-bottom: 20px;
}

.am-form-field input,
.am-form-field textarea,
.am-form-field select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.am-form-field input:focus,
.am-form-field textarea:focus,
.am-form-field select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

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

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Modern Footer */
.modern-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 50px 0 30px;
    margin-top: 50px;
    font-size: 1.1rem;
}

.footer-brand h3 {
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-weight: bold;
}

.footer-brand p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.footer-links h4,
.footer-contact h4 {
    color: #3498db;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: bold;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.05rem;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-contact p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.footer-contact i {
    margin-right: 10px;
    color: #3498db;
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 35px;
    padding-top: 25px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
}

/* Service Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-header {
    text-align: center;
    margin-bottom: 25px;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

.service-header h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.service-subtitle {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

.service-features {
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.feature-item i {
    color: #27ae60;
    margin-right: 12px;
    font-size: 1rem;
    width: 16px;
}

.feature-item span {
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.4;
}

.service-price {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 10px;
}

.price-amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: #667eea;
    display: block;
}

.price-unit {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 5px;
}

.service-action {
    text-align: center;
}

.service-btn {
    width: 100%;
    padding: 12px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Navigation */
.modern-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: none;
    position: relative;
    z-index: 1000;
}

.modern-nav .brand-link {
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modern-nav .brand-link:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.modern-nav-list .nav-item {
    color: rgba(255,255,255,0.9) !important;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0 5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.modern-nav-list .nav-item span {
    position: relative;
    z-index: 2;
}

.modern-nav-list .nav-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: width 0.3s ease;
    z-index: 0;
}

.modern-nav-list .nav-item:hover:before {
    width: 100%;
}

.modern-nav-list .nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modern-nav-list .nav-cta {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white !important;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.modern-nav-list .nav-cta:hover {
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
    transform: translateY(-2px) scale(1.05);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}

/* Body and Layout Fixes */
body {
    padding-top: 0;
    margin-top: 0;
}

.am-container {
    margin-top: 20px;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }
.shadow { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

.text-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.shadow-medium {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.shadow-strong {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #667eea, #764ba2) border-box;
}