/* ===== Global Styles ===== */
:root {
    --primary-color: #0a2b5e;
    --primary-dark: #051a3a;
    --secondary-color: #c5a47a;
    --secondary-dark: #a8855e;
    --accent-color: #e67e22;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --border-radius: 12px;
    --box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===== Typography ===== */
.section-header {
    margin-bottom: 60px;
}

.section-header h6 {
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
}

.section-header.light h2,
.section-header.light p {
    color: #fff;
}

.section-header.light h2:after {
    background: #fff;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: #fff;
    box-shadow: 0 10px 20px rgba(10, 43, 94, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(10, 43, 94, 0.4);
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* ===== Preloader ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Navigation ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar.scrolled .nav-link {
    color: var(--dark-color) !important;
}

.navbar.scrolled .brand-text {
    color: var(--primary-color);
}

.navbar-brand {
    display: flex;
    align-items: center;
    position: relative;
}

.navbar-brand img {
    height: 50px;
    transition: var(--transition);
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-left: 10px;
    letter-spacing: -0.5px;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    margin: 0 15px;
    position: relative;
    padding: 5px 0;
    font-size: 16px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    width: 100%;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 10px;
    margin-top: 10px;
}

.dropdown-item {
    padding: 10px 20px;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    transform: translateX(5px);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 64px;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .text-primary {
    color: var(--secondary-color) !important;
    display: block;
    font-size: 72px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ===== Stats Section ===== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

.stat-item {
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
}

.stat-item i {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    display: inline-block;
    transition: var(--transition);
}

.stat-item:hover i {
    transform: scale(1.1) rotate(360deg);
    background: var(--secondary-color);
    color: var(--primary-color);
}

.stat-item h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
}

/* ===== Project Card ===== */
.featured-projects {
    padding: 100px 0;
    background: #fff;
}

.project-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--box-shadow-hover);
}

.project-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-status {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-status.ongoing {
    background: linear-gradient(135deg, var(--success-color), #0d9488);
    color: #fff;
}

.project-status.completed {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
}

.project-status.upcoming {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    color: #fff;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-content .location {
    color: var(--gray-color);
    font-size: 15px;
    margin-bottom: 15px;
}

.project-content .location i {
    color: var(--secondary-color);
}

.project-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.project-price .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

.project-price small {
    color: var(--gray-color);
    font-size: 14px;
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 30px;
}

.project-features {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    color: var(--gray-color);
    font-size: 14px;
}

.project-features span i {
    margin-right: 8px;
    color: var(--secondary-color);
}

/* ===== Service Card ===== */
.services-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.service-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.service-icon {
    width: 100px;
    height: 100px;
    line-height: 100px;
    text-align: center;
    background: linear-gradient(135deg, rgba(10, 43, 94, 0.1), rgba(197, 164, 122, 0.1));
    border-radius: 50%;
    margin: 0 auto 25px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    transform: rotateY(360deg);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.btn-link {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* ===== Testimonial Card ===== */
.testimonials-section {
    padding: 100px 0;
    background: #fff;
}

.testimonial-card {
    background: linear-gradient(135deg, #fff, #f8fafc);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(197, 164, 122, 0.1);
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: rgba(197, 164, 122, 0.1);
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--secondary-color);
}

.rating i {
    color: #ffc107;
    margin-right: 3px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-color);
    margin: 20px 0;
    font-style: italic;
}

.client-info {
    border-top: 2px solid #f1f5f9;
    padding-top: 20px;
    margin-top: 20px;
}

.client-photo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
}

.client-photo-placeholder {
    font-size: 24px;
    font-weight: 600;
}

.client-info h6 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.client-info small {
    color: var(--gray-color);
    font-size: 14px;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

.cta-section h2 {
    color: #fff;
    font-size: 48px;
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-section .btn-light {
    background: #fff;
    color: var(--primary-color);
    border: none;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: 700;
}

.cta-section .btn-light:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== Partners Section ===== */
.partners-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.partner-logo {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
    max-height: 60px;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

/* ===== Modal Styles ===== */
.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow-hover);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 15px 20px;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 40px;
}

.modal-icon i {
    color: var(--secondary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.modal-body h3 {
    color: var(--primary-color);
    font-size: 28px;
}

.form-control-lg {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 16px;
    transition: var(--transition);
}

.form-control-lg:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(197, 164, 122, 0.2);
}

.form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* ===== Footer Styles ===== */
.footer {
    background: linear-gradient(135deg, #0a0f1c, #151f2e);
    color: #fff;
    padding: 80px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.footer-logo {
    max-height: 60px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer h5 {
    color: var(--secondary-color);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 12px;
    color: var(--secondary-color);
    margin-right: 10px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-links a {
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
    font-size: 18px;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: translateY(-5px) rotate(360deg);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info li i {
    margin-right: 15px;
    color: var(--secondary-color);
    font-size: 18px;
    min-width: 25px;
    margin-top: 3px;
}

.contact-info li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
    margin: 0 10px;
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}

/* ===== Back to Top Button ===== */
#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 99;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    font-size: 20px;
}

#back-to-top:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--box-shadow-hover);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content .text-primary {
        font-size: 56px;
    }
}

@media (max-width: 991px) {
    .navbar {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 10px 0;
    }

    .brand-text {
        color: var(--primary-color);
    }

    .nav-link {
        color: var(--dark-color) !important;
        padding: 10px 0;
    }

    .navbar .btn-primary {
        margin-top: 10px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content .text-primary {
        font-size: 48px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .stat-item h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content .text-primary {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .stat-item {
        margin-bottom: 30px;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

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

.fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== Swiper Styles ===== */
.swiper-button-next,
.swiper-button-prev {
    color: var(--secondary-color) !important;
    background: rgba(255, 255, 255, 0.9);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    box-shadow: var(--box-shadow);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--secondary-color);
    color: #fff !important;
}

.swiper-pagination-bullet-active {
    background: var(--secondary-color) !important;
}