/* ============================================= */
/* GLOBAL STYLES */
/* ============================================= */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --transition: all 0.3s ease;
}

body {
    font-family: "Poppins", sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* ============================================= */
/* PRELOADER */
/* ============================================= */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ============================================= */
/* HERO SECTION */
/* ============================================= */

.hero-slide {
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
}

/* ============================================= */
/* SERVICE CARDS */
/* ============================================= */

.service-card {
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================= */
/* PORTFOLIO */
/* ============================================= */

.portfolio-card {
    cursor: pointer;
    border-radius: 12px;
}

.portfolio-card img {
    transition: var(--transition);
    aspect-ratio: 4/3;
    object-fit: cover;
}

.portfolio-overlay {
    background: rgba(13, 110, 253, 0.9);
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

/* ============================================= */
/* TESTIMONIALS */
/* ============================================= */

.testimonial-item {
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin: 10px;
}

/* ============================================= */
/* BLOG */
/* ============================================= */

.blog-card {
    transition: var(--transition);
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-image img {
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* ============================================= */
/* STATS COUNTER */
/* ============================================= */

.stat-number {
    font-weight: 700;
    font-size: 3rem;
}

/* ============================================= */
/* FOOTER */
/* ============================================= */

.footer a:hover {
    color: var(--primary-color) !important;
}

.footer .social-links a {
    transition: var(--transition);
}

.footer .social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ============================================= */
/* RESPONSIVE */
/* ============================================= */

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-slide {
        height: 60vh;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-slide {
        height: 50vh;
        min-height: 350px;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}

/* Professional Alert Close Button */
.alert {
    position: relative;
    border: none;
    border-radius: 10px;
    padding: 1rem 3rem 1rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 5px solid;
    font-size: 0.95rem;
    animation: slideDown 0.35s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Color accents per alert type */
.alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #14532d;
    border-left-color: #16a34a;
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #7f1d1d;
    border-left-color: #dc2626;
}

.alert-success i.fa-check-circle {
    color: #16a34a;
}
.alert-danger i.fa-exclamation-circle,
.alert-danger i.fa-exclamation-triangle {
    color: #dc2626;
}

/* Professional Close Button */
.alert .btn-close {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    background-color: transparent;
    background-image: none;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.alert .btn-close::before {
    content: "\f00d"; /* Font Awesome times icon */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    color: currentColor;
}

.alert .btn-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-50%) rotate(90deg);
}

.alert .btn-close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

.alert-success .btn-close {
    color: #16a34a;
}
.alert-danger .btn-close {
    color: #dc2626;
}


.payment-schedule {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e5e5e5;
}

.payment-schedule__title {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
}

.payment-schedule__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment-schedule__step {
    position: relative;
    background: #f7f7f7;
    border-radius: 6px;
    padding: 10px 8px;
    text-align: center;
}

.payment-schedule__pct {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.payment-schedule__desc {
    display: block;
    font-size: 11px;
    color: #666;
    line-height: 1.35;
    margin-top: 4px;
}

.payment-schedule__note {
    font-size: 11px;
    color: #999;
    margin: 10px 0 0;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .payment-schedule__steps { grid-template-columns: 1fr; }
    .payment-schedule__step { display: flex; justify-content: space-between; text-align: left; align-items: center; }
    .payment-schedule__desc { margin-top: 0; }
}
