/* ===== GLOBAL STYLES ===== */
/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

/* Ensure all elements stay within viewport */
.container {
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Extra protection for images */
img {
    max-width: 100%;
    height: auto;
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding-top: 76px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    text-align: center;
}

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

.hero-section .btn-outline-dark {
    border-color: white;
    color: white;
}

.hero-section .btn-outline-dark:hover {
    background-color: white;
    color: #333;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

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

.service-icon {
    transition: transform 0.3s ease;
}

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

/* ===== PORTFOLIO CARDS ===== */
.portfolio-card {
    transition: transform 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-overlay {
    background: rgba(0,0,0,0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ===== CUSTOM COLORS ===== */
.text-purple {
    color: #6f42c1 !important;
}

.btn-outline-purple {
    color: #6f42c1;
    border-color: #6f42c1;
}

.btn-outline-purple:hover {
    background-color: #6f42c1;
    color: white;
}

.border-gray-300 {
    border-color: #dee2e6 !important;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== SCROLL TO TOP BUTTON ===== */
#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 1000;
}


/* ===== SERVICE PACKAGES STYLES ===== */
.pricing-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    /* Remove overflow: hidden to prevent badge clipping */
}

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

/* Popular package highlight */
.bg-primary .price {
    color: #ffc107 !important;
}

/* Feature list styling - Left align text only for lists */
.pricing-card .list-unstyled {
    text-align: left;
}

/* Ensure check icons are properly aligned */
.pricing-card .list-unstyled li {
    display: flex;
    align-items: center;
}

/* Add margin top to Professional card to accommodate badge */
.bg-primary .pricing-header {
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pricing-card {
        margin-bottom: 1.5rem;
    }
}

/* Animation for price cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card {
    animation: fadeInUp 0.6s ease-out;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
    animation-delay: 0.4s;
}