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

@font-face {
    font-family: myFirstFont;
    src: url(Athelas-Regular.ttf);
}


body {
    font-family: myFirstFont;
    background-color: #ffffff;
    color: #000000;
    overflow-x: hidden;
    padding-left: 200px;
    text-align: justify;
}

.design-credit {
    opacity: 0.1;
    transition: opacity 0.3s ease; /* Optional smooth hover effect */
}
.design-credit:hover {
    opacity: 1; /* Fully visible on hover */
}

h1 {
    display: inline;
    border-bottom: 1px solid; /* Thin underline matching your design */
    padding-bottom: 1px;
    text-decoration: none; /* Disable default underline */
}

    /* Target specifically the Instagram handle link */
    .contact-info a[href*="instagram.com"] {
        color: #6ec347 !important; /* Your green color */
        text-decoration: none; /* Remove underline */
        transition: color 0.3s ease;
    }
    
    /* Hover state */
    .contact-info a[href*="instagram.com"]:hover {
        color: #5aad3a !important; /* Slightly darker green */
}

/* Design credit styling */
.design-credit {
    opacity: 0.15; /* Adjust transparency (0.5 = 50%) */
    transition: opacity 0.3s ease;
    margin: 10px 0; /* Add spacing if needed */
}

.design-credit:hover {
    opacity: 1; /* Full visibility on hover */
}

.design-credit a {
    color: inherit; /* Keeps text color consistent */
    text-decoration: none; /* Removes underline */
}

.design-credit a:hover {
    text-decoration: underline; /* Optional: add underline on hover */
}

/* Navigation - Fixed with consistent spacing */
.topnav {
    position: fixed;
    left: 0;
    top: 40px;
    width: 200px;
    height: calc(100vh - 100px);
    padding: 0 20px;
    background: white;
    z-index: 1000;
    overflow-y: auto;
}

.topnav-inner {
    height: 100%;
    border-right: 1px solid #000000;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
}

/* Navigation links */
.topnav a {
    display: block;
    color: #000;
    text-decoration: none;
    margin: 12px 0;
    padding: 5px 0;
    font-size: 16px;
    width: 100%;
    position: relative;
}

/* Active state underline */
.topnav a.active {
    font-weight: normal;
     /* Remove if you don't want bold */
}


.topnav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    display: block;
}

/* Hover states */
.topnav a:hover:not(.active) {
    color: #6ec347;
}

/* Active state underline - MAIN NAV ITEMS */
.topnav a.active {
    position: relative;
}



.topnav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 100%;
    height: 1px;
    background: #000; /* Force black color */
    display: block !important; /* Override any conflicts */
}

/* Dropdown items */
.dropdown-content a.active {
    position: relative;
}

.dropdown-content a.active::after {
    content: '';
    position: absolute;
    left: 15px;
    bottom: 1px;
    width: calc(100% - 15px);
    height: 1px;
    background: #000;
    display: block !important;
}

/* Works parent link when dropdown item is active */
.dropdown.active > a.dropdown-btn::after,
.dropdown:hover > a.dropdown-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 100%;
    height: 1px;
    background: #000;
    display: block !important;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    margin: 12px 0 8px; /* Tighter spacing */
}

.dropdown > a {
    margin-bottom: 5px; /* Specific spacing for dropdown trigger */
}

.dropdown-content {
    display: none;
    padding-left: 15px;
    margin-top: 5px;
    background: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Active state for dropdown trigger button */
a.dropdown-btn.active {
    position: relative;
}

a.dropdown-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 100%;
    height: 1px;
    background: #000;
    display: block !important;
}

/* Active state for dropdown items */
.dropdown-content a.active {
    position: relative;
}

.dropdown-content a.active::after {
    content: '';
    position: absolute;
    left: 15px;
    bottom: 1px;
    width: calc(100% - 15px);
    height: 1px;
    background: #000;
    display: block !important;
}


/* Instagram icon positioning */
.instagram-link {
    margin-top: auto;
    padding: 25px 0;
    padding-top: 300px;
    display: flex;
    justify-content: flex-end;
    width: calc(100% - 10px);
}

.instagram-link img {
    width: 22px;
    height: auto;
    opacity: 0.8;
    padding-top: 810px;

    transition: all 0.3s ease;
}



/* Rest of your existing styles... */
.scroll-section {
    display: flex;
    min-height: 100vh;
    width: calc(100vw - 200px);
}

.left-column {
    flex: 0 0 30%; 
    padding: 30px 40px;
    background: white;
    position: relative;
}

.work-item {
    padding-left: 20px;
}

.work-item h1 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: normal;
}

.work-item p {
    margin-top: 12px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.right-column img:not([src]) {
    background: #f5f5f5;
    min-height: 200px;
}

/* Fade-in effect */
.right-column img {
    transition: opacity 0.3s ease;
}
.right-column img[data-src] {
    opacity: 0;
}
.right-column img[src] {
    opacity: 1;
}

.right-column {
    flex: 1; 
    overflow-y: auto;
    height: 100vh;
    padding: 30px;
    background: white;
    min-width: 50%; 
}

.right-column img {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.right-column img:hover {
    transform: scale(1.01);
}

/* For the Buildings section specifically */
#section7 .right-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 20px; /* Space between images */
    padding: 30px;
    overflow-y: auto; /* Keep scrollable */
}

#section7 .right-column img {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0; /* Remove individual margins */
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    object-fit: cover;
    aspect-ratio: 3/4; /* Optional: maintain consistent aspect ratio */
}

#section7 .right-column img:hover {
    transform: scale(1.01);
}

@media (max-width: 1200px) {
    #section7 .right-column {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
    }
}

@media (max-width: 768px) {
    #section7 .right-column {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 40 40"><path d="M10,20 L30,20 M20,10 L20,30" stroke="black" stroke-width="2"/></svg>') 20 20, auto;
}

.modal.left-arrow {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 40 40"><path d="M25,10 L15,20 L25,30" stroke="black" stroke-width="4" fill="none"/></svg>') 10 20, w-resize;
}

.modal.right-arrow {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 40 40"><path d="M15,10 L25,20 L15,30" stroke="black" stroke-width="4" fill="none"/></svg>') 30 20, e-resize;
}

.modal-content {
    display: block;
    width: 80vw;
    height: 80vh;
    object-fit: contain;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: zoomIn 0.3s ease;
}

.modal-nav {
    display: none;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #000;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.9); }
    to { transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 768px) {
    body {
        padding-left: 0;
    }
    
    .topnav {
        width: 100%;
        height: auto;
        position: relative;
        padding: 15px 20px;
    }
    
    .scroll-section {
        width: 100vw;
        flex-direction: column;
    }
    
    .left-column,
    .right-column {
        width: 100%;
        padding: 20px;
    }
    
    .modal-content {
        width: 95vw;
        height: 95vh;
    }
}

.contentabout {
    box-sizing: border-box;
    padding: 1.4cm;
}

.content {
    box-sizing: border-box;
    padding: 1.4cm;
}

.hero-image {
    position: relative;
    margin: 80px auto 0;
    width: 70vw;
    max-width: 1000px;
    height: auto; /* let it size based on content */
    display: flex;
    flex-direction: column; /* stack children vertically */
    align-items: center;     /* center-align image and caption */
}


.hero-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}


.image-caption {
    position: static;
    text-align: left;         /* Or center/right, depending on your layout */
    color: rgb(0, 0, 0);
    font-size: 16px;
    margin-top: 8px;          /* Space between image and caption */
    max-width: 100%;
    opacity: 1; /* Always visible */
}

.topnav a.active {
    position: relative;
}

.topnav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 1px;
    background: currentColor;
}

/* Active underline for dropdown items */
.dropdown-content a.active {
    position: relative;
}

.dropdown-content a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 1px;
    width: calc(100% - 15px); /* Account for dropdown padding */
    height: 1px;
    background: currentColor;
}

/* Highlight Works link when dropdown section is active */
.dropdown-content a.active ~ .dropdown > a { /* Target parent Works link */
    position: relative;
}

.dropdown-content a.active ~ .dropdown > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 1px;
    background: currentColor;
}


.hero-image:hover .image-caption {
    opacity: 1;
}

/* Commission Section Styles */
/* COMMISSIONS SECTION - UPDATED */
/* COMMISSIONS SECTION - UPDATED */
/* COMMISSIONS SECTION - UPDATED */
/* Commission Items (Titles) - Keep this unchanged */
.commission-item {
    cursor: pointer;
    padding: 5px 0;
    transition: color 0.3s ease;
    margin-bottom: 10px;
}

.commission-item:hover {
    color: #6ec347;
}

/* Gallery Container - Keep this structure */
.commissions-gallery {
    width: 100%;
}

/* Image Containers - Update these values */
.commission-images {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Smaller columns */
    gap: 10px; /* Reduced gap between images */
    margin-top: 10px;
}

/* Active State - Keep this */
.commission-images.active {
    display: grid;
    animation: fadeIn 0.3s ease;
}

/* Image Styling - These control the image sizes */
.commission-images img {
    width: 100%;
    height: auto;
    max-height: 180px; /* Reduced from 400px */
    object-fit: contain;
    transition: transform 0.3s ease;
    background: #ffffff; /* Optional light background */
    padding: 5px;
}

/* Hover Effects - Keep these */
.commission-images img:hover {
    transform: scale(1.03);
    cursor: zoom-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.contact-info p:first-child,
.contact-info p:nth-child(2) {
    margin-bottom: 0; /* or whatever value you prefer */
    margin-top: 0;
}

h3 {
font-weight: lighter;

}

/* Add these at the end of your existing CSS file */

/* ============================================= */
/* MOBILE RESPONSIVENESS (under 768px) */
/* ============================================= */

@media (max-width: 768px) {
    /* General body adjustments */
    body {
        padding-left: 0;
        text-align: left;
    }

    /* Navigation - switch to horizontal layout */
    .topnav {
        position: relative;
        top: 0;
        width: 100%;
        height: auto;
        padding: 15px 20px;
        border-bottom: 1px solid #000;
    }

    .topnav-inner {
        flex-direction: row;
        align-items: center;
        border-right: none;
        padding-right: 0;
    }

    /* Instagram link adjustments */
    .instagram-link {
        padding: 0;
        margin-top: 0;
        margin-left: auto; /* push to right */
    }

    .instagram-link img {
        padding-top: 0;
        width: 20px;
    }

    /* Hero image adjustments */
    .hero-image {
        width: 100vw;
        margin: 20px auto 0;
        padding: 0 15px;
    }

    .image-caption {
        font-size: 14px;
        padding: 5px 0;
        position: static;
    }

    /* Special handling for portrait vs landscape */
    @media (orientation: portrait) {
        .hero-image img {
            max-height: 70vh;
            width: auto;
            margin: 0 auto;
        }
    }

    @media (orientation: landscape) {
        .hero-image img {
            max-width: 100%;
            height: auto;
        }
    }

    @media (max-width: 768px) {
        /* Add this new rule */
        .contact-info p,
        .contact-info h3,
        a[href^="tel:"] {
            color: #000 !important;
            text-decoration: none !important;
            -webkit-tap-highlight-color: transparent;
        }
        
        /* Keep your existing mobile styles below... */
    }
}

/* ============================================= */
/* SMALL MOBILE DEVICES (under 480px) */
/* ============================================= */

@media (max-width: 480px) {
    /* Navigation links - stack vertically if needed */
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    /* Reduce font sizes */
    body {
        font-size: 14px;
    }

    .image-caption {
        font-size: 12px;
    }

    /* Hero image adjustments */
    .hero-image {
        margin-top: 15px;
    }
}

/* ============================================= */
/* IMAGE ROTATION SPECIFIC STYLES */
/* ============================================= */

/* Smooth transitions for rotating hero */
#rotating-hero {
    transition: opacity 0.5s ease;
}

/* Loading state */
.hero-image.loading img {
    opacity: 0.5;
}

/* Error state */
.hero-image.error::before {
    content: "Image failed to load";
    display: block;
    color: #999;
    text-align: center;
    padding: 20px;
}

/* Add this to the end of your CSS file */
/* Add this at the end of your CSS */
@media (max-width: 768px) {
    /* Show on index & about pages */
    body.home .instagram-link{
        position: fixed;
        left: 20px;
        bottom: 20px;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 1000;
    }


    /* Hide completely on works page */
    body.works .instagram-link,
    body.about .instagram-link {
        display: none !important;
    }

    /* Instagram image styles (index & about only) */
    body.home .instagram-link img,
    body.about .instagram-link img {
        width: 24px;
        height: 24px;
        padding-top: 0 !important;
    }

    /* Prevent content overlap */
    body.home,
    body.about {
        padding-bottom: 60px;
    }


}