/* Avani Land Developers - Custom Styles */

/* Feedback Form Styles */
#feedback {
    position: fixed;
    right: 0;
    top: 22%;
    z-index: 9999;
    margin-right: -3px;
}

#feedback-form {
    float: right;
    width: 30%;
    height: 100%;
    z-index: 9999;
    padding: 3px;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

#feedback-tab {
    float: right;
    color: #fff;
    font-size: 20px;
    border: 1px solid;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    width: 120px;
    height: 42px;
    background-color: #9a2827;
    margin-top: 60px;
    margin-right: -42px;
    padding-top: 5px;
    border-radius: 3px;
    transform: rotate(270deg);
    transition: background-color 0.3s ease;
}

#feedback-tab:hover {
    background-color: #7a201f;
}

#feedback-form textarea {
    resize: none;
}

.form-title {
    font-size: 25px;
    text-align: center;
    color: #fff;
    padding: 11px 1px;
}

.text1 {
    border: 2px solid rgb(173, 204, 204);
    height: 31px;
    width: 90%;
    box-shadow: 0px 0px 27px rgb(204, 204, 204) inset;
    transition: 500ms all ease;
    font-family: Verdana, sans-serif;
    padding: 3px;
    margin: 4px;
    margin-left: 5%;
    margin-right: 10%;
}

.TextBox:focus {
    width: 220px;
    transition: 500ms all ease;
    padding: 3px 32px 3px 3px;
}

select {
    width: 90%;
    height: 29px;
    border-radius: 3px;
    border: 1px solid #CCC;
    font-weight: 200;
    font-size: 12px;
    margin: 2px;
    font-family: Verdana, sans-serif;
    box-shadow: 1px 1px 5px #CCC;
    padding: 3px;
    margin-left: 5%;
    margin-right: 10%;
}

select:hover {
    width: 90%;
    height: 29px;
    border-radius: 3px;
    border: 1px solid #CCC;
    font-weight: 200;
    font-size: 12px;
    margin: 2px;
    font-family: Verdana, sans-serif;
    box-shadow: 1px 1px 5px #CCC;
    padding: 3px;
    margin-left: 5%;
    margin-right: 10%;
}

.ButtonStyle {
    width: 200px;
    border-radius: 3px;
    border: 1px solid #CCC;
    padding: 8px;
    background-color: #d7dcdb;
    color: #9a2827;
    font-weight: 200;
    font-family: Verdana, sans-serif;
    margin-left: 10%;
    margin-right: 10%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ButtonStyle:hover {
    width: 200px;
    border-radius: 3px;
    border: 1px solid #aaa;
    padding: 8px;
    font-weight: 200;
    font-family: Verdana, sans-serif;
    box-shadow: 1px 1px 5px #CCC;
}

.EnquiryBox {
    height: 98%;
}

/* Social Media Icon Bar */
.icon-bar {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.icon-bar a {
    display: block;
    text-align: center;
    padding: 16px;
    transition: all 0.3s ease;
    color: white;
    font-size: 20px;
    text-decoration: none;
}

.icon-bar a:hover {
    background-color: #000;
}

.facebook {
    background: #3B5998;
    color: white;
}

.twitter {
    background: #55ACEE;
    color: white;
}

.google {
    background: #dd4b39;
    color: white;
}

.linkedin {
    background: #007bb5;
    color: white;
}

.youtube {
    background: #bb0000;
    color: white;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    margin: 5px;
    text-align: center;
    padding: 2px;
    height: auto;
}

@media (max-width: 767px) {
    .btn-group-hidden .dropdown-menu {
        display: inline-block;
        box-shadow: none;
        border: none;
        position: relative;
    }
    
    .btn-group-hidden .dropdown-menu li:not(:first-child) {
        display: none;
    }
}

/* Services Section Styles */
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');

section {
    padding: 60px 0;
}

section .section-title {
    text-align: center;
    color: #01A0E2;
    margin-bottom: 50px;
    text-transform: uppercase;
}

#what-we-do {
    background: #ffffff;
}

#what-we-do .card {
    padding: 1rem !important;
    border: none;
    margin-bottom: 1rem;
    transition: 0.5s all ease;
}

#what-we-do .card:hover {
    box-shadow: 5px 7px 9px -4px rgb(158, 158, 158);
}

#what-we-do .card .card-block {
    padding-left: 50px;
    position: relative;
}

#what-we-do .card .card-block a {
    color: #01A0E2 !important;
    font-weight: 700;
    text-decoration: none;
}

#what-we-do .card .card-block a i {
    display: none;
}

#what-we-do .card:hover .card-block a i {
    display: inline-block;
    font-weight: 700;
}

#what-we-do .card .card-block:before {
    font-family: FontAwesome;
    position: absolute;
    font-size: 39px;
    color: #01A0E2;
    left: 0;
    transition: transform 0.2s ease-in-out;
}

#what-we-do .card .block-1:before,
#what-we-do .card .block-2:before,
#what-we-do .card .block-3:before,
#what-we-do .card .block-4:before,
#what-we-do .card .block-5:before,
#what-we-do .card .block-6:before {
    content: "\f00c";
}

#what-we-do .card:hover .card-block:before {
    transform: rotate(360deg);
    transition: 0.5s all ease;
}

/* Gallery Styles */
#demo {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.green {
    background-color: #6fb936;
}

.thumb {
    margin-bottom: 30px;
}

.page-top {
    margin-top: 10px;
}

img.zoom {
    width: 100%;
    height: 200px;
    border-radius: 5px;
    object-fit: cover;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.transition {
    transform: scale(1.2);
}

.modal-header {
    border-bottom: none;
}

.modal-title {
    color: #000;
}

.modal-footer {
    display: none;
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    #feedback-form {
        width: 90%;
    }
    
    .icon-bar {
        display: none;
    }
    
    .thumb {
        margin-bottom: 15px;
    }
    
    img.zoom {
        height: 150px;
    }
    
    .bigTxt {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .form-title {
        font-size: 20px;
    }
    
    .ButtonStyle {
        width: 180px;
    }
    
    .text1 {
        width: 95%;
        margin-left: 2.5%;
    }
    
    .bigTxt {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* Additional utility classes */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center {
    text-align: center;
}

.img-responsive {
    max-width: 100%;
    height: auto;
}

/* Enhanced button styles */
.btn-primary {
    background-color: #01A0E2;
    border-color: #01A0E2;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0086c3;
    border-color: #0086c3;
    text-decoration: none;
    color: white;
}

/* Loading spinner */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #01A0E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer Styles */
.footer-main {
    background-color: #232323 !important;
    padding: 10px !important;
    border-top: 4px solid #01A0E2 !important;
}

.ftr-widget {
    padding: 0px 25px 0px 23px !important;
}

.ftr-widget h3 {
    color: #fff !important;
}

.ftr-widget p {
    color: #fff !important;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid #ebebeb;
}

.ftr-widget .input-group {
    line-height: 30px;
}

.ftr-widget .contact-info p {
    text-align: justify;
}

.ftr-widget a {
    text-decoration: none;
    color: #ffffff;
}

.copyright span {
    color: #fff !important;
}

.footer-map iframe {
    border: 0;
    width: 100%;
    max-width: 302px;
    height: 298px;
}

/* Service items in footer */
.footer-service-item {
    padding-bottom: 6px !important;
    margin-bottom: 6px !important;
    border-bottom: 1px solid #ebebeb !important;
    color: #ffffff !important;
}

/* Welcome section styling */
.bigTxt {
    font-size: 32px;
    font-weight: 600;
    margin: 20px 0;
}

.bigTxt span {
    color: #01A0E2;
}

.dashedline {
    border-top: 2px dashed #01A0E2;
    margin: 20px auto;
    width: 80%;
}

/* Icon styling for amenities */
.wellcome-section .item figure img {
    height: 80px !important;
    width: auto;
    margin-bottom: 10px;
}

.wellcome-section .item h2 {
    margin-top: 10px;
    color: #333;
    font-size: 18px;
}

/* Gallery improvements */
.gallery-section .section-title {
    text-align: center !important;
    color: #01A0E2 !important;
    margin-bottom: 30px;
}

/* About section improvements */
.about-main p {
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Performance optimizations */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states for better accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #01A0E2;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #01A0E2;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Advanced Performance Optimizations */
@media (min-width: 1200px) {
    .container {
        max-width: 1170px;
    }
}

/* CSS Grid fallback for better browser support */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

@supports not (display: grid) {
    .amenities-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .amenities-grid > .item {
        flex: 0 1 calc(25% - 20px);
        margin-bottom: 30px;
    }
}

/* Enhanced Typography */
body {
    font-display: swap;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Improved Gallery with CSS Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Modern Card Design for Projects */
.project-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-card-content {
    padding: 25px;
}

.project-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.project-card-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Enhanced Animation Library */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

/* Intersection Observer Animation Delays */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

/* Modern Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #01A0E2;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0086c3;
}

/* Improved Mobile Navigation */
@media (max-width: 767px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav > li > a {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar-nav > li:last-child > a {
        border-bottom: none;
    }
}

/* Enhanced Hero Section */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 160, 226, 0.8) 0%, rgba(0, 86, 179, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Modern CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, #01A0E2 0%, #0086c3 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 160, 226, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 160, 226, 0.6);
    color: white;
    text-decoration: none;
}

/* Advanced Layout Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 50px 0;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #01A0E2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(1, 160, 226, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    cursor: pointer;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(1, 160, 226, 0.6);
}

/* Enhanced Form Validation */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    border-color: #01A0E2;
    box-shadow: 0 0 0 3px rgba(1, 160, 226, 0.1);
    outline: none;
}

.form-control.error {
    border-color: #e74c3c;
}

.form-control.success {
    border-color: #27ae60;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.success-message {
    color: #27ae60;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* Modern Stats Counter */
.stats-container {
    background: linear-gradient(135deg, #01A0E2 0%, #0086c3 100%);
    color: white;
    padding: 60px 0;
    margin: 50px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2em;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Footer Logo */
.footerdownloadpane img {
  max-width: 100%;      /* Ensures the logo never gets wider than its container */
  height: auto;         /* Maintains the correct aspect ratio as it scales */
  display: block;       /* Helps with centering and spacing */
  margin: 0 auto 20px;  /* Centers the logo horizontally and adds space below it */
  max-height: 150px;    /* Optional: Sets a maximum height if you don't want it too large */
}

/* Responsive Header Logo */
header .logo img {
  max-width: 100%;      /* This is the most important rule. It ensures the logo shrinks to fit its container. */
  height: auto;         /* This maintains the logo's aspect ratio, preventing distortion. */
  max-height: 65px;     /* Optional: This controls the maximum height of the logo, keeping your header neat. */
}

/* Header Flexbox Layout */
header .container {
  display: flex;                  /* Turns on Flexbox for the container */
  justify-content: space-between; /* Pushes the logo to the left and nav to the right */
  align-items: center;            /* Vertically centers the logo and nav links */
}

/* Reset width for logo and nav so they take up only the space they need */
header .logo,
header .top-nav {
  width: auto;
  float: none;
}