/* ===============================================
   GALLERY PAGE - NEW DESIGN
   Inner Arch Interior Design
   =============================================== */

/* Root Variables */
:root {
    --primary-brown: #8B4513;
    --secondary-brown: #A0522D;
    --dark-brown: #654321;
    --light-brown: #D2B48C;
    --cream: #F5F5DC;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --light-gray: #f8f9fa;
    --text-dark: #2c2c2c;
    --text-gray: #666;
    --border-color: #e0e0e0;
    --section-spacing: 40px;
    --card-spacing: 25px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--off-white);
}

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

/* Gallery Main */
.gallery-main {
    padding-top: 0px;
}

/* Gallery Section */
.gallery-section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.gallery-section:nth-child(odd) {
    background: var(--white);
}

.gallery-section:nth-child(even) {
    background: linear-gradient(to bottom, var(--off-white), var(--white));
}


/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-brown);
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-brown), transparent);
    margin: 0 auto 20px;
    position: relative;
}

.title-underline::before,
.title-underline::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--primary-brown);
    border-radius: 50%;
}

.title-underline::before {
    left: 0;
}

.title-underline::after {
    right: 0;
}

.section-description {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-gray);
    margin: 0;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--card-spacing);
}


/* new code*/

/* Remove card feel */
.gallery-card {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin: 0;
}

/* Hide title & description */
.gallery-card .card-info {
    display: none;
}

/* Image wrapper */
.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
}

/* Image */
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

/* Hover zoom (desktop only) */
@media (hover: hover) {
    .gallery-card:hover img {
        transform: scale(1.08);
    }
}

/* Overlay */
.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* Show overlay on hover */
@media (hover: hover) {
    .gallery-card:hover .image-overlay {
        opacity: 1;
    }
}

/* Button */
.preview-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

/* 📱 Mobile consistency */
@media (max-width: 768px) {
    .image-wrapper {
        aspect-ratio: 1 / 1;
    }

    /* Optional: always show overlay icon on mobile */
    .image-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.25);
    }
}

/* Gallery Card */
/*

.gallery-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(139, 69, 19, 0.25);
}
*/
/* Image Wrapper */
.image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .image-wrapper img {
    transform: scale(1.15);
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(139, 69, 19, 0) 0%,
        rgba(139, 69, 19, 0.3) 50%,
        rgba(139, 69, 19, 0.8) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card:hover .image-overlay {
    opacity: 1;
}

/* Preview Button */
.preview-btn {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    color: var(--primary-brown);
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform: scale(0) rotate(180deg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.gallery-card:hover .preview-btn {
    transform: scale(1) rotate(0deg);
}

.preview-btn:hover {
    background: var(--primary-brown);
    color: var(--white);
    transform: scale(1.15) rotate(0deg);
}

/* Card Info */
/*
.card-info {
    padding: 25px;
    background: var(--white);
}

.card-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-info p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0;
}
*/
/* Preview Modal */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modalZoom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalZoom {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

/* Modal Info */
.modal-info {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px 40px;
    border-radius: 12px;
    margin-top: 30px;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.modal-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.modal-info p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin: 0;
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    background: var(--primary-brown);
    border-color: var(--primary-brown);
    transform: rotate(90deg) scale(1.1);
}

/* Modal Navigation */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

.modal-nav:hover {
    background: var(--primary-brown);
    border-color: var(--primary-brown);
    transform: translateY(-50%) scale(1.15);
}

.modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
}

/* Footer */
.footer {
    background: #2c2c2c;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {

    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--light-brown);
}

.footer-logo {
    margin-top: 20px;
    margin-left: 20%;
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin: 0;
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--light-brown);
}

.footer-column ul li i {
    margin-right: 10px;
    color: var(--light-brown);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-brown);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* WhatsApp Floating Button */
.whatsapp-mobile-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-mobile-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* Responsive Design */

/* Large Tablets */
@media (max-width: 1200px) {
    :root {
        --section-spacing: 80px;
        --card-spacing: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    :root {
        --section-spacing: 60px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {

        font-size: 2.5rem;
    }
    
    .section-description {
        font-size: 1.2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape & Small Tablets */
@media (max-width: 768px) {
    .gallery-main {
        padding-top: 60px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-info {
        padding: 20px;
    }
    
    .card-info h3 {
        font-size: 1.2rem;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .modal-nav {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .modal-prev {
        left: 15px;
    }
    
    .modal-next {
        right: 15px;
    }
    
    .modal-info {
        padding: 25px 30px;
        margin-top: 20px;
    }
    
    .modal-info h3 {
        font-size: 1.6rem;
    }
    
    .modal-info p {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    :root {
        --section-spacing: 50px;
    }
    
    .section-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .title-underline {
        width: 80px;
        height: 3px;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .preview-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .card-info {
        padding: 18px;
    }
    
    .card-info h3 {
        font-size: 1.1rem;
    }
    
    .card-info p {
        font-size: 0.9rem;
    }
    
    .modal-content img {
        max-height: 60vh;
    }
    
    .modal-info {
        padding: 20px;
    }
    
    .modal-info h3 {
        font-size: 1.4rem;
    }
    
    .whatsapp-mobile-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* Fade-in Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos="fade-up"] {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

[data-aos="fade-up"][data-aos-delay="100"] {
    animation-delay: 0.1s;
}

[data-aos="fade-up"][data-aos-delay="200"] {
    animation-delay: 0.2s;
}

[data-aos="fade-up"][data-aos-delay="300"] {
    animation-delay: 0.3s;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(139, 69, 19, 0.1);
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-brown), var(--secondary-brown));
    width: 0%;
    transition: width 0.1s ease;
}

/* Print Styles */
@media print {
    .header,
    .whatsapp-mobile-float,
    .preview-btn,
    .modal-nav,
    .modal-close {
        display: none;
    }
    
    .gallery-section {
        page-break-inside: avoid;
    }
}
