/* CSS Variables */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #d31a1a;
    --bg-dark: #121212;
    --bg-light: #f5f5f5;
    --text-main: #333333;
    --text-muted: #777777;
    --text-light: #ffffff;
    --border-color: #333333;
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    height: 100%;
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Removed Placeholders Styling as images are downloaded */

/* Typography using clamp() for responsiveness */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    text-transform: uppercase;
    text-align: center;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    width: 100%;
    margin: 0 auto;
}

.text-accent {
    color: var(--accent-color);
}

.text-center {
    text-align: center;
}
.mb-5 {
    margin-bottom: 3rem;
}

/* Layout */
.container {
    width: 70%;
    max-width: 1600px;
    margin: 0 auto;
}

.section {
    padding: 3rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    padding: 1rem 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

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

.logo-img {
    height: 40px;
    width: 120px;
    filter: invert(1);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switch {
    background: none;
    border: none;
    color: var(--text-light);
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.lang-switch:hover {
    color: var(--accent-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* offset navbar */
    background-color: var(--primary-color);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

/* Why Prime (FAQ) */
.why-prime {
    background-color: var(--bg-light);
}

.faq-accordion {
    width: 100%;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
}

.faq-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-header strong {
    flex: 1;
    text-align: center;
}

.faq-header:hover {
    color: var(--accent-color);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-content p {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
    text-align: center;
}

.faq-item.active .faq-content {
    max-height: 500px; /* Arbitrary large value */
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-color);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    display: block;
    overflow: hidden;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}
.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    z-index: 10000;
}
.lightbox-prev { left: 2%; }
.lightbox-next { right: 2%; }
.lightbox-prev:hover, .lightbox-next:hover {
    color: var(--accent-color);
}
.amenities {
    background-color: var(--secondary-color);
    color: var(--text-main);
    text-align: center;
}

.amenities-logo {
    margin: 0 auto 2rem;
    width: 300px;
    height: auto;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.amenity-card {
    padding: 2rem;
    background-color: var(--bg-light);
    border: 1px solid #eee;
    transition: var(--transition);
}

.amenity-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.amenity-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background-color: transparent;
}

.amenity-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Map Placeholder */
.map-container {
    width: 100%;
    height: 500px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #999;
}

/* Tech Info */
.tech-info {
    background-color: var(--bg-light);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-card {
    background-color: var(--secondary-color);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tech-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1rem;
}

.tech-card-header h3 {
    font-size: 1.3rem;
}

.tech-icon {
    width: 40px;
    height: 40px;
    background-color: #ddd;
}

.tech-list {
    padding-left: 1.5rem;
}

.tech-list li {
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-muted);
}

.tech-list li::before {
    content: "•";
    color: var(--accent-color);
    font-size: 1.5rem;
    position: absolute;
    left: -1.5rem;
    top: -5px;
}

/* Portfolio */
.portfolio {
    background-color: var(--bg-light);
    color: var(--text-main);
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    width: calc(33.333% - 1.34rem);
    height: 400px;
    border-radius: 15px;
}

@media (max-width: 1100px) {
    .portfolio-card {
        width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .portfolio-card {
        width: 100%;
    }
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    padding: 3rem 2rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 60%, transparent 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.portfolio-info h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.portfolio-info p {
    color: #eee;
    margin: 0;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.contact-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-text .section-title {
    text-align: left;
    margin-bottom: 1rem;
    margin-top: 0;
}

.contact-text p {
    margin: 0;
}

.contact-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-person {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-person:last-child {
    margin-bottom: 0;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.person-details a {
    color: var(--accent-color);
    font-weight: 600;
}

.person-details a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #333;
    padding-bottom: 3rem;
}

.footer-img {
    width: 200px;
    height: 60px;
    background-color: transparent;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--accent-color);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .container {
        width: 85%;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-text .section-title {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(18, 18, 18, 0.98);
        flex-direction: column;
        padding: 2rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }

    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-actions .btn {
        display: none; /* Hide contact button on mobile to save space, or move it */
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}
