/* Custom CSS for swebseo.com */

/* Root Variables */
:root {
    --primary-color: #14B327;
    --primary-dark: #0f8f1f;
    --secondary-color: #111827;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark: #111827;
    --warning: #ffc107;
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

/* Typography */
.display-4, .display-5 {
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
}

/* Navigation */
.navbar {
    transition: var(--transition);
    padding: 1rem 0;
    background: var(--white) !important;
    box-shadow: 0 2px 20px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.8rem !important;
    font-weight: 800;
    color: var(--primary-color) !important;
    text-shadow: 0 1px 2px rgba(20, 179, 39, 0.1);
}

.nav-link {
    font-weight: 600;
    transition: var(--transition);
    color: var(--secondary-color) !important;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(17, 24, 39, 0.15);
    border-radius: 12px;
    padding: 0.75rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(20, 179, 39, 0.1), rgba(20, 179, 39, 0.05));
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Buttons */
.btn {
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    padding: 0.875rem 2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.btn-success {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(20, 179, 39, 0.3);
    color: var(--white);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--primary-dark), #0d7a1a);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(20, 179, 39, 0.4);
}

.btn-outline-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-success:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    padding-top: 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%2328a745" opacity="0.1"/><circle cx="80" cy="80" r="2" fill="%2328a745" opacity="0.1"/><circle cx="40" cy="60" r="1" fill="%2328a745" opacity="0.1"/></svg>');
    pointer-events: none;
}

.badge {
    font-size: 0.9rem;
    border-radius: 50px;
}

/* Performance Cards */
.performance-card {
    animation: fadeInUp 0.6s ease;
    transition: var(--transition);
    border: 1px solid rgba(40, 167, 69, 0.1) !important;
}

.performance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Floating Elements */
.floating-icon {
    position: absolute;
    top: 20%;
    right: 10%;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.floating-chart {
    position: absolute;
    bottom: 20%;
    right: 5%;
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite 1.5s;
}

/* Service Cards */
.service-card {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.service-card:hover::before {
    left: 100%;
}

.service-icon {
    width: 80px;
    height: 80px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Testimonial Cards */
.testimonial-card {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Stats */
.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-icon {
    width: 50px;
    height: 50px;
}

.contact-form {
    border: 1px solid rgba(40, 167, 69, 0.1);
}

.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
}


.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth Animations on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Progress Bar Custom */
.progress {
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
    transition: width 1s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .performance-card {
        margin-bottom: 1rem;
    }
    
    .floating-icon,
    .floating-chart {
        display: none;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 80px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .floating-icon,
    .floating-chart,
    footer {
        display: none;
    }
    
    .hero-section {
        padding-top: 0;
    }
}