/* Country Page Dark Theme with Gold Accents */
:root {
    --gold: #d4af37;
    --gold-light: #f4e4b8;
    --gold-dark: #b8941f;
    --black: #000000;
    --black-light: #1a1a1a;
    --black-lighter: #2a2a2a;
}

.country-page-body {
    background: var(--black);
    color: #ffffff;
    overflow-x: hidden;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.5) 100%);
}

/* Hero Section */
.country-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 150px 0 100px 0;
}

.country-hero-content {
    text-align: center;
    animation: fadeInUp 1.5s ease-out;
}

.country-flag-large {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
    margin-bottom: 2rem;
    border: 3px solid var(--gold);
    animation: float 3s ease-in-out infinite;
}

.country-title {
    font-size: 5rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

.country-subtitle {
    font-size: 1.5rem;
    color: var(--gold-light);
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

.scroll-indicator {
    font-size: 2rem;
    color: var(--gold);
    animation: bounce 2s infinite;
    cursor: pointer;
    margin-top: 3rem;
}

/* Projects Section */
.country-projects-section {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.98) 100%);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.golden-line {
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto;
    animation: expandLine 2s ease-in-out infinite;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.project-card-country {
    background: var(--black-light);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card-country:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.4);
    border-color: var(--gold-light);
}

.project-card-link-country {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.project-price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(145deg, #d4af78, #ce8e2d, #b8914d);
    color: #1a1a2e;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(212, 175, 120, 0.4), inset 0 3px 6px rgba(255, 255, 255, 0.4);
    z-index: 2;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black-lighter);
    color: var(--gold);
    font-size: 4rem;
}

.project-card-content {
    padding: 2rem;
}

.project-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.project-card-content h3 a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-card-content h3 a:hover {
    color: var(--gold-light);
}

.builder-name,
.project-location,
.project-area {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.builder-name i,
.project-location i,
.project-area i {
    color: var(--gold);
    font-size: 0.85rem;
}

/* Project Actions */
.project-actions {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
    align-items: center;
}

/* Golden Button Styles */
.golden-button {
    position: relative;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1a1a2e;
    background: linear-gradient(145deg, #d4af78, #ce8e2d, #b8914d);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(212, 175, 120, 0.4), inset 0 3px 6px rgba(255, 255, 255, 0.4), inset 0 -3px 6px rgba(120, 90, 60, 0.5);
    transition: all 0.3s ease;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    flex: 1;
}

.golden-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 175, 120, 0.6), inset 0 3px 6px rgba(255, 255, 255, 0.5);
    color: #1a1a2e;
}

.golden-button-alt {
    position: relative;
    padding: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: #ce8e2d;
    background: #1a1a2e;
    border: 2px solid #d4af78;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(212, 175, 120, 0.3), inset 0 0 10px rgba(212, 175, 120, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    text-decoration: none;
}

.golden-button-alt:hover {
    background: linear-gradient(145deg, #d4af78, #ce8e2d);
    color: #1a1a2e;
    border-color: #d4af78;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 120, 0.5);
}

.project-action-btn i {
    font-size: 1.1rem;
}

.project-explore-btn {
    font-size: 0.85rem;
    padding: 10px 16px;
}

/* No Projects */
.no-projects {
    text-align: center;
    padding: 5rem 0;
}

.no-projects h3 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.no-projects p {
    color: #999;
    font-size: 1.1rem;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.country-pagination {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.country-pagination li {
    list-style: none;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: var(--black-lighter);
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(212, 175, 120, 0.2);
}

.pagination-btn:hover {
    background: linear-gradient(145deg, #d4af78, #ce8e2d);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 120, 0.5);
}

.country-pagination li.active .pagination-btn {
    background: linear-gradient(145deg, #d4af78, #ce8e2d, #b8914d);
    color: var(--black);
    box-shadow: 0 8px 20px rgba(212, 175, 120, 0.4), inset 0 3px 6px rgba(255, 255, 255, 0.4);
    cursor: default;
    pointer-events: none;
}

.pagination-dots {
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0 5px;
}

.pagination-btn i {
    font-size: 0.9rem;
}

/* CTA Section */
.country-cta-section {
    padding: 80px 0;
    min-height: 450px;
    max-height: 450px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-cta-section .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 2.5rem;
}

.golden-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.golden-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gold-light);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.golden-btn:hover::before {
    width: 300px;
    height: 300px;
}

.golden-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
    color: var(--black);
}

.golden-btn span {
    position: relative;
    z-index: 2;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.3), 0 0 30px rgba(212, 175, 55, 0.2);
    }
    to {
        text-shadow: 0 0 30px rgba(212, 175, 55, 0.6), 0 0 50px rgba(212, 175, 55, 0.4);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes expandLine {
    0%, 100% {
        width: 100px;
    }
    50% {
        width: 200px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .country-title {
        font-size: 3rem;
    }

    .country-subtitle {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .project-actions {
        flex-wrap: wrap;
    }

    .golden-button {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .golden-button-alt {
        width: 38px;
        height: 38px;
    }

    .pagination-wrapper {
        margin-top: 3rem;
        padding: 0 1rem;
    }

    .country-pagination {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-btn {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 0.9rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .golden-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .country-title {
        font-size: 2rem;
    }

    .country-flag-large {
        width: 80px;
        height: 55px;
    }

    .project-card-image {
        height: 200px;
    }
}
