/* Global Styles */
:root {
    --primary-purple: #8A2BE2; /* Blue violet - sophisticated purple */
    --accent-purple: #9370DB; /* Medium purple */
    --light-purple: #D8BFD8; /* Thistle - soft purple highlight */
    --background-dark: #0a0a0f;
    --card-bg: linear-gradient(145deg, #121217, #1a1a22);
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #b8b8b8;
    --border-purple: 1px solid rgba(138, 43, 226, 0.3);
    --shadow-default: 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.4);
    --transition-speed: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    letter-spacing: 0.5px;
}

h1, h2, .section-title {
    font-family: 'Cinzel', 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 1.5px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Navigation */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: var(--border-purple);
    flex-wrap: wrap;
    gap: 0.8rem;
}

.logo-link {
    display: block;
    transition: transform var(--transition-speed) ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    width: 70px;
    height: 50px;
    object-fit: contain;
}

.project-title {
    font-size: 2.2rem;
    color: var(--light-purple);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    flex: 1;
    text-align: center;
    font-family: 'Cinzel', serif;
}

/* Project Description */
.project-section {
    margin-bottom: 2rem; /* Reduced spacing */
}

.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.6rem;
    box-shadow: var(--shadow-default);
    transition: all var(--transition-speed);
    border: var(--border-purple);
    position: relative;
}

.project-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(138, 43, 226, 0.5);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 1.3rem; /* Reduced spacing */
}

.project-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    text-align: justify;
}

/* Image Gallery */
.gallery-section {
    margin-bottom: 2rem; /* Reduced spacing */
}

.gallery-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1.2rem; /* Reduced spacing */
    position: relative;
    display: inline-block;
    font-family: 'Cinzel', serif;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-purple);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.3rem; /* Reduced spacing */
    padding: 0;
}

.image-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-default);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    position: relative;
    border: var(--border-purple);
}

.image-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(138, 43, 226, 0.5);
}

.gallery-image {
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    display: block;
    cursor: pointer;
    object-fit: contain;
    transition: transform 0.5s ease;
    margin: 0.8rem;
}

.gallery-image:hover {
    transform: scale(1.03);
}

/* Luxury Details */
.luxury-details {
    margin-bottom: 2rem; /* Reduced spacing */
}

.details-title {
    font-size: 1.7rem;
    color: var(--text-primary);
    margin-bottom: 1.2rem; /* Reduced spacing */
    position: relative;
    display: inline-block;
    font-family: 'Cinzel', serif;
}

.details-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-purple);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.3rem; /* Reduced spacing */
}

.detail-card {
    background: rgba(18, 18, 25, 0.7);
    border-radius: 10px;
    padding: 1.4rem;
    border: var(--border-purple);
    transition: all var(--transition-speed);
}

.detail-card:hover {
    border-color: rgba(138, 43, 226, 0.5);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.detail-card h3 {
    color: var(--light-purple);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-family: 'Cinzel', serif;
}

.detail-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Fullscreen Viewer */
.fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.fullscreen-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 10, 0.98);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.fullscreen-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 3rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.fullscreen-close:hover {
    color: var(--primary-purple);
}

.fullscreen-image {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 6px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 5;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.fullscreen-counter {
    position: absolute;
    bottom: 15px;
    right: 25px;
    font-size: 1rem;
    color: var(--text-muted);
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-family: 'Cinzel', serif;
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(138, 43, 226, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    opacity: 0.8;
    backdrop-filter: blur(2px);
}

.nav-arrow:hover {
    background-color: rgba(138, 43, 226, 0.35);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.left-arrow {
    left: 25px;
}

.right-arrow {
    right: 25px;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
    .nav-arrow {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .project-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .nav-bar {
        flex-direction: column;
        align-items: center;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .gallery-image {
        max-height: 180px;
    }
}

@media (max-width: 768px) {
    .project-card {
        padding: 1.4rem;
    }
    
    .project-description {
        font-size: 0.95rem;
    }
    
    .gallery-title {
        font-size: 1.6rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .image-card {
        min-height: 180px;
    }
    
    .gallery-image {
        max-height: 160px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.8rem;
    }
    
    .project-title {
        font-size: 1.7rem;
    }
    
    .gallery-title {
        font-size: 1.5rem;
    }
    
    .fullscreen-close {
        font-size: 2.5rem;
        right: 15px;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .image-card {
        min-height: 160px;
    }
    
    .gallery-image {
        max-height: 140px;
    }
}
