/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    color: #ffffff;
    padding: 100px 20px 140px; /* Increased bottom padding significantly */
    text-align: center;
    overflow: visible; /* Changed from hidden to visible */
    margin-bottom: 60px; /* Added margin at bottom */
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(238, 119, 82, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(35, 213, 171, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(231, 60, 126, 0.35) 0%, transparent 60%),
        radial-gradient(circle at 30% 80%, rgba(35, 166, 213, 0.3) 0%, transparent 50%);
    animation: pulse 7s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.15);
    }
}

/* Animated particles in hero */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float linear infinite;
    filter: blur(1.5px);
}

.particle:nth-child(1) {
    width: 120px;
    height: 120px;
    left: 5%;
    background: radial-gradient(circle, rgba(238, 119, 82, 0.6), transparent);
    animation-duration: 12s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 80px;
    height: 80px;
    left: 25%;
    background: radial-gradient(circle, rgba(231, 60, 126, 0.55), transparent);
    animation-duration: 15s;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 150px;
    height: 150px;
    left: 45%;
    background: radial-gradient(circle, rgba(35, 166, 213, 0.5), transparent);
    animation-duration: 18s;
    animation-delay: 5s;
}

.particle:nth-child(4) {
    width: 100px;
    height: 100px;
    left: 65%;
    background: radial-gradient(circle, rgba(35, 213, 171, 0.55), transparent);
    animation-duration: 14s;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    width: 90px;
    height: 90px;
    left: 80%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.5), transparent);
    animation-duration: 16s;
    animation-delay: 4s;
}

.particle:nth-child(6) {
    width: 110px;
    height: 110px;
    left: 15%;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.6), transparent);
    animation-duration: 20s;
    animation-delay: 7s;
}

.particle:nth-child(7) {
    width: 70px;
    height: 70px;
    left: 35%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5), transparent);
    animation-duration: 13s;
    animation-delay: 3s;
}

.particle:nth-child(8) {
    width: 130px;
    height: 130px;
    left: 55%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.45), transparent);
    animation-duration: 17s;
    animation-delay: 6s;
}

.particle:nth-child(9) {
    width: 95px;
    height: 95px;
    left: 75%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.55), transparent);
    animation-duration: 19s;
    animation-delay: 8s;
}

.particle:nth-child(10) {
    width: 85px;
    height: 85px;
    left: 90%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.5), transparent);
    animation-duration: 21s;
    animation-delay: 9s;
}

@keyframes float {
    0% {
        transform: translateY(110vh) translateX(0) rotate(0deg) scale(0.3);
        opacity: 0;
    }
    15% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(50vh) translateX(25px) rotate(180deg) scale(1.1);
        opacity: 0.9;
    }
    85% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-10vh) translateX(-25px) rotate(360deg) scale(0.3);
        opacity: 0;
    }
}

/* Animated shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.2;
}

.shape-1 {
    width: 300px;
    height: 300px;
    border: 3px solid rgba(231, 60, 126, 0.9);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: rotate 25s linear infinite, colorShift1 8s ease infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(35, 166, 213, 0.9);
    border-radius: 50%;
    bottom: 50px;
    left: -50px;
    animation: rotate 20s linear infinite reverse, colorShift2 10s ease infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    border: 2px solid rgba(35, 213, 171, 0.9);
    top: 50%;
    right: 10%;
    transform: rotate(45deg);
    animation: float-shape 15s ease-in-out infinite, colorShift3 12s ease infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float-shape {
    0%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    50% {
        transform: translateY(-30px) rotate(225deg);
    }
}

@keyframes colorShift1 {
    0%, 100% {
        border-color: rgba(231, 60, 126, 0.9);
    }
    33% {
        border-color: rgba(35, 166, 213, 0.9);
    }
    66% {
        border-color: rgba(35, 213, 171, 0.9);
    }
}

@keyframes colorShift2 {
    0%, 100% {
        border-color: rgba(35, 166, 213, 0.9);
    }
    33% {
        border-color: rgba(35, 213, 171, 0.9);
    }
    66% {
        border-color: rgba(238, 119, 82, 0.9);
    }
}

@keyframes colorShift3 {
    0%, 100% {
        border-color: rgba(35, 213, 171, 0.9);
    }
    33% {
        border-color: rgba(238, 119, 82, 0.9);
    }
    66% {
        border-color: rgba(231, 60, 126, 0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-family: 'Merriweather', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 30px;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Merriweather', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    display: block;
    color: #d4a574;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Main Content */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-intro {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.section-intro h2 {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #2d5016;
    margin-bottom: 15px;
}

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

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto 50px;
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

.search-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(45, 80, 22, 0.1);
    padding: 8px 20px;
    display: flex;
    align-items: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: #4a7c2c;
    box-shadow: 0 6px 30px rgba(45, 80, 22, 0.15);
}

.search-icon {
    color: #5a6c4d;
    margin-right: 12px;
    font-size: 20px;
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background: transparent;
}

.search-input::placeholder {
    color: #5a6c4d;
}
/* District Grid - UPDATED */
.districts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.district-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(45, 80, 22, 0.1);
    border: 1px solid #e0e5d8;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
    flex: 1 1 320px;
    max-width: 380px;
}

.district-card:nth-child(1) { animation-delay: 0.1s; }
.district-card:nth-child(2) { animation-delay: 0.2s; }
.district-card:nth-child(3) { animation-delay: 0.3s; }
.district-card:nth-child(4) { animation-delay: 0.4s; }
.district-card:nth-child(5) { animation-delay: 0.5s; }
.district-card:nth-child(6) { animation-delay: 0.6s; }

.district-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(45, 80, 22, 0.15);
    border-color: #4a7c2c;
}

.district-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9f5;
}

.district-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4a7c2c, #2d5016);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.district-name {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d5016;
}

.dealers-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dealer-item {
    padding: 18px;
    background: #f8f9f5;
    border-radius: 12px;
    border-left: 4px solid #d4a574;
    transition: all 0.3s ease;
}

.dealer-item:hover {
    background: #f0f3ea;
    border-left-color: #4a7c2c;
    transform: translateX(5px);
}

.dealer-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e1f;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dealer-name::before {
    content: '🏪';
    font-size: 18px;
}

.dealer-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
    color: #5a6c4d;
}

.dealer-location,
.dealer-contact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dealer-location::before {
    content: '📍';
    font-size: 14px;
}

.dealer-contact::before {
    content: '📞';
    font-size: 14px;
}

.dealer-contact a {
    color: #4a7c2c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dealer-contact a:hover {
    color: #2d5016;
    text-decoration: underline;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.no-results.show {
    display: block;
}

.no-results-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-results h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    color: #2d5016;
    margin-bottom: 10px;
}

.no-results p {
    color: #5a6c4d;
    font-size: 1.1rem;
}

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

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

/* Responsive Design */

/* Large Desktops (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .districts-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

/* Tablets and Small Desktops (768px to 1024px) */
@media (max-width: 1024px) {
    .districts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.15rem;
    }
}

/* Tablets (768px to 991px) */
@media (max-width: 768px) {
    .hero {
        padding: 70px 20px 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.05rem;
    }

    .hero-stats {
        gap: 25px;
    }
    
    .hero-badge {
        font-size: 13px;
        padding: 7px 18px;
    }

    .container {
        padding: 40px 15px;
    }

    .districts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .district-card {
        padding: 25px 20px;
    }

    .search-container {
        margin-bottom: 30px;
    }

    .section-intro {
        margin-bottom: 35px;
    }
    
    .section-intro h2 {
        font-size: 2rem;
    }
    
    /* Optimize particles for tablets */
    .particle {
        filter: blur(1px);
    }
    
    .shape-1,
    .shape-2 {
        opacity: 0.1;
    }
}

/* Small Tablets and Large Phones (481px to 767px) */
@media (max-width: 600px) {
    .hero {
        padding: 65px 18px 55px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .search-wrapper {
        padding: 6px 16px;
    }
    
    .search-input {
        font-size: 15px;
        padding: 10px 0;
    }
    
    .district-name {
        font-size: 1.35rem;
    }
    
    .dealer-name {
        font-size: 1.05rem;
    }
}

/* Mobile Phones (320px to 480px) */
@media (max-width: 480px) {
    .hero {
        padding: 60px 15px 50px;
    }

    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.15;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 12px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 6px 15px;
        margin-bottom: 15px;
    }

    .district-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin-right: 12px;
    }

    .district-name {
        font-size: 1.3rem;
    }

    .dealer-name {
        font-size: 1rem;
    }

    .dealer-info {
        font-size: 0.9rem;
    }
    
    .district-card {
        padding: 20px 16px;
    }
    
    .dealer-item {
        padding: 15px;
    }
    
    .section-intro h2 {
        font-size: 1.75rem;
    }
    
    .section-intro p {
        font-size: 1rem;
    }
    
    .search-icon {
        font-size: 18px;
        margin-right: 10px;
    }
    
    .search-wrapper {
        padding: 5px 14px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 10px 0;
    }
    
    .no-results-icon {
        font-size: 60px;
    }
    
    .no-results h3 {
        font-size: 1.5rem;
    }
    
    .no-results p {
        font-size: 1rem;
    }
    
    /* Reduce particle complexity on small screens */
    .particle:nth-child(n+7) {
        display: none;
    }
    
    .shape-3 {
        display: none;
    }
}

/* Very Small Phones (320px and below) */
@media (max-width: 360px) {
    .hero {
        padding: 50px 12px 45px;
    }
    
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .district-card {
        padding: 18px 14px;
    }
    
    .district-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .district-name {
        font-size: 1.2rem;
    }
    
    .dealer-name {
        font-size: 0.95rem;
    }
    
    .dealer-info {
        font-size: 0.85rem;
    }
    
    .dealer-item {
        padding: 12px;
    }
    
    .section-intro h2 {
        font-size: 1.6rem;
    }
    
    /* Further reduce animations on very small screens */
    .particle {
        animation-duration: 25s !important;
    }
}

/* Landscape mode adjustments for phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 40px 20px 35px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .hero-stats {
        margin-top: 20px;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .hero-badge {
        margin-bottom: 10px;
    }
}

/* Print styles */
@media print {
    .hero-particles,
    .hero-shapes,
    .search-container {
        display: none;
    }
    
    .hero {
        background: #2d5016 !important;
        padding: 30px 20px;
    }
    
    .district-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}