/* ===============================================
   Stylesheet developed by TopArt - Project: AS Architects © 2025
=============================================== */

/* -----------------------------------------
   1. VARIABLES & RESET
----------------------------------------- */
:root {
    --color-light-gray: #f4f4f4;
    --color-dark-gray: #333333;
    --color-medium-gray: #666666;
    --color-primary: #000000;
    --font-main: 'Inter', sans-serif;
    --header-font-weight: 600;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-dark-gray);
    background-color: var(--color-light-gray);
    line-height: 1.6;
}

/* -----------------------------------------
   2. TYPOGRAPHY & GLOBAL LINKS
----------------------------------------- */
h1, h2, h3 {
    font-weight: var(--header-font-weight);
    color: var(--color-primary);
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: var(--color-medium-gray);
    transition: color 0.3s;
}

a:hover {
    color: var(--color-primary);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* -----------------------------------------
   3. NAVIGATION (Desktop & Mobile Overlay)
----------------------------------------- */
/* Sticky Nav Bar */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--color-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-100%);
    transition: transform 0.5s ease-out;
}

#main-nav.sticky-nav {
    transform: translateY(0);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 5%;
}

#main-nav .logo {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-medium-gray);
}

.hamburger {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
}

/* Floating Logo Link */
#logo-link {
    position: fixed;
    z-index: 1001; 
    width: 120px; 
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
}

#main-logo {
    width: 100%;
    height: auto;
    display: block;
    filter: invert(100%);
}

#mobile-menu-overlay.active ~ #logo-link #main-logo {
    filter: invert(100%);
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}

#mobile-menu-overlay.active {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px; 
    cursor: pointer;
    font-family: Arial, sans-serif; 
    font-weight: 300;
}

#mobile-menu-logo-placeholder {
    width: 1px;
    height: 0;
    position: absolute;
    top: 80px;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    margin-top: 150px;
}

.mobile-nav-links li {
    margin: 20px 0;
}

.mobile-nav-links a {
    color: white;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 300;
}

/* -----------------------------------------
   4. HERO SECTION (Main Home)
----------------------------------------- */
#hero {
    height: 100vh;
    background: url('../images/projects/concept_4.webp') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#hero-title {
    text-align: center;
    z-index: 10;
}

.hero-h1 {
    font-size: 4rem;
    font-weight: 700;
    color: white; 
    margin-bottom: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.hero-p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: #dad9d6;
}

.hero-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 5;
}

.hero-scroll-down {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 0.8rem;
    letter-spacing: 3px;
    z-index: 10;
    animation: bounce 2s infinite;
}

/* -----------------------------------------
   5. ABOUT US SECTION & FOUNDER
----------------------------------------- */
#about-us {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding-top: 80px;
}

.about-content {
    flex: 2;
    min-width: 300px;
    overflow: auto; 
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Founder Specific */
.anastasia-photo {
    display: block;
    max-width: 220px;
    width: 100%;
    border-radius: 1px;
    opacity: 0;
    animation: fadeIn 2s ease-out 0.5s forwards;
    float: left;
    margin: 0 20px 20px 0;
}

/* -----------------------------------------
   6. SERVICES SECTION (Accordion)
----------------------------------------- */
#services {
    background-color: white;
    padding-bottom: 80px;
}

.services-header-container {
    padding-top: 80px;
    padding-bottom: 50px;
    text-align: center;
}

.services-accordion-container {
    max-width: 900px;
    padding: 0;
    margin: 0 auto;
    border-top: 1px solid var(--color-primary);
}

.service-accordion-item {
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

.service-accordion-item.active {
    background-color: var(--color-light-gray);
}

.service-accordion-header {
    display: flex;
    align-items: center;
    padding: 25px 0;
    user-select: none;
    position: relative;
}

.service-accordion-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 400;
    flex-grow: 1;
}

.service-accordion-item:hover .service-accordion-header h3 {
    color: var(--color-medium-gray);
}

.service-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-medium-gray);
    margin-right: 30px;
    width: 40px;
    flex-shrink: 0;
}

.service-toggle {
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-primary);
    margin-left: 20px;
    transition: transform 0.3s;
}

.service-accordion-content {
    overflow: hidden;
    padding: 0 0 0 70px; 
}

.service-accordion-content p {
    padding-bottom: 25px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-medium-gray);
}

/* -----------------------------------------
   7. PROJECTS SECTION (Home Page)
----------------------------------------- */
#projects {
    text-align: center;
    background-color: var(--color-light-gray);
    padding-top: 80px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: white;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 450px;
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 20px;
}

.project-info p {
    color: var(--color-medium-gray);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.view-more {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--color-dark-gray);
    font-weight: 600;
}

.more-projects-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 10px 25px;
    background: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, color 0.3s;
}

.more-projects-btn:hover {
    background: white;
    color: var(--color-primary);
}

/* -----------------------------------------
   8. CONTACT SECTION
----------------------------------------- */
#contact {
    background-color: white;
}

#contact h2 {
    text-align: center;
}

.contact-grid { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; 
    margin-top: 40px; 
    align-items: start;
}

.contact-map {
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%; 
    height: 450px;
    display: block;
}

.contact-form {
    padding: 30px;
    border: 1px solid #e0e0e0;
    background-color: var(--color-light-gray);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    background-color: white;
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-dark-gray);
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    background: var(--color-dark-gray);
    color: white;
    border: 2px solid var(--color-dark-gray);
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, color 0.3s;
}

button[type="submit"]:hover {
    background: white;
    color: var(--color-dark-gray);
}

.download-btn {
    display: inline-block; 
    background-color: #222; 
    color: #fff; 
    padding: 15px 35px; 
    text-decoration: none; 
    text-transform: uppercase; 
    font-size: 12px; 
    letter-spacing: 1.5px; 
    font-weight: 600;
    border-radius: 4px; 
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #444;
}

/* -----------------------------------------
   9. FOOTER
----------------------------------------- */
footer {
    background: var(--color-dark-gray);
    color: white;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
}

footer a {
    color: white;
    font-weight: 600;
}

/* -----------------------------------------
   10. ANIMATIONS
----------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 0.8s ease-out;
    transition-delay: 0.1s;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* -----------------------------------------
   11. FLOATING ICONS (WhatsApp & Instagram)
----------------------------------------- */
.whatsapp-float,
.instagram-float {
    position: fixed;
    width: 40px;
    height: 40px;
    right: 40px;
    background-color: #b7b7b7; 
    color: #ffffff; 
    border-radius: 50%; 
    text-align: center;
    font-size: 25px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease-in-out;
    text-decoration: none; 
}

.whatsapp-float {
    bottom: 40px;
}

.instagram-float {
    bottom: 95px; 
}

.whatsapp-float:hover,
.instagram-float:hover {
    transform: scale(1.1);
}

/* -----------------------------------------
   12. PROJECT GALLERY (Internal Pages)
----------------------------------------- */
#projects2 {
    padding: 80px 0;
    background-color: #fafafa;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.main-image-display {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #ddd;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

#large-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

.thumbnails-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.thumb-wrapper {
    width: calc(20% - 12px); 
    aspect-ratio: 16 / 9;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 1;
    border: 2px solid transparent;
}

.thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-wrapper:hover {
    transform: translateY(-2px);
}

.thumb-wrapper.active-thumb {
    opacity: 0.5;
    border-color: #333;
    pointer-events: none;
}

.gallery-btn-container {
    text-align: center;
    margin-top: 40px;
}

.panoramic-map-container {
    width: 100%;
    line-height: 0; 
    margin-top: 40px;
}

/* -----------------------------------------
   13. MEDIA QUERIES (Mobile Adjustments)
----------------------------------------- */

/* Tablet & Mobile (Below 900px) */
@media (max-width: 900px) {
    /* Hero */
    .hero-h1 { font-size: 2.5rem; letter-spacing: 3px; }
    .hero-p { font-size: 1rem; }
    
    /* Navigation */
    .nav-links { display: none; }
    .hamburger { display: block; }
    
    /* Logo Position Changes */
    #logo-link { width: 80px; top: 20px; left: 50%; transform: translate(-50%, 0); }
    #main-nav.sticky-nav ~ #logo-link { width: 40px; top: 15px; left: 5%; transform: translate(0,0); }
    #main-nav .logo { opacity: 0; }
    
    /* Layouts */
    #about-us { flex-direction: column; padding-top: 50px; }
    .about-content, .about-image { min-width: 100%; }
    
    /* Accordion */
    .service-accordion-header { padding: 20px 0; }
    .service-accordion-header h3 { font-size: 1.1rem; }
    .service-number { font-size: 1.2rem; margin-right: 20px; width: 30px; }
    .service-accordion-content { padding: 0 0 0 50px; }
    .service-accordion-content p { font-size: 0.95rem; }
    
    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .contact-map iframe { height: 300px; }

    /* Forced Mobile Adjustments */
    #projects, 
    #projects2, 
    .animate-on-scroll {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: block !important;
        height: auto !important;
    }

    .project-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .project-card {
        height: auto !important;
        min-height: 450px;
        width: 100% !important;
        display: block !important;
        margin-bottom: 20px;
    }
    
    .project-card img { 
        height: 200px; 
    }
}

/* Tablet Portrait (Below 768px) */
@media only screen and (max-width: 768px) {
    .thumbnails-row {
        gap: 5px;
    }
    .thumb-wrapper {
        width: calc(20% - 4px);
    }

    /* Founder Photo on Mobile */
    .anastasia-photo {
        float: none; 
        margin: 0 auto 30px auto; 
    }
    
    .mobile-center-text {
        text-align: center;
    }
}

/* Small Mobile (Below 600px) */
@media (max-width: 600px) {
    .hero-h1 { font-size: 1.8rem; letter-spacing: 2px; }
    .hero-p { font-size: 0.9rem; }

    .whatsapp-float,
    .instagram-float {
        width: 50px;
        height: 50px;
        right: 20px;
        font-size: 25px;
    }
    
    .whatsapp-float { bottom: 20px; }
    .instagram-float { bottom: 85px; }
}

/* =========================================
   14. PROJECT PAGES & HELPERS
========================================= */

/* Hero Overlays */
.hero-project-content {
    text-align: center;
    color: white;
    z-index: 10;
}

.hero-overlay-dark {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6); 
    z-index: 5;
}

/* Bedneyel Page Hero */
#hero-bedneyel {
    height: 100vh;
    background: url('../images/projects/bedneyel_1.webp') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Office Building Page Hero */
#hero-office {
    height: 100vh;
    background: url('../images/projects/office_bdg_3.webp') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Contact Helpers (Cleaning up inline styles) */
.contact-header { text-align: center; margin-bottom: 50px; }
.contact-grid-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 50px; text-align: center; }
.contact-item { flex: 1; min-width: 260px; }
.contact-icon { font-size: 22px; color: var(--color-dark-gray); margin-bottom: 15px; }
.contact-label { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #999; margin-bottom: 8px; font-weight: 600; }
.contact-text { font-size: 16px; line-height: 1.6; color: var(--color-dark-gray); margin: 0; }
.contact-link { text-decoration: none; color: var(--color-dark-gray); border-bottom: 1px solid #eee; padding-bottom: 2px; transition: 0.3s; }
.contact-link:hover { border-color: var(--color-dark-gray); }
.download-container { text-align: center; margin-top: 60px; }
.project-description { margin-top: 15px; color: #555; }
