/* Ameya House Specific Styles */
:root {
    --ameya-accent: #D4AF37;  /* Golden color */
    --ameya-text: #000000;
    --ameya-bg: #ffffff;
    --spacing-unit: 32px;
    --border-radius: 12px;
    --container-width: 1200px;
    --section-bg: #f5f5f5;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    background: #000000;
    color: var(--ameya-text);
}

/* Custom Header Styling */
.project-header {
    padding-top: 120px; /* Increased padding to prevent overlap with navbar */
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.project-header h1 {
    font-size: 4.5rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--ameya-accent);
    font-weight: 600;
    text-shadow: 2px 2px 15px rgba(212, 175, 55, 0.3);
    margin: 0;
    padding: 15px 0;
    position: relative;
}

.project-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ameya-accent), transparent);
}

/* Gallery Customization */
.gallery-item {
    position: relative;
    width: 100%;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.full-width img {
    max-height: 450px;
}

/* Text Section Enhancement */
.text-section {
    background: #ffffff;
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 15px 0;
    color: var(--ameya-text);
}

.text-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ameya-text);
    text-align: justify;
}

/* Mobile Responsiveness */
@media screen and (max-width: 992px) {
    .project-header {
        padding-top: 100px;
    }

    .project-header h1 {
        font-size: 2.8rem;
    }

    .gallery-item img {
        max-height: 350px;
    }

    .full-width img {
        max-height: 400px;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --spacing-unit: 20px;
    }

    .project-container {
        display: flex;
        flex-direction: column;
        padding: 15px;
        gap: 20px;
        width: 100%;
    }

    .project-header {
        padding-top: 80px;
    }

    .project-header h1 {
        font-size: 2.5rem;
    }

    .style-section,
    .area-section {
        width: 100%;
        margin-bottom: 15px;
    }

    .main-image {
        width: 100%;
        height: 300px;
    }

    .project-overview {
        width: 100%;
    }

    .image-grid-2,
    .image-grid-3 {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .gallery-item {
        width: 100%;
        height: 300px;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .design-execution,
    .material-efficiency,
    .text-section {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .project-header {
        padding-top: 70px;
    }

    .project-header h1 {
        font-size: 2rem;
    }

    .gallery-item img {
        max-height: 250px;
        padding: 0.5rem;
    }

    .full-width img {
        max-height: 300px;
    }

    .text-section {
        padding: 1rem;
        margin: 1rem auto;
    }

    .text-section p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Custom Animation for Gallery Items */
.gallery-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
}

@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project Container */
.project-container {
    max-width: var(--container-width);
    margin: 20px auto;
    padding: 20px;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    background: #000000;
}

.project-header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.project-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    grid-column: 1 / -1;
}

/* Section Styles */
.style-section,
.area-section,
.project-overview,
.design-execution,
.material-efficiency,
.text-section {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 20px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.style-section:hover,
.area-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
}

.style-section h2,
.area-section h2,
.project-overview h2,
.design-execution h2,
.material-efficiency h2,
.interior-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--ameya-accent);
    font-weight: 500;
    letter-spacing: 2px;
}

.style-section p,
.area-section p {
    font-size: 1.2rem;
    color: var(--ameya-text);
    line-height: 1.6;
    text-align: justify;
}

/* Image Styles */
.main-image {
    grid-column: 1 / 2;
    aspect-ratio: 16/10;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

/* Grid Layouts */
.image-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    grid-column: 1 / -1;
    margin: 20px 0;
}

.image-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-column: 1 / -1;
    margin: 20px 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
    
    .image-grid-2,
    .image-grid-3 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Laptop View (1024px and up) */
@media screen and (min-width: 1024px) {
    .project-container {
        gap: 20px;
        padding: 20px;
    }

    .gallery-item {
        margin-bottom: 20px;
    }

    .main-image {
        min-height: 350px;
    }

    .project-header {
        margin-bottom: 30px;
    }

    .project-info {
        gap: 15px;
    }
}

/* Tablet View (768px to 1023px) */
@media screen and (max-width: 1023px) {
    :root {
        --spacing-unit: 20px;
    }

    .project-container {
        padding: 20px;
        gap: 20px;
    }

    .gallery-item {
        height: 180px;
    }

    .image-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile View (up to 767px) */
@media screen and (max-width: 767px) {
    :root {
        --spacing-unit: 15px;
    }

    .project-container {
        grid-template-columns: 1fr;
        padding: 15px;
        margin: 20px auto;
    }

    .main-image {
        display: flex;
        justify-content: center;
        align-items: center;
        height: auto !important;
        min-height: unset !important;
        aspect-ratio: unset !important;
        background: #000; /* Optional: matches your site background */
        padding: 0;
    }

    .main-image img {
        width: 100%;
        height: auto !important;
        max-height: 70vw; /* Adjust as needed for your design */
        object-fit: contain !important;
        display: block;
        margin: 0 auto;
        background: #000; /* Optional: matches your site background */
        border-radius: var(--border-radius);
    }

    .project-overview {
        grid-column: 1 / -1;
    }

    .image-grid-2,
    .image-grid-3 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item {
        height: 200px;
    }

    .style-section,
    .area-section,
    .project-overview,
    .design-execution,
    .material-efficiency,
    .text-section {
        padding: 20px;
       
    }

    .image-grid-3 .gallery-item {
        height: 320px;
        aspect-ratio: 4/3;
    }
}

/* Small Mobile View (up to 480px) */
@media screen and (max-width: 480px) {
    .project-container {
        padding: 10px;
        gap: 15px;
    }

    .project-header h1 {
        font-size: 2rem;
    }

    .gallery-item {
        height: 250px;
    }

    .style-section,
    .area-section,
    .project-overview,
    .design-execution,
    .material-efficiency,
    .text-section {
        padding: 15px;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: left;
    }
}

/* Loading States */
.gallery-item img {
    transition: opacity 0.3s ease;
}

.gallery-item img[loading] {
    opacity: 0.5;
}

/* All paragraph text */
p {
    color: var(--ameya-text);
    text-align: justify;
}

/* Hover Effects */
.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

/* Style and Area Section */
.style-section,
.area-section {
    color: black;
}

.style-section h2,
.area-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

/* Main Image and Project Overview */
.main-image {
    grid-column: 1 / 2;
    aspect-ratio: 16/10;
    background: #ffffff;
    border-radius: var(--border-radius);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.project-overview {
    grid-column: 2 / 3;
    background: var(--section-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    height: 100%;
}

/* Design & Execution Section */
.design-execution {
    grid-column: 1 / -1;
    background: var(--section-bg);
    padding: 25px;
   
}

/* Material Efficiency */
.material-efficiency {
    grid-column: 1 / -1;
    background: var(--section-bg);
    padding: 25px;
    border-radius: var(--border-radius);
}

/* Interior Section */
.interior-section {
    grid-column: 1 / -1;
}

.interior-section h2 {
    color: #ffffff;
    margin-bottom: 20px;
}

/* Image Grid 3 */
.image-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-column: 1 / -1;
}

.image-grid-3 .gallery-item {
    aspect-ratio: 3/4;
}

/* Text Sections */
.text-section {
    grid-column: 1 / -1;
    background: var(--section-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 15px 0;
}

/* New sections and adjustments */
.project-overview {
    grid-column: 2 / 3;
    height: 100%;
}

.design-execution,
.material-efficiency {
    grid-column: 1 / -1;
}

/* Section Headers */
h2 {
    font-size: 2rem;
    color: var(--ameya-accent);
    margin-bottom: 20px;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--ameya-accent), transparent);
}

/* Paragraphs */
p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ameya-text);
    opacity: 0.9;
}

/* List Styling */
.material-efficiency p {
    margin-bottom: 15px;
}

/* Image Grids */
.image-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    grid-column: 1 / -1;
}

.image-grid-2 .gallery-item {
    aspect-ratio: 1/1;
    height: 500px;
}

.image-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-column: 1 / -1;
    margin: 20px 0;
}

.image-grid-3 .gallery-item {
    aspect-ratio: 3/4;
    height: 500px;
}

.gallery-item {
    background: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Interior & Aesthetics Section */
.interior-aesthetics {
    grid-column: 1 / -1;
    color: #ffffff;
    margin: 20px 0;
}

.interior-aesthetics h2 {
    color: #000000;
    margin-bottom: 15px;
}

.interior-aesthetics p {
    color: #000000;
    margin-bottom: 20px;
}

/* Outdoor Expression Section */
.outdoor-expression {
    grid-column: 1 / -1;
}

.outdoor-expression h2 {
    color: var(--ameya-text);
    margin-bottom: 15px;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .image-grid-2 .gallery-item {
        height: 350px;
    }
    
    .image-grid-3 .gallery-item {
        height: 450px;
    }
}

@media screen and (max-width: 768px) {
    .project-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .project-header h1 {
        font-size: 2.8rem;
        letter-spacing: 4px;
    }

    .main-image,
    .project-overview {
        grid-column: 1 / -1;
    }

    .main-image {
        height: 300px;
    }

    .image-grid-2,
    .image-grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .image-grid-2 .gallery-item,
    .image-grid-3 .gallery-item {
        height: 350px;
    }
}

@media screen and (max-width: 480px) {
    :root {
        --spacing-unit: 15px;
    }

    .project-container {
        padding: 15px;
        margin: 20px auto;
    }

    .project-header h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .image-grid-2 .gallery-item,
    .image-grid-3 .gallery-item {
        height: 250px;
    }

    .project-overview,
    .design-execution,
    .material-efficiency,
    .text-section {
        padding: 20px;
    }
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 60px);
        background: #111;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        margin: 1rem 0;
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .menu-icon {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        color: #fff;
    }
    
    /* Mobile dropdown styles */
    .nav-item {
        display: block;
        width: 100%;
        margin: 0;
        text-align: center;
    }
    
    .nav-item > a {
        justify-content: center;
        padding: 1rem 0;
        width: 100%;
        letter-spacing: 0.5px;
        color: #fff;
        position: relative;
        z-index: 2;
    }
    
    .nav-item.active > a {
        color: #ffcc70;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        background-color: rgba(34, 34, 34, 0.9);
        max-height: 0;
        overflow: hidden;
        transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        opacity: 0;
        transform: translateY(-10px);
    }
    
    .nav-item.active .dropdown-content {
        display: block;
        max-height: 300px;
        opacity: 1;
        transform: translateY(0);
        border-left: 2px solid #ffcc70;
        box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    .dropdown-content a {
        padding: 12px 0;
        text-align: center;
        position: relative;
        overflow: hidden;
        display: block;
        transform: translateY(0);
        transition: all 0.3s ease;
    }
    
    .dropdown-content a::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 50%;
        width: 0;
        height: 1px;
        background: #ffcc70;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .dropdown-content a:active::after {
        width: 30%;
    }
    
    .nav-item.active .dropdown-content a {
        animation: fadeInUp 0.4s ease-out forwards;
        animation-delay: calc(0.1s * var(--index));
    }
    
    .dropdown-indicator {
        transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
        display: inline-block;
        margin-left: 5px;
        font-size: 8px;
    }
    
    .nav-item.active .dropdown-indicator {
        transform: rotate(180deg);
        color: #ffcc70;
    }

    /* Adjust logo size for mobile */
    .logo img {
        height: 50px;
    }

    /* Add padding to main content to account for fixed navbar */
    .project-container {
        padding-top: 80px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Even smaller screens */
@media screen and (max-width: 576px) {
    .logo img {
        height: 45px;
    }
    
    .nav-links {
        width: 85%;
    }
    
    .dropdown-content a {
        padding: 10px 0;
        font-size: 0.9rem;
    }
}

/* Fix for iOS devices */
@supports (-webkit-touch-callout: none) {
    .project-container {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Image Grids */
.image-grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-unit);
    grid-column: 1 / -1;
    max-width: 800px;
    margin: var(--spacing-unit) auto;
}

.image-grid-1 .gallery-item {
    aspect-ratio: 16/3;
    height: 400px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.image-grid-1 .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
}

.image-grid-1 .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.image-grid-1 .gallery-item:hover img {
    transform: scale(1.05);
}

@media screen and (max-width: 1024px) {
    .image-grid-1 .gallery-item {
        height: 350px;
    }
}

@media screen and (max-width: 768px) {
    .image-grid-1 {
        max-width: 100%;
    }
    
    .image-grid-1 .gallery-item {
        height: 350px;
    }
}

@media screen and (max-width: 480px) {
    .image-grid-1 .gallery-item {
        height: 250px;
    }
}

/* Project Overview and Other Sections */
.project-overview p,
.design-execution p,
.material-efficiency p,
.interior-section p {
    text-align: justify;
}

/* Adjust section margins */
.section + .section {
    margin-top: 20px;
}

/* Footer Styling */
.footer {
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

.footer p {
    color: white;
    margin-bottom: 15px;
    text-align: center;
}

.footer .socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer .socials img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.footer .socials img:hover {
    transform: scale(1.1);
}
@media screen and (max-width: 767px) {
    .image-grid-3 .gallery-item {
      height: 250px !important;
      aspect-ratio: 3/5 !important;
    }
  }
  @media screen and (max-width: 767px) {
    .image-grid-3 .gallery-item img {
      object-fit: contain !important;
      background: #000; /* or your preferred background */
    }
  }