/*
Theme Name: Rajdarbar Greens
Theme URI: https://rajdarbargreens.com
Author: Rajdarbar Greens
Author URI: https://rajdarbargreens.com
Description: A premium WordPress theme for Rajdarbar Greens - a gated township offering plots, flats, and luxury villas in Agra, Uttar Pradesh.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rdg-onepage
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #34A853;
    --secondary-color: #08b336;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* background: linear-gradient(135deg, #5d744e7a 0%, #4a7c2a 100%); */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--white);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, rgba(45, 80, 22, 0.7) 0%, rgba(74, 124, 42, 0.6) 100%); */
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.hero-content {
    text-align: left;
    max-width: 500px;
    position: relative;
    z-index: 2;
    
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
    line-height: 1.2;
    /* color: #000268; */
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-description,
.hero-features,
.hero-tagline {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    background-color: #ffffff;
    color: #08b336;
    font-weight: 600;
    display: inline-block;
    padding: 0.5rem 1rem;
    line-height: 1.5;
}

.hero-features {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    background-color: #ffffff;
    color: #08b336;
    display: inline-block;
    padding: 0.5rem 1rem;
    line-height: 1.5;
}

.hero-tagline {
    font-size: 0.95rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    background-color: #ffffff;
    color: #08b336;
    display: inline-block;
    padding: 0.5rem 1rem;
    line-height: 1.5;
}

/* Initial hidden state for scroll items */
.hero-scroll-item {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    visibility: hidden;
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s 0.6s;
}

/* Visible state when scrolled */
.hero-scroll-item.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible;
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s 0s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Initial hidden state for CTA */
.hero-cta {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    visibility: hidden;
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s 0.6s;
}

/* Visible state when all p tags are shown */
.hero-cta.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible;
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s 0s;
}


.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: #ffc004;
    color: black;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Sections */
section {
    padding: 5rem 2rem;
}

.section-container {
    max-width: 1600px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* About Section */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Image with Overlay */
.image-with-overlay {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.image-with-overlay img {
    width: 100%;
    height: auto;
    display: block;
}

.image-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, rgba(52, 168, 83, 0.85) 0%, rgba(52, 168, 83, 0.75) 100%); */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
}

.image-overlay-content .overlay-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    background-color: white;
    padding: 2px 6px;
    border-radius: 10px;
}

.image-overlay-content .overlay-line1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background-color: #fbbc05;
    line-height: 1;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: white;
}

.image-overlay-content .overlay-line2 {
    font-size: 1rem;
    margin-top: 0.5rem;
    opacity: 0.95;
    background-color: #fbbc05;
    line-height: 1;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: white;
}

.image-overlay-content .overlay-line3 {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.9;
    background-color: #fbbc05;
    line-height: 1;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: white;
}

/* Simple Overlay for Service/Amenity Images */
.service-image.image-with-overlay .simple-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1.5rem 1rem 1rem;
    justify-content: flex-start;
    align-items: center;
}

.service-image.image-with-overlay {
    position: relative;
}

.service-image.image-with-overlay img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Services Section */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.service-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Portfolio Section */
.portfolio {
    background: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* Gallery Carousel */
.gallery-carousel-container {
    position: relative;
    max-width: 1600px;
    margin: 3rem auto 0;
    padding: 0 60px;
}

.gallery-carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.gallery-carousel {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    transition: transform 0.5s ease;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    flex: 0 0 100%;
}

.carousel-image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    color: var(--white);
    padding: 2.5rem 2rem;
    transform: translateY(0);
}

.carousel-overlay h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 700;
}

.carousel-overlay p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.6;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--primary-color);
    opacity: 0.7;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #34A853 0%, #34A853 100%);
    color: var(--white);
}

.contact .section-title,
.contact .section-subtitle {
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-form-wrapper {
    width: 100%;
}

.contact-form {
    width: 100%;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-map {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.map-address {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-detail-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-detail-content {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    list-style: none;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero {
        background-attachment: scroll;
    }
    
    .hero-container {
        justify-content: center;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description,
    .hero-features,
    .hero-tagline {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-map iframe {
        height: 250px;
    }
    
    .contact-details {
        gap: 1rem;
    }
    
    /* Gallery Carousel Responsive */
    .gallery-carousel-container {
        padding: 0 1rem;
    }
    
    .carousel-image-wrapper {
        height: 350px;
    }
    
    .carousel-overlay {
        padding: 1.5rem 1.5rem;
    }
    
    .carousel-overlay h3 {
        font-size: 1.5rem;
    }
    
    .carousel-overlay p {
        font-size: 1rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .carousel-prev {
        left: 0.5rem;
    }
    
    .carousel-next {
        right: 0.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

