/* ===== Variables ===== */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #ff6584;
    --accent-color: #43b97f;
    --dark-color: #2c3e50;
    --light-color: #f9fafc;
    --gray-color: #95a5a6;
    --light-gray: #ecf0f1;
    --text-color: #333;
    --white-color: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--light-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Layout Containers ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Buttons ===== */
.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.cta-button:hover {
    background-color: #5a52d5;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(108, 99, 255, 0.3);
}

.secondary-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    background-color: #25D366;
    color: var(--white-color);
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.whatsapp-button i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(37, 211, 102, 0.3);
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: var(--white-color);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* ===== Back To Top Button ===== */
.back-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 110px;
    right: 40px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    text-align: center;
    font-size: 20px;
    box-shadow: var(--shadow);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #5a52d5;
    transform: translateY(-3px);
}

/* ===== Header Section ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white-color);
    transition: var(--transition);
}

.header.scrolled .logo h1 {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white-color);
    padding: 5px 0;
    position: relative;
}

.header.scrolled .nav-links a {
    color: var(--dark-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after, 
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--white-color);
    margin: 5px 0;
    transition: var(--transition);
}

.header.scrolled .hamburger .line {
    background-color: var(--dark-color);
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    background-image: url('/api/placeholder/1920/1080');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-in-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-in-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== About Section ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 20px;
}

.about-features {
    margin-bottom: 30px;
}

.about-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.about-features i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* ===== Apartments Section ===== */
.apartment-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    margin: 0 10px 10px;
    background-color: var(--light-gray);
    color: var(--dark-color);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active, 
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.apartment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.apartment-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.apartment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.apartment-image {
    position: relative;
    height: 250px;
}

.apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apartment-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.apartment-details {
    padding: 20px;
}

.apartment-details h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.apartment-location {
    display: flex;
    align-items: center;
    color: var(--gray-color);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.apartment-location i {
    margin-right: 8px;
    color: var(--primary-color);
}

.apartment-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.apartment-features span {
    display: flex;
    align-items: center;
}

.apartment-features i {
    margin-right: 8px;
    color: var(--primary-color);
}

.apartment-price {
    margin-bottom: 20px;
}

.apartment-price p {
    font-size: 1.2rem;
    font-weight: 600;
}

.apartment-price span {
    color: var(--primary-color);
}

.apartment-cta {
    display: block;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
}

.apartment-cta:hover {
    background-color: #5a52d5;
}

/* ===== Facilities Section ===== */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.facility-card {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.facility-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    transition: var(--transition);
}

.facility-card:hover .facility-icon {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.facility-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.facility-card p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* ===== Testimonials Section ===== */
.testimonials {
    background-color: var(--light-gray);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-container {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all 0.5s ease-in-out;
}

.testimonial-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.testimonial-content {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.testimonial-stars {
    margin-bottom: 15px;
    color: #FFD700;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.author-info p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.testimonial-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.testimonial-prev,
.testimonial-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--primary-color);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.testimonial-dots {
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--gray-color);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    width: 30px;
    border-radius: 10px;
    background-color: var(--primary-color);
}

/* 
 * LuxStay - Apartment Rental Website CSS
 * Part 5: Contact, Footer, & Responsive Sections
 */

/* ===== Contact Section ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-details p {
    color: var(--gray-color);
}

.social-media {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.social-media h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.social-icons {
    display: flex;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.contact-cta {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-cta h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.contact-cta p {
    margin-bottom: 30px;
}

/* ===== Footer Section ===== */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white-color);
}

.footer-logo p {
    color: var(--light-gray);
    margin-bottom: 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-links-group h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white-color);
}

.footer-links-group ul li {
    margin-bottom: 10px;
}

.footer-links-group ul li a {
    color: var(--light-gray);
    transition: var(--transition);
}

.footer-links-group ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--light-gray);
}

.payment-methods span {
    margin-left: 15px;
    font-size: 1.5rem;
    color: var(--light-gray);
}

/* ===== Mobile Responsive ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white-color);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-links a {
        color: var(--dark-color) !important;
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: block;
        z-index: 1000;
    }
    
    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .apartment-grid,
    .facilities-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom p {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .hero {
        height: 90vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .cta-button,
    .whatsapp-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .apartment-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 80%;
        margin-bottom: 10px;
    }
    
    .testimonial-content {
        padding: 20px;
    }
    
    .contact-cta {
        padding: 30px 20px;
    }
    
    .contact-cta h3 {
        font-size: 1.5rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        right: 20px;
        bottom: 20px;
        font-size: 25px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        right: 20px;
        bottom: 80px;
        font-size: 16px;
    }
}