/* Reset and Base Styles */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-dark: #2c3e50;
    --text-light: #666;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Newsletter Widget Styles */
.newsletter-widget {
    position: fixed;
    left: -300px; /* Start hidden off-screen */
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    height: 320px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(255,255,255,0.2);
    opacity: 0;
}

.newsletter-widget.show {
    left: 20px;
    opacity: 1;
}

.newsletter-widget.hide {
    left: -300px;
    opacity: 0;
}

.newsletter-widget:hover {
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.widget-header {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.widget-header h3 {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.widget-close {
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.widget-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.widget-content {
    height: calc(100% - 60px);
    position: relative;
    overflow: hidden;
}

.widget-content .offer-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.widget-content .offer-item.active {
    opacity: 1;
    transform: translateX(0);
}

.widget-content .offer-badge {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(255,107,107,0.3);
    width: fit-content;
}

.widget-content h4 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.widget-content p {
    color: white;
    margin: 0 0 8px 0;
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.4;
}

.widget-content .price {
    color: #ffd700 !important;
    font-weight: bold !important;
    font-size: 14px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 15px !important;
}

.widget-btn {
    background: linear-gradient(45deg, #00d2ff, #3a7bd5);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,210,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    width: 100%;
}

.widget-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,210,255,0.4);
}

/* Hide widget on small screens */
@media (max-width: 768px) {
    .newsletter-widget {
        display: none;
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo h2 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
}

.nav-logo span {
    color: #e74c3c;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
}

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

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #e74c3c;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e74c3c;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e0e0e0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-link:hover {
    background: #f8f9fa;
    color: #e74c3c;
    padding-left: 2rem;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #e74c3c;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-link:hover::before {
    transform: scaleY(1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    padding: 160px 20px 50px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

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

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-bg-image.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 3;
    position: relative;
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

.property-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

.property-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #e74c3c;
}

.property-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #e74c3c;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.feature {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.feature h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #2c3e50;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.6;
}

.about-stats {
    display: grid;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat h3 {
    font-size: 2.5rem;
    color: #e74c3c;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
    font-weight: 500;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.project-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

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

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
}

.project-card.detailed {
    min-height: 700px;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.project-image {
    height: 220px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: block !important;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
    background: rgba(255, 255, 255, 0.1);
}

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

.project-image i {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-status {
    background: rgba(255,255,255,0.95);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    position: absolute;
    top: 15px;
    right: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.project-content {
    padding: 30px;
}

.project-content h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.6rem;
    font-weight: 700;
}

.project-location {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.project-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.plot-details {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.plot-details h5 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.plot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.plot-item {
    background: white;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.plot-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.feature {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.3s ease;
}

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

.payment-plan {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.payment-plan h5 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}

.payment-plan p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

.project-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
}

.project-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(45deg, #764ba2, #667eea);
}

.project-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #c0392b;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #f8f9fa;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-card i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e74c3c;
    color: white;
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.5rem;
    color: #e74c3c;
    width: 30px;
}

.contact-item:hover i {
    color: white;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-form {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Blog Section Styles */
.blog-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
}

.blog-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    border-radius: 2px;
}

.blog-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #666;
}

.blog-date {
    font-weight: 500;
}

.blog-keywords {
    color: #e74c3c;
    font-weight: 500;
}

.blog-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.blog-share {
    display: flex;
    gap: 10px;
}

.blog-share button {
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px;
}

.blog-share button:hover {
    color: #e74c3c;
}

.blog-pagination {
    text-align: center;
    margin-top: 40px;
}

.blog-pagination button {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-pagination button:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Blog Modal Styles */
.blog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.blog-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.blog-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

.blog-modal-header h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.4;
}

.blog-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-modal-close:hover {
    color: #e74c3c;
}

.blog-modal-body {
    padding: 30px;
}

.blog-modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.blog-modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.blog-modal-text {
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.blog-keywords {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.blog-modal-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

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

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

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section span {
    color: #e74c3c;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #e74c3c;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #34495e;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #e74c3c;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* Project Details Page Styles */
.project-detail {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.detail-header {
    margin-bottom: 40px;
    text-align: center;
}

.back-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.back-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
}

.project-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.project-hero-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: rgba(255, 255, 255, 0.1);
}

.project-status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.project-hero-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-hero-info h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.project-hero-info .location,
.project-hero-info .developer,
.project-hero-info .area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.project-hero-info .description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.1rem;
    margin-top: 20px;
}

.detail-sections {
    display: grid;
    gap: 40px;
}

.detail-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.detail-section h2 {
    color: var(--text-dark);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-section h2 i {
    color: var(--primary-color);
}

.plot-category {
    margin-bottom: 40px;
}

.plot-category:last-child {
    margin-bottom: 0;
}

.plot-category h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plot-table {
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #f0f0f0;
}

.plot-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 700;
    padding: 15px;
}

.plot-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.plot-row:hover {
    background: #f8f9fa;
}

.plot-row:last-child {
    border-bottom: none;
}

.plot-size {
    font-weight: 600;
    color: var(--text-dark);
}

.plot-price {
    color: var(--primary-color);
    font-weight: 700;
}

.plot-dimensions {
    color: var(--text-light);
    font-weight: 500;
}

.payment-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.payment-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.payment-item strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.features-grid,
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.feature-item,
.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 10px;
    font-weight: 500;
    color: var(--text-dark);
    transition: transform 0.3s ease;
}

.feature-item:hover,
.amenity-item:hover {
    transform: translateY(-2px);
}

.feature-item i,
.amenity-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.connectivity-list {
    display: grid;
    gap: 15px;
}

.connectivity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.connectivity-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.connectivity-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-section {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    margin-top: 60px;
}

.contact-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-section p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-buttons .btn-primary,
.contact-buttons .btn-secondary,
.contact-buttons .btn-outline {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.contact-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.contact-buttons .btn-primary:hover {
    background: transparent;
    color: white;
}

.contact-buttons .btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.contact-buttons .btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

.contact-buttons .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

.contact-buttons .btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

.contact-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: #25d366;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-buttons .btn-primary:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.cta-buttons .btn-secondary {
    background: #e74c3c;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.cta-buttons .btn-secondary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

/* Contact buttons in project details */
.contact-buttons .btn-primary {
    background: #25d366;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-buttons .btn-primary:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.contact-buttons .btn-secondary {
    background: #e74c3c;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.contact-buttons .btn-secondary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.contact-buttons .btn-outline {
    background: transparent;
    color: white;
    padding: 15px 30px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.contact-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.error-message {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.error-message h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 2rem;
}

.error-message p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Responsive Design for Project Details */
@media (max-width: 768px) {
    .hero {
        padding: 120px 15px 30px;
        min-height: 80vh;
        height: 80vh;
    }
    
    .hero-bg-image {
        object-fit: cover;
        object-position: center;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .project-hero {
        grid-template-columns: 1fr;
    }
    
    .project-hero-image {
        height: 250px;
    }
    
    .project-hero-image img {
        object-fit: contain;
        object-position: center;
    }
    
    .project-hero-info {
        padding: 30px;
    }
    
    .project-hero-info h1 {
        font-size: 2rem;
    }
    
    .detail-section {
        padding: 25px;
    }
    
    .detail-section h2 {
        font-size: 1.5rem;
    }
    
    .plot-header,
    .plot-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .plot-header {
        text-align: center;
    }
    
    .plot-row {
        text-align: center;
        padding: 10px;
    }
    
    .payment-details {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-section {
        padding: 40px 20px;
    }
    
    .contact-section h2 {
        font-size: 1.8rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-buttons .btn-primary,
    .contact-buttons .btn-secondary,
    .contact-buttons .btn-outline {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Mobile Navigation Items Alignment */
    .nav-menu li {
        text-align: center;
        width: 100%;
    }

    .nav-menu .dropdown-toggle {
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #f8f9fa;
        margin-top: 0.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        text-align: center;
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
    }

    .dropdown-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid #e0e0e0;
        font-size: 0.9rem;
    }

    .dropdown-link:hover {
        padding-left: 2.5rem;
        background: #e9ecef;
    }

    .dropdown-icon {
        transition: transform 0.3s ease;
    }

    .dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }

    .hamburger {
        display: flex;
    }

    .nav-logo {
        gap: 8px;
    }

    .logo-img {
        height: 40px;
        max-width: 120px;
    }

    .nav-logo h2 {
        font-size: 1.4rem;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Blog Mobile Styles */
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-header h2 {
        font-size: 2rem;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .blog-card {
        margin: 0 10px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .blog-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .blog-share {
        align-self: center;
    }
    
    .blog-modal {
        padding: 10px;
    }
    
    .blog-modal-content {
        max-height: 95vh;
    }
    
    .blog-modal-header {
        padding: 20px;
    }
    
    .blog-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .blog-modal-body {
        padding: 20px;
    }
    
    .blog-modal-image {
        height: 200px;
    }
    
    .blog-modal-meta {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-banner {
        padding: 10px 0;
        top: 70px;
    }

    .newsletter-content {
        height: 55px;
    }

    .offer-item {
        gap: 12px;
        padding: 8px 0;
    }

    .offer-badge {
        padding: 6px 10px;
        border-radius: 15px;
    }

    .badge-text {
        font-size: 10px;
    }

    .offer-content {
        padding: 8px 12px;
        border-radius: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .offer-content h3 {
        font-size: 13px;
        line-height: 1.1;
    }

    .offer-content p {
        font-size: 11px;
        line-height: 1.2;
    }

    .offer-cta {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }

    .price {
        font-size: 12px;
    }

    .cta-btn {
        padding: 6px 12px;
        font-size: 10px;
        border-radius: 15px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 140px 20px 50px;
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-card.detailed {
        min-height: auto;
    }

    .category-title {
        font-size: 1.8rem;
    }

    .plot-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .plot-item {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .project-content {
        padding: 20px;
    }

    .project-content h4 {
        font-size: 1.4rem;
    }

    .plot-details {
        padding: 15px;
    }

    .payment-plan {
        padding: 15px;
    }

    .project-features {
        gap: 8px;
    }

    .feature {
        font-size: 0.8rem;
    }

    .feature p {
        color: #1a1a1a !important;
        font-weight: 600 !important;
        font-size: 0.95rem !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .feature h4 {
        color: #1a1a1a !important;
        font-weight: 700 !important;
        padding: 6px 12px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .property-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .projects {
        padding: 60px 0;
    }

    .project-category {
        margin-bottom: 40px;
    }

    .category-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .project-image {
        height: 180px;
    }
    
    .project-image img {
        object-fit: contain;
    }

    .project-content h4 {
        font-size: 1.3rem;
    }

    .plot-details h5 {
        font-size: 1rem;
    }

    .payment-plan h5 {
        font-size: 1rem;
    }

    .project-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced viewport responsiveness for hero section */
@media screen and (min-width: 1400px) {
    .hero {
        background-size: 100% auto;
        background-position: center center;
        min-height: 100vh;
    }
}

@media screen and (max-width: 1399px) and (min-width: 1200px) {
    .hero {
        background-size: cover;
        background-position: center center;
        min-height: 100vh;
    }
}

@media screen and (max-width: 1199px) and (min-width: 992px) {
    .hero {
        background-size: cover;
        background-position: center center;
        min-height: 100vh;
    }
}

@media screen and (max-width: 991px) and (min-width: 768px) {
    .hero {
        background-size: cover;
        background-position: center center;
        min-height: 100vh;
    }
}

@media screen and (max-width: 767px) and (min-width: 576px) {
    .hero {
        background-size: cover;
        background-position: center center;
        min-height: 100vh;
        padding: 140px 20px 50px;
    }
}

@media screen and (max-width: 575px) {
    .hero {
        background-size: cover;
        background-position: center center;
        min-height: 100vh;
        height: auto;
        padding: 120px 15px 40px;
    }
}

/* Force background image to be responsive on all viewport changes */
@media screen {
    .hero {
        background-attachment: scroll !important;
    }
}