/* Mobile-First Responsive Design for SKA Siddharth Vihar */

:root {
    --primary-color: #1a365d;
    --secondary-color: #2d3748;
    --accent-color: #e53e3e;
    --light-bg: #f7fafc;
    --white: #ffffff;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    font-size: 16px;
}

html {
    scroll-behavior: smooth;
}

/* Base Mobile Styles */
.blur-image {
    filter: blur(2px);
    transition: var(--transition);
}

/* Navigation - Mobile First */
.navbar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    margin: 0;
    transition: var(--transition);
    border-radius: 8px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--accent-color) !important;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section - Mobile First */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-section .carousel-item {
    height: 85vh;
    min-height: 500px;
}

.hero-section .carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    width: 100%;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
    padding: 1rem;
    width: 100%;
    max-width: 90%;
}

.carousel-caption h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    line-height: 1.2;
}

.carousel-caption .lead {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.carousel-caption h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.price-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    line-height: 1.3;
}

.carousel-caption .btn {
    min-height: 48px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    opacity: 0.7;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Section Styles - Mobile First */
.section-padding {
    padding: 3rem 0;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.3;
}

.section-subtitle {
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.4;
}

/* Card Components - Mobile First */
.highlight-card {
    background: var(--white);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.highlight-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.highlight-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}

.highlight-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

/* Price Cards - Mobile First */
.price-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid var(--border-color);
    margin-bottom: 1rem;
}

.price-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.price-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.price-card .size {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.price-card .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.price-card .btn {
    min-height: 44px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Amenity Cards - Mobile First */
.amenity-card {
    background: var(--white);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.amenity-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.amenity-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    display: block;
}

.amenity-card h6 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Floor Plan Cards - Mobile First */
.floor-plan-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 1rem;
}

.floor-plan-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.floor-plan-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.floor-plan-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.floor-plan-card .btn {
    min-height: 44px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Location Section - Mobile First */
.location-map {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.location-map iframe {
    width: 100%;
    height: 250px;
    border: none;
}

.location-item {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.location-number {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.location-text h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contact Section - Mobile First */
.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-item h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-form-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-form-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.25rem;
}

.contact-form-card p {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer - Mobile First */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem 0 1.5rem;
    text-align: center;
}

.footer p {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 0 1rem;
}

.footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* WhatsApp Button - Mobile First */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 1000;
    border: none;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    background: #128c7e;
    box-shadow: var(--shadow-lg);
}

.whatsapp-btn:active {
    transform: scale(0.95);
}

/* Form Styles - Mobile First */
.form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 1rem;
    transition: var(--transition);
    min-height: 48px;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
    outline: none;
}

.form-check {
    margin-bottom: 1rem;
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.5rem;
}

.form-check-label {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-light);
}

.btn {
    min-height: 48px;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #c53030;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Responsive Breakpoints */

/* Small tablets and larger phones (480px+) */
@media (min-width: 480px) {
    .carousel-caption h1 {
        font-size: 2.25rem;
    }

    .price-text {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.4rem;
    }

    .highlight-card {
        padding: 2rem 1.5rem;
    }

    .amenity-card {
        padding: 2rem 1.5rem;
    }

    .location-map iframe {
        height: 300px;
    }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
    .hero-section {
        height: 90vh;
        min-height: 600px;
    }

    .hero-section .carousel-item {
        height: 90vh;
        min-height: 600px;
    }

    .carousel-caption h1 {
        font-size: 2.75rem;
    }

    .carousel-caption .lead {
        font-size: 1.25rem;
    }

    .carousel-caption h3 {
        font-size: 1.5rem;
    }

    .price-text {
        font-size: 2rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .section-subtitle {
        font-size: 1.5rem;
    }

    .highlight-card i {
        font-size: 2.75rem;
    }

    .highlight-card h5 {
        font-size: 1.1rem;
    }

    .price-card {
        padding: 2rem;
    }

    .price-card h4 {
        font-size: 1.2rem;
    }

    .price-card .price {
        font-size: 1.25rem;
    }

    .amenity-card i {
        font-size: 2.25rem;
    }

    .floor-plan-card img {
        height: 220px;
    }

    .location-map iframe {
        height: 350px;
    }

    .contact-item {
        padding: 1.5rem;
    }

    .contact-form-card {
        padding: 2rem;
    }

    .whatsapp-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small desktops (1024px+) */
@media (min-width: 1024px) {
    .hero-section {
        height: 95vh;
    }

    .hero-section .carousel-item {
        height: 95vh;
    }

    .carousel-caption h1 {
        font-size: 3.25rem;
    }

    .carousel-caption .lead {
        font-size: 1.5rem;
    }

    .carousel-caption h3 {
        font-size: 1.75rem;
    }

    .price-text {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.75rem;
    }

    .highlight-card {
        padding: 2.5rem 2rem;
    }

    .highlight-card i {
        font-size: 3rem;
    }

    .highlight-card h5 {
        font-size: 1.2rem;
    }

    .price-card h4 {
        font-size: 1.3rem;
    }

    .price-card .price {
        font-size: 1.4rem;
    }

    .amenity-card i {
        font-size: 2.5rem;
    }

    .floor-plan-card img {
        height: 250px;
    }

    .location-map iframe {
        height: 400px;
    }

    .navbar {
        padding: 1rem 2rem;
    }

    .navbar-brand img {
        height: 50px;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1.25rem;
        font-size: 1.1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large desktops (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .carousel-caption h1 {
        font-size: 3.5rem;
    }

    .price-text {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.75rem;
    }

    .section-subtitle {
        font-size: 1.9rem;
    }

    .highlight-card {
        padding: 3rem 2.5rem;
    }

    .price-card {
        padding: 2.5rem;
    }

    .floor-plan-card {
        padding: 2.5rem;
    }

    .contact-form-card {
        padding: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}