/* ===================== ENHANCED LANDING PAGE STYLES ===================== */
:root {
    /* Teal Color Palette */
    --teal-primary: #008080;
    --teal-dark: #006666;
    --teal-light: #00a0a0;
    --teal-very-light: #e0f2f2;

    /* Orange Color Palette */
    --orange-primary: #ff7f50;
    --orange-dark: #e67348;
    --orange-light: #ff9a75;
    --orange-very-light: #fff0eb;

    /* Neutral & Background Colors */
    --background-light: #fff8dc;
    --white: #fffdf6;
    --cream: #FFF8DC;
    --gray-light: #e9ecef;
    --gray-medium: #cbd5e0;
    --gray-dark: #4a5568;

    /* Text Colors */
    --text-dark: #2a4a4a;
    --text-light: #5c7a7a;
    --text-on-dark: var(--white);
    /* For text on dark backgrounds */
    --text-on-light: var(--text-dark);
    /* For text on light backgrounds */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
    --gradient-reverse: linear-gradient(135deg, var(--orange-primary), var(--teal-primary));
    --gradient-light: linear-gradient(135deg, var(--teal-very-light), var(--orange-very-light));
    --gradient-dark: linear-gradient(135deg, var(--teal-dark), var(--orange-dark));

    /* Shadows */
    --shadow-card: 0 6px 20px rgba(0, 128, 128, 0.08);
    --shadow-card-hover: 0 10px 30px rgba(255, 127, 80, 0.15);
    --shadow-button: 0 4px 14px rgba(255, 127, 80, 0.4);
    --shadow-nav: 0 2px 10px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.6s ease;

    /* Border Radius */
    --border-radius: 14px;
    --border-radius-small: 8px;
    --border-radius-large: 20px;
    --border-radius-full: 50%;

    /* Spacing (Optional but highly recommended) */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;

    /* Semantic Variables (Using the palette above) */
    --color-primary: var(--teal-primary);
    --color-secondary: var(--orange-primary);
    --color-accent: var(--orange-primary);
    --color-background: var(--background-light);
    --color-surface: var(--white);
    --color-success: #48bb78;
    /* A green for success messages */
    --color-warning: #ed8936;
    /* An amber for warnings */
    --color-error: #f56565;
    /* A red for errors */

    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* Enhanced base styles */
* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* Enhanced body styling */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
}

body.kannada {
    font-family: 'Noto Sans Kannada', 'Poppins', sans-serif;
}

/* ===================== ENHANCED HERO SECTION ===================== */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 80, 80, 0.1), rgba(230, 92, 53, 0.1));
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 80, 80, 0.55) 0%,
            rgba(230, 92, 53, 0.2) 50%,
            rgba(0, 80, 80, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    padding: 0 20px;
    max-width: 1200px;
    animation: fadeInUp 1.2s ease;
}

.hero-content h1 {
    font-size: clamp(4rem, 8vw, 4rem);
    margin-bottom: 25px;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.8);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: clamp(1.3rem, 2vw, 2rem);
    margin-bottom: 40px;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    opacity: 0.95;
}

.hero-btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 20px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(230, 92, 53, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    letter-spacing: 0.5px;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-reverse);
    z-index: -1;
    transition: left 0.6s ease;
}

.hero-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(230, 92, 53, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-btn:hover::before {
    left: 0;
}

/* ===================== ENHANCED SECTION STYLING ===================== */
section {
    padding: 40px 20px;
    position: relative;
    background: var(--background-light);
    transition: all 0.5s ease;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-header h2 {
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.section-header p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-light);
    max-width: 700px;
    margin: 30px auto 0;
    line-height: 1.7;
}

/* ===================== ENHANCED HIGHLIGHTS GRID ===================== */
.city-highlights {
    position: relative;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.highlight-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0 5px;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.highlight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    min-height: 44px;
}

.image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.highlight-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.highlight-card:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
    transition: var(--transition);
}

.highlight-card:hover .image-overlay {
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.3), rgba(255, 127, 80, 0.2));
}

.category-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: var(--transition);
}

.highlight-card:hover .category-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.highlight-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--teal-dark);
    font-weight: 600;
    line-height: 1.3;
}

.highlight-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.7;
}

.read-more {
    color: var(--orange-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
    min-height: auto;
    padding: 10px 0;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-primary);
    transition: width 0.3s ease;
}

.highlight-card:hover .read-more {
    color: var(--teal-primary);
    gap: 12px;
}

.highlight-card:hover .read-more::after {
    width: 100%;
}

/* ===================== ENHANCED STATISTICS SECTION ===================== */
.statistics {
    position: relative;
    overflow: hidden;
}

.statistics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-light);
    opacity: 0.3;
    z-index: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--teal-very-light) 100%);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 128, 128, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transform: translateY(0);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.stat-card i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    transition: var(--transition);
}

.stat-card:hover i {
    transform: scale(1.1);
}

.stat-card h3 {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-card p {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

/* ===================== ENHANCED TOURISM SECTION ===================== */
.tourism-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.tour-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 128, 128, 0.1);
    backdrop-filter: blur(10px);
    transform: translateY(0);
}

.tour-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
   
    z-index: 2;
}

.tour-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.tour-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.tour-card:hover img {
    transform: scale(1.05);
}

.tour-card h3 {
    padding: 20px 20px 10px;
    color: var(--teal-dark);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.tour-card .tourdesc {
    padding: 0 20px 20px;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===================== ENHANCED SERVICES SECTION ===================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 35px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 128, 128, 0.1);
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
    color: inherit;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card i {
    font-size: 2.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--teal-dark);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===================== ENHANCED EVENTS SECTION ===================== */
.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    padding: 25px;
    background: var(--white);
    border-radius: var(--border-radius);
    border-left: 5px solid var(--orange-primary);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transform: translateY(0);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-light);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.event-card:hover {
    transform: translateX(3px);
    border-left-color: var(--teal-primary);
    box-shadow: var(--card-shadow-hover);
}

.event-card:hover::before {
    opacity: 0.1;
}

.event-card h3 {
    color: var(--teal-dark);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.event-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ===================== ENHANCED GALLERY SECTION ===================== */
.gallery {
    max-width: 1500px;
    align-items: center;
    margin: 2;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    transform: translateY(0);
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(80%);
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    font-size: 1rem;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s ease;
    border-radius: 0 0 12px 12px;
}

.gallery-item:hover .caption {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== ENHANCED BUSINESS SECTION ===================== */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.biz-card {
    background: var(--white);
    padding: 35px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 128, 128, 0.1);
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transform: translateY(0);
}

.biz-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.biz-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.biz-card:hover::after {
    transform: scaleX(1);
}

.biz-card i {
    font-size: 2.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    transition: var(--transition);
}

.biz-card:hover i {
    transform: scale(1.1);
}

.biz-card h3 {
    color: var(--teal-dark);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
}

.biz-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===================== ENHANCED BUTTON STYLES ===================== */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, background 0.3s ease;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}


.btn:hover {
    background: linear-gradient(135deg, var(--teal-dark), var(--orange-dark));
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn:hover::before {
    left: 0;
}

/* ===================== ENHANCED ANIMATIONS ===================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Enhanced staggered animations */
.highlight-card,
.tour-card,
.service-card,
.biz-card,
.stat-card,
.event-card,
.gallery-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animation delays */
.highlight-card:nth-child(1) {
    animation-delay: 0.1s;
}

.highlight-card:nth-child(2) {
    animation-delay: 0.2s;
}

.highlight-card:nth-child(3) {
    animation-delay: 0.3s;
}

.highlight-card:nth-child(4) {
    animation-delay: 0.4s;
}

.tour-card:nth-child(1) {
    animation-delay: 0.15s;
}

.tour-card:nth-child(2) {
    animation-delay: 0.25s;
}

.tour-card:nth-child(3) {
    animation-delay: 0.35s;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.biz-card:nth-child(1) {
    animation-delay: 0.1s;
}

.biz-card:nth-child(2) {
    animation-delay: 0.2s;
}

.biz-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

.event-card:nth-child(1) {
    animation-delay: 0.1s;
}

.event-card:nth-child(2) {
    animation-delay: 0.2s;
}

.event-card:nth-child(3) {
    animation-delay: 0.3s;
}

.gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}

.gallery-item:nth-child(2) {
    animation-delay: 0.2s;
}

.gallery-item:nth-child(3) {
    animation-delay: 0.3s;
}

.gallery-item:nth-child(4) {
    animation-delay: 0.4s;
}

.gallery-item:nth-child(5) {
    animation-delay: 0.5s;
}

.gallery-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* REMOVED: Smooth floating animation for cards on hover */
/* .highlight-card:hover,
.tour-card:hover,
.service-card:hover,
.biz-card:hover {
    animation: float 3s ease-in-out infinite;
} */

/* ===================== ENHANCED MOBILE RESPONSIVENESS ===================== */

/* Tablet and laptop responsive styles */
@media (max-width: 1024px) {
    section {
        padding: 35px 15px;
    }

    .highlights-grid,
    .tourism-grid,
    .services-grid,
    .business-grid {
        gap: 20px;
    }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        height: 70vh;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-content p {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }

    section {
        padding: 30px 15px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .highlights-grid,
    .tourism-grid,
    .services-grid,
    .business-grid,
    .events-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    .hero {
        min-height: 60vh;
        height: 60vh;
    }

    section {
        padding: 25px 10px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card-content {
        padding: 20px;
    }

    .image-container {
        height: 180px;
    }
}

/* Enhanced touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    .highlight-card:active,
    .tour-card:active,
    .service-card:active,
    .biz-card:active {
        transform: scale(0.98);
        transition: transform 0.2s ease;
    }
}

/* Enhanced dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --text-dark: #e0e0e0;
        --text-light: #b0b0b0;
        --cream: #2a2a2a;
        --gray-light: #333;
        --background-light: #2a2a2a;
    }

    .highlight-card,
    .tour-card,
    .service-card,
    .biz-card,
    .stat-card,
    .event-card {
        background: var(--white);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Enhanced print styles */
@media print {
    .hero {
        color: black !important;
        background: white !important;
        min-height: auto;
        height: auto;
    }

    .hero-content h1 {
        background: none;
        -webkit-text-fill-color: black;
        color: black;
    }
}

/* Add a subtle background pattern to all sections */
.city-highlights::before,
.statistics::before,
.tourism::before,
.services::before,
.events::before,
.gallery::before,
.business::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(0, 128, 128, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 127, 80, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Ensure content stays above background patterns */
.city-highlights>*,
.statistics>*,
.tourism>*,
.services>*,
.events>*,
.gallery>*,
.business>* {
    position: relative;
    z-index: 1;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Performance optimizations */
.highlight-card,
.tour-card,
.service-card,
.biz-card,
.stat-card,
.event-card,
.gallery-item {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Public Transport Services Section */
.transport-services {
    padding: 40px 0 !important;
    background: #fff8dc;
    scroll-margin-top: 70px;
    position: relative;
}

.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px !important;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.transport-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-medium);
}

.transport-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Bus Card - Teal Theme */
.bus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--teal-primary), var(--teal-dark));
}

.bus-card .transport-icon i {
    font-size: 3rem;
    color: var(--teal-primary);
    background: linear-gradient(135deg, var(--teal-primary), var(--teal-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Auto Card - Orange Theme */
.auto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--orange-primary), var(--orange-dark));
}

.auto-card .transport-icon i {
    font-size: 3rem;
    color: var(--orange-primary);
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* App Card - Teal & Orange Mix */
.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;

}

.app-card .transport-icon i {
    font-size: 3rem;
    color: var(--teal-primary);
    background: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.transport-icon {
    text-align: center;
    margin-bottom: 20px;
}

.transport-card h3 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--teal-dark);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.transport-details {
    margin-bottom: 20px;
}

.transport-details p {
    text-align: center;
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 15px !important;
    font-size: 0.9rem;
}

.transport-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--teal-primary);
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: 50px;
}

.auto-card .feature {
    color: var(--orange-primary);
}

.app-card .feature {
    color: var(--teal-primary);
}

.feature::before {
    content: '✓';
    font-weight: bold;
    color: inherit;
}

.transport-info {
    background: var(--gray-light);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid var(--gray-medium);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    width: 20px;
    text-align: center;
    color: var(--teal-primary);
}

.auto-card .info-item i {
    color: var(--orange-primary);
}

.app-card .info-item i {
    color: var(--teal-primary);
}

.info-item span {
    color: var(--gray-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Transport Action Button Styles */
.transport-action {
    margin-top: 25px;
    text-align: center;
}

.route-search-btn {
    background: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.route-search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.route-search-btn:hover::before {
    left: 100%;
}

.route-search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.route-search-btn:active {
    transform: translateY(-1px);
}

/* Card-specific button colors */
.bus-card .route-search-btn {
    background: linear-gradient(135deg, var(--teal-primary), var(--teal-dark));
}

.auto-card .route-search-btn {
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
}

.app-card .route-search-btn {
    background: linear-gradient(135deg, var(--teal-primary), var(--orange-primary));
}

.route-search-btn i {
    font-size: 1rem;
}

.btn-text {
    font-weight: 600;
}

/* Language support */
.transport-services [data-en],
.transport-services [data-kn] {
    transition: opacity 0.3s ease;
}

body.kannada .transport-services [data-en] {
    display: none;
}

body.kannada .transport-services [data-kn] {
    display: inline;
    font-family: 'Noto Sans Kannada', sans-serif;
}

body:not(.kannada) .transport-services [data-kn] {
    display: none;
}

body:not(.kannada) .transport-services [data-en] {
    display: inline;
}

/* Ensure Kannada font for entire section when active */
body.kannada .transport-services {
    font-family: 'Noto Sans Kannada', sans-serif;
}

/* Animation for icons */
.transport-card:hover .transport-icon i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.transport-icon i {
    transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 992px) {
    .transport-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .transport-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .transport-card {
        padding: 20px;
    }

    .transport-icon i {
        font-size: 2.5rem;
    }

    .transport-services {
        padding: 40px 15px !important;
    }

    .transport-features {
        gap: 6px;
    }

    .feature {
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    .route-search-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .transport-card {
        padding: 15px;
    }

    .transport-info {
        padding: 15px;
    }

    .info-item {
        gap: 8px;
    }

    .info-item span {
        font-size: 0.9rem;
    }

    .route-search-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }

    .transport-card h3 {
        font-size: 1.3rem;
    }
}