/* Base Theme & Variables */
:root {
    --bg-color: #f9f9f5;
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --accent-dark: #2c3e2e;
    --white: #ffffff;
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 40px;
    border-radius: 30px;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-dark);
}

.btn-started {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.btn-started:hover {
    background: var(--white);
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    height: 95vh;
    background-color: var(--accent-dark);
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 100px;
    color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 75% 95%, 50% 100%, 25% 95%, 0 100%);
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content {
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.hero-subtitle {
    font-size: 14px;
    max-width: 400px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-title {
    font-size: 100px;
    line-height: 0.9;
    font-weight: 600;
    margin-bottom: 40px;
}

.hero-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.btn-primary-outline {
    border: 1px solid var(--white);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 40px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-primary-outline:hover {
    background: var(--white);
    color: var(--text-primary);
}

.hero-quote {
    display: flex;
    gap: 15px;
    max-width: none;
}

.hero-quote h3 {
    font-size: 24px;
    margin-bottom: 10px;
}
.hero-quote p {
    font-size: 14px;
    opacity: 0.8;
}

/* About Section */
.about-section {
    padding: 120px 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.about-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 50%;
    display: inline-block;
}

.about-text h2 {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.3;
}

.about-description {
    column-count: 2;
    column-gap: 40px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: justify;
}

/* ARH House */
.arh-house-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.arh-house-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px;
}

.arh-house-image {
    width: 100%;
    min-height: 350px;
    background: #e9ecef;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.arh-house-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
}

/* Projects Section */
.recent-projects {
    padding: 0 40px 100px;
}

.section-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
}

.sh-title h2 {
    font-size: 70px;
    line-height: 0.9;
    font-weight: 500;
}

.sh-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.sh-desc p {
    font-size: 18px;
    color: var(--text-secondary);
}

.sh-action {
    text-align: right;
}

.btn-secondary {
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--white);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.project-card {
    cursor: pointer;
}

.project-image-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    /* Soft clip paths matching design */
    clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
    transition: var(--transition);
}

.project-card:hover .project-image-wrapper {
    clip-path: polygon(0 0, 100% 2%, 100% 100%, 0 98%);
    transform: scale(1.02);
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s;
}

.project-card:hover .project-image-wrapper img {
    transform: scale(1.05);
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.project-info {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--white);
    padding: 80px 0 40px;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-left {
    flex: 1;
    max-width: 400px;
}

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.footer-logo h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.footer-contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    font-weight: 500;
    color: var(--text-secondary);
    justify-content: flex-end;
}

.footer-contact-wrapper > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-location {
    width: 100%;
    justify-content: flex-end;
}

.footer-bottom {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Modal Gallery CSS */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 1001;
}

.modal-content {
    width: 90%;
    height: 80%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
}

.gallery-container img.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    transition: 0.3s;
}

.gallery-nav:hover { background: rgba(0,0,0,0.8); }

.gallery-prev { left: -60px; }
.gallery-next { right: -60px; }

/* Hamburger & Mobile Overrides */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.mobile-only-link { display: none; }
.mobile-quote-btn { display: none; }

@media (max-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 70px; }
}

@media (max-width: 768px) {
    .projects-grid { grid-template-columns: 1fr; }
    .about-grid, .section-header { grid-template-columns: 1fr; }
    .about-description { column-count: 1; }
    .arh-house-grid { grid-template-columns: 1fr; }
    .arh-house-image { min-height: auto; }
    .arh-house-image img { position: static; height: auto; }
    .hero-content { flex-direction: column; align-items: flex-start; gap: 40px;}
    
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-left { max-width: none; align-items: center; display: flex; flex-direction: column; }
    .footer-right { align-items: center; text-align: center; }
    
    .footer-links { flex-direction: column; gap: 15px; margin-bottom: 30px; }
    .footer-contact-wrapper { justify-content: center; flex-direction: column; gap: 15px; align-items: center; }
    .footer-location { justify-content: center; }
    
    .gallery-nav { font-size: 24px; padding: 12px; }
    .gallery-prev { left: 10px; }
    .gallery-next { right: 10px; }
    
    .hamburger { display: flex; }
    .nav-actions { display: none; }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.75);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px;
        border-radius: 0 0 20px 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        opacity: 0;
        z-index: 99;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links a { color: var(--text-primary); font-size: 18px; padding: 10px 0; }
    .mobile-only-link { display: block !important; color: var(--accent-dark) !important; }
    .mobile-quote-btn { display: inline-flex; border-color: var(--white); color: var(--white); }
    
    .gallery-prev { left: 10px; }
    .gallery-next { right: 10px; }
}

@media (max-width: 520px) {
    .hero-quote {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .hero-quote .btn-primary-outline {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Contact Modal Extra CSS */
.contact-modal-content {
    background: #fff;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.contact-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.contact-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.contact-submit-btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.contact-submit-btn:hover {
    background: var(--text-primary);
    color: var(--white);
}

.contact-modal-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-family: var(--font-serif);
}

.contact-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 16px;
    transition: 0.3s;
}

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

@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 20px; }
    .contact-modal-content { padding: 30px 20px; width: 90%; }
}

/* Extra Small Devices (iPhone SE sizes, etc.) */
@media (max-width: 370px) {
    .container { padding: 0 15px !important; }
    
    .hero-title { font-size: 45px !important; }
    .hero-subtitle { font-size: 18px !important; }
    
    .sh-title h2 { font-size: 45px !important; }
    .about-text h2 { font-size: 22px !important; line-height: 1.3 !important; }
    
    .recent-projects { padding: 0 15px 60px !important; }
    #arh-house { padding: 60px 15px !important; }
    #location { padding: 0 15px 60px !important; }
    
    .project-image-wrapper { height: 280px !important; }
    
    .footer { padding-left: 15px !important; padding-right: 15px !important; }
    .contact-modal-content { padding: 25px 15px !important; }
    
    .nav-links.active { top: 70px; padding: 15px; }
    .hamburger { width: 25px; height: 18px; }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 10000;
    border-top: 1px solid #333;
}
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.cookie-content p {
    margin: 0;
    font-size: 14px;
    color: #ffffff;
}
.cookie-content a {
    color: #cccccc;
    text-decoration: underline;
}
.cookie-content a:hover {
    color: #ffffff;
}
#acceptCookies {
    background-color: #ffffff;
    color: #1a1a1a;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}
#acceptCookies:hover {
    background-color: #e0e0e0;
}
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-actions {
        width: 100%;
    }
    #acceptCookies {
        width: 100%;
        padding: 12px 16px !important;
        margin-top: 10px;
    }
}
